Friday, December 26, 2008

VNC Server Installation

This morning I installed VNC with my dad on a Fedora Core 9 machine. This is what we did:

  1. Install VNC with yum:
    yum install vnc.i386

  2. Set an access password:
    vncpasswd

  3. Edit the servers:
    vi /etc/sysconfig/vncservers
    Uncomment last two lines. Set set the username and display number (I think you can find the next available display by running vncserver) and deleting all of the params besides the display resolution on the second line.
    It should look like:
    VNCSERVERS="3:root"
    VNCSERVERARGS[2]="-geometry 800x600"

  4. Change the firewall settings to allow VNC access: (you have to be using iptables) edit iptables:
    vi /etc/sysconfig/iptables, adding new lines for 580x and 590x, where x is the display number. (It should look like:
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 5803 -j ACCEPT )

  5. Start the server:
    service vncserver start

  6. If everything works, you should be able to access the server on a browser running java (like firefox) by browsing to http://servername:580x, where x is the display number.

No comments: