Controlling Raspberry Pi B/B+ from your smartphone (Tutorial)

In this tutorial I'll tell you how to control your raspberry pi from your smartphone. So follow below tutorial and say good bye to monitor,keyboard and mouse.


1)Raspberry Pi
2)Wi-Fi adapter
3)Smartphone with Wi-Fi Hotspot feature (I would be using Android in this tutorial)


Step 1) First install Raspbian OS in SD card and connect SD card to your PC

Step 2) Raspberry Pi Configuration  :

-Open SD card using file manager as shown in this SS:-


-Now press Ctrl+L and copy the location as show in this SS:-

-Now open terminal and change directory to SD card location like this :-

       cd /media/c1398422-7a7c-4863-8a8f-45a1db26b4f2

-Now run below commands  :-

Command 1:

sudo echo "
auto wlan0
iface lo inet loopback
iface eth0 inet dhcp
iface default inet dhcp
iface wlan0 inet dhcp
allow-hotplug wlan0
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf">etc/network/interfaces

Command 2:

sudo echo "
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

NOTE:- Replace ssid and psk values with your actual ssid and password.

Step 4) Wi-Fi Hotspot configuration in your smartphone:

-Go to settings and give your desired network SSID and password but make sure to replace "mynetworkname" and "mypassword" with your network SSID and password.

-Now insert SD card and connect Wi-Fi adapter then start your Raspberry Pi

-Now after few seconds and you will get a connection from Raspberry Pi to your smartphone like below:

-Note down the IP address (

Step 5)SSH Client Configuration:

- Install JuiceSSH in your android (or if you don't have android then install any supported SSH client and configure it and run)

- Now using SSH client (JuiceSSH) connect to IP address of raspberry pi which we got in step 4 using default credentials-

Username:- pi
Password:- raspberry

JuiceSSH  Guide:-

a)Open JuiceSSH and click on thunder like icon located at top right corner and enter your Raspberry Pi details like this:

Here "pi" is default username of Raspberry Pi SSH and "" is IP address which we got in step 4.

b)Now type the password as "raspberry"

 c)Now click on "Accept"

d)Now you are ready to send your commands to your raspberry Pi ;)

Step 6)Installing VNC on Raspberry :-

-Run below commands:-

Command 1 :- sudo apt-get update
Command 2 :- sudo apt-get install tightvncserver

-Now start vnc server by this command and enter new password if asked:-

   sudo vncserver:1

Here 1 is port number ,you can give any unreserved port number.

-You can reset your password by :-

  sudo vncpasswd

-That's it.

Step 6)Installing VNC Client in your smartphone :-

-Download and install VNC viewer in your android and run it.
-Now enter address in ip:port format and give any desired name.
For example:-
Here is my raspberry pi IP address and 1 is port number on which VNC server is listening.

Now just click on connect and enter password when asked and you are ready to go.

Got any problem?
Ask in comments :)



  1. This is actually good to read content of this blog. A is very general and huge knowledgeable platform has been known by this blog. I in reality appreciate this blog to have such kind of educational knowledge.
    Lenovo System x3500 M5

  2. You have written a useful thing.It will be helpful for me.Thanks for sharing with us.

  3. This comment has been removed by the author.

    1. Kya re noob kya comment daala tha? xD


Post a Comment

Popular Posts