AAA Initial Setup of the Pi - spaceshiptrip/raspberrypi GitHub Wiki
Things ya gotta do:
- For Labist Pi boards, follow the instructions to put the Pi together.
- It should have come with a memory card with
Raspberry Pi OS
installed by default. You can skip instructions online forNOOBS
setup. - After building the computer, the OS card slot is on the bottom top side, PUT THE PROVIDED MEMORY CARD THERE.
- The next steps will require interacting with the Raspian Operating System through the terminal and issuing command line commands, to get familiar with it, check out the Beginners Guide 4th edition v2
Important Selection
Most modern OSs utilize a 64 bit architecture, think of it as a wider highway and information are in cars. You want 64 bit architecture. To enable it in Raspberry pi, edit the config.txt
file:
sudo vim /boot/config.txt
Add the following line anywhere near the bottom:
arm_64=1
Then reboot: sudo shutdown -r now
Verify that you're running 64 bit:
uname -a
You should see something similar to:
pi@raspberrypi-4:~ $ uname -a
Linux raspberrypi-4 4.19.75-v8+ #1270 SMP PREEMPT Tue Sep 24 18:59:17 BST 2019 aarch64 GNU/Linux
pi@raspberrypi-4:~ $
Enjoy the faster highway!
Network and connection setup:
- When you set it up, even if you're using hardwire, enable and connect to wireless. It'll save grief later.
- The following procedure requires opening a terminal shell and customizing your network information.
- Setting up static ip - this will allow you to connect to the computer from other computers in your network. By having a static IP, the RPI address will always be the same.
ifconfig | grep inet
--> Grab theeth0
sincewlan0
is the wireless\route -n
--> get the router IPsudo vim /etc/dhcpcd.conf
- Add the static information:
# This is an example replace with your specific information interface eth0 static ip_address=192.168.1.4 static routers=192.168.1.1 static domain_name_servers=8.8.8.8
- reboot with the command
sudo shutdown -r now
- DONE
- Enable ssh - this allows you to log into this computer from another computer through a secure shell:
sudo raspi-config
- Many settings there, one of them is the
Interfacing Options
Choose that - Enable ssh
- DONE
- Since you're in
raspi-config
, enable other items:- Enable VNC
- Change the name of the computer
Status and computer information:
- Check how much space is left:
df -H
- see what hardware is on the network:
sudo apt install nmap nmap -sP 192.168.1.0/24
Updates and Upgrades
- Run
lsb_release -a
to find out what version of the operating system you have. As of this writing, my output is:No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
- On a fresh install, the system should have automatically updated and fully upgraded, but it is a good idea to continue doing it periodically. Follow these steps: https://github.com/spaceshiptrip/raspberrypi/wiki/Update-and-Upgrade-APT
Other Installs
- Things you should think of installing:
sudo apt install screen
- this should be installed when running headless (without a monitor connected to it)
- Upgrading to Python 3, instructions here: https://github.com/spaceshiptrip/raspberrypi/wiki/Install-Python-3