VNC Setup

From Mitopia

Jump to: navigation, search

This is how to setup a basic VNC server on a Fedora server. This assumes you are going to be running Gnome as your desktop manager.

[edit] Setting up VNC

As root, edit the file /etc/sysconfig/vncservers and add these two lines (putting in your username of course):

VNCSERVERS="2:username"
VNCSERVERARGS[2]="-geometry 1024x768"

Now, as your user, you need to set your vnc password. As your user (not root) run this command

$ vncpasswd

Ok, now that we have a password, we can start the vnc server.

# service vncserver start

[edit] Configure for Gnome

Now that the VNC server is properly enabled and started, it has generated it's configuration files for the user you specified. Now we need to edit those generated files to have the vnc server use gnome. Edit ~/.vnc/xstartup and replace 'twm' with 'gnome-session'

[edit] Set it to start automatically

# chkconfig vncserver on

FIELD_MESSAGE_alrelbo

Personal tools