Fedora Linux Install & Configure VNC Server
By Minh • Aug 4th, 2010 • Category: LinuxHere is how to install and configure a VNC server on Fedora Linux 13.
First, Install TigerVNC:
> su -
> yum install tigervnc-server
Log into root and install the TigerVNC package.
Configure VNC Server:
> echo 'VNCSERVERS="1:mnguyen"' >> /etc/sysconfig/vncservers
> echo 'VNCSERVERARGS[1]="-geometry 1024×768 -depth 16"' >> /etc/sysconfig/vncservers
Edit the vncservers configuration file and set up a user pair. Note the element numeral 1 which refers to a user pair. If you set up a second user, say snguyen, then use echo 'VNCSERVERS="2:snguyen"' >> /etc/sysconfig/vncservers and echo 'VNCSERVERARGS[2]="-geometry 1024×768 -depth 16"' >> /etc/sysconfig/vncservers.
Set VNC Password:
> su – mnguyen
> vncpasswd
Log into each user associated with a VNC server and configure a VNC password.
Finally, Start VNC Server:
> exit
> chkconfig --level 2345 vncserver on
> /etc/init.d/vncserver start
Exit back to root and start the VNC server daemon. Each VNC server has a unique port, 590#, associated with the user pair element defined in the vncservers configuration file. So the VNC server for user mnguyen is on port 5901 and the VNC server for user snguyen is on port 5902.
Update February 13, 2011:
> sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted
> setsebool -P sshd_forward_ports 1
If SELinux policy is enforcing, then you must enable the sshd_forward_ports boolean.

Minh is a technology junkie.
Email this author | All posts by Minh

[root@AGFEDORA64 ag]# chkconfig –level 2345 vncserver on
[root@AGFEDORA64 ag]# /etc/init.d/vncserver start
Starting VNC server: 1:ag vncserver: geometry 1024×768 is invalid
[FAILED]
Very detailed instructions, but I am having a problem starting the server. Why would this be FAILING?
Is the “x” in your geometry parameter lower case?