Start X at login

From ArchWiki
Revision as of 23:08, 23 July 2005 by Cactus (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Q: How can I start X at boot time in Arch?

A: Edit your /etc/inittab ... the first uncommented line should be something like this:

id:3:initdefault:

Change it to:

id:5:initdefault:

Forum Topic

You may also want to change the last line of the inittab file to start kdm or gdm instead of xdm


An alternative is to add something like the following to the bottom of your ~~/.bashrc:

if [[ -z \"$DISPLAY\" ]] && [[ $(tty) = /dev/vc/1 ]]; then
  startx
fi

This way X is automatically started when you log in at the first console.


A final option is to add a display manager (kdm, gdm, or xdm) to the DAEMONS array in /etc/rc.conf