How to access localhost using ngrok free account and dropbox over the internet (Ubuntu 16.10)

OS of my PC is Ubuntu 16.10

First install ngrok on the the PC  Please refer the official web site

Extract  the downloaded zip file in to the home directory of the PC

Now if you run ./ngrok http 80 you will get the ngrok panel as follws

Screenshot from 2017-03-21 00-00-55

ngrok running on the terminal

Screenshot from 2017-03-21 00-02-13

ngrok web interface

If you copy the Forwarding web links on the web browser of a remote computer ,local host of the forwarding computer will appear on the screen.

The main problem in the free ngrok is ,the forwarding link is not a fixed one .Every time you start ngrok ,you will get a different link address .Therefore you can not access the localhost of the computer ,without knowing the forwarding address .

If you can save the ngrok web interface as a pdf file and upload in to a free dropbox account ,you will be able to access it over the internet and connect with the link .

Therefore it is necessary to install dropbox on the hosting computer.Installation of  dropbox  can be easily done using the Ubuntu Software center .


wkhtmltopdf is installed for saving html files as pdf


sudo apt-get install wkhtmltopdf


In order to start dropbox , ngrok at the startup of the PC and saving ngrok forwarding links to dropbox and uploading to the cloud automatically , I have written a script shown below


Open the terminal and run


sudo gedit


Copy the following script in to the and save the file in the home directory




dropbox start -i

gnome-terminal -e ‘./ngrok http 80 ‘

xdg-open http://127.0.01:4040/inspect/http

rm ~/Dropbox/Public/ngrok/*

sleep 20

wkhtmltopdf http://127.0.01:4040/inspect/http ~/Dropbox/Public/ngrok/ngrok.pdf



Then to make executable run on th terminal

chmod +x ~/

Now if you run ./ on the terminal ,dropbox and ngrok will 
start and the forwarding links are uploaded to the dropbox cloud.

If you want to start the above process at the startup of PC ,the script
has to be added in to the startup applications .
Screenshot from 2017-03-21 00-38-01

Adding the script to the menu launcher
Screenshot from 2017-03-21 00-40-46.png
Adding the script to the startup applications

When you start the computer the above script will activate automatically
and save the forwarding links in the dropbox cloud so that the localhost
can be accessed remotely.

Screenshot from 2017-03-21 00-45-24.png  

Saved forwarding links file on the dropbox folder of the local computer

Screenshot from 2017-03-21 00-48-06

Saved forwarding links in the dropbox cloud

If you place the cursor and press on the link you will be able to 
access the local host of the forwarding computer

How to Install and Configure VNC® Server 6.0.2 on Ubuntu 16.10 and remotely connect the computer with a mobile phone using free VNC cloud home connction

VNC Connect is a flexible and secure remote access software for computers.The details can be obtained from the official web site of RealVNC.

First download the linux vnc connect deb file from the vnc web site. in to the computer

and extract the deb file .(you will get 2 files of server and viewer installers)

install VNC-Server-6.0.2-Linux-x64.deb using the official installer of Ubuntu.Screenshot from 2017-03-13 17-03-50

To start the server open the Ubuntu terminal and run

sudo systemctl start vncserver-x11-serviced.service

Now you can see an icon on the panel to indicate  the sever is running

Screenshot from 2017-03-13 20-33-59

After installing you will not be able to see any launcher icon. In this type of situation Mainmenu appication is useful in creating a launcher.Since  Mainmenu is not a default software in Ubuntu 16.10  we will have to install it manually.

Open the Ubuntu terminal and run

sudo apt-get update
sudo apt-get install alacarte

Now if you run  the mainmenu you will find the vnc server under the 
applications/other menu

Screenshot from 2017-03-13 19-04-27

If the VNC server is not available, you can add an item.

Go to the Launcher properties and edit as follows

Screenshot from 2017-03-13 19-09-13

Under the Command cage enter the following  to enable the server start at the boot time of the computer and include it to Startup Applications

gksu systemctl start vncserver-x11-serviced.service

and press OK

Screenshot from 2017-03-13 19-21-43

Now the VNCServer is installed on Ubuntu 16.10 correctly

Screenshot from 2017-03-13 19-27-57

The next step is to sign up for a free VNC Cloud home account

Go to this REAL VNC website and sign up for a free cloud home account

To connect the sever with the cloud

Now place the mouse pointer on the vnc sever icon on the  panel at the top of the desktop and right click to get the menu and make the licensing for the cloud connection



Screenshot from 2017-03-13 17-10-56

Now open the cloud to see weather the computer is connected

Go to the vnc  cloud and sign in

Screenshot from 2017-03-13 19-59-25.png

Screenshot from 2017-03-13 20-00-44

Screenshot from 2017-03-13 20-01-32


Now you can see the computer with the vnc server is connected to the vnc cloud

The next step is to connect the computer running   the vnc server remotly  over the inter net using a mobile phone

First VNC Viewer for remote desktop application is installed on the phone

Open the app and connect to the computer using the vnc password saved in the server previously .




How to remotely control your Raspberry pi 3 over the internet using a RealVNC cloud connection

The VNC connect (RealVNC Server and the Viewer) has  been installed by default on the Raspbian OS make available for  Raspberry pi 3 .

But the VNC connect installed by default on Raspberry seems to be an Old version which does not permit VNC cloud connection.Therefore you will have to upgrade the software to version 6 at the start.

Updating software

Open the terminal an run

sudo apt-get update

sudo apt-get upgrade

Then sign up for a free VNC Cloud account  available for the home users

Signing up for free home cloud account

Then you will have to make changes in the Raspberry setup to activate the VNC Server at the booting and to facilitate the connection with the cloud and the licensing


Activating VNC Server at boot time

On the Raspberry pi menu go to

Preferences/Raspberry Pi Configuration/interfaces/

Screenshot from 2017-03-05 22-43-51.png

and enable VNC and SSH

Then re boot the Rasberry pi

Now you can see the Sever icon on the panel.


VNC server running on Raspberry Pi 3

Place the mouse pointer on the vnc sever icon and  right click

Then go to Licensing and connect the Raspberry with the cloud

Licensing for free cloud account

facilitating head less remote connection for the Raspberry  Pi 3

Place the mouse pointer on the vnc sever icon and  right click

Select Options/connections/

Make the check  boxes as shown in the following figures

Now If you sign in to your cloud account, you can see your Raspberry pi is connected to the cloud


Cloud connection with raspberry Pi

Accessing the Raspberry Pi desktop from the remote computer

Install the VNC Viwer on the remote computer

My Os on the remote  computer is Ubuntu 16.10

Start the VNC Viwer  and connect to the Raspberry Pi  over the cloud



Raspberry Pi desktop on the remote computer


Controlling Zoneminder CCTV system installed on the Rasberry Pi using the remote computer