Page 1 of 1

VNCserver not starting

Posted: Mon Jan 04, 2010 8:43 am
by Brimfulof
Hi,

I want to run my server headless, so I just installed VNC according to the instructions here:
http://wiki.amahi.org/index.php/VNC

I then told Fedora to not start X, according to these instructions:
http://wiki.amahi.org/index.php/Fedora- ... mmendation

Everything seems to work fine, except that when I reboot the server I can't connect to it using TightVNC until I log in (on the server) and then tell it to start vncserver.

Any ideas what I might be doing wrong?

Thanks.

Re: VNCserver not starting

Posted: Mon Jan 04, 2010 12:49 pm
by moredruid
can you check if VNC is installed as a service?
ls /etc/init.d/

if you see it, you can run the following command:
chkconfig <vncdaemon> --list
it should give you output in which runlevels the vncdaemon is started automatically.
if it lists everything "off" you can enable it by giving the following command:
chkconfig <vncdaemon> --level 2345 on
the next time the server is rebooted VNC will start in the background.
you can also manually start it with:
service <vncdaemon> start

Re: VNCserver not starting

Posted: Tue Jan 05, 2010 4:48 am
by Brimfulof
Thanks for helping me again, moredruid.

I've not got anywhere with this so far. This is what I did:

1. Logged in as root
2. Ran ls /etc/init.d/
3. vncserver was listed (not vncdaemon)
4. Ran chkconfig <vncdaemon> --list
5. Got the response -bash: vncdaemon: No such file or directory
6. Tried chkconfig <vncserver> --list
7. Got the response -bash: vncserver: No such file or directory
8. Checked /etc/gdm/custom.conf
9. This was there (added by the script from http://wiki.amahi.org/index.php?title=V ... edirect=no):

Code: Select all

#Enable Auto login to the GNOME desktop [daemon] AutomaticLoginEnable=true AutomaticLogin=asher TimedLoginEnable=true TimedLogin=asher TimedLoginDelay=0
Any ideas?

Re: VNCserver not starting

Posted: Tue Jan 05, 2010 6:14 am
by moredruid
ah

the <vncdaemon> was a placeholder for the real script.
you should be able to run
chkconfig vncserver --list
and
chkconfig vncserver --level 2345 on
to manually start it (for now, it'll work automagically after next reboot) you can issue
service vncserver start

Re: VNCserver not starting

Posted: Tue Jan 05, 2010 6:41 am
by Brimfulof
D'oh!

Thanks moredruid, that's worked.