Changes between Version 4 and Version 5 of Installing/Linux/Debian/Wheezy


Ignore:
Timestamp:
08/21/2014 11:03:46 AM (10 years ago)
Author:
Cas
Comment:

Reverted to version 2.

Legend:

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

    v4 v5  
    2323apt-get install -t precise libtorrent-rasterbar6 python-libtorrent 
    2424}}} 
    25  
    26  
    27 = Debian Jessie (testing) with systemd = 
    28  
    29 This 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) 
    30  
    31 == Install == 
    32  
    33 To get the binaries, simply do: 
    34 {{{ 
    35 apt-get update 
    36 apt-get install deluged deluge-web 
    37 }}} 
    38 (Don't use the `deluge-webui` package anymore) 
    39  
    40 Create a new user to run deluged: 
    41 {{{ 
    42 adduser --disabled-password --system --home /opt/deluge --gecos "Deluge server" --group deluge 
    43 }}} 
    44  
    45 Get rid of the old init files (we'll use systemd) if they exist 
    46 {{{ 
    47 mkdir -p /opt/deluge/bkup/etc/init.d 
    48 mkdir -p /opt/deluge/bkup/etc/default 
    49 mv /etc/init.d/deluged /opt/deluge/bkup/etc/init.d 
    50 mv /etc/default/deluged /opt/deluge/bkup/etc/default 
    51 }}} 
    52 (there might be a restart required to get rid of the old setting from /etc/default/deluged that prevents the service to stat up) 
    53  
    54 Create new systemd service files similar as described [UserGuide/InitScript/systemd here] (but slightly modified; save them in `/etc/systemd/system`): 
    55  
    56 `nano /etc/systemd/system/deluged.service` 
    57 {{{ 
    58 [Unit] 
    59 Description=Deluge Bittorrent Client Daemon  
    60 After=network.target 
    61  
    62 [Service] 
    63 User=deluge 
    64 Type=simple 
    65 ExecStart=/usr/bin/deluged -d -c /opt/deluge -L error -l /var/log/deluge/deluged.log 
    66  
    67 [Install] 
    68 WantedBy=multi-user.target 
    69 }}} 
    70  
    71  
    72 `nano /etc/systemd/system/deluge-web.service` 
    73 {{{ 
    74 [Unit] 
    75 Description=Deluge Bittorrent Client Web Interface 
    76 After=network.target deluged.service 
    77 Requires=deluged.service 
    78  
    79 [Service] 
    80 User=deluge 
    81 Type=simple 
    82 ExecStart=/usr/bin/deluge-web -c /opt/deluge -L error -l /var/log/deluge/deluged.log 
    83  
    84 [Install] 
    85 WantedBy=multi-user.target 
    86 }}} 
    87  
    88 Touch the log files: 
    89 {{{ 
    90 mkdir /var/log/deluge 
    91 touch /var/log/deluge/deluged.log /var/log/deluge/deluge-web.log  
    92 chown -R deluge:deluge /var/log/deluge* 
    93 }}} 
    94  
    95 Now test the install and create an initial config folder: 
    96 {{{ 
    97 systemctl start deluged 
    98 systemctl status deluged 
    99 }}} 
    100  
    101 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` 
    102  
    103  
    104 == Config == 
    105 This part basically sums up [UserGuide/ThinClient], [UserGuide/InitScript] and [UserGuide/Authentication]. 
    106  
    107 Create users with authentication levels (for the GUI applications, NOT for the web frontend): 
    108 {{{ 
    109 echo "AdminAlice:password:10" >> /opt/deluge/auth 
    110 echo "UserBob:password:5" >> /opt/deluge/auth 
    111 echo "WatchingOnlyCarol:password:1" >> /opt/deluge/deluge/auth 
    112 }}} 
    113  
    114 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: 
    115 `nano /opt/deluge/.config/deluge/core.conf` 
    116  
    117 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. 
    118  
    119  
    120 == Enable the service == 
    121  
    122 Enable the services to start up on boot: 
    123 {{{ 
    124 systemctl enable deluged 
    125 systemctl enable deluge-web 
    126 }}} 
    127  
    128 Check if it's running with: 
    129 {{{ 
    130 systemctl status deluged 
    131 systemctl status deluge-web 
    132 }}} 
    133 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`), 
    134 add your server ip, port (default 58846), username and password. 
    135  
    136 IMPORTANT: change the password of the web interface (default: `deluge`) 
    137  
    138 If it doesn't work check with `systemctl status ...` and double check your access rights. 
    139  
    140 == Cavehat == 
    141 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.