Updates to installation docs

This commit is contained in:
Dave Mateer
2025-06-16 14:40:40 +01:00
parent 529d8b60bf
commit b236f2510d

View File

@@ -208,117 +208,6 @@ docker run --name bgutil-provider --restart unless-stopped -d -p 4416:4416 brain
cd ~/auto-archiver
poetry run python src/auto_archiver --config secrets/orchestration-aa-demo-main.yaml
## HERE
## OLD
sudo pip install pytest-playwright
# x virtual frame buffer
# for playwright (screenshotter) to run in headed mode
sudo apt install xvfb -y
sudo playwright install-deps
sudo apt-get install libvpx7 -y
TARGET_USER="dave"
sudo -i -u $TARGET_USER bash << EOF
playwright install
EOF
#sudo apt-get install libgbm1
cat <<EOT >> run-auto-archive
*/2 * * * * dave /home/dave/auto-archiver/infra/cron_pluro.sh
EOT
sudo mv run-auto-archive /etc/cron.d
sudo chown root /etc/cron.d/run-auto-archive
sudo chmod 600 /etc/cron.d/run-auto-archive
sudo reboot now
## DM 16th Oct 2024
# am using playwright as a general screenshotter
# so need to install the dependencies for that
sudo pip install pytest-playwright
sudo apt install xvfb -y
# playwright install
##
## FB Archiver from here down!!!!
##
# specialised version of the archiver which runs on proxmox currently only
cat <<EOT >> fb-run-auto-archive
#* * * * * dave /home/dave/auto-archiver/infra/cron_fb.sh
EOT
# docker
# https://docs.docker.com/engine/install/ubuntu/
sudo apt-get update -y
sudo apt-get install ca-certificates curl gnupg lsb-release -y
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo chmod a+r /etc/apt/keyrings/docker.gpg
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y
# docker as non sudo https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user
# cron runs as user dave
sudo usermod -aG docker dave
sudo pip install pytest-playwright
# x virtual frame buffer
# for playwright (screenshotter) to run in headed mode
sudo apt install xvfb -y
# **need to run playwright install to download chrome**
# **NOT TESTED**
##sudo playwright install-deps
#sudo apt-get install libgbm1
sudo reboot now
# MONITORING
# syslog in /var/log/syslog
# cron output is in /home/dave/log.txt
# sudo service cron restart
```