-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
+++ Installation getestet unter Debian 12 Bookwork (Raspberry Pi OS Lite 64-bit) auf Raspberry Pi 4 +++
apt-get install git vlc mplayer streamripper ffmpeg curl
NTP Server eintragen:
nano /etc/systemd/timesyncd.conf
Überprüfen mit timedatectl
(NTP service: active) und systemctl status systemd-timesyncd
Installation pm2 unter /usr/bin/pm2:
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
apt-get install nodejs
node -v
zeigt node-Version (v22.x.x)
npm -v
zeigt npm-Version
npm install -g pm2 --prefix /usr/lib/node_modules
ln -s /usr/lib/node_modules/bin/pm2 /usr/bin/pm2
pm2 -v
zeigt pm2-version
Repository kopieren:
git clone https://github.com/WebDaD/awas.git
Installation Dependencies:
cd awas
npm install
In /var/awas/database Ordner anlegen:
mkdir archive crons records users
User-File in users kopieren (sonst kein Login möglich):
cp -r /root/awas/database/users/* /var/awas/database/users/
(Benutzer und Passwort: test)
chmod -R 777 /var/awas/
Benutzer für VLC anlegen:
adduser vlc
(Passwort: vlc)
Swap auf 8 GB erhöhen:
nano /etc/dphys-swapfile
CONF_SWAPSIZE=8000
CONF_MAXSWAP=8000
Überprüfen nach Neustart mit htop
Manuell starten und testen:
pm2 start /root/awas/app.js --name awas -- 80
Überprüfen:
pm2 status
Wenn alles ok und korrekt gestartet, Autostart aktivieren:
pm2 save
pm2 startup systemd