In this project the Raspberrypi board is booted with the Ubuntu OS and is connected to the Ethernet port of a Windows7 PC. The board is connected to the internet connection as explained in the project how to connect the Raspberrypi to the internet. The IP address of the Raspberrypi board has been obtained and remote login in the TUI is done using the PUTTY.
The remote access of the GUI can be done using software called ]]>VNC viewer]]>. Virtual Network Computing (VNC) is a graphical desktop sharing system that can be used to remotely control another computer. It transmits the keyboard and mouse events from one computer to another, relaying the graphical screen updates back in the other direction, over a network. VNC viewer on one operating system can be connected to a VNC server on the same or any other operating system.
After login using the PUTTY one has to download and install the VNC server software for Ubuntu running on the Raspberrypi. The VNC server version that can be installed in the Ubuntu is called “tightvncserver”. The software can be installed in the Ubuntu operating system using the following command. Make sure that the Raspberrypi is still connected to the internet.
sudo apt-get install tightvncserver
Once typing this command and press enter the Ubuntu will download the software and do all the required steps to install it properly. After installation is done run the application using the following command;
This command will start the VNC server in the Ubuntu. On the first run it will ask to set a password that will be required when somebody tries to remotely access the GUI of the Raspberry pi. The password should be eight characters long. Once the password and the confirmation password have been entered there will appear a question whether to allow the remote user to access the GUI in view only mode or not. Answer no to this question by entering ‘N’. After that has been done the VNC server start running in the background of other applications and the following dialogues appear in the command line:
Note that number for the New ‘X’ desktop which will be required when doing the remote access. If the command is entered once again the a new ‘X’ desktop number will be displayed as shown below:
That’s all is required at the Ubuntu side and now one has to run the VNC software in the PC. The VNC version “]]>TightVNC]]>” can also be downloaded for the Windows operating system. Install the downloaded VNC viewer and run it. The TightVNC viewer’s home window will appear like shown in the following image:
There is a text box where the IP of the remote computer need to be entered. Enter the IP of the Raspberrypi board there. The IP should be followed by a port number which starts from 5901. If the New ‘X’ desktop number that has appeared in the Ubuntu is ‘1’ the port number entered should be 5901 and if the New ‘X’ desktop was ‘2’ the port number should be 5902 and so on.
Now click on the connect button and if the connection is possible to establish the following window will appear asking the password which has been set it the VNC server of the Ubuntu.
Type the same password without mistake and it will open up the Desktop of the Raspberrypi.
The full screen mode can be enabled using one of the tool bar buttons of the VNC which is highlighted in the following image:
The user can go back to the normal window by pressing ALT + CNTRL + SHFT + F.
Once the done using the Raspberrypi shutdown the OS as normally does in the PC and then only close the VNC viewer. The power button can be found at the lower right corner of the desktop.