Design Project 2 Documentation - RichardSwierk/Champlain-Capstone GitHub Wiki

Installing OS on micro sd card

  1. Get your micro sd card, micro sd carb reader/writer, and windows 10 computer

  2. Insert the micro sd card into the micro sd card reader/writer

  3. Plug the male USB type A end of the micro sd card reader/writer into the female USB type A port in your computer

  4. On your computer go to the following url: https://downloads.raspberrypi.org/imager/imager_1.4.exe

  5. When a pop up box appears click on the Save File button

  6. Open File Explorer

  7. In File Explorer in the left column under This PC click on Downloads

  8. In the right column double click on the file named imager_1.4

  9. A User Account Control pop up will appear. Click Yes on this pop up

  10. Raspberry Pi Imager Setup will then open

  11. Click on the Install button and then wait

  12. When Raspberry Pi Imager is finished installing you will see the following

  1. Click on the button that says Finish

  2. On the bottom of your screen you will see the following icon

  3. Click on the icon to open Raspberry Pi Imager

  4. Next Click on the button that says CHOOSE OS

  5. Select the second option, Raspberry Pi OS (other)

  6. Then select Raspberry Pi OS Lite (32-bit)

  7. Click on the button that says CHOOSE SD CARD

  8. Select your sd card from the list

  9. Click on the button that says WRITE

  10. A Warning pop up will appear. Click the button that says YES

  11. When the OS is successfully written to your sd card you will see the following

  12. Click the button that says CONTINUE

  13. Click on the X in the top right corner of Raspberry Pi Imager

Setup OS on Raspberry pi

  1. Take the micro sd card and insert it into the micro sd card slot on the raspberry pi
  2. Take your micro usb cable to usb female cable and plug the micro usb male connector into the micro usb female connector on the raspberry pi that says PWR IN above it
  3. Plug your usb wall charger into an outlet
  4. Plug the usb male connector on the micro usb to usb male cable into the female usb connector on the usb wall charger
  5. Get your hdmi male to hdmi female cable and monitor/tv
  6. Connect the hdmi male connector into the hdmi female connector on the monitor/tv
  7. Connect the hdmi male connector into the hdmi female connector on the raspberry pi
  8. Power on the monitor/tv
  9. Get your usb keyboard and connect its usb male connector into a usb female connector on the raspberry pi
  10. Wait until you see a login prompt on the monitor
  11. Enter the default credentials for raspbian OS (username: pi, Password: raspberry)

Create new user

  1. To create a new user type in the following command change 'username' to the username you want to use
    sudo useradd username

  2. Next enter the password that you want to use with the new user

  3. You will then be prompted to enter the password again

  4. Next you will be asked for Full Name, Room Number, Work Phone, Home Phone, Other. Press Enter on each one of these to enter nothing

  5. Then you will be asked if the information is correct. Enter Y and then press Enter

  6. You have finished creating your new user

Delete pi user

  1. First you will need to reboot the raspberry pi. Use the following command
    sudo reboot
  2. Wait for the system to finish booting and login using your new user credentials
  3. To delete the pi user enter the following command
    sudo deluser pi
  4. You will be prompted to enter your users password
  5. Pi user has now been deleted

Connect raspberry pi to the internet

  1. Enter the following command to open the raspberry pi configuration tool
    sudo raspi-config

  2. Enter your password when prompted to do so

  3. Your screen should show the following

  4. Hit the down arrow key and then press enter. This will take you to the Network Options

  5. Hit the down arrow key and then press enter. This will take you to setup a Wireless LAN connection

  6. When it says "Please enter SSID" enter the name of the network that you wish to connect to then press enter

  7. Next enter the password to the network that you wish to connect to and press enter

  8. You have successfully connected your raspberry pi to the internet

Change the hostname

  1. Enter the following command to open the raspberry pi configuration tool
    sudo raspi-config

  2. Enter your password when prompted to do so

  3. Your screen should show the following

  4. Hit the down arrow key and then press enter. This will take you to the Network Options

  5. Click enter to enter Hostname setup

  6. You will get the following prompt. Click enter on

  7. When you see "Please enter a hostname" type in Capstone then press enter

  8. You have successfully changed the hostname of the raspberry pi

Enable ssh

  1. Enter the following command to open the raspberry pi configuration tool
    sudo raspi-config

  2. Enter your password when prompted to do so

  3. Your screen should show the following

  4. Click the down arrow key four time and press enter. This will take you to the Interfacing Options

  5. Click the down arrow key once and press enter. This will take you to the SSH configuration

  6. When you see the following press the left arrow key and click enter. This will enable ssh

  7. The following will appear. Click enter

  8. You have successfully enabled ssh on the raspberry pi

Install software

usbmon = tool used to get data being sent over usb
python = the language the code for this project will be written in
pip = used to install python packages
usbmon-tools = python package to make interfacing with usbmon easier

usbmon

  1. Use the following command to load usbmon: sudo modprobe usbmon
  2. mount debugfs to /sys/kernel/debug: sudo mount -t debugfs none_debugs /sys/kernel/debug

python

1.Install python with the following command: sudo apt-get install python -y

pip

  1. Install pip with the following command: sudo apt-get install python3-pip python-pip -y

usbmon-tools

  1. Install usbmon-tools python package with the following command: sudo python3 -m pip install usbmon-tools