Update repositories and install dependencies. This will install mediainfo, unrar and git to pull the repo
Install Python 3:
Debian 9 and newer:
Create medusa user and group medusa. This makes sure that Medusa is isolated and is best practice for security
Clone Medusa git repo
For SysVinit Systems (option 1)
Ubuntu:
Debian:
Make sure your new service has correct permissions
Update and start your new service
For Systemd Systems (Option 2)
Copy systemd service
Make sure your new service has correct permissions
Enable, start, and then check the status of your new service
Add Medusa to startup (optional)
All done, verify that Medusa is accessible at: http://your_ip:8081
Source de l'information : https://github.com/pymedusa/Medusa/wiki/...ian-Ubuntu
Code :
sudo apt-get update && sudo apt-get install unrar git-core openssl mediainfo
Install Python 3:
Debian 9 and newer:
Code :
sudo apt-get install python3
Create medusa user and group medusa. This makes sure that Medusa is isolated and is best practice for security
Code :
sudo addgroup --system medusa
sudo adduser --disabled-password --system --home /var/lib/medusa --gecos "Medusa" --ingroup medusa medusa
Clone Medusa git repo
Code :
sudo mkdir /opt/medusa && sudo chown medusa:medusa /opt/medusa
sudo git clone https://github.com/pymedusa/Medusa.git /opt/medusa
sudo chown -R medusa:medusa /opt/medusa
Ubuntu:
Code :
sudo cp -v /opt/medusa/runscripts/init.ubuntu /etc/init.d/medusa
Debian:
Code :
sudo cp -v /opt/medusa/runscripts/init.debian /etc/init.d/medusa
Code :
sudo chown root:root /etc/init.d/medusa
sudo chmod 644 /etc/init.d/medusa
Code :
sudo update-rc.d medusa defaults
sudo service medusa start
For Systemd Systems (Option 2)
Copy systemd service
Code :
sudo cp -v /opt/medusa/runscripts/init.systemd /etc/systemd/system/medusa.service
Code :
sudo chown root:root /etc/systemd/system/medusa.service
sudo chmod 644 /etc/systemd/system/medusa.service
Code :
sudo systemctl enable medusa
sudo systemctl start medusa
sudo systemctl status medusa
Code :
sudo systemctl enable medusa.service
Source de l'information : https://github.com/pymedusa/Medusa/wiki/...ian-Ubuntu
