Changes between Version 1 and Version 2 of Installing/Linux/Debian/Jessie


Ignore:
Timestamp:
08/21/2014 12:08:00 PM (9 years ago)
Author:
Cas
Comment:

remove duplicated instructions

Legend:

Unmodified
Added
Removed
Modified
  • Installing/Linux/Debian/Jessie

    v1 v2  
    1 = Debian Jessie (testing) with systemd = 
     1= Debian Jessie = 
    22 
    33This describes the install of deluged for a headless server with webui running Debian Jessie using the default package version of deluge (this means you won't get an up to date version, but it'll be updated automatically with your system) 
     
    1010apt-get install deluged deluge-web 
    1111}}} 
    12 (Don't use the `deluge-webui` package anymore) 
    1312 
    14 Create a new user to run deluged: 
    15 {{{ 
    16 adduser --disabled-password --system --home /opt/deluge --gecos "Deluge server" --group deluge 
    17 }}} 
    18  
    19 Get rid of the old init files (we'll use systemd) if they exist 
    20 {{{ 
    21 mkdir -p /opt/deluge/bkup/etc/init.d 
    22 mkdir -p /opt/deluge/bkup/etc/default 
    23 mv /etc/init.d/deluged /opt/deluge/bkup/etc/init.d 
    24 mv /etc/default/deluged /opt/deluge/bkup/etc/default 
    25 }}} 
    26 (there might be a restart required to get rid of the old setting from /etc/default/deluged that prevents the service to stat up) 
    27  
    28 Create new systemd service files similar as described [UserGuide/InitScript/systemd here] (but slightly modified; save them in `/etc/systemd/system`): 
    29  
    30 `nano /etc/systemd/system/deluged.service` 
    31 {{{ 
    32 [Unit] 
    33 Description=Deluge Bittorrent Client Daemon  
    34 After=network.target 
    35  
    36 [Service] 
    37 User=deluge 
    38 Type=simple 
    39 ExecStart=/usr/bin/deluged -d -c /opt/deluge -L error -l /var/log/deluge/deluged.log 
    40  
    41 [Install] 
    42 WantedBy=multi-user.target 
    43 }}} 
    44  
    45  
    46 `nano /etc/systemd/system/deluge-web.service` 
    47 {{{ 
    48 [Unit] 
    49 Description=Deluge Bittorrent Client Web Interface 
    50 After=network.target deluged.service 
    51 Requires=deluged.service 
    52  
    53 [Service] 
    54 User=deluge 
    55 Type=simple 
    56 ExecStart=/usr/bin/deluge-web -c /opt/deluge -L error -l /var/log/deluge/deluged.log 
    57  
    58 [Install] 
    59 WantedBy=multi-user.target 
    60 }}} 
    61  
    62 Touch the log files: 
    63 {{{ 
    64 mkdir /var/log/deluge 
    65 touch /var/log/deluge/deluged.log /var/log/deluge/deluge-web.log  
    66 chown -R deluge:deluge /var/log/deluge* 
    67 }}} 
    68  
    69 Now test the install and create an initial config folder: 
    70 {{{ 
    71 systemctl start deluged 
    72 systemctl status deluged 
    73 }}} 
    74  
    75 The status should return something along `active (running)` in green. There should be several config files and folders in `/opt/deluge`. Stop it again: `systemctl stop deluged` 
    76  
    77  
    78 == Config == 
    79 This part basically sums up [UserGuide/ThinClient], [UserGuide/InitScript] and [UserGuide/Authentication]. 
    80  
    81 Create users with authentication levels (for the GUI applications, NOT for the web frontend): 
    82 {{{ 
    83 echo "AdminAlice:password:10" >> /opt/deluge/auth 
    84 echo "UserBob:password:5" >> /opt/deluge/auth 
    85 echo "WatchingOnlyCarol:password:1" >> /opt/deluge/deluge/auth 
    86 }}} 
    87  
    88 If you are not connecting over ssh, then you should enable remote access. To do so change the according entry (`allow_remote`) in the config file: 
    89 `nano /opt/deluge/.config/deluge/core.conf` 
    90  
    91 Here you can also change ports, incoming files directories and so on if you desire. You could also connect with the web interface or the gui and do the changes there. 
    92  
    93  
    94 == Enable the service == 
    95  
    96 Enable the services to start up on boot: 
    97 {{{ 
    98 systemctl enable deluged 
    99 systemctl enable deluge-web 
    100 }}} 
    101  
    102 Check if it's running with: 
    103 {{{ 
    104 systemctl status deluged 
    105 systemctl status deluge-web 
    106 }}} 
    107 and of course with your webbrower: `http://server:8112` for the web interface and / or with your local deluge install (after disabling classic mode under `Preferences > Interface`), 
    108 add your server ip, port (default 58846), username and password. 
    109  
    110 IMPORTANT: change the password of the web interface (default: `deluge`) 
    111  
    112 If it doesn't work check with `systemctl status ...` and double check your access rights. 
    113  
    114 == Caveat == 
    115 If you do a system update `apt-get upgrade` and there's a new version around, it could be that the default init files are regenerated. 
     13For config and systemd service setup see [wiki:UserGuide/InitScript/systemd] and [wiki:UserGuide/ThinClient].