Raspberry Pi 3 Tutorial 2b – Linux Headless Setup
Raspberry Pi 3 Model B builds upon the features of its predecessors with a new, faster processor on board to increase its speed. It also features WiFi and Bluetooth Low Energy capabilities to enhance the functionality and the ability to power more powerful devices over the USB ports.
1. Raspberry Pi 3 – Buy
2. MicroSD card 8 or 16 GB (Class 4 and above) with Raspbian
3. Linux PC (Tested with Ubuntu 14.04 LTS and Ubuntu 16.04 LTS)
4. Ethernet cable (Category 5 – also called Cat 5)
5. Micro USB cable Buy
Way to go ->
1. Connect Pi to PC via the Ethernet Cable.
2. Power up the Pi by connecting it to your PC via the micro USB cable.
3. Wait for the Pi to boot up (Proceed with subsequent steps till then).
4. In the Status Bar (near to the PC battery indicator icon), click on the Wifi icon.
5. Click on “Edit Connections…” i.e. is the last option in the menu.
6. In the “Network Connections” dialog box, there will be:
7. Under Ethernet, double mouse click on Wired connection 1 or click on Wired connection 1, then click on “Edit…”.
8. In the dialog box that opens click on “IPv4 Settings” tab.
9. From the “Method” drop down menu, select the “Shared to other computers” option.
10. Click on “Save…”
11. Click on “Close”
12. Open Terminal (Cntrl + Alt + T)
13. Type ifconfig | grep “Bcast:10” in the terminal, then press “Enter” on your PC keyboard
14. Note down the address that is next to “Bcast:” (eg:- 10.42.1.255 or 10.42.0.255)
15. Install Nmap, by typing: sudo apt-get install nmap in the terminal, then press “Enter” on your PC keyboard. Wait for it to install
16. After installation, type: nmap -sn <address_in_step_13>/24 (eg:- 10.42.1.255/24 or 10.42.1.255/24) in the terminal to scan for devices, then press “Enter” on your PC keyboard
17. The first device address (eg:- 10.42.1.1 or 10.42.0.1) will be your computer’s and the second device address will be your Pi’s (eg:- 10.42.1.46 or 10.42.0.46)
18. In the terminal type: ssh pi@pi_address (eg:- ssh email@example.com), then press “Enter” on your PC keyboard. (Note:- if you are doing this setup for the first time, you’ll get a warning, as shown below. Type “yes”, and you’ll be prompted for the password, it may take some seconds)
19. Enter your Pi’s default password (raspberry) or the password that you
have set. (Note:- While typing the password, it will be invisible.). Then press “Enter” on your PC keyboard.
20. Et voila!, you are logged into your Pi!
21. You will be greeted by the prompt: pi@raspberrypi:~ $
22. If you want to shutdown your Pi, type: sudo shutdown now in the terminal.
23. If you just want to logout of the Pi and not shut it down, press Cntrl + D on your PC keyboard or in the terminal type: logout and press “Enter” on your PC keyboard.