Summary: These instructions show you how to install tightvncserver on your Raspberry Pi. Next, you’ll learn how to configure a Weaved Service that is compatible with tightvncserver so that you can easily connect to your Pi from outside of your local network using the OS X Safari browser..
- Devices: Raspberry Pi running the Raspbian operating system.
- Clients: Mac OS/X running the Safari browser.
Installing the tightvncserver Virtual Network Console service on your Raspberry Pi
In a terminal window on your Raspberry Pi, run the following commands:
sudo apt-get update
sudo apt-get install tightvncserver
Next, launch tightvncserver with the command:
tightvncserver will launch and ask you for a password, which you will use later for connection. You may also enter a different read-only password which will let you view the Raspberry Pi’s graphical desktop but not interact with it.
Next, confirm that tightvncserver is in fact running with the command:
ps ax | grep tightvnc
Next, check which port tightvncserver is listening on with the command:
sudo netstat -apn | grep tcp | grep LISTEN
This command will show all currently active tcp listeners (servers) running on your Raspberry Pi. Look for Xtightvnc in the list. There may be more than one entry. If so, choose the one with the lowest port number. In the example shown below, that is port 5901. Make note of this port number as you will need it in the next section where you will be adding the Weaved Service Attachment.
Adding a remot3.it Service Attachment for tightvncserver
Run the remot3.it configuration script:
At the Main Menu, install a new Weaved Service Attachment for VNC using the default port of 5901. Even if the port is not 5901, you will have the opportunity to change this during the installation.
When you’ve successfully installed tightvncserver and the Weaved tightvncserver Service Attachment, the Main Menu will include an entry for Xtightvnc as shown above.
Using OS/X Safari for VNC connections with Weaved
To connect, sign in to your Weaved account using your OS/X Safari browser and locate the Service you just installed in the Service List.
Click on the service name to initiate the connection. In a few seconds you’ll see a dialog box similar to this:
Click on the highlighted link which begins with “vnc://” in option 2. In a few moments you’ll see the Screen Sharing dialog with the Weaved proxy address pre-filled.
When you see the password dialog, enter your VNC password and click on “Connect” to continue.
Now you are controlling your Raspberry Pi’s GUI!