mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 13:29:42 +02:00
fix install
This commit is contained in:
parent
9f5ae528bf
commit
ea4c95be1b
2 changed files with 10 additions and 8 deletions
|
@ -9,7 +9,7 @@ CORE i5 - 8G RAM - 30G disk
|
||||||
Installation
|
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)
|
during the installation, select (x) Ubuntu Server (minimized)
|
||||||
|
|
||||||
|
|
16
install.sh
16
install.sh
|
@ -170,7 +170,7 @@ cd /home/$SUDO_USER/pandora-box
|
||||||
|
|
||||||
# FIM, pmount, psmisc (for killall) and vim
|
# FIM, pmount, psmisc (for killall) and vim
|
||||||
apt --fix-broken install -y
|
apt --fix-broken install -y
|
||||||
apt install -y fim python3-venv pmount psmisc vim
|
apt install -y fim pmount psmisc vim
|
||||||
|
|
||||||
# Python libraries
|
# Python libraries
|
||||||
su - $SUDO_USER -c "./.local/bin/pip install pypandora psutil pyudev"
|
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 daemon-reload
|
||||||
systemctl enable pandora
|
systemctl enable pandora
|
||||||
|
|
||||||
# Do not print messages on console
|
# Autologin user on getty1 at boot
|
||||||
echo "mesg n" >> /home/$SUDO_USER/.bashrc
|
|
||||||
|
|
||||||
# Start Pandora-box on getty1 at boot
|
|
||||||
mkdir -p /etc/systemd/system/getty@tty1.service.d
|
mkdir -p /etc/systemd/system/getty@tty1.service.d
|
||||||
echo "[Service]" > /etc/systemd/system/getty@tty1.service.d/override.conf
|
echo "[Service]" > /etc/systemd/system/getty@tty1.service.d/override.conf
|
||||||
echo "ExecStart=" >> /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=-/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
|
|
||||||
|
|
||||||
# Copy ini file
|
# Copy ini file
|
||||||
su - $SUDO_USER -c "cp ~/pandora-box/pandora-box.ini.curses ~/pandora-box/pandora-box.ini"
|
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
|
# Reboot
|
||||||
echo "You may reboot the server."
|
echo "You may reboot the server."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue