Start X on boot under a user login on Ubuntu (no gdm, kdm or xdm)
Hi, I'm trying to get rid of gnome as much as possible since I consider it bloated. I have everything according to my taste but when I boot I need to start x by hand (through xinit) and I would like it to start automatically.
So I created a script in /etc/init.d/ to do that. If I just execute xinit on the script it runs X as root (we all know that's highly not recommended), so I tried su - username -c "xinit" to no avail. However if I start another program, say rtorrent, like that (replacing xinit with rtorrent) it works perfectly.
What do I need to do start X under a username on login? I don't want a login manager just to do something which I am so close to do.