1 TITLE: How to login into a WM using KDM
4 AUTHORS: Remy Bosch <remy.bosch@hccnet.nl>
8 How to successfully login into a WM using KDM
12 If we want to tell kdm what to start, we choose our favorite WM and klik
13 on [Go!]. The problem is that you might get a standard WM from XFree86.
14 After that, we discus XDMCP, so we can use remote-x
16 I've put line numbers in the index so you can jump directly to the subject you
20 CHANGELOG --- Timestamps are in dd-mm-yy ---
23 Typo in Xsession. "$1" must be "$1". Sorry :-}
25 Removed unneeded sections. kdm of kde3.1 (rc5) works well.
26 Also the Xsession is fully under control of kdm :-)
27 Still need to check the remote acces part :-(
35 IF ALL IS WELL line 110
36 REMOTE CLIENT line 124
42 We can have the following in /etc/X11/xdm/Xsession. It's all we need ;-)
45 # Begin /etc/X11/xdm/Xsession
48 # redirect errors to a file in user's home directory if we can...
49 for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER"
52 if ( cp /dev/null "$errfile" 2> /dev/null )
55 exec > "$errfile" 2>&1
60 # End /etc/X11/xdm/Xsession
66 This way you can run KDE on a 486!
67 Looks amazing, but the programs are run on a server. One can call this a
68 application-server. I only talk about the X-part. There are tree ways to get
69 this show on the road. This is from XDM-Xterm mini-nowto:
71 * Direct query : the X server contacts a named host, requesting that the
72 server presents a login prompt on its display
74 * Broadcast : the X server sends out a broadcast message to the network,
75 and the first server running XDM that responds to the broadcast will be
76 the one to present the login prompt on its display
78 * Indirect query : the X server contacts a named host, but asks it which
79 other hosts it knows about on the network. The named host will then
80 present the user with a list of hosts to choose from, and will then go on
81 to initiate communications with the selected host resulting in the
82 selected host presenting a login prompt on the X servers display.
85 We do the fist (Direct query). It's IMO the best and easiest option.
87 To get it working, we do the following:
94 If you want to log in from an other computer (Remote X), you can add a IP
95 number or hostname that is allowed to use remote X in
96 /opt/kde/share/config/kdm/Xaccess.
101 We still need to enable xdmcp... You can find it in the last section.
102 I displayed a part of mine here.
107 KeyFile=/opt/kde/share/config/kdm/xdm-keys
108 Willing=su nobody -c /opt/kde/share/config/kdm/Xwilling
109 Xaccess=/opt/kde/share/config/kdm/Xaccess
115 When everything works as it should, you can started automaticly. This
116 can be done by a script from /etc/init.d or we add a line in
118 IMHO I don't care much about what runlevel should(not) be used. Though
119 people say it should be runlevel "5".
120 So the line to be added would be like:
123 x:5:respawn:/where/kdm/is/kdm -nodaemon
129 To get the wanted loginscreen just run :
131 X -query IP_number_of_server &> /dev/null &
133 This way X is started and files one request for a loginscreen.
134 And presto! There is your server-power on a small PC ;-)
139 Remote login with root is not possible.
140 Just send in solutions and sugestions to me, if you had a problem and solved
141 it... Questions are welcome too.
142 This way we all can enjoy a easy login ;-)
146 This should do the trick. Have fun!