Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vps:x-server-vnc [2015-10-06 16:54:29]
rory.blanchard
vps:x-server-vnc [2017-08-16 17:06:30]
rory.blanchard
Line 25: Line 25:
 You will also need a VNC viewer for your PC. If you are on Microsoft Windows, you can try one of the free VNC viewers such as [[http://www.realvnc.com/products/download.html|RealVNC Free Version]]. For Mac, we reccomend the open source project [[http://sourceforge.net/projects/cotvnc/|Chicken of the VNC]]. You will also need a VNC viewer for your PC. If you are on Microsoft Windows, you can try one of the free VNC viewers such as [[http://www.realvnc.com/products/download.html|RealVNC Free Version]]. For Mac, we reccomend the open source project [[http://sourceforge.net/projects/cotvnc/|Chicken of the VNC]].
  
-==== Running VNC Server ====+===== Running VNC Server =====
  
 Out of the box, the X server should come configured properly. We will however need to configure the VNC server to start automatically as well as start a new X server session when it is started as well. Out of the box, the X server should come configured properly. We will however need to configure the VNC server to start automatically as well as start a new X server session when it is started as well.
Line 35: Line 35:
 This will start the VNC server for the first time, create some configuration files, and start the VNC server listening on port 5091 (make sure to open this port in your firewall if necessary). You can now use your VNC viewer to connect to your server to make sure it is working properly. You can use the syntax //hostname.domain.com:1// to connect to the server. This will start the VNC server for the first time, create some configuration files, and start the VNC server listening on port 5091 (make sure to open this port in your firewall if necessary). You can now use your VNC viewer to connect to your server to make sure it is working properly. You can use the syntax //hostname.domain.com:1// to connect to the server.
  
-==== Running X Server ====+===== Running X Server =====
  
 Once you have logged in for the first time, you will notice VNC only launches an xterm window with a very basic interface by default. We want to change its configuration to start a Gnome graphical environment when launched so we have a nice GUI to work with. Once you have logged in for the first time, you will notice VNC only launches an xterm window with a very basic interface by default. We want to change its configuration to start a Gnome graphical environment when launched so we have a nice GUI to work with.
Line 70: Line 70:
 {{ :vps:vnc-desktop.png?200&direct |VNC Gnome Desktop}} {{ :vps:vnc-desktop.png?200&direct |VNC Gnome Desktop}}
  
-==== Starting on Boot ====+===== Starting on Boot =====
  
 If you would like your VNC server to start with the system boot, we will need to modify the init startup scripts. For CentOS: If you would like your VNC server to start with the system boot, we will need to modify the init startup scripts. For CentOS:
Line 80: Line 80:
 <code>update-rc.d vnc4server defaults</code> <code>update-rc.d vnc4server defaults</code>
  
-==== Securing VNC ====+===== Securing VNC =====
  
 By default, VNC only encrypts the initial password communication then results to unencrypted transmission of the data stream. This can lead to problems if someone is able to sniff your network traffic, as could be the case communicating over the 'net with your VPS.  To secure VNC, we will use an SSH tunnel to encrypt the VNC traffic: By default, VNC only encrypts the initial password communication then results to unencrypted transmission of the data stream. This can lead to problems if someone is able to sniff your network traffic, as could be the case communicating over the 'net with your VPS.  To secure VNC, we will use an SSH tunnel to encrypt the VNC traffic:
Line 86: Line 86:
 http://www.cs.arizona.edu/computing/access/x11vnc.html http://www.cs.arizona.edu/computing/access/x11vnc.html
  
-{{tag>centos how-to vps ubuntu}}+\\ 
 +\\ 
 +\\