RaspberryPi Basics: Part V- Setting up VNC!
Posted by Beyond
WIKI says Virtual Network Computing is a graphical desktop sharing system that uses the RFB protocol (remote framebuffer) 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 is platform-independent – a VNC viewer on one operating system may connect to a VNC server on the same or any other operating system. There are clients and servers for many GUI-based operating systems and for Java. Multiple clients may connect to a VNC server at the same time. So in case of absence of resources like HDMI compatible Monitor/TV or a RCA based TV, what I am gonna do to have the videos or the screen ??? Yeah, you are right, I can simply ssh then try to get the X server up. But we know it, it will take a lot of bandwidth. So we will use the dedicated programs for that like VNC. Installing VNC on RasPi is easy as I said, using the package manager of course,
- sudo apt-get install tightvncserver
Now, start the tightvncserver by executing it on command line. It will ask you for the password if you are running it for the first time. Make some password so that no other can get your screen control. After entering the password, simply start the VNC server on the RasPi.
- vncserver :1 -geometry 1024×768 -depth 24
this simply means, to start the vncserver on screen 1 because many clients can use the single server by means of different screens. geometry is the option and following is the default screen resolution that you want to give and depth is another option specifying the depth in bits.
Since you have started the VNC server on the RasPi successfully, so its the time to get the screen on the client side. Its more than something called simple, install the vncviewer on your ubuntu/debian based host.
- sudo apt-get install xtightvncviewer
Now, just simply invoke the vcnviewer, a short little window will appear asking you for the server address . Simply enter the Ip address of the RasPi, and then it will ask for the password that we just wrote up above while configuring the VNC server. It will simply fetch you out the RasPi Screen like this:
- Video was HD
- I was on Wifi accessing the RasPi server, which may have slow down the speed .
Normal videos are playable with some *frame drops* on VNC otherwise you have to sacrifice with the synchronisation between the audio and video. Both sings their own songs…