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 22:51] – [Lighttpd] 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 49: Line 53:
   neofetch   neofetch
  
-   
 lazygit lazygit
  
Line 58: 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 122: Line 131:
  
   sudo modprobe bcm2835-v4l2   sudo modprobe bcm2835-v4l2
- 
- 
  
   sudo reboot   sudo reboot
Line 136: 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 143: Line 158:
 ==== Lighttpd ==== ==== Lighttpd ====
  
-running .sh files as CGI+sort out users etc 
 + 
 +  sudo usermod -a -G www-data pi 
 +  sudo usermod -a -G pi www-data 
 + 
 +Change the web folder
  
-  * [[https://redmine.lighttpd.net/boards/2/topics/1606]] +sudo nano /etc/lighttpd/lighttpd.conf
-  * [[https://redmine.lighttpd.net/boards/2/topics/1580]]+
  
-running .py files as CGI+# server.document-root        = "/var/www/html" 
 +server.document-root        = "/home/pi/rov/html"
  
-===enable CGI===+===Enable CGI for both Bash and Python files ===
  
   sudo lighttpd-enable-mod cgi   sudo lighttpd-enable-mod cgi
Line 165: Line 185:
                 ".sh" => "/bin/bash",                 ".sh" => "/bin/bash",
         )         )
 +  }
  
   sudo systemctl reload lighttpd.service   sudo systemctl reload lighttpd.service
  
-=== PHP ===+=== Enabling PHP ===
  
   sudo lighty-enable-mod fastcgi    sudo lighty-enable-mod fastcgi 
Line 174: Line 195:
  
   sudo systemctl reload lighttpd.service   sudo systemctl reload lighttpd.service
 +
 +=== Enable directory listings ===
 +
 +  sudo lighty-enable-mod dir-listing
 +
 +  sudo systemctl reload lighttpd.service
 +
 +=== Passwordless Sudo ===
 +
 +run ```visudo```, and append the line ```%sudo ALL=(ALL) NOPASSWD: ALL``` to the end.
 +
 --------- ---------
 Backlinks: Backlinks:
  
 {{backlinks>.}} {{backlinks>.}}
  • projects/rov/rov_linux/start.1689454295.txt
  • Last modified: 2023/07/15 22:51
  • by Philip McGaw