How to run multiple instances of transmission daemon in linux debian or ubuntu

6
Archive of “Mencatat Info” www.mencatat.info How to Run Multiple Instances of Transmission Daemon Server © Mencatat Info 2014 How to Run Multiple Instances of Transmission Daemon in Linux Debian or Ubuntu By : Gusti Tammam ( [email protected] ) Translation by Google Translate | Please contribute for better translation, send email to [email protected] Introduction ransmission is the most popular torrent client used by linux vps users. Apart from the view that a simple, easy and elegant, most users use transmission because the installation is not so complicated. Tranmission is equipped with a built-in web server with the default port is 9091. Through that port We can access the web interface of the transmission through our favorite web browser. Usually the structures that we need to enter the URL in the web browser when they want to access the transmission is as follows: {server ip or domain: port transmission}. And the picture below shows what the web interface of the transmission look like. T Example : Our server has an IP 123.45.678.9 and its domain is www.doma.in And transmission running on port 9091 So we can access transmission with enter this URL below to web browser : http://123.45.678.9:9091 http://www.doma.in:9091

Transcript of How to run multiple instances of transmission daemon in linux debian or ubuntu

Page 1: How to run multiple instances of transmission daemon in linux debian or ubuntu

Archive of “Mencatat Info” www.mencatat.info

How to Run Multiple Instances of Transmission Daemon Server © Mencatat Info 2014

How to Run Multiple Instances of

Transmission Daemon in Linux Debian or

Ubuntu By : Gusti Tammam ( [email protected] )

Translation by Google Translate | Please contribute for better translation, send email to [email protected]

Introduction

ransmission is the most popular torrent client used by linux vps users. Apart from the

view that a simple, easy and elegant, most users use transmission because the

installation is not so complicated.

Tranmission is equipped with a built-in web server with the default port is 9091. Through

that port We can access the web interface of the transmission through our favorite web

browser. Usually the structures that we need to enter the URL in the web browser when they want

to access the transmission is as follows: {server ip or domain: port transmission}.

And the picture below shows what the web interface of the transmission look like.

T

Example : Our server has an IP 123.45.678.9 and its domain is www.doma.in And transmission running on port 9091

So we can access transmission with enter this URL below to web browser :

http://123.45.678.9:9091 http://www.doma.in:9091

Page 2: How to run multiple instances of transmission daemon in linux debian or ubuntu

Archive of “Mencatat Info” www.mencatat.info

How to Run Multiple Instances of Transmission Daemon Server © Mencatat Info 2014

In general, in a server, there is only one transmission is running. But in fact you can also

run multiple transmissions simultaneously in a single server. Here is the reason why people need to

run multiple transmissions at the same time in a single server:

Want to share a server with friends or relatives

Want to sell leechbox

Need privacy when using transmission for multiple user

Etc.

In this article, we discuss the steps to run the multi-transmission in a single server with the following steps:

1. Install transmission

2. Make sure the transmission is turned off

3. Perform duplicate configuration files

4. Perform configuration on each file that was copied

5. Turning on all of transmissions

6. Done

Page 3: How to run multiple instances of transmission daemon in linux debian or ubuntu

Archive of “Mencatat Info” www.mencatat.info

How to Run Multiple Instances of Transmission Daemon Server © Mencatat Info 2014

Explanation

Installation of Transmission Daemon I assume transmission was not installed in your server , therefore please do the installation

as follows:

# add-apt-repository ppa:transmissionbt/ppa

# apt-get update

# apt-get install transmission-daemon

Make Sure The Transmission is Turned Off To check the status of the transmission-daemon, please run the following command:

# /etc/init.d/transmission-daemon status

If output is : [ ok ] transmission-daemon is running. That means transmission is

active. So, you need to turn it off first with the following command :

# /etc/init.d/transmission-daemon stop

So it would appear the output [ ok ] Stopping bittorrent daemon: transmission-

daemon. That means transmission-daemon would be turned off. And when you check the status

back, the output message is [FAIL] transmission-daemon is not running ... failed!

Duplicate the Configuration File To run more than one transmission, we need to duplicate original transmission configuration

files. The files will be copied are:

/usr/bin/transmission-daemon

/etc/init.d/transmission-daemon

/var/lib/transmission-daemon

/etc/transmission-daemon

/etc/default/transmission-daemon

The command below will duplicate the files from the transmission-daemon to the transmission-daemon2

# cp /usr/bin/transmission-daemon /usr/bin/transmission-daemon2 # cp /etc/init.d/transmission-daemon /etc/init.d/transmission-daemon2 # cp -a /var/lib/transmission-daemon /var/lib/transmission-daemon2 # cp -a /etc/transmission-daemon /etc/transmission-daemon2 # cp /etc/default/transmission-daemon /etc/default/transmission-daemon2 # chmod –R 777 /usr/bin/transmission-daemon2 # chmod –R 777 /etc/init.d/transmission-daemon2 # chmod –R 777 /var/lib/transmission-daemon2 # chmod –R 777 /etc/transmission-daemon2 # chmod –R 777 /etc/default/transmission-daemon2

Page 4: How to run multiple instances of transmission daemon in linux debian or ubuntu

Archive of “Mencatat Info” www.mencatat.info

How to Run Multiple Instances of Transmission Daemon Server © Mencatat Info 2014

Then create a symbolic link with the following command:

# ln -sf /etc/transmission-daemon2/settings.json /var/lib/transmission-daemon2/info/settings.json

Perform configuration on Duplicate Files in Earlier Edit file /etc/init.d/transmission-daemon2 :

Find this word

NAME = transmission-daemon

Change into this

NAME = transmission-daemon2

Edit file /etc/transmission-daemon2/settings.json :

To change the download directory, Find this word

"download-dir": "/var/lib/transmission-daemon/downloads"

Change into this

"download-dir": "path to the download directory for transmission-daemon2"

To change the peer-port, Find this word

peer-port ": 51413,

Increase the value of peer-port 1 level (peer-port should not be the same for each transmission, within a single server)

peer-port ": 51414,

To change the password, Find this word

"rpc-password": "{745678907320987632076238d58a4510eda06ff7sCZfdZ",

Change into this

"rpc-password": "desire-new-password",

To change the username, Find this word

"rpc-username": "transmission",

Change into this

"rpc-username": "desire-new-user",

To change the port transmission, Find this word

rpc-port ": 9091,

Increase the value of rpc-port 1 level (rpc-port should not be the same for each transmission, within a single server)

rpc-port ": 9092,

To open access to all IP, Find this word

"rpc-whitelist-enabled": true,

Change into this

"rpc-whitelist-enabled": false,

Edit file /etc/default/transmission-daemon2 :

Find this word CONFIG_DIR="/var/lib/transmission-daemon/info"

Change into this CONFIG_DIR="/var/lib/transmission-daemon2/info"

Page 5: How to run multiple instances of transmission daemon in linux debian or ubuntu

Archive of “Mencatat Info” www.mencatat.info

How to Run Multiple Instances of Transmission Daemon Server © Mencatat Info 2014

Running Up All Transmission Before re-run all transmission, we need to add a rule to the transmission-daemon2 that we

just created earlier.

The command below will make transmission-daemon2 automcally run when server starting

up :

# update-rc.d transmission-daemon2 defaults

Now do the following command to activate all transmission-daemon:

/etc/init.d/transmission-daemon start

/etc/init.d/transmission-daemon2 start

Done Finally reached the final stage, ie access via a browser:

To access the transmission 1, please go to the URL: http: // ip-or-domain-server: 9091

To access the transmission 2, please go to the URL: http: // ip-or-domain-server: 9092

Conclusion

In principle to run multiple transmissions simultaneously is duplicating the configuration file, just do not get there the same configuration or overlapping. So you need

to do the editing on some configuration files after menduplikatnya.

By doing the above methods, you can run a lot of transmission in the server as much as you want, just do not forget to pay attention to the ability of the server. Was it able to run a lot of transmission.

Page 6: How to run multiple instances of transmission daemon in linux debian or ubuntu

Archive of “Mencatat Info” www.mencatat.info

How to Run Multiple Instances of Transmission Daemon Server © Mencatat Info 2014

References

http://ubuntuforums.org/showthread.php?t=1605906

General Discussion and Questions

Please send an email to [email protected]