Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to get vncserver to start when I reboot my VPS.

I've done everything that tells you to do, and I don't get any error messages.

But when I reboot my VPS, I still have to manually do a "vncserver" in the terminal.

Vncserver is not starting up like it should.

Using CentOS 5.4.

Output of "chkconfig ––list | grep vnc"

 0:off   1:off   2:off   3:off   4:off   5:on    6:off

A small difference is, where it tells you to do edit the $HOME file, mine is this since I use gnome

exec gnome-session &

If I manually do /etc/init.d/vncserver start in a terminal, it will run. it just doesn't run on startup.

Script in /etc/init.d/vncserver has executable permissions.

share|improve this question
Check the permissions of the init script. It should live in /etc/init.d. Try increasing permission (execute should be the only one that matters) promiscuity and see if it starts on boot. – Zac B Aug 6 '12 at 12:51
@ZacB Like this? – Austin Aug 6 '12 at 12:53
No...that's for the whole init.d directory. Find the file "vnc" (or vncserver or whatever) in the init.d directory, and make sure the "allow executing..." box is checked. I'm not familiar with the GNOME GUI permissions util. I'd say the safest bet is to open a terminal and run sudo chmod 777 /etc/init.d/vnc* and see if that resolves your issue. – Zac B Aug 6 '12 at 13:12
@ZacB Actually now it's saying "audit_log_user_command(): Connection refused" – Austin Aug 6 '12 at 13:20
That's sudo complaining, not the chmod command. I guess you're locked out of Sudo on your VPS...which seems weird, but never mind; try running the command without sudo. – Zac B Aug 6 '12 at 13:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.