From owner-freebsd-questions Wed Dec 12 17:13:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from riker.skynet.be (riker.skynet.be [195.238.3.132]) by hub.freebsd.org (Postfix) with ESMTP id 5B70437B416 for ; Wed, 12 Dec 2001 17:13:14 -0800 (PST) Received: from skynet.be (dialup236.herentals.skynet.be [195.238.28.236]) by riker.skynet.be (8.11.6/8.11.6/Skynet-OUT-2.16) with ESMTP id fBD1CDY19387; Thu, 13 Dec 2001 02:12:14 +0100 (MET) (envelope-from ) Message-ID: <3C180069.6060300@skynet.be> Date: Thu, 13 Dec 2001 02:12:09 +0100 From: Raf Schietekat Reply-To: Raf_Schietekat@ieee.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: en-us MIME-Version: 1.0 To: Siegbert Baude Cc: FreeBSD-questions Subject: Re: kdm op 4.4-R References: <003201c1824d$9bdf9b60$4011a8c0@whwurm.uniulm.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Siegbert Baude wrote: >[...] > Edit /etc/ttys to make the line with xdm look like: > > ttyv8 "/usr/local/bin/kdm -nodaemon" xterm on secure > > Note: not kdmdesktop! Oops! > > Then do a: > kill -1 1 > to make init reread its config file. kdm should then start > automagically. Nope. And I did kill xdm. > > If this doesn't work, switch back to the console (Ctrl-Alt-F1), in the Aha, this was also something I was looking for, thanks for the tip! > above line change back "on" to "off", and kill -1 1 again. Kill any > eventually running kdm instances by hand. > > To sort things out, you were able to "startkde" from the console both as > normal user and as root? Were there any error messages? I have startkde in both .xsession and .xinitrc, as root and as normal user. In both cases I can do startx, no error messages, and I get the KDE desktop. If I do startkde from the console as root, X is not started, and a list of errors is shown, the first one being: xsetroot: unable to open display '' > > Next as root try "kdm -nodaemon" from the console. Are there any error > messages? desktop# kdm -nodaemon [time, host] kdm[3182]: Cannot open access control file /usr/local/share/config/kdm/Xaccess, no XDMCP requeusts [sic] will be granted [time, host] kdm[3182]: cannot access servers file /usr/local/share/config/kdm/Xservers [X is not started] desktop# ls /usr/local/share/config/kdm kdmrc desktop# cd /usr/local/share/config/kdm desktop# cp /usr/X11R6/lib/X11/xdm/Xservers Xservers desktop# kdm -nodaemon [aha, login window appears... but login fails, Ctrl-Alt-F1] [several error messages about Xaccess, Xsetup, Xstartup, Xreset, Ctrl-C] ^Cdesktop# cp /usr/X11R6/lib/X11/xdm/Xaccess Xaccess desktop# cp /usr/X11R6/lib/X11/xdm/Xsetup_0 Xsetup desktop# cp /usr/X11R6/lib/X11/xdm/Xsession Xstartup desktop# echo > Xreset [ee Xstartup to contain a line for KDE] desktop# kdm -nodaemon [can log in fine, Sound server error looks different than the message I normally get, but that's another issue] [when I log out, the screen is black with a % shell in the upper left hand corner, and xconsole in the lower right, I type exit, I get kdm, Ctrl-Alt-F1, Ctrl-C] ^Cdesktop# echo "/usr/local/bin/kdm/desktop" > Xsetup [now I have a background, although there are a few seconds of delay each time, I go out of X, ee /etc/ttys to enable kdm from there, kill -HUP 1, still works fine, but I still get the % shell where I have to type exit >[...] > Hope I didn't forget another thing this time. Basically, the Ctrl-Alt-F? and kdm instead of kdmdesktop and being able to start kdm from the console (otherwise I would have thought it was basically an /etc/ttys thing and given up right away when it didn't work) were the key clues. Unless you also know how to get rid of the lingering % shell at logout time? > > Ciao > Siegbert Thanks, your message made all the difference! Now it would probably be useful to adapt the Handbook for the next neophyte who comes along (e.g., I just inferred that Xsetup_0 is now Xsetup, and that Xsession is now Xstartup, but I've never read that anywhere, and kcontrol not working as su root is also quite interesting). I'll go bother doc@freebsd.org some more. >[...] No, hold the presses, now I've got another problem, which some system administrators may frown upon... ;-) When I log in into KDE as my ordinary-user(-though-member-of-wheel) identity, I get my session back as I left it, but when I start up a Konsole (I was going to give the su root kcontrol another try), I notice that I am... root! Right at the prompt greeting me when the window pops up, no su or anything! # whoami root # pwd /usr/home/rfschtkt # cd # pwd /usr/home/rfschtkt [How come cd doesn't take me to /root?] Raf Schietekat To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message