Changes between Version 21 and Version 22 of UserGuide/ThinClient


Ignore:
Timestamp:
10/01/2014 10:45:18 AM (10 years ago)
Author:
Cas
Comment:

cleanup page

Legend:

Unmodified
Added
Removed
Modified
  • UserGuide/ThinClient

    v21 v22  
    55Deluge can be setup in such a way that a Deluge daemon, `deluged`, can be setup on a central computer, `server`, which can then be accessed and controlled by other computers, `clients`, using one of Deluge's UIs. 
    66 
    7  * From Deluge 1.2 onwards, all communication between the GTK UI and daemon is encrypted so SSH tunnelling is not a requirement.  
    8  
    97 * Both the Deluge client and daemon need to be the same major versions, i.e. both `1.2.x` or both `1.3.x`. 
    10  
    11  * Windows users should append `.exe` to Deluge commands, e.g. `deluged.exe`, `deluge-console.exe` 
    12  
    13 ------- 
    148 
    159== Deluge Daemon Setup == 
    1610 
    17 The Deluge daemon `deluged` should be installed on the central server that you want your other computers to connect to.  
     11The Deluge daemon `deluged` and `deluge-console` should be [wiki:Installing installed] on the server.  
    1812 
    19 Follow the [wiki:Installing install] instructions to install `deluged` and `deluge-console` as a minimum on the server. 
     13See the [UserGuide/Service service guides] to run `deluged` as a service so that it starts/stops on server boot/shutdown. Substitute any daemon start or stop commands below with the appropriate service commands. 
    2014 
    21 To run `deluged` as a service so that it starts/stops on server boot/shutdown, see these [UserGuide/InitScript guides]. Replace any daemon start or stop commands below with the appropriate service commands. 
    22  
    23 If you have problems setting up `deluged` [wiki:Faq#HowdoIstartthedaemonwithloggingenabled enable logging] and check for errors. 
     15To debug any problems setting up `deluged` [wiki:Faq#HowdoIstartthedaemonwithloggingenabled enable logging] and check for errors. 
    2416 
    2517=== Create Default Config === 
    2618 
    27 To create the config directory and populate with the default files, run and then stop `deluged`: 
     19To create the config directory and populate with the default files, run and then stop `deluged`, if using a service substitute appropriate commands: 
    2820{{{ 
     21#!sh 
    2922deluged 
    30 pkill deluged 
     23killall deluged 
    3124}}} 
    3225 
     26''Note: The config location is either the [wiki:Faq#WheredoesDelugestoreitssettingsconfig default location] with reference to the `user` that `deluged` is running as. Alternatively if using a service it will be specified in the service config files with `-c <path>` option.'' 
    3327 
    3428=== Add User to the authentication file === 
    3529 
    36 The next step is to create a Deluge user for clients/UIs to access the daemon remotely by editing the authentication file, `auth`, located in your [wiki:Faq#WheredoesDelugestoreitssettingsconfig config directory]. 
     30Create a Deluge user for clients/UIs to access the daemon by editing the authentication file, `auth`, located in the above config location.  
    3731 
    38 The `auth` file should contain lines with only '`<username>:<password>:<level>`', replacing `<username>` and `<password>` with your choice and `<level>` with the desired [UserGuide/Authentication authentication level].  
     32The `auth` file should consist of lines of `<username>:<password>:<level>`. Replace <username> and <password> with your choice and <level> with the desired [UserGuide/Authentication authentication level].  
    3933 
    4034You can use your favourite text editor to achieve this or can be done with a one-line echo command e.g.: 
     
    4640=== Enable Remote Connection === 
    4741 
    48 We will use `deluge-console` to configure `deluged` to accept connections from computers other than `localhost`. 
     42We will use `deluge-console` to configure `deluged` to accept connections from computers other than `localhost`. For `SSH Tunnelling` you do not need to enable remote connections so this step can be skipped. 
    4943 
    50  ''Note: For `SSH Tunnelling` you do not need to enable remote connections so this step can be skipped.'' 
    51   
    52 Run the Console UI in non-interactive mode to set then view the `allow_remote` option with these commands: 
     44Using the Console in command-line mode, set the `allow_remote` option and then verify with these commands: 
    5345{{{ 
    5446#!sh 
     
    5749}}} 
    5850 
    59 If you are running `deluged` under another user you will need to temporarily login as that user to enable deluge-console to access that daemon's config: 
     51If you are running `deluged` under another user (e.g. `deluge`) you will need to temporarily login as that user to enable deluge-console to access that daemon's config: 
    6052{{{ 
     53#!sh 
    6154su --shell /bin/bash --login deluge 
    6255}}} 
    6356 
    64 As a last resort you can edit `core.conf` in the config and change "allow_remote" from `false` to `true`. Note that editing conf files can only be done with `deluged` stopped. 
     57Alternatively you can edit `core.conf` (`deluged` must not be running) in the config and change `allow_remote` from `false` to `true`. 
    6558 
    66 === Start Daemon ===  
     59=== Start Deluge Daemon ===  
    6760 
    6861{{{ 
    69 #!sh 
    7062deluged 
    7163}}} 
    7264 
    73  
    7465=== Verify Server IP Address === 
    7566 
    76 You will need to know the server's IP address for setting up the client(s). If you do not know your server's private or public IP address use these commands: 
    77  
    78  1. Private IP: 
    79 {{{ 
    80 #!sh 
    81 hostname -I 
    82 }}} 
    83  
    84  1. Public IP: 
    85 {{{ 
    86 #!sh 
    87 curl ifconfig.me 
    88 }}} 
     67You will need to know the server's IP address for configuring clients, for private IP: `hostname -I` or public IP: `curl ifconfig.me` 
    8968 
    9069Congratulations! The server is now setup for remote client access. 
     
    154133 
    155134== Create SSH Tunnel == 
    156 Open up a terminal and enter the following, replacing `<server>` with the public IP of your server. 
     135 
     136From Deluge 1.2 onwards, all communication between the GTK UI and daemon is encrypted so SSH tunnelling is not a requirement.  
     137 
     138In a Terminal, enter the following, replacing `<server>` with the public IP of your server. 
    157139{{{ 
    158140#!sh 
    159141ssh -fNL 127.0.0.2:58846:localhost:58846 <server> 
    160142}}} 
    161 We use `127.0.0.2` instead of `localhost` so that Deluge client knows that we are connecting to a remote daemon. You will encounter problems otherwise with file browsing at it will assume to be on local client machine rather than remote server. 
     143Note: We use `127.0.0.2` instead of `localhost` so that Deluge client knows that we are connecting to a remote daemon. Otherwise you will encounter problems with file browsing as it will assume to be on local client machine rather than remote server. 
    162144 
    163145If you get the error '`bind: Can't assign requested address`', you need to add `127.0.0.2` as an alias for the loopback device: