Skip to main content

Raspberry Pi basics

Migration

Raspberry Pi Debian Buster basics

  • update to bullseye 1.25.22——
  • update to bullseye 9.23.23---
  • update to bullseye 1.14.25—

What you will need:

    computer of some sort with a terminal application internet connection on the local area network permission from the owners of the computers you are working on permission from the system admin (Dr. Bill) to do this, at a specific time and place (so our intrusion detection system does not block you)

    Module 1: first steps (see notes below)

      download a terminal app you may need to add sudo to the front of any command at this point test the app by using the ping command to 10.14.1.4 one of the elab routers record the ping time in progressyour fornotes using either ifconfig or ip addr show in terminal find your IP address write this on the board ping the other units, record your results

      Module 2: ssh

        secure shell is a means of securely accessing the command line (“terminal”) of a computer to enable ssh on your rPi, you will need to go to terminal and type sudo raspi-config find the interfacing options command select enable ssh use the command ssh 10.14.253.x or updated address to reach another rPi unit you should be “in” your pi unit now, look at the prompt from that prompt, try the ping command as you did before to the other pi units, record your results

        Module 3: commands

          from your ssh terminal, type pwd, which shows the path you are now located at, record this try the ls command, this lists the files near you in the current directory try the cd .. command, which should take you up one directory, repeat pwd and notice the difference.  cd back to the directory you were first in, likely it is /home/pi

          Module 4: nomachine (if no desktop access)

            install nomachine on your laptop connect to your pi unit right click to see the directory or file system find the folder “pi” go back to your ssh terminal and type ls in various directories, verify that they show up the same way in the folder window

            Module 5: nano text editor

              from your ssh window, in the pi directory, type: sudo nano test type some stuff hold control while typing the o key and return hold control while typing the x key and return you have just created a document in the folder, find it on the nomachine window

              Module 6: what’s going on? who?

                try these commands: top, ps, who, last, history, record your results try these commands: traceroute, ifconfig, record your results

                Module 7: commands, modifiers

                  from your ssh window, try using the secret version of ls: ls -la note that all commands can have modifiers, like ls -la, l means long, a means all files try creating a new file with nano, and name it something with a period in front see if it shows up in the file manager window see if it shows up using ls -la

                  Module 8: creating directories

                    using your ssh window, enter the command mkdir followed by some name watch what happens in the file manager window create a text document in this new folder look up the cp, mv and rm commands using man cp and so on

                    Module 9: update your computer, install apps

                      using the sudo apt-get update command, update your computer use the sudo apt-get upgrade to upgrade the computer use the sudo apt-get install hardinfo -y to install hardinfo type hardinfo and record your results compare with cat /proc/cpuinfo install the wavemon program the same way, test and record

                      Module 10: control x and control z

                        control x means stop control z means halt, no nice mannerstry this with ifconfig to determine your IP addresses (wired and wireless)





                        Migrated from Apple WikiServer Wiki. Original page 81_5165.ID: 81_5165