In the previous post we’ve seen how to control Raspberry PI from Windows PC using SSH (Secured SHell).The disadvantage in this mode is that SSH is Text only mode (Text User Interface).You can control your PI in Command mode only.Graphical User Interface (GUI) is not possible.
For GUI control we shall use TIGHTVNC server.
TightVNC is a free remote control software package. With TightVNC, you can see the desktop of a remote machine like Raspberry PI and control it with your local mouse and keyboard, just like you would do it sitting in the front of PI.
RASPBERRY PI side settings :
The Raspberry PI should be connected through a RJ45 cable to a Router which is providing Local Network connections .
To start with install the TightVNC server on your PI by typing in the following command inside the LX terminal.
sudo apt-get install tightvncserver
Press “y” to confirm installation.
After installation you should get back the pi@raspberrypi ~ $ prompt.
To start the server type in
sudo tightvncserver
First time user should enter an 8 character password.
Let us provide a password ,say , tightvnc
For view only password enter “n”
Now you get a response like “New ‘X’ desktop is raspberry:1 “.
Note down this number, as you’ve to enter this along with Raspberry PI’s IP address to get connection.
To know the IP address of Raspberry PI type in
ifconfig
The address after inet addr : is the IP address of PI
Windows PC side settings :
Download TIGHTVNC for 32 bit Windows PC here
For 64 bit Windows Laptop/PC download from here
Click the downloaded file to start installation.
As an add on for a good GUI performance install the DFMirage mirror display driver.
DFMirage mirror display driver allows TightVNC to gain the best performance under Windows. With DFMirage, TightVNC Server can detect screen updates and grab pixel data in a very efficient way.
Download DFMirage driver from here.
Double click the .exe file to install the driver.
Once the installation is completed you can see the TIGHTVNC folder under All Programs of Start menu.
Click on “TightVNC Viewer “ to start the New Connection .
Under Remote host enter the IP address of Raspberry PI ( as known by typing ifconfig under PI’s terminal).
This IP address should be followed by a colon and 5901 .
While starting VNC under Raspberry PI we’ve seen the following message
“New X desktop is raspberry:1”
If it is 2 then you’ve to enter 5902 after the IP address.
Click on Connect & provide the 8 character password we’ve created for VNC on the PI (it is tightvnc)
Now you can see the Raspberry PI on your Windows.
This is GUI interface & you can work as if you were in front of a Raspberry PI terminal.
Watch the Support video :