diff --git a/INSTALL.md b/INSTALL.md index 34c2d47..a3f43c7 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -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) diff --git a/install.sh b/install.sh index 6d5e36f..a665605 100755 --- a/install.sh +++ b/install.sh @@ -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."