VNCserver not starting

Brimfulof
Posts: 16
Joined: Mon Dec 21, 2009 4:22 am

VNCserver not starting

Postby Brimfulof » Mon Jan 04, 2010 8:43 am

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.

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: VNCserver not starting

Postby moredruid » Mon Jan 04, 2010 12:49 pm

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
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

Brimfulof
Posts: 16
Joined: Mon Dec 21, 2009 4:22 am

Re: VNCserver not starting

Postby Brimfulof » Tue Jan 05, 2010 4:48 am

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?

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: VNCserver not starting

Postby moredruid » Tue Jan 05, 2010 6:14 am

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
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

Brimfulof
Posts: 16
Joined: Mon Dec 21, 2009 4:22 am

Re: VNCserver not starting

Postby Brimfulof » Tue Jan 05, 2010 6:41 am

D'oh!

Thanks moredruid, that's worked.

Who is online

Users browsing this forum: No registered users and 20 guests