Skip to content

Instantly share code, notes, and snippets.

@guilt
Last active April 13, 2024 06:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guilt/5030ab705a493551f26feb8ad9dc0728 to your computer and use it in GitHub Desktop.
Save guilt/5030ab705a493551f26feb8ad9dc0728 to your computer and use it in GitHub Desktop.
Raspberry and Orange Setup Steps

Raspberry Pi Setup Steps

  1. Make the Box Ready. Either Keep the Box or Attach the Racking Unit
  2. Write Image, note down Hostname
  3. Install MicroSD Card
  4. Connect PoE and Reboot

Raspberry Pi Imaging Manual

  1. Use rapios-lite
  2. Enable User, Password
  3. Enable SSH Key
  4. Do not enable WiFi
  5. Use kvk-linux-pi-{X}.local where X=0,1,2

Raspberry Pi Post Installation

  1. Ensure Pi Powers on
  2. SSH to Pi with the .local address
  3. Remove swapfile
sudo dphys-swapfile swapoff
sudo dphys-swapfile uninstall
sudo update-rc.d dphys-swapfile remove
sudo apt purge dphys-swapfile -y
  1. Reboot

Orange Pi Setup

  1. Make the Box Ready
  2. Write Image
  3. Install MicroSD Card
  4. Connect PoE and Reboot

Orange Pi Imaging Manual

  1. Use Bookworm Server
  2. Use Raspbian Imager but custom Image
  3. Settings are not Initializable

Orange Pi Post Installation

  1. Ensure Orange Pi Powers on
  2. Find out from Router what IP was assigned
  3. Login as orangepi with password orangepi
  4. Run sudo orangepi-config
  5. Change hostname to kvk-linux-opi-{X}
  6. Change timezone
  7. Enable Avahi
  8. Update Firmware
  9. Reboot
  10. Re-login to kvk-linux-opi-{X}.local as orangegpi
  11. Change /etc/passwd, /etc/shadow, /etc/group. /etc/gshadow, /etc/subgid, /etc/subuid and change orangepi to user.
  12. Run passwd user
  13. Run passwd root
  14. Run mv /home/orangepi /home/user
  15. Add authorized_keys to /home/user/.ssh
  16. Edit /etc/sudoers and change to NOPASSWD:
  17. Run swapoff -a; Change /etc/default/orangepi/zram-config and disable it
  18. Reboot
  19. Re-login to kvk-linux-opi-{X}.local as user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment