Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
projects:rov:rov_linux:start [2023/07/16 21:39] – [Lighttpd] Philip McGaw | projects: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 | + | These packages need to be installed to make this work, see also. [[notes: |
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 | + | sudo apt install -y kitty nano zsh git neofetch htop dialog |
# MQTT | # MQTT | ||
sudo apt install -y mosquitto mosquitto-clients | sudo apt install -y mosquitto mosquitto-clients | ||
Line 57: | Line 61: | ||
append alias lg=" | append alias lg=" | ||
+ | |||
+ | ===== 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 / | ||
+ | |||
+ | # server.document-root | ||
+ | server.document-root | ||
===Enable CGI for both Bash and Python files === | ===Enable CGI for both Bash and Python files === | ||
Line 176: | Line 201: | ||
sudo systemctl reload lighttpd.service | sudo systemctl reload lighttpd.service | ||
+ | |||
+ | === Passwordless Sudo === | ||
+ | |||
+ | run ```visudo```, | ||
--------- | --------- |