Page 1 of 1

VNC server question

Posted: Wed Dec 31, 2008 12:02 pm
by relrobber
i really should know this, but how do you make the VNC server automatically start when you reboot the machine?

Re: VNC server question

Posted: Wed Dec 31, 2008 3:50 pm
by cpg
as root:

Code: Select all

chkconfig vnc on
however, i am not sure it will run it as a user.

i don't use that - i have a little macro to start it by hand when i use it. in ~/.bashrcL i have:

Code: Select all

alias vncs='vncserver -geometry 1550x1100 &> /dev/null &';
the dimensions are a little smaller than my real desktop, so that i fits nicely without scrollbars. :)

Re: VNC server question

Posted: Sun Jan 11, 2009 11:42 am
by rgmhtt
The VNC server is NOT an easy start.

First you have to install it, as it does not come with either Amahi or Fedora 9.5:

yum install vnc-server

Then you need to edit /etc/sysconfig/vncservers to supply what user you are going to let log in. If you select "2:root" then you will connect to host:5902, etc.

But before you start vncserver, you need to run vncpasswd for the userid you configed. This creates ~/.vnc/; now start then stop vncserver. Edit ~/.vnc/xstartup, changing the last line to 'exec gnome-session &'. NOW you are ready to set vncserver to start at boot time using chkconfig or the services dialog panel.

Whew! And I do this on system after system. Oh, if you use TightVNC, you cannot directly log into root; I have not figured out why it blocks root, but it does, and note that for FC11, RedHat is switchting to TightVNC...

Re: VNC server question

Posted: Sun Jan 11, 2009 8:25 pm
by relrobber
umm...openVNC is configured out of the box on Amahi. it says so on the wiki, and i checked on my box. i'm just not familiar enough w/ fedora (or init, for that matter, really) to know how to get it into the init scripts. all my other 'nix boxes have been ubuntu, gentoo, or mepis.

Re: VNC server question

Posted: Sun Jan 11, 2009 8:28 pm
by relrobber
haha...disregard my last post. i confused myself when i read the replies today, and thought i had asked about VPN. sorry.

i got VNC installed and working...i just need to add it to init. that was the question.

Re: VNC server question

Posted: Sun Jan 11, 2009 10:10 pm
by rgmhtt
Yes, to the best of my knowledge there is no such beast as OpenVNC. VNC, TightVNC, RealVNC, but no OpenVNC...

:)

And I did a find for vnc after the Amahi install; I did not find anything installed. I had to do the install myself.

I can put together my 'standard' notes for someone to make a wiki page for it.

Re: VNC server question

Posted: Sun Jan 11, 2009 11:34 pm
by cpg
that would be great (notes -> wiki)!

in the upcoming "new world" of installable apps, this will for sure be one of them to install via the new installer.

also, keep in mind that we get some flak for installing stuff by default when "not everyone needs them" :D