Step 1
- Login as root.
- Uninistall vino if it is already installed by executing :
$ su –
Password:
# yum erase vino
Loaded plugins: dellsysidplugin, dellsysidplugin2, refresh-packagekit
Setting up Remove Process
Resolving Dependencies
–> Running transaction check
—> Package vino.i586 0:2.26.2-1.fc11 set to be erased
–> Finished Dependency Resolution
Removed:
vino.i586 0:2.26.2-1.fc11Complete!
Step 2
- Download and install the three tigerVNC modules and you need to be able to create the file /etc/X11/xorg.conf (if it does not already exist) by executing:
# yum install system-config-display tigervnc tigervnc-server tigervnc-server-module
Loaded plugins: dellsysidplugin, dellsysidplugin2, refresh-packagekit
Setting up Install Process
Package system-config-display-1.1.3-2.fc11.noarch already installed and latest version
Package tigervnc-0.0.91-0.12.fc11.i586 already installed and latest version
Resolving Dependencies
–> Running transaction check
—> Package tigervnc-server.i586 0:0.0.91-0.12.fc11 set to be updated
—> Package tigervnc-server-module.i586 0:0.0.91-0.12.fc11 set to be updatedInstalled:
tigervnc-server.i586 0:0.0.91-0.12.fc11 tigervnc-server-module.i586 0:0.0.91-0.12.fc11Complete!
- If the file /etc/X11/xorg.conf does not already exist create one executing:
# system-config-display –noui
- We need to edit it so execute the command:
# gedit /etc/X11/xorg.conf
- Add this section:
- Add these lines to the “Screen” section
Section “Screen”
.
.
.
Option “SecurityTypes” “VncAuth”
Option “UserPasswdVerifier” “VncAuth”
Option “PasswordFile” “/root/.vnc/passwd”
EndSection
The commands below must be done as root
[root@server]# vncpasswd
Password: (Enter your chosen password for VNC here – 8 characters max)
To Verify use :
[root@server]# vncserver
xauth: (stdin):1: bad display name “linux.server.local:1″ in “add” command
New ‘linux.server.local:1 (server)’ desktop is linux.server.local:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/linux.server.local:1.log
Note on a typical notebook installation THE WIFI CONNECTION DOES NOT COME UP UNTIL A USER HAS LOGGED IN, if you remotely reboot a Wifi connected notebook you will lose all control of it until someone logs in.
# shutdown -r now
You have new mail in /var/spool/mail/root
[root@linux~]#
Broadcast message from root@linux.server.local
(/dev/pts/0) at 16:00 …The system is going down for reboot NOW!
Connection to 192.168.10.10 closed by remote host.
Connection to 192.168.10.10 closed.
After re-booting you should be able to connect with the TigerVnc viewer to the machine and log in.
For the example below to work it would be necessary to disable any firewall or (infinitely more preferable) open port 5900. This can be found in Gnome at System | Administration | Firewall. If it is not there it can be installed by executing :
# yum install system-config-firewall
[root@server ~]$ vncviewer 192.168.10.10TigerVNC Viewer for X version 0.0.91 – built Aug 14 2009 09:53:29
Copyright (C) 2002-2005 RealVNC Ltd.
Copyright (C) 2000-2006 TightVNC Group
Copyright (C) 2004-2009 Peter Astrand for Cendio AB
See http://www.tigervnc.org for information on TigerVNC.Tue Sep 8 16:05:51 2009
CConn: connected to host 192.168.10.10 port 5900
CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.8Tue Sep 8 16:05:59 2009
TXImage: Using default colormap and visual, TrueColor, depth 24.
CConn: Using pixel format depth 24 (32bpp) little-endian rgb888
CConn: Using Tight encoding
There is an ssh command that you can use to establish an encrypted tunnel but with tigerVNC there is a simplified command that is much easier to remember
[root@server ~]$ vncviewer -via 192.168.10.11 192.168.10.11
TigerVNC Viewer for X version 0.0.91 – built Aug 14 2009 09:53:29
Copyright (C) 2002-2005 RealVNC Ltd.
Copyright (C) 2000-2006 TightVNC Group
Copyright (C) 2004-2009 Peter Astrand for Cendio AB
See http://www.tigervnc.org for information on TigerVNC.
root@192.168.10.11′s password: (Enter your long, complex machine password here)If your password was good the familiar dialog for the VNC password should pop up now
Tue Sep 8 16:47:28 2009
CConn: connected to host localhost port 5599
CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.8Tue Sep 8 16:47:33 2009
TXImage: Using default colormap and visual, TrueColor, depth 24.
CConn: Using pixel format depth 24 (32bpp) little-endian rgb888
CConn: Using Tight encodingTue Sep 8 16:47:41 2009
CConn: Throughput 2412 kbit/s – changing to quality 6
CConn: Using Tight encoding
By executing the commands you will do the same thing.
vncviewer -via 192.168.10.11 192.168.10.11
vncviewer -via 192.168.10.11 localhost







