mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 13:29:42 +02:00
Do not need to be installed with pandora user
This commit is contained in:
parent
967b22e16d
commit
830ebbc3d3
2 changed files with 4 additions and 6 deletions
|
@ -15,11 +15,9 @@ during the installation, select (x) Ubuntu Server (minimized)
|
||||||
|
|
||||||
Choose to "install OpenSSH server"
|
Choose to "install OpenSSH server"
|
||||||
|
|
||||||
Create an intial user called *pandora*
|
|
||||||
|
|
||||||
That's all, no other packages needed
|
That's all, no other packages needed
|
||||||
|
|
||||||
After reboot, login with the user *pandora* created during the install and type :
|
After reboot, login and type :
|
||||||
|
|
||||||
sudo apt install -y git
|
sudo apt install -y git
|
||||||
git clone https://github.com/dbarzin/pandora-box
|
git clone https://github.com/dbarzin/pandora-box
|
||||||
|
|
|
@ -168,8 +168,8 @@ apt --fix-broken install -y
|
||||||
apt install -y fim pmount psmisc vim
|
apt install -y fim pmount psmisc vim
|
||||||
|
|
||||||
# Python libraries
|
# Python libraries
|
||||||
su - $SUDO_USER -c "python -m venv /home/$SUDO_USER/python"
|
su - $SUDO_USER -c "python -m venv /home/$SUDO_USER/.local"
|
||||||
su - $SUDO_USER -c "python/bin/pip install pypandora psutil pyudev"
|
su - $SUDO_USER -c "./.local/bin/pip install pypandora psutil pyudev"
|
||||||
|
|
||||||
# create /media/box folder
|
# create /media/box folder
|
||||||
if [ ! -d "/media/box" ];
|
if [ ! -d "/media/box" ];
|
||||||
|
@ -244,7 +244,7 @@ echo "ExecStart=-/sbin/agetty --autologin pandora --noclear %I $TERM" >> /etc/sy
|
||||||
# echo "ExecStart=-su - pandora -c ./pandora-box/pandora-box.py" >> /etc/systemd/system/getty@tty1.service.d/override.conf
|
# echo "ExecStart=-su - pandora -c ./pandora-box/pandora-box.py" >> /etc/systemd/system/getty@tty1.service.d/override.conf
|
||||||
|
|
||||||
# Start pandora from bashrc
|
# Start pandora from bashrc
|
||||||
echo "PATH=\"\$HOME/python/bin:\$PATH\"" >> /home/$SUDO_USER/.profile
|
# echo "PATH=\"\$HOME/python/bin:\$PATH\"" >> /home/$SUDO_USER/.profile
|
||||||
|
|
||||||
# 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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue