Using-VNC-persistent-sessions
In this guide I briefly explain how you can get remote persistent session on the Mattarello Linux servers from any local computer, Windows, Linux or OSX.
-
Write me a mail where you ask to obtain a VNC session. You need to specify: Name Surname Period of usage Server IP address
-
I will provide you a number (an integer), let’s call it ID together with a password (typically the password is the same of the ssh user enabled to use matlab). I’ve installed on every server the XFCE4 desktop manager as it is fast and very reactive. I hope you like it.
-
Depending on your operating system follow these instructions. This method is based on TightVNC, a client to visualize VNC sessions.
Windows:
Download and install TightVNC
- Go to TightVNC
http://www.tightvnc.com/download.php - Download the Installer for Windows 64 bit. The current version as of August, 2, 2016 is the following:
http://www.tightvnc.com/download/2.7.10/tightvnc-2.7.10-setup-64bit.msi - Start the installation, press Install and during the installation select Custom and just install TightVNC Viewer
- Select custom installation
- Leave the checkboxes
Associate to .vnc files
andAdd exception for TightVNC to Windows Firewall
to checked: - Continue to Next and end the installation
After the installation ended, fire up TightVNC Viewer
- Start TightVNC Viewer
- You will get the following screen
- This is the TightVNC Viewer default window
- In the Remote host text box insert the server address followed by colon and the specific VNC port that you received. Change
serveraddress
with your server IP address andID
with the ID I’ve provided. - For example:
- Press connect and you should get your remote session up and running!
EXAMPLE
You need to use server 10.231.128.17 and I gave you the ID=5902. You need to start TightVNC Viewer and in the remote host textbox insert:
10.231.128.17:5902
and after that press Connect. This ID will follow you everywhere and you can connect to the same remote session from multiple places also together if you want to showcast your screen to other people.
It’s extremely important that you don’t logout otherwise you will lose your session.
Linux
Remmina is the default VNC viewer that is installed in Linux. If you don’t have Remmina installed, open a terminal and install it:
sudo apt-get install remmina
- Start Remmina (also called Remmina Remote Desktop Connection Client)
- Choose “New Connection”
- On the Remote Desktop Preference window, choose the name of the connection under Profile:Name
- Change the Profile:Protocol from the standard “RDP -Remote Desktop Protocol” to VNC - Virtual Network Computing
- Under the Basic tab, in the server textbox you must insert the server name followed py “:” and the ID of the VNC session.
- For example:
10.231.128.17:5902
- Choose Color Depth: True Color 24 bit
- Choose Quality: Best (slowest)
- Save the Connection to use it in the future
- Et voilà you have your remote VNC connection to the server.
Mac OSX
OSX already has a VNC viewer installed that is called Screen Sharing. Look into `Applications->Screen