Setting up a Raspberry PI for Automation

From Craft of Testing - Wiki
Jump to navigation Jump to search

What can we help you find?

Language Syntax
XPath Examples

Random
Home Testing Automation AI IoT OS RF Data Development References Tools Wisdom Inspiration Investing History Fun POC Help

The following steps were used in a POC to setup a Raspberry Pi for automation purposes.

  1. Initial Setup
    1. Install Raspbian (Bullseye) on a 32 Gig Micro SD Card
    2. Boot the Raspberry Pi onto this new install
    3. Run the following command in a terminal
      1. cat /etc/os-release
    4. Ensure you have Linux 11 (Debian) installed
  2. Setup Networking
    1. Join the wireless network
  3. Ensure apt is up to date.
    1. Update the package list to get information on the latest versions of packages and their dependencies:
      1. sudo apt update
    2. Upgrade the installed packages to the latest versions:
      1. sudo apt upgrade
    3. Remove any packages that were automatically installed to satisfy dependencies for other packages and are now no longer needed.
      1. sudo apt autoremove
    4. And to clean up the local repository of retrieved package files that are no longer needed:
      1. sudo apt autoclean
  4. Install RealVNC
    1. sudo apt install realvnc-vnc-server
    2. After installation, you can enable and start the VNC service using sudo raspi-config tool or through the Raspberry Pi Configuration menu in the desktop environment. Remember to ensure that VNC is enabled in the Raspberry Pi Configuration settings if you’re using the desktop environment.
    3. Select "Interface Options"
    4. Select "VNC"
    5. Select "Yes" for Would you like to VNC server enabled.
    6. Select "Finish" to exit Raspberry Pi Configuration menu.
  5. Configure RealVNC
    1. Click on the RVNC icon in the Raspberry Pi Toolbar (top right on screen)
    2. Go to the hamburger menu and select "Options"
    3. Security -> Encryption "Prefer Off"
    4. Security -> Authentication "VNC password"
      1. Specify Password
      2. Enable "Allow connections from legacy VNC Viewer"
      3. Click OK to accept changes.
  6. Connect to Raspberry Pi via VNC on Mac
    1. From the finder select the "Go" menu and choose "Connect to Server"
    2. Enter the address vnc://192.168.1.231
    3. Enter Password used in previous step
  7. Install git
    1. sudo apt install git
  8. Install ZShell
    1. sudo apt install zsh
    2. Change default shell using sudo chsh -s /usr/bin/zsh
    3. Next time you reboot and open a terminal you should see a prompt to setup the .zshrc file. Select option 2.
  9. Install Oh-My-ZShell
    1. sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  10. Install Chromium (open-source version of Google Chrome)
    1. sudo apt-get install chromium-browser --yes
  11. Install Firefox
    1. sudo apt install firefox-esr
  12. Install Java 17 (Hopefully soon to be version 21)
    1. sudo apt install openjdk-17-jdk
    2. Check installed version java -version
  13. Install Maven 3
    1. sudo apt install maven
    2. Check installed version mvn -version
  14. Install VSCode
    1. sudo apt install code
  15. Install git
    1. sudo apt install git