Typo
[linux_from_scratch_hints.git] / OLD / kdm.txt
blob6b01577647dd4530b2c4bf4e5bafa39f30f54340
1 TITLE:          How to login into a WM using KDM
2 LFS VERSION:    4 and up.
3 KDE VERSION:    3.1
4 AUTHORS:        Remy Bosch <remy.bosch@hccnet.nl>
7 SYNOPSIS:
8         How to successfully login into a WM using KDM
10 HINT:
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
17  want to read ;-)
20 CHANGELOG      --- Timestamps are in dd-mm-yy ---
22  26-07-02 (dd-mm-yy)
23   Typo in Xsession. "$1" must be "$1". Sorry :-}
24  09-01-03
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 :-(
30 INDEX
31         XSESSION                line 37
32         REMOTE ACCES            line 61
33         XACCESS                 line 89
34         KDMRC                   line 96
35         IF ALL IS WELL          line 110
36         REMOTE CLIENT           line 124
37         REQUESTS                line 134
40 XSESSION
42  We can have the following in /etc/X11/xdm/Xsession. It's all we need ;-)
44 -----begin-snip-----
45 # Begin /etc/X11/xdm/Xsession
46 #!/bin/bash --login
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"
50 "/tmp/xses-$USER"
52         if ( cp /dev/null "$errfile" 2> /dev/null )
53         then
54                 chmod 600 "$errfile"
55                 exec > "$errfile" 2>&1
56                 break
57         fi
58 done
60 # End /etc/X11/xdm/Xsession
61 -----end-snip-----
64 REMOTE ACCES
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:
88  - Edit Xacces
89  - Edit kmdrc
92 XACCESS
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.
99 KDMRC
101  We still need to enable xdmcp... You can find it in the last section.
102  I displayed a part of mine here.
104 -----begin-snip-----
105 [Xdmcp]
106 Enable=true
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
110 -----end-snip-----
113 IF ALL IS WELL
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
117  /etc/inittab.
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:
122  -----------
123   x:5:respawn:/where/kdm/is/kdm -nodaemon
124  -----------
127 REMOTE CLIENT
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 ;-)
137 REQUEST
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 ;-)
144 HAVE FUN !!!
146  This should do the trick. Have fun!