Introduction: Raspberry Pi - VNC & SSH
Today, I am going to show you how to use Raspberry Pi board without using a HDMI monitor. Generally this is called as SSH to access Raspberry Pi without using HDMI-slot to see the desktop of Raspberry Pi.
The need list:
1. Raspberry Pi (I used Raspberry Pi 2 Model B v1.1 board for this instructable) (Check my other instructables to learn how to use Raspberry Pi)
2. Ethernet cable (If your ethernet port is broken, you may use usb ethernet converter dongle to do)
3. Your computer (I used Windows 7)
4. Wireless Modem to provide your compiter an internet access (You need to know your modem username and password, you need it on next)
5. USB WiFi antenna dongle (I told how to connect wireless usb anten to your Raspberry Pi 2 board to give an internet access) (How to give an internet access to Raspberry Pi 2 and Pi Zero that I explained before.)
SSH = Secure Shell
VNC = Virtual Network Computing
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Enable SSH From Raspberry Pi With Raspi-config
First of all, you downloaded NOOBS then moved to micro SD Card Raspbian Jessie operating system then you boot your Raspberry Pi with using HDMI monitor to progress then you need to use your Raspberry Pi board to use without any displays. Using monitors maybe not a good idea for you because you have your computer's display. Consequently, you want to see the desktop of Raspberry Pi on your computer's desktop. That is what I am forcing myself to do this instruction here.
With attaching HDMI monitor, open Raspberry Pi's terminal from desktop, and type this code:
Then choose advanced options >> SSH >> Enable SSH >> return to the Terminal and type:
The last reboots your board. You can disconnect the monitor now and get near to your computer.
Don't forget to configure your Raspberry Pi board's USB Wi-Fi antenna dongle, you need to finish this then go on next step. Raspberry Pi board will save your Wi-Fi SSID (your modem's name) and password in it's mind beacuse you have already connected to internet before. You may read my old topics to learn how to connect to wireless modem with USB Wi-Fi antenna dongle for Raspberry Pi 2 board and Pi Zero board that I explained before how to do.
Step 2: Now, Without Monitors ...
Now, go to your modem's inside. While your computer is connected to your modem as wireless fiction, go to your default internet browser such as Google Chrome, Mozilla Firefox, or Internet Explorer then try these local network number to access your modem. It maybe already written on your modem check it, if possible to read.
Some helpful modem entrance IPs for typing to your browser are:
http://192.168.0.1/ http://192.168.1.1/ http://192.168.0.254/ http://192.168.1.254/ http://192.168.0.138/ http://10.0.0.1/ http://10.0.0.138/ http://10.0.0.254/ http://10.0.1.1/ http://10.0.1.254/
When you find correct entrance IP, you can enter in your modem.
****Be careful what you do! If you change any unexpected settings, you maybe faced internet connection problems. You may need to reset your modem, if you did something wrong in your modem. I will not show any changes on your modem! The need is Raspberry Pi's IP adress which you need to look for.****
In your modem, go to wireless tab >> wlan access >> you can see your Raspberry Pi board is connecting to your modem with USB Wi-Fi antenna dongle. Your modem shows you what is the IP address of Raspberry Pi.
Mine is 192.168.0.21 that I learnt from my modem.
Step 3: Download PuTTY
You can download PuTTY program from this link.
After your installation, open PuTTY and type your Raspberry Pi's IP address seems like 192.168.n.n then click open.
Now you have got PuTTY terminal screen.
login as: pi password: raspberry
After the confirmation of your board, now you can access to Raspberry Pi's terminal.
SSH gives you access to the Raspberry Pi terminal. But, this is not enough, we need to see the desktop of Raspberry Pi.
Step 4: Access to Raspberry Pi Desktop
You did open pi terminal. Now install VNC with this code:
<p>sudo apt-get install tightvncserver</p>
When asked on terminal, type:
Then start the VNC server (you'll be asked to set a password):
vncserver :1 -name RasPi -depth 16 -geometry 1024x768
When asked, set your password (Mine is basic as 12345678) to type:
You need to verify it, type again:
When asked, "Would you like to enter a view-only password (y/n)?" If you type y, you can input the same password.
Now, you opened the server:
New 'RasPi' desktop is raspberrypi:1
Creating default startup script /home/pi/.vnc/xstartup Starting applications specified in /home/pi/.vnc/xstartup Log file is /home/pi/.vnc/raspberrypi:1.log
Now, install VNC client for your computer. You can download TightVNC to do that.
When setup is initializing, setup needs a password. You can use
this password to type four times for the beginning.
Now, go to start >> programs >> TightVNC
Type your IP address of your Raspberry Pi board then add (:1) after the IP seems like:
My IP is 192.168.0.21, so I input as 192.168.0.21:1 You need to change with your IP address that I did show before.
Now input password as 12345678 as we changed before. Then enter.
You will see Raspberry Pi desktop!
Step 5: In Brief
Now we did two things:
1. Connect to your Raspberry Pi board to use it's terminal to code.
2. Connect and see Raspberry Pi board's Raspbian desktop.
I attached some pictures about Raspberry Pi remote screen.
Step 6: Bugs
1. It is okey that we can view the screen of Raspberry Pi. But, how about the voice? I opened youtube.com from default web browser on located Raspberry Pi to listen Candan Erçetin - Meğer song, yes browser is working well but I can't hear any voice from my computer's speakers. I surprised. I think, this desktop viewing method only show the display not voice! I changed audio settings as HDMI and Analog between, but still it doesn't work. If you want to hear a voice from Raspberry Pi, you need to use 2.5" audio jack to use your speaker with Raspberry Pi as Analog. You can't listen over your computer.
2. Display quality is medium. When TightVNC client is running, you can't be able to see well quality. It is medium. But the mouse control speed is very good.
Step 7: Sources
Step 8: BONUS: Reading This Instructable
NOTE: This instructable's step is aimed for visually impaired people to hear the sentences to learn what's going on here. Watch the video, it explains all steps.
Participated in the
Raspberry Pi Contest 2016