Pi setup – First Time!

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:

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 :

Windows: https://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
UNIX: https://the.earth.li/~sgtatham/putty/latest/putty-0.67.tar.gz

VNC:

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:

***WARNING***

There are two different RealVNC, one you have to pay and the other is free.
Links to the free one are below:

Windows: https://archive.realvnc.com/download/get/775/eula/
L
inux: https://archive.realvnc.com/download/get/780/eula/

More can be found here: https://archive.realvnc.com/download/open/

Let’s begin!

Download and install:

If you have a permanent screen for your Pi, please skip 2 and 3:

  1. Make sure you have an SD to USB or anything similar.
  2. Download and install SSH.
  3. Download and install VNC.
  4. Download the Raspbian Jessie with Pixel, can be found here: https://downloads.raspberrypi.org/raspbian_latest
  5. 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
  6. 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.

  7. Click Write, sit back and relax. (Will take around 5-10 minutes)

Setting it up:

  1. 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.)
  2. 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.)
  3. Once the pi has power, you should be able to see this on the screen:
    Image result for raspbian boot up screen
  4. 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
  5. Too change the password, type the following command: sudo passwd pi.
  6. While the terminal is open, type ifconfig.
  7. Now you have to find the LAN IP for your Pi.
    Look for wlan0 called following with inet addr.
  8. Now before doing anything else, click Start, Preferences and click Raspberry Pi Configuration.


  9. In the tabs, click Interfaces and enable both SSH and VNC.
  10. After, reboot the Pi.

Final steps:

  1. After the pi has rebooted, you’re ready!
  2. On your PC, load Putty.
  3. Fill out the hostname with your Pi’s local IP address
  4. 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
    Image result for certificate putty connection
  5. 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.
  6. 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)
  7. Close Putty. On your PC, click start and type VNC and open up VNC Viewer.
  8. Place your Pi’s LAN IP into the VNC Server follow with :1. For example 192.168.0.29:1
  9. Same with Putty, you will receive a certificate, ignore it and click yes
  10. 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
  11. Once you have connected, congratulations! Your Pi is now ready for your future projects!
  12. Enjoy it!

    I do hope you found this tutorial easy, I always aim to give you upfront useful information.