RasPi.TV

Raspberry Pi, Electronics & Making
  • Home
  • Site Map
  • Shop
  • Downloads
  • I²C
  • raspberry pi
  • Linux usage
  • Python prog.
  • 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. ;-)

 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

  27 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
    • Joel Wessman says:
      March 17, 2016 at 8:37 pm

      Thanks!!! Also tried for ages before i got this right.

      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
  9. julian says:
    July 10, 2014 at 4:50 pm

    Hello Folks,
    after I reboot my Raspberry i cant login anymore … the default passwort and login wont work and neither does the new password for the server … I already reinstalled rasbian …

    any clues?

    Reply
    • alex says:
      July 10, 2014 at 5:06 pm

      Is your keyboard fully functional?

      Reply
      • Julian says:
        July 11, 2014 at 9:14 pm

        yes it is. Does it may have something to do with that I use startx automaticly at boot?

        Reply
        • alex says:
          July 11, 2014 at 9:46 pm

          It might be. Can you disable it? Can you log in through ssh and change it?

          Reply
  10. dazza001 says:
    November 13, 2015 at 9:56 am

    I could not get this working on android although it worked on linux laptop.
    Then I changed the port number on Android VNC to 5901 instead of 5900 and it worked.

    Reply
  11. sal says:
    November 22, 2015 at 1:18 am

    I have installed tightvnc on my pi and tightvnc-jarviewer on my PC After I start the viewer and pot in all the parameters i get “handshaking with remote host” and this window does not close to show the pi GUI I am using jessie on my Pi What am I doing wrong

    Reply
  12. Farid Tayfour says:
    March 20, 2016 at 8:53 am

    Hi, I have been trying to install tight vnc viewer on my Ras Pi but it wont do it! I get the message, failed to get mirrordirector.raspbian.org or unable to fetch some archives. Now, I have gone through the steps exactly as shown but to no avail, what is wrong and how can I correct this? Please guys, your help would be much appreciated.

    Reply
  13. Andy says:
    April 10, 2016 at 9:04 pm

    Hi Guys, I have the VNC viewer up and running on my PI. The refresh rate even when the Pi is connected locally on a switch with the server Pc connected is not great. It would represent around 1 frame per second. Simultaneously over my wireless LAN to my iphone is fine. Any ideas how to improve this?

    Reply
  14. kenethvillanueva says:
    December 5, 2017 at 2:21 pm

    Hi Guys. If you are remotely controlling the raspberry pi using android phone and you connect the raspberry pi to the monitor. Is it possible to see on the monitor that is connected to the raspberry pi what you’re doing on the android phone?

    Reply
    • alex says:
      December 5, 2017 at 3:22 pm

      It must be possible in some ways, but not easy. It would depend on exactly what you were trying to do.

      Reply
  15. Gieovanne says:
    August 28, 2018 at 3:31 pm

    Is it possible to command the I;Os of the raspberry pi3 by this? I need to do it but I have no experience with Raspberry.
    Can you help me please?

    Reply

Leave a Reply Cancel reply

  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

RSS Twitter YouTube

NEW Product

NEW RasPiO® Breadboard Pi Bridge New RasPiO Breadboard Pi Bridge

Pi Ports to Breadboard in Numerical Order

Products Designed by Alex

RasPiO® Night Light - great gift idea! New RasPiO Night Light RasPiO® Analog Zero - Read sensors, make a weather station, thermometer or voltmeter RasPiO Analog Zero

Recent Posts

  • Back up your Garmin activity data on a Raspberry Pi
  • How much power does the Pi4B use? Power Measurements
  • Raspberry Pi 4 launches with BCM2711 quad-core Cortex-A72 64-bit SoC running at 1.5GHz with dual 4K display capability
  • Development of a new product – RasPiO Breadboard Pi Bridge (BBPi)
  • Making a fairly simple bike dashcam with Raspberry Pi – “Live project blog” pt5 Road Testing

Recent Comments

  • Dirk Broer on New Raspberry Pi Family Photo including Pi3A+ plus Zero WH
  • Dirk Broer on New Raspberry Pi Family Photo including Pi3A+ plus Zero WH
  • Peter Capon on Ethernet On Pi Zero – How To Put An Ethernet Port On Your Pi
  • Giles on How to drive a 7 segment display directly on Raspberry Pi in Python
  • Ben on Review of ISO-TECH IDM99III Digital Multimeter
Tweets by @RasPiTV

Categories

  • Electronics
  • Gertboard
  • get_iplayer
  • Input and Output
  • interfacing
  • Laser Cutting
  • Linux usage
  • Mailbag
  • Making
  • Product Launch
  • python programming
  • raspberry pi
  • Raspberry Pi Camera
  • Raspberry Pi Hardware
  • raspberry pihardware
  • RasPiO Duino
  • Review
  • software installation
  • Uncategorized
  • Wemos

Blogroll

  • Makersify
  • Oxford Raspberry Jam
  • Raspberry Pi Foundation
  • Raspberry Pi Spy
  • Raspberry PiPod
  • Robotics and Add-ons
  • See – Adafruit Industries

Archives

  • July 2020
  • June 2019
  • March 2019
  • December 2018
  • July 2018
  • June 2018
  • May 2018
  • March 2018
  • February 2018
  • January 2018
  • November 2017
  • October 2017
  • September 2017
  • July 2017
  • June 2017
  • May 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Stats since June 2012

blog posts: 305
word count: 210,404
© 2012-19 RasPi.TV Site Map | Reviews Policy Suffusion theme by Sayontan Sinha