projects:rov:rov_linux:start

This is an old revision of the document!


ROV Linux

  • username pi
  • password raspberry

(if these need to be changed sudo passwd pi)

sudo raspi-config

if running on Debian Jammy, rather than raspbian:

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php -y

this will allow you to have PHP 7.4

This is the packages that need to be installed to make this work

sudo apt update
sudo apt dist-upgrade -y
sudo apt upgrade -y
sudo apt autoremove -y
# These are required to make it more like my normal enviroment.
sudo apt install -y kitty nano zsh git neofetch htop dialog molly-guard
# MQTT
sudo apt install -y mosquitto mosquitto-clients 
# Webserver and video stream
sudo apt install -y lighttpd php7.4 php7.4-{cli,common,cgi} gpac motion zip gstreamer1.0-tools
# Ability to mount file system via the network on my mac
sudo apt install -y netatalk

install ohmyzsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

edit .zshrc and change ZSH_THEME=“robbyrussell” to ZSH_THEME=“clean” #CASE_SENSITIVE=“true” to CASE_SENSITIVE=“false”

get neofetch working, nano .zprofile and add the following two lines

clear
neofetch

lazygit

LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
tar xf lazygit.tar.gz lazygit
sudo install lazygit /usr/local/bin

append alias lg=“lazygit” to the end of .zshrc

this is for allowing access to the home folder from a mac

https://pimylifeup.com/raspberry-pi-afp/

sudo nano /etc/netatalk/afp.conf

;
; Netatalk 3.x configuration file
;

[Global]
; Global server settings
mimic model = AirPort4

[Homes]
basedir regex = /home

; [My AFP Volume]
; path = /path/to/volume

; [My Time Machine Volume]
; path = /path/to/backup
; time machine = yes
sudo systemctl restart netatalk
sudo systemctl enable mosquitto.service

test that it is working using

mosquitto -v
sudo nano /etc/mosquitto/mosquitto.conf

add the following lines to the end of the configuration

listener 1883
allow_anonymous true

Restart Mosquitto for the changes to take effect.

sudo systemctl restart mosquito

Enable legacy camera support

sudo raspi-config

Enter the following line to hand the camera to the modules. Ensure the camera is connected correctly before running this line otherwise, it will throw an error.

sudo modprobe bcm2835-v4l2
sudo reboot
git clone https://github.com/silvanmelchior/RPi_Cam_Web_Interface.git
cd RPi_Cam_Web_Interface
./install.sh

change httpd to lighttpd

lighttpd config is /etc/lighttpd/lighttpd.conf

sudo systemctl reload lighttpd.service

enable CGI

sudo lighttpd-enable-mod cgi

sudo nano /etc/lighttpd/conf-enabled/10-cgi.conf

# /usr/share/doc/lighttpd/cgi.txt

server.modules += ( "mod_cgi" )

$HTTP["url"] =~ "^/cgi-bin/" {
      cgi.assign = (
              ".py" => "/usr/bin/python3",
              ".sh" => "/bin/bash",
      )
sudo systemctl reload lighttpd.service

PHP

sudo lighty-enable-mod fastcgi 
sudo lighty-enable-mod fastcgi-php
sudo systemctl reload lighttpd.service

——— Backlinks:

  • projects/rov/rov_linux/start.1689454295.txt
  • Last modified: 2023/07/15 22:51
  • by Philip McGaw