Is this your first time setting your Pi up?
So here you are, with a new Pi in your hands. Congratulations, you are now one step closer to becoming a master mind!
Where to start?
First off you will need to setup your Pi to allow an SSH/VNC connection. The people who don’t have a spare screen with a HDMI port, will find the following to be highly useful!
SSH stands for Secure Shell Protocol which allows the user to connect with a running ssh server.
In other words, it’s a program which acts like a terminal, allowing you to send commands straight to your Pi.
Best program for SSH is PUTTY, compatible with Windows and all Linux systems :
VNC stands for Virtual Network Computing which is a graphical desktop sharing application.
VNC runs of Frame Buffer Protocol (RFB) to remotely control another computer/Pi.
Best program for VNC is realVNC, compatible with Windows and all Linux systems:
There are two different RealVNC, one you have to pay and the other is free.
Links to the free one are below:
More can be found here: https://archive.realvnc.com/download/open/
Download and install:
If you have a permanent screen for your Pi, please skip 2 and 3:
- Make sure you have an SD to USB or anything similar.
- Download and install SSH.
- Download and install VNC.
- Download the Raspbian Jessie with Pixel, can be found here: https://downloads.raspberrypi.org/raspbian_latest
- Download and install Win32DiskImager, other any other similar SD card image writer. Win32DiskImager can be found here: http://www.raspberry-projects.com/pi/pi-operating-systems/win32diskimager
- Once you have downloaded Raspbian, open up Win32DiskImager. Select the folder icon which can be found at the top right of the window:
Make sure that your SD card is selected, you can check top right of the window under Device.
- Click Write, sit back and relax. (Will take around 5-10 minutes)
Setting it up:
- Find a temporary screen, to run your Pi to set it up for the first time. (Screen must have HDMI input/output. Tip: Most TV’s have a HDMI slot.)
- After plugging all of your cables into the pi, you can insert the card.
(For Raspberry Pi 1 and 2, you will feel a click when inserting. On the other hand, for the Raspberry Pi 3 it has a friction connection.)
- Once the pi has power, you should be able to see this on the screen:
- Depending on what Operating System you went with in the end, some are password protected, not to worry!
– Arch Linux ARM: root – root
– Raspbian: pi – raspberry
– NOOBS: root – raspberry
- Too change the password, type the following command: sudo passwd pi.
- While the terminal is open, type ifconfig.
- Now you have to find the LAN IP for your Pi.
Look for wlan0 called following with inet addr.
- Now before doing anything else, click Start, Preferences and click Raspberry Pi Configuration.
- In the tabs, click Interfaces and enable both SSH and VNC.
- After, reboot the Pi.
- After the pi has rebooted, you’re ready!
- On your PC, load Putty.
- Fill out the hostname with your Pi’s local IP address
- A window will prompt you that you are attempting to connect to another device.
Don’t panic, it’s just someone to ignore, go ahead and click Yes
- A new window will pop up requesting for your login details, if you haven’t changed your password, for Raspbian login as pi and password raspberry.
- A step closer to your VNC! Now type vncserver. This command will then launch a VNC server which you will be able to connect to from your PC.
(Trick: If you want a higher resolution type the following command, vncserver -geometry 1920×1080 or any other resolution)
- Close Putty. On your PC, click start and type VNC and open up VNC Viewer.
- Place your Pi’s LAN IP into the VNC Server follow with :1. For example 192.168.0.29:1
- Same with Putty, you will receive a certificate, ignore it and click yes
- The following window will ask for a username and password, which is the same as your login details for Putty. Username: pi and password: raspberry
- Once you have connected, congratulations! Your Pi is now ready for your future projects!
- Enjoy it!
I do hope you found this tutorial easy, I always aim to give you upfront useful information.