Adding a login manager (KDM, GDM, or XDM) to automatically boot on startup
This is very easy to do, and will add the login manager as a daemon that will automatically load upon the startup of your computer. All you need is root access.
Just do the following:
1. Login as root with su.%%% %%% 2. Open the file /etc/rc.conf in your editor of choice.%%% %%% 3. Scroll through the file until you see a line that looks similar to the following (it is most likely near the bottom):
DAEMONS=(syslogd klogd !pcmcia network netfs crond)
4. After the last listed program, add the login manager that you want to use, either KDM, GDM or XDM, such as the following:
DAEMONS=(syslogd klogd !pcmcia network netfs crond kdm) #This would load KDM on startup
DAEMONS=(syslogd klogd !pcmcia network netfs crond gdm) #This would load GDM on startup
DAEMONS=(syslogd klogd !pcmcia network netfs crond xdm) #This would load XDM on startup
5. Save the file, and exit the editor. The next time you reboot, the login manager should run. If it does not, make sure that your file is correct, and that the program is installed.
- The KDM package is a part of the kdebase package. You can acquire it with this pacman command as root:
pacman -Syu kdebase
Alternate method%%% While the above method will work, a side effect is that there will be no difference between run levels 3 and 5, and actually if you start up run level 5 you may have both xdm and kdm/gdm running, depending on what your /etc/inittab looks like. To avoid this, instead of the above, do the following:
1. Login as root with su.%%% %%% 2. Open /etc/inittab using an editor of your choice.%%% %%% 3. Change the line
4. Make sure the line
appears in the file.
5. (Optional) If you just want xdm, skip this step. If you want gdm or kdm, change the line
to one of
6. Save the file and exit the editor.
That's it -- next time you boot, your chosen display manager will appear. To start it without rebooting, execute the following command (still as root):
If you ever need to stop X (to upgrade your video drivers, for example), you can execute (as root):
to get back to a console-based login. After you're done, you can telinit back to run level 5, no reboot necessary.