I am using Debian (6) and need to run at boot an X server (without a login manager). What is the best way to do this?
From what I've read, the usual way is to have a script in /etc/init.d. I created a script that runs xinit /usr/bin/xterm -- :0 vt7 &, but all the error messages from X got printed to the tty1 console (which I intend to use). I tried with nohup xinit /usr/bin/xterm -- :0 vt7 > /dev/null &, and it works, but it looks like an ugly hack, so I thought I'd ask here if there is a better way. Sorry if I'm being dense, I don't have much experience with Linux.