Saturday, 2 April 2016

Accessing laptop screen for Graphical display using Raspbeery pi on Ubuntu host


Follow these steps for Ubuntu host:
Step 1: Install VNC

Log in to the Raspberry Pi, and setup VNC for remote access. First we need to install the VNC server:

$sudo apt-get install tightvncserver

Step 2: Start VNC server on the Raspberry Pi. Adjust the geometry parameter to your desired display size.

$vncserver :1 -geometry 1024x600 -depth 16 -pixelformat rgb565

Step 3: You will be prompted to create a password for VNC login. Once you create your password, you should see a line on terminal
New ‘X’ desktop is raspberrypi:1

Step 4: If it is already running, previous line would not appear so you must kill it using 
 
$vncserver -kill :1” and again try !!

Step 5: Back on the Ubuntu (host) machine, install the VNC viewer client:

$sudo apt-get install xtightvncviewer

Then connect to the running VNC server:

$vncviewer 10.42.0.2:5901



Step 6: To stop the VNC viewer, just close the application. To stop the VNC server, issue the following command (on the Raspberry Pi):

$vncserver -kill :1



No comments:

Post a Comment