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/15 22:52] – [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 49: | Line 53: | ||
neofetch | neofetch | ||
- | | ||
lazygit | lazygit | ||
Line 58: | Line 61: | ||
append alias lg=" | append alias lg=" | ||
+ | |||
+ | ===== 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 142: | Line 157: | ||
==== Lighttpd ==== | ==== Lighttpd ==== | ||
+ | |||
+ | sort out users etc | ||
+ | |||
+ | sudo usermod -a -G www-data pi | ||
+ | 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 162: | Line 189: | ||
sudo systemctl reload lighttpd.service | sudo systemctl reload lighttpd.service | ||
- | === PHP === | + | === Enabling |
sudo lighty-enable-mod fastcgi | sudo lighty-enable-mod fastcgi | ||
Line 168: | 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```, | ||
+ | |||
--------- | --------- | ||
Backlinks: | Backlinks: | ||
{{backlinks> | {{backlinks> |