Bug 80797

Summary: Cannot log into KDE with kdm
Product: Ports & Packages Reporter: Nick Barkas <Linux4sure>
Component: Individual Port(s)Assignee: freebsd-kde (group) <kde>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Nick Barkas 2005-05-08 21:20:05 UTC
  Hello my name is Nick and I live in Athens Greece.
  I cannot login into KDE with kdm (X.org restarts if logging in as root and does nothing if logging in as normal user[which belongs in wheel group]).
  I have read the (latest) handbook dozens of times (as I had the same problem in FreeBSD 5.2-RELEASE i386) and did not come up with a solution.
  PLEASE FIND A SOLUTION SOON as the problem is not new (I had this since 5.2 and just waited for 5.3 with newer packages).While FreeBSD is the first UNIX I was bothered with (a year ago) I use GNU/Linux NOW as KDE/kdm works fine there.Although I discoverd GNU/Linux later,all the difficulties I encountered where solved QUICKLY and now its high time I submitted this stupid? bug as I really love KDE.
  I REALLY HOPE FreeBSD FINALLY WORKS 100% WITH KDM.If you need more info CONTACT ME ANY TIME in ¨Linux4sure@gmail.com¨ (I have also installed FreeBSD 5.3-RELEASE in VMware 4.5.2 so I can provide more info instantly).IF THIS BUG IS NOT FIXED I AM NOT GOING TO USE FreeBSD AGAIN THOUGH I REALLY LIKE IT BUT IF THERE IS A WORKAROUND PLEASE CONTACT ME.

How-To-Repeat:    What I did was this:
Install FreeBSD 5.3-RELEASE i386 from CD-ROM (Downloaded from a FreeBSD mirror and thoroughly checked with md5sum) with about anything but freebsd 1,2,3compat ,acroread and gnome desktop.
Configure and test X.org flawlessely in 800x600@24bit
run
echo ¨exec startkde¨ > /root/.xinitrc
echo ¨exec startkde¨ > /root/.xinitrc

edit /etc/ttys as following:
ttyv8 ¨/usr/local/bin/kdm -nodaemon¨ xterm off secure

added the following in /usr/X11R6/lib/X11/xdm/Xsession :
(in the place the handbook states I HAVE NO ERRORS HERE FOR SURE)

case $# in
1)
        case $1 in
        kde)
                exec /usr/local/bin/startkde
                ;;
        failsafe)
                exec xterm -geometry 80x24-0-0
                ;;
        esac
esac

I then type : ¨kdm -nodaemon¨ and have the above symptoms (cannot get into KDE)

 Finally I have seen that kdm.log reports : ¨X: client 2 rejected from local host¨
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2005-05-08 21:37:39 UTC
Responsible Changed
From-To: freebsd-bugs->kde


Set category to ports and assign to maintainer.
Comment 2 Andy Fawcett 2005-05-08 21:42:42 UTC
KDM from KDE 3.4.0 will not allow root logins without manually 
editing /usr/local/share/config/kdm/kdmrc

A.
Comment 3 Michael Nottebrock freebsd_committer freebsd_triage 2005-05-08 21:54:04 UTC
The handbook section about setting up kdm is outdated, especially editing 
Xsession is unneeded these days. All you need to do is add the line 
to /etc/ttys.

To fix the restarting/stalling, you need to set a hostname for you machine 
(i.e. put a line

hostname="mymachine"

into /etc/rc.conf)

-- 
   ,_,   | Michael Nottebrock               | lofi@freebsd.org
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org
Comment 4 Michael Nottebrock freebsd_committer freebsd_triage 2005-05-09 15:02:46 UTC
State Changed
From-To: open->closed

Submitter reports problem solved.
Comment 5 Kris Kennaway 2005-05-11 00:59:58 UTC
On Sun, May 08, 2005 at 08:15:22PM +0000, Nick Barkas wrote:

>   Hello my name is Nick and I live in Athens Greece.
>   I cannot login into KDE with kdm (X.org restarts if logging in as root and does nothing if logging in as normal user[which belongs in wheel group]).
>   I have read the (latest) handbook dozens of times (as I had the same problem in FreeBSD 5.2-RELEASE i386) and did not come up with a solution.
>   PLEASE FIND A SOLUTION SOON as the problem is not new (I had this since 5.2 and just waited for 5.3 with newer packages).While FreeBSD is the first UNIX I was bothered with (a year ago) I use GNU/Linux NOW as KDE/kdm works fine there.Although I discoverd GNU/Linux later,all the difficulties I encountered where solved QUICKLY and now its high time I submitted this stupid? bug as I really love KDE.
>   I REALLY HOPE FreeBSD FINALLY WORKS 100% WITH KDM.If you need more info CONTACT ME ANY TIME in ¨Linux4sure@gmail.com¨ (I have also installed FreeBSD 5.3-RELEASE in VMware 4.5.2 so I can provide more info instantly).IF THIS BUG IS NOT FIXED I AM NOT GOING TO USE FreeBSD AGAIN THOUGH I REALLY LIKE IT BUT IF THERE IS A WORKAROUND PLEASE CONTACT ME.

You should ask your support questions on a support mailing list; the
PR database is not for technical support help.  

Kris

P.S. Threatening not to use FreeBSD isn't going to get you anywhere.