AAA Initial Setup of the Pi - spaceshiptrip/raspberrypi GitHub Wiki

Things ya gotta do:

  1. For Labist Pi boards, follow the instructions to put the Pi together.
  2. It should have come with a memory card with Raspberry Pi OS installed by default. You can skip instructions online for NOOBS setup.
  3. After building the computer, the OS card slot is on the bottom top side, PUT THE PROVIDED MEMORY CARD THERE.
  4. 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:

  1. When you set it up, even if you're using hardwire, enable and connect to wireless. It'll save grief later.
  2. The following procedure requires opening a terminal shell and customizing your network information.
  3. 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.
    1. ifconfig | grep inet --> Grab the eth0 since wlan0 is the wireless\
    2. route -n --> get the router IP
    3. sudo vim /etc/dhcpcd.conf
    4. 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
      
    5. reboot with the command sudo shutdown -r now
    6. DONE
  4. Enable ssh - this allows you to log into this computer from another computer through a secure shell:
    1. sudo raspi-config
    2. Many settings there, one of them is the Interfacing Options Choose that
    3. Enable ssh
    4. DONE
  5. Since you're in raspi-config, enable other items:
    1. Enable VNC
    2. Change the name of the computer

Status and computer information:

  1. Check how much space is left: df -H
  2. see what hardware is on the network:
    sudo apt install nmap
    nmap -sP 192.168.1.0/24
    

Updates and Upgrades

  1. 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
    
  2. 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

  1. Things you should think of installing: