Accessing the Screens of Your Slave Computers in Your Supercomputer
So, I promised that I would make a tutorial on how to access the screens of your Slave Computers in your Supercomputer. Thus, I must fulfill that promise. If you haven’t made a supercomputer yet, see The Poor Man’s Guide to Making a Supercomputer. That tutorial will help you make a supercomputer in the cheapest possible way. If you have already followed that tutorial, I will show you how to access the screens of the slave computers from the master computer without having monitors for any of the computers but the master.
Step 1: Setting Up a VNC Server on the Client Computers
First thing is first, I will show you how to set up a VNC server on the client computers. VNC stands for “Virtual Network Computing” and is a form of remote desktop. In order to set up a VNC server, you must set up x11vnc. In order to install x11vnc, type the following in SSH:
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install x11vnc
This will install x11vnc. In order to run x11vnc in a secure format, you must set up authentication to ensure not just anybody can access the VNC server. Type the following to store the password in SSH:
This will guide you through a wizard where you will store the password to a file which the VNC server will use to ensure it is you accessing the slave computers. In order to run the x11vnc server, you must create a startup script. Type the following commands into SSH:
chmod +x start-vnc.sh
Now, type in the following text into the start-vnc.sh file:
sudo x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/[YOUR USERNAME]/.vnc/passwd -rfbport 5900 -shared
To save and exit this file use the hotkeys CONTROL+O and CONTROL+X. In order to run the program, type in
./start-vnc.sh. You will then be prompted for the administrator password. Type in the administrator password and it will start the server. To stop it, press CONTROL+C. Stop it for now. Follow step 1 on all of your slave computers.
Step 2: Installing the Client on Your Master Computer
I am going to assume, as this what I did in the first tutorial, that your master computer runs on Windows. If it doesn’t run on Windows, you’re on your own for this part, though it shouldn’t be that difficult. I know Remmina is a good VNC viewer on Linux machines. If your master computer is Mac, then you’re really on your own.
In order to download the VNC viewer, go to RealVNC at https://www.realvnc.com/en/connect/download/viewer/windows/. This is a free VNC viewer will will allow you to connect to the VNC servers. Install the application.
Step 3: Using VNC on Your Master Computer
Now, it’s time to set up the VNC client to connect to your slave computers. Run the VNC viewer downloaded earlier. Now, create profiles for each of your slave computers. The computers have VNC servers hosted on port 5900. You will need that to select the VNC server port. Put in the proper information with the slave computer’s IP address. Then, start the VNC server from SSH. Double click on the profile, and it will connect. Enter in the password you put in earlier. Now, you’re all set up and you can access and edit the slave computers using GUI. Enjoy your GUI.