In the above example, the VNC display port is :4. The VNC server display port can be found using the following command (display port format is a : followed by 1 or more digits): The command takes a single argument, the display port. Stopping the VNC process is done using the vncserver -kill command. For example, if you want a wide screen geometry popular with laptops, you might start the VNC server with:
If you want to start your desktop with an alternate geometry to match your application, personal desktop environment, or other preferences, simply add a "-geometry hieghtxwidth" argument to your vncserver command. The default size of your cluster desktop is 1024x768 pixels. When you no longer need your desktop, simply log out of your desktop using the desktop's log out menu option or by explicitly ending the vncserver command with the 'vncserver -kill ' command. This allows you to reconnect to the same desktop session without having to first start the vncserver, leaving all your desktop applications active. Please note that the vncserver will continue to run in the backgound on the head node until it is explicitly stopped.
The GNOME2 desktop provides a familiar desktop experience and can be selected by creating the following vncserver startup script (~/.vnc/xstartup).Ĭat > $HOME/.vnc/xstartup ' option and the vncserver will try to use it if it's available. The vncserver command relies on a configuration script to start your virtual desktop environment.
By default, the command stores an obfuscated version of the password in the file $HOME/.vnc/passwd. Remember this password as you will be prompted for it when you access your cluster desktop. The password is validated each time a connection comes in, so it can be changed on the fly using vncpasswd command anytime later. You must maintain a password for your VNC server sessions using the vncpasswd command. (Alternatively, you can run the vncserver command without this configure and and start a very basic (but harder to use) desktop environment.) To get started log in to cheaha via ssh. These instructions will configure the VNC server to use the Gnome desktop environment, the default desktop environment on the cluster. VNC use on Cheaha requires a one-time-setup to configure settings to starting the virtual desktop. 6.1 Performance Considerations for Slow Networks.4.2 Port-forwarding from Windows Systems.
4.1 Port-forwarding from Linux or Mac Systems.