http://sohilpatel.org/tutorial-rasbperry-pi-desktop-on-your-laptop-screen/



*Step 3 : Installing VNC server on Raspberry Pi*
HDMI Display : Now you should install VNC server in Raspberry Pi. For that
if you have HDMI display and Raspbian OS running on it, open LX-Terminal
and type following commands to install VNC.

$ sudo apt-get update
$ sudo apt-get install tightvncserver

Don’t have Display : If you do not arrange display even for one time setup
than also no need to worry you can install Putty
<http://www.chiark.greenend.org.uk/%7Esgtatham/putty/download.html> as per
your windows configuration and via SSH you can connect with your Raspberry
PI. As you will get access of your Pi terminal run following command to
install VNC.

$ sudo apt-get update
$ sudo apt-get install tightvncserver

*Start VNC Server on Pi :*
For starting VNC, enter the following command in SSH terminal,

$ vncserver :1

You will be prompted to enter and confirm a password. This will be asked
only once, during one time setup. Enter an 8 digit password. Note that this
is the password that you will need to use to connect to the Raspberry Pi
remotely.
You will also be asked if you want to create a separate “read-only”
password – say no (n).
Yuppiii…The VNC server is now running on your Pi and so we can attempt to
connect to it, but first we must switch to the computer from which we want
to control the Pi and setup a VNC client to connect to the Pi.


*Step 4 : Client Side (Laptop)*
Download VNC client from http://www.realvnc.com/download/vnc/ and install
it. When you first run VNC Viewer, you will see following:

<http://1.bp.blogspot.com/-jrpYLPx8AnM/Ugcs1qMdOWI/AAAAAAAAD2w/Mha2iWtSwBI/s1600/image6.jpg>
Enter IP address of your Raspberry Pi given dynamically by your laptop and
append with :1 (denoting port number) and press connect. You will get a
warning message, press ‘Continue’.

<http://3.bp.blogspot.com/-QEZf84m1CP8/Ugcs15rEb2I/AAAAAAAAD20/oaFnKfIx_-M/s1600/image7.jpg>
Enter the 8 digit password which was entered in VNC server installation on
Raspberry Pi.

<http://1.bp.blogspot.com/-rHwLm5wQxJs/Ugcs2ioSavI/AAAAAAAAD3A/23DeUilZUB4/s1600/image8.jpg>
Finally, the VNC window itself should appear. You will be able to use the
mouse and do everything as if you were using the Pi’s keyboard mouse and
monitor, except through your other computer. As with SSH, since this is
working over your network, your Pi could be situated anywhere, as long as
it is connected to your network.

<http://3.bp.blogspot.com/-Wx-PMUQaZMk/Ugc2WpZfvzI/AAAAAAAAD3Y/HjOkgSxBk1A/s1600/image9.jpg>
*Step 5 : Running VNC server at startup in Raspberry Pi*
Connecting to your Raspberry Pi remotely with VNC is fine as long as your
Pi does not reboot. If it does, then you either have to connect with SSH
and restart the VNC Server or arrange for the VNC Server to run
automatically after the Raspberry Pi reboots. To ensure that VNC starts
automatically, run following commands on terminal.
Open “.config” folder from Pi user folder. (It is hidden folder)

$ cd /home/pi
$ cd .config

Create folder called “autostart” in it. Also create file called
“tightvnc.desktop” in that folder. To create file you can use any known
text editor. Here I use gnome-text-editor for this.

$ mkdir autostart
$ cd autostart
$ gnome tightvnc.desktop

Edit the contents of file with following text and save the file.

[Desktop Entry]
Type=Application
Name=TightVNC
Exec=vncserver :1
StartupNotify=false

Now next time you will reboot your Pi vncserver server will start
automatically.


Congratulation!!!
Next time onward whenever you want to do something with your Pi, just
connect it with Ethernet Cable to you Laptop and power on it. Open
VNCViewver, mention IP address of your Pi and you are ready with you Pi
display on your Laptop Screen.

-- 
You received this message because you are subscribed to the Google Groups 
"linuxkernelnewbies" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linuxkernelnewbies+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to