projects:rov:rov_linux:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:rov:rov_linux:start [2023/07/15 23:06] Philip McGawprojects:rov:rov_linux:start [2023/10/19 16:33] (current) Philip McGaw
Line 13: Line 13:
  
   sudo raspi-config   sudo raspi-config
 +
 +  ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBZXuVXuc19rqZAfSH+CzeDTP+epLlpmMvryJeuXqVO9 skippy+thrudhr@mcgaw.eu
 +  ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBRmcgaQE9nBGz9A2X+RawgOPSERKnru6nTxa3NNsw3N philip.mcgaw@chargepoint.com
 +
  
 ===== Default stuff ===== ===== Default stuff =====
-if running on Debian Jammy, rather than raspbian:+if running on Debian Jammy, rather than Raspbian:
  
   sudo apt install software-properties-common   sudo apt install software-properties-common
Line 22: Line 26:
 this will allow you to have PHP 7.4 this will allow you to have PHP 7.4
  
-This is the packages that need to be installed to make this work+These packages need to be installed to make this work, see also. [[notes:equipment:ict:setup_new_computer]]
  
   sudo apt update   sudo apt update
Line 29: Line 33:
   sudo apt autoremove -y   sudo apt autoremove -y
   # These are required to make it more like my normal enviroment.   # These are required to make it more like my normal enviroment.
-  sudo apt install -y kitty nano zsh git neofetch htop dialog molly-guard+  sudo apt install -y kitty nano zsh git neofetch htop dialog rcm
   # MQTT   # MQTT
   sudo apt install -y mosquitto mosquitto-clients    sudo apt install -y mosquitto mosquitto-clients 
Line 57: Line 61:
  
 append alias lg="lazygit" to the end of .zshrc append alias lg="lazygit" to the end of .zshrc
 +
 +===== Python =====
 +
 +  sudo apt install python3-pip -y
 +
 +  pip install paho-mqtt
      
 ===== afp ===== ===== afp =====
Line 133: Line 143:
  
   sudo systemctl reload lighttpd.service   sudo systemctl reload lighttpd.service
 +
 +==== Headless via VNC ====
 +
 +  sudo raspi-config
 +
 +The VNC settings Interfacing Options >> VNC
 +
 +
  
 ==== USB camera(s) ==== ==== USB camera(s) ====
Line 144: Line 162:
   sudo usermod -a -G www-data pi   sudo usermod -a -G www-data pi
   sudo usermod -a -G pi www-data   sudo usermod -a -G pi www-data
 +
 +Change the web folder
 +
 +sudo nano /etc/lighttpd/lighttpd.conf
 +
 +# server.document-root        = "/var/www/html"
 +server.document-root        = "/home/pi/rov/html"
  
 ===Enable CGI for both Bash and Python files === ===Enable CGI for both Bash and Python files ===
Line 171: Line 196:
   sudo systemctl reload lighttpd.service   sudo systemctl reload lighttpd.service
  
-=== Enable User dirs, and directory listings ===+=== Enable directory listings ===
  
-  sudo lighty-enable-mod userdir   
   sudo lighty-enable-mod dir-listing   sudo lighty-enable-mod dir-listing
  
   sudo systemctl reload lighttpd.service   sudo systemctl reload lighttpd.service
 +
 +=== Passwordless Sudo ===
 +
 +run ```visudo```, and append the line ```%sudo ALL=(ALL) NOPASSWD: ALL``` to the end.
  
 --------- ---------
  • projects/rov/rov_linux/start.1689455194.txt
  • Last modified: 2023/07/15 23:06
  • by Philip McGaw