RasPi.TV

Raspberry Pi Tutorials, Videos & Reviews
  • Home
  • Site Map
  • Downloads
  • I²C
  • raspberry pi
  • Gertboard
  • Linux usage
  • Python prog.
  • get_iplayer
  • Input & Output

Install and use TightVNC remote desktop on raspberry pi – through windows, Android or IOS

 Linux usage, raspberry pi, software installation  Add comments
Jul 172012
 

Tested on Wheezy Beta and Raspbian distros.

I’m having fun and being a bit silly with tightvnc here. You can even use it to have a GUI for your Raspberry Pi from your Android phone. 8-)

TightVNC is a compact remote desktop application you can use with the Raspberry Pi. Stewart Watkiss has written an excellent explanation of how to install and configure it. I’m going to cover the basics, but for more detail visit his PenguinTutor VNC page

Install TightVNC on your Pi

sudo apt-get update

sudo apt-get install tightvncserver

That takes care of the installation. Now we need to start the vnc server…

/usr/bin/tightvncserver

running tightvnc server

You will need a login password, but don’t bother setting up a view only password. You will have to type the above command every time you reboot unless you add it to the startup. Stewart covers that at the PenguinTutor VNC page.

Install Client App

Now you’ll need a client app for your other device(s). For windows, I got mine from http://www.tightvnc.com. For my Android phone I installed androidvnc (free – AND ad-free too) from google play.

On the windows version you don’t need to set up the server unless you want to – just the client part is enough.

Why bother?

I’m currently away from base and don’t have my nice HD TV/monitor to plug the Pi into. I do have my laptop, some speakers, my Pi and a wireless network though. That’s enough. As long as you can get both devices networked, you can VNC into your Pi and do pretty much everything you would be able to do without the need for another monitor.

Video of Chuckie Egg on PC and Reversi on Android phone. On Android, this chews through your battery very quickly. Be warned. Lots of fun to be had, but it’s doubtful you’ll get much sophisticated work done through Android because the touch interface makes it much harder than with a keyboard. (Look how many times I tried to close the Reversi window. For example, there’s no way I could have played Chuckie Egg on Android without some kind of bluetooth keyboard.

Most of my posts are rather educational. On this occasion I thought a little more fun was in order. Hope you enjoyed it. ;-)

Share this:

  • Pin It
  • Email
 Posted by alex at 8:27 pm  Tagged with: login to Raspberry Pi remotely, Remote GUI for Raspberry Pi, TightVNC on Raspberry Pi, TightVNC server gui on Raspberry Pi

  15 Responses to “Install and use TightVNC remote desktop on raspberry pi – through windows, Android or IOS”

  1. LeGeNDuS says:
    August 7, 2012 at 7:21 pm

    Thank you very much for the information. The only thing to point out is that when you connect to raspberry from an external viewer you have to put you IP followed by “:1″ supposing that the outputted desktop number from tightvnc is 1.

    Reply
  2. Tom says:
    September 30, 2012 at 10:16 pm

    LeGeNDuS,

    Thanks to your point above I finally got the remote desktop up. I had been fighting it and couldn’t figure out what I was doing wrong.

    Thank you

    Reply
  3. Cheldon says:
    December 2, 2012 at 10:08 pm

    It worked great to show my rpi on my tablet, but it doesn’t fill the whole screen horizontally

    Reply
    • alex says:
      December 2, 2012 at 10:56 pm

      No it doesn’t. That’s normal. It might be adjustable, but I don’t know how to do it. :)

      Reply
      • Cheldon says:
        December 2, 2012 at 11:34 pm

        Okay thanks, saved me some work

        Reply
      • Ian says:
        January 27, 2013 at 6:59 pm

        I think you can start vnc on the pi with the command

        /usr/bin/vncserver :1 -geometry 1280×800 -depth 16 -pixelformat rgb565

        where the 1280×800 represents the shape/size. I use it on my desktop set to full height and half width so it conveninently fill half the screen, letting me have a browser open in the other window next to it

        Reply
  4. davekimble says:
    December 15, 2012 at 6:47 am

    I am hoping to use the R-Pi via remote (LAN only) desktop all the time once I get this sorted out. I first tried installing Teamviewer, which works well on Win 7 and Ubuntu 12.10 . But the .deb package is rejected as i386 when it wants armhf – fair enough I suppose.

    So I found this article and I have installed tightvncserver on R-Pi OK and started it, and the Windows package on my Win 7 machine OK. Using the client on Win 7, I try to connect to raspberrypi:1 but get :
    “Error in TightVNC Viewer: The requested name is valid, but no data of the requested type was found.”

    Xtightvnc is listening on ports 5901 and 6001 but that’s all the diagnostics I can do from the command line.

    Any help would be appreciated.
    I’m just amazed at how far I’ve got in the first session on the Pi.

    Reply
    • alex says:
      December 15, 2012 at 12:26 pm

      Hmm. Have you tried using the ip address instead of raspberrypi? They should both work, but you never know. Teamviewer is not available for the pi. ifconfig will show you your ip address.

      Reply
  5. davekimble says:
    December 15, 2012 at 11:59 pm

    Yes, I have tried that.
    When I installed on R-Pi, the terminal was running as root (in Win 7 the instructions say you want to do that to handle reboot properly) so I uninstalled it and installed it as ‘pi’. When I start it, the terminal says “New ‘X’ desktop is raspberrypi:2″. So I try connecting from Win 7 to raspberrypi:2 and it says “Authentication failed”. After a few tries it locks me out. Is there any need to reboot in all of this?

    Win7 to Win7 connections work OK, and the lack of the remote conferencing features of Teamviewer, and therefore simplicity, make TightVNC more suited to my situation.

    Reply
    • alex says:
      December 16, 2012 at 12:36 pm

      I don’t use tightvnc much and I got confused the other day because I’ve got three Pis on the network now.

      I was trying to connect using the ip address that showed up when I log in via ssh, which in fact shows you the ip address of the machine you last logged in from. It’s probably not that, but once I started using the ip address of the Pi it worked a treat.

      I’m slightly suspicious why it says raspberrypi:2 and not raspberrypi:1, which is what mine says. You’ve not got two instances of tightvnc server running have you?

      I’m not really an expert in using tightvnc, perhaps someone on the Pi forums might be able to help you in more depth. Hope you get it going :)

      Reply
  6. davekimble says:
    December 16, 2012 at 9:35 pm

    It is probably not tightvnc’s fault.
    I’ve just created a new user and tried to login as that, and it doesn’t work “incorrect password”.
    Switching to pi forums.
    Many thanks.

    Reply
  7. Daniel says:
    January 10, 2013 at 3:29 pm

    Wowzer, when you said that you had a hard time closing the window you sure did. :-P

    Reply
    • alex says:
      January 10, 2013 at 6:52 pm

      ’twas a bit tricky – yeah :)

      Reply
  8. Jerry says:
    January 22, 2013 at 11:37 pm

    I have set vnc to run on boot up and I can access the computer just fine but on certain programs I run I get a $DISPLAY error. I can fix this by by opening a second port with smaller geometry….
    Ex:
    vncserver :2 -geometry 800×480

    …..is there a way to go into my boot up code for port 1 and fix it on boot up?

    Reply
    • alex says:
      January 23, 2013 at 8:22 am

      There must be a way. Unfortunately I don’t know how to do it. I suggest a question on the Pi forums. :-)

      Reply

 Leave a Reply Cancel reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  Can’t type password – can’t login to Raspberry Pi   Get_iplayer installation on Raspberry Pi with Raspbian
RasPi.TV Site Map - click here

Follow Me

Google+ YouTube RSS Twitter Facebook

Recent Posts

  • How to make a standalone camcorder from your Raspberry Pi and RasPiCam
  • How to shoot video and convert it to something you can edit in Pinnacle and other programs
  • My first year of Raspberry Pi ownership RasPi.TV to RasPiO
  • Review of ISO-TECH IDM99III Digital Multimeter
  • Raspberry Pi Camera board preview

Recent Comments

  • Derek Campbell on Guzunty Pi – Open Source CPLD board for the Raspberry Pi
  • Derek Campbell on Guzunty Pi – Open Source CPLD board for the Raspberry Pi
  • eddy on Making a Reset Switch for your Rev 2 Raspberry Pi
  • alex on The leaning header of Pi5a. How best to solder a header on P5?
  • alex on How to make a standalone camcorder from your Raspberry Pi and RasPiCam

Most recent tweets

  • @recantha time for a day off? You did a lot yesterday. Save something for next week :) tweeted 38 minutes ago
  • @Gadgetoid @mahtiaivo I have several devices in the pile too :-) tweeted 7 hours ago
  • @RaspPiBeginners oh. I missed that. What's the app called? tweeted 7 hours ago
Follow @RasPiTV

Archives

  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012

Categories

  • Electronics
  • Gertboard
  • get_iplayer
  • Input and Output
  • interfacing
  • Linux usage
  • python programming
  • raspberry pi
  • Raspberry Pi Camera
  • Raspberry Pi Hardware
  • Review
  • software installation

Blogroll

  • RasPiHub.com

Meta

  • Log in
  • Entries RSS
  • Comments RSS
© 2012-13 RasPi.tv Site Map Home
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.