Dépendances.
|
sudo apt install mono-devel mediainfo sqlite3 -y |
Installation.
Sonarr dispose d’un repository pour Ubuntu. (repository Ubuntu 18.04 « bionic » au moment où j’écris ces lignes)
En SSh, taper les lignes suivantes :
|
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0xA236C58F409091A18ACA53CBEBFF6B99D9B78493 echo "deb http://apt.sonarr.tv/ master main" | sudo tee /etc/apt/sources.list.d/sonarr.list sudo apt update sudo apt install nzbdrone |
Création du service Sonarr.
|
sudo nano /lib/systemd/system/sonarr.service |
Coller le texte ci-dessous.
|
[Unit] Description=Sonarr Daemon After=network.target [Service] User=<span style="color: #ff0000;">[su_user field="display_name" default="scotch"]</span> Group=<span style="color: #ff0000;">[su_user field="display_name" default="scotch"]</span> Type=simple ExecStart=/usr/bin/mono /opt/NzbDrone/NzbDrone.exe -nobrowser TimeoutStopSec=20 KillMode=process Restart=on-failure [Install] WantedBy=multi-user.target |
Ctrl + X pour quitter nano.
« Y » pour enregistrer les modifications.
Touche Entrée pour confirmer.
Taper la ligne suivante pour activer le service au démarrage.
|
sudo systemctl enable sonarr.service |
Démarrage du service.
|
sudo systemctl start sonarr.service |
Vérification de l’état du service.
|
sudo systemctl status sonarr.service |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
<span style="color: #00ff00;">●</span> sonarr.service - Sonarr Daemon Loaded: loaded (/lib/systemd/system/sonarr.service; enabled; vendor preset: enabled) Active: <span style="color: #00ff00;">active (running)</span> since Thu 2019-05-09 06:34:18 UTC; 16s ago Main PID: 18077 (mono) Tasks: 14 (limit: 4516) Memory: 101.0M CGroup: /system.slice/sonarr.service └─18077 /usr/bin/mono /opt/NzbDrone/NzbDrone.exe -nobrowser mai 09 06:34:21 MediaCenter mono[18077]: [Info] update_animetosho_url: Starting migration to 121 mai 09 06:34:21 MediaCenter mono[18077]: [Info] MigrationLogger: *** 129: add_relative_original_path_to_episode_file migrating *** mai 09 06:34:21 MediaCenter mono[18077]: [Info] add_relative_original_path_to_episode_file: Starting migration to 129 mai 09 06:34:21 MediaCenter mono[18077]: [Info] MigrationLogger: *** 130: episode_last_searched_time migrating *** mai 09 06:34:21 MediaCenter mono[18077]: [Info] episode_last_searched_time: Starting migration to 130 mai 09 06:34:21 MediaCenter mono[18077]: [Info] OwinHostController: Listening on the following URLs: mai 09 06:34:21 MediaCenter mono[18077]: [Info] OwinHostController: http://*:8989/ mai 09 06:34:21 MediaCenter mono[18077]: [Info] NancyBootstrapper: Starting Web Server mai 09 06:34:22 MediaCenter mono[18077]: [Info] ProfileService: Setting up default quality profiles mai 09 06:34:22 MediaCenter mono[18077]: [Warn] MonoDebugCheck: Mono is not running with --debug switch |