1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-19 05:19:40 +02:00

fix install

This commit is contained in:
didier 2025-02-20 09:07:56 +01:00
parent 9f5ae528bf
commit ea4c95be1b
2 changed files with 10 additions and 8 deletions

View file

@ -9,7 +9,7 @@ CORE i5 - 8G RAM - 30G disk
Installation
------------
Install [Ubuntu 22.04 server LTS](https://ubuntu.com/download/server)
Install [Ubuntu 22.04.1 server LTS](https://ubuntu.com/download/server)
during the installation, select (x) Ubuntu Server (minimized)

View file

@ -170,7 +170,7 @@ cd /home/$SUDO_USER/pandora-box
# FIM, pmount, psmisc (for killall) and vim
apt --fix-broken install -y
apt install -y fim python3-venv pmount psmisc vim
apt install -y fim pmount psmisc vim
# Python libraries
su - $SUDO_USER -c "./.local/bin/pip install pypandora psutil pyudev"
@ -237,18 +237,20 @@ sed -i "s/_USER_/$SUDO_USER/g" /etc/systemd/system/pandora.service
systemctl daemon-reload
systemctl enable pandora
# Do not print messages on console
echo "mesg n" >> /home/$SUDO_USER/.bashrc
# Start Pandora-box on getty1 at boot
# Autologin user on getty1 at boot
mkdir -p /etc/systemd/system/getty@tty1.service.d
echo "[Service]" > /etc/systemd/system/getty@tty1.service.d/override.conf
echo "ExecStart=" >> /etc/systemd/system/getty@tty1.service.d/override.conf
echo "ExecStart=-/sbin/agetty --autologin $SUDO_USER --noclear %I $TERM" >> /etc/systemd/system/getty@tty1.service.d/override.conf
echo "ExecStart=-su - $SUDO_USER -c ./pandora-box/pandora-box.py" >> /etc/systemd/system/getty@tty1.service.d/override.conf
echo "ExecStart=-/sbin/agetty --autologin $SUDO_USER --noclear %I \$TERM" >> /etc/systemd/system/getty@tty1.service.d/override.conf
# Copy ini file
su - $SUDO_USER -c "cp ~/pandora-box/pandora-box.ini.curses ~/pandora-box/pandora-box.ini"
# Do not print messages on console
echo "mesg n" >> /home/$SUDO_USER/.bashrc
# Exec pandora at login
echo "exec pandora-box/pandora-box.py" >> /home/$SUDO_USER/.bashrc
# Reboot
echo "You may reboot the server."