Jump to content

Installing Utorrent Server on Debian


huss

Recommended Posts

Hi Guys

I am hoping someone can help me please.

I want to install µTorrent Server 3.0 alpha on a Debian OS, but I'm not sure if it should be on a desktop gui, a webserver or just a standard server.

Also I cant seem to find any content, regarding the install. should I just extract the file and then run './utserver' to start it, then access via webui.

or is there a certain folder I should install/run it from etc..

I tried reading the pdf, but it didn't help me much.

If anyone could please tell me of a guide I could follow to set it all up, or could even help me get started that would be greatly appreciated....

THANKS

Link to comment
Share on other sites

  • 4 weeks later...

Hi!

I wrote a little init.d script from skeleton for uTorrent Server.

Maybe you can use it on Debian and Ubuntu.

You can download from here: http://www.sitedesign.hu/download/utserver.tgz

2 files included in the TGZ:

- utserver - this is the init.d script

- utserver.conf - this is a minimalist configuration file

So thats how i do:


# wget http://download.utorrent.com/linux/utorrent-server-3.0-24118.tar.gz
# wget http://www.sitedesign.hu/download/utserver.tgz
# mkdir /etc/utserver
# tar xzf utorrent-server-3.0-24118.tar.gz
# tar xzf utserver.tgz
# cd utorrent-server-v3_0
# cp webui.zip /etc/utserver/
# chmod +x utserver
# cp utserver /usr/bin/
# cd ..
# cp utserver /etc/init.d/
# cp utserver.conf /etc/utserver/
# /etc/init.d/utserver start

Before you start downloading you have to set the download directories, because the default is /usr/bin

(because utserver is in /usr/bin).

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

please help newbie!!

I have dabian on ps3 I downloaded the utorrent server-3.0

I extracted the file and i have: utorrent-server-3.024733.tar.gz

I don't know how to change directory,permission and where is chmod +x utserver

how this work is it like on windows?

Thank You cocucka, Very Much Appreciated :)
unpack

tar xzf utorrent-server-3.0-23418.tar.gz

Change directory

cd utorrent-server-v3_0

Change permissions

chmod +x utserver

Run

./utserver

GUI available at http://yourip:8080/gui or http://localhost:8080/gui

Login admin

Password empty

Link to comment
Share on other sites

Due to security reasons it's not recommended to run such daemon as utorrent with root privileges. So, It'll be beter to modify chris476's script. Change lines:

PIDFILE=/var/run/$NAME.pid
(...)
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
(...)
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \

to:

PIDFILE=/var/run/$NAME/$NAME.pid
(...)
start-stop-daemon --start --quiet --pidfile $PIDFILE --chuid torrent --exec $DAEMON --test > /dev/null \
(...)
start-stop-daemon --start --quiet --pidfile $PIDFILE --chuid torrent --exec $DAEMON -- \

Exec as fallowing:


mkdir /var/run/utserver/
adduser torrent
chmod torrent:torrent /var/run/utserver
chmod torrent:torrent /etc/utserver

(or you can make and use directory in torrent's home: ~torrent/.utserver/ and put utserver.conf in there)

Now remember to configure utorrent to use directories with rw rights for user torrent for downloading and storing .torrent files.

I don't supose utorrent auto-update would work with this configuration, because I have no idea what method does it use to update itself. Possibly you can just put the utserver binary in /usr/bin/userver/ dir, change DAEMON=/usr/bin/$NAME to DAEMON=/usr/bin/$NAME/$NAME in init.d script, and chown torrent:torrent /usr/bin/utserver, but personally I'm avoiding any kind of auto-updating if possible.

Naturally port for GUI must be >1024

Just finished testing and it works fine.

BTW: anyone got any idea how to catch utserver messages into /var/log/utserver.log?

Link to comment
Share on other sites

I don't supose utorrent auto-update would work with this configuration, because I have no idea what method does it use to update itself.

uTorrent-style auto-update won't be supported, because the contents of the package will probably be installed as read-only to non-privileged users. We'll probably set up a package repository that you can register on your computer, so that you can use apt-get upgrade.

BTW: anyone got any idea how to catch utserver messages into /var/log/utserver.log?

Use the -logfile argument of the utserver binary - see the included documentation.

Link to comment
Share on other sites

Hello, I've got a problem:

Started with this:

alex607@debian:~/downloads/utorrent-server-v3_0$ ./utserver

./utserver: /lib/i686/cmov/libc.so.6: version `GLIBC_2.11' not found (required by ./utserver)

Here http://packages.debian.org/sid/glibc-2.11-1 i found that file is available with lib6(it's allready installed). Can you tell me, what's the problem, please?

Link to comment
Share on other sites

  • 2 months later...

Another Debian based package is available here: http://dl.dropbox.com/u/24928836/utserver/deb/utorrent-server_3.0-25053_i386.deb

It attempts to closely adhere to the Linux Filesystem Hierarchy Standard (FHS) as promulgated here: http://www.pathname.com/fhs/pub/fhs-2.3.html

It also creates a user named "utorrent" as a member of the group "users", and runs the daemon as that user and group.

The hierarchy is:

/opt/utorrent/server/bin/utserver

/opt/utorrent/server/docs/<various docs>

/etc/opt/utorrent/server/utserver.conf

/var/opt/utorrent/server/{log,settings,torrents}

Hope it's useful for someone! :D :cool:

Link to comment
Share on other sites

Yeah very nice!! Odd though... it seems that the config file isn't applied for me (Ubuntu 11.04)

Here's what I've tried so far,

* edit the port and restart the service. (always runs on port 8080).

* looked at the init.d script and it seems to reference the correct file (/etc/opt/utorrent/server/utserver.conf)

* looked at the logs /var/opt/utorrent/server/log/utserver.log (updates when I restart service, nothing about config file...)

Any ideas?

Link to comment
Share on other sites

Oh! After reading the docs a bit more closely... (page 11/12 of the PDF) under section 'Reloadable Settings' only some options are applied from the config file every time. The others are loaded from settings.dat. I stopped to service and then deleted settings.dat. Once its generated... the config file is pretty much ignored except for following settings.

• dir_request

• disk_cache_max_size

• finish_cmd

• logmask

• preferred_interface

• state_cmd

• ut_webui_dir

Link to comment
Share on other sites

Yes, can be confusing but that's the way it is. The config file is more or less useless except for initial setup. Once you get the webui to connect then it is simplest to use that to change your settings. Frustrating when you need to change a setting because you can't connect to the webui!

Link to comment
Share on other sites

The config file is more or less useless except for initial setup. Once you get the webui to connect then it is simplest to use that to change your settings. Frustrating when you need to change a setting because you can't connect to the webui!

You can request the running program to reread its configuration file by either:

* sending a hangup signal to the process (less preferable since this is an asynchronous request method)

* if you have set up the dir_request configuration setting to refer to a directory, you can create (touch is OK) a file named rcf.utmr (more preferable since the program handles the request synchronously and thus more safely)

That allows you to edit the configuration file and have the running program reread settings that can be reread.

Link to comment
Share on other sites

Thank you very much Superman! I had a hard time understanding the daemon configuration and autostartup. Thank you very much for making it as simple as:

1. wget http://dl.dropbox.com/u/24928836/utserver/deb/utorrent-server_3.0-25053_i386.deb

2. "dpkg -i utorrent-server_3.0-25053_i386.deb"

Thank you again! You have no idea how many times I have tried and failed at this.

Another Debian based package is available here: http://dl.dropbox.com/u/24928836/utserver/deb/utorrent-server_3.0-25053_i386.deb

It attempts to closely adhere to the Linux Filesystem Hierarchy Standard (FHS) as promulgated here: http://www.pathname.com/fhs/pub/fhs-2.3.html

It also creates a user named "utorrent" as a member of the group "users", and runs the daemon as that user and group.

The hierarchy is:

/opt/utorrent/server/bin/utserver

/opt/utorrent/server/docs/<various docs>

/etc/opt/utorrent/server/utserver.conf

/var/opt/utorrent/server/{log,settings,torrents}

Hope it's useful for someone! :D :cool:

Link to comment
Share on other sites

Update: There was a small issue with Superman710e's .deb package... The daemon could be stated manually but did not automatically start at reboot. To fix, simply type the following after installing:

1. update-rc.d utserver defaults

2. do a "shutdown -r now" to restart and test to see if it starts up by itself this time.

Worked for me! :D

Link to comment
Share on other sites

Update: There was a small issue with Superman710e's .deb package... The daemon could be stated manually but did not automatically start at reboot. To fix, simply type the following after installing:

1. update-rc.d utserver defaults

2. do a "shutdown -r now" to restart and test to see if it starts up by itself this time.

Worked for me! :D

That's by design. No package should automatically enable a service that can serve on the network without the administrators knowledge. At least in my books. There is a message after installation about the service available, and you can decide what to do at that point! Maybe it doesn't show in the .deb, I mainly design the .rpm and then convert with a few tweaks. :D

Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...
Another Debian based package is available here: http://dl.dropbox.com/u/24928836/utserver/deb/utorrent-server_3.0-25053_i386.deb

It attempts to closely adhere to the Linux Filesystem Hierarchy Standard (FHS) as promulgated here: http://www.pathname.com/fhs/pub/fhs-2.3.html

It also creates a user named "utorrent" as a member of the group "users", and runs the daemon as that user and group.

The hierarchy is:

/opt/utorrent/server/bin/utserver

/opt/utorrent/server/docs/<various docs>

/etc/opt/utorrent/server/utserver.conf

/var/opt/utorrent/server/{log,settings,torrents}

Hope it's useful for someone! :D :cool:

Superman710e

I noticed I have no /opt/utorrent/server/bin/utserver after using your script and how would I enable and use rss ablities with your installation? What would be the proper start, stop and restart methods with your installation?

Finally... would there be a way to call an external script such as torrentexpander?

Link to comment
Share on other sites

Another Debian based package is available here: http://dl.dropbox.com/u/24928836/utserver/deb/utorrent-server_3.0-25053_i386.deb

It attempts to closely adhere to the Linux Filesystem Hierarchy Standard (FHS) as promulgated here: http://www.pathname.com/fhs/pub/fhs-2.3.html

It also creates a user named "utorrent" as a member of the group "users"' date=' and runs the daemon as that user and group.

The hierarchy is:

/opt/utorrent/server/bin/utserver

/opt/utorrent/server/docs/<various docs>

/etc/opt/utorrent/server/utserver.conf

/var/opt/utorrent/server/{log,settings,torrents}

Hope it's useful for someone! :D :cool:[/quote']

Superman710e

I noticed I have no /opt/utorrent/server/bin/utserver after using your script and how would I enable and use rss ablities with your installation? What would be the proper start, stop and restart methods with your installation?

Finally... would there be a way to call an external script such as torrentexpander?

What script? There is no script, it's an installation package. If the binary doesn't exist in that path then it must not have installed properly.

There is an init script provided that installs at /etc/init.d/utserver. You can enable to run on every boot by executing:

update-rc.d utserver defaults

You can manually use the script by executing (pick one of the options in the parenthesis):

/etc/init.d/utserver (start|stop|restart)

As for RSS, you have to read the documentation. If you install the custom-webui it has a web interface for it. Otherwise you'll have to read through the forums and figure it out.

Again, also with executing external scripts, it can be done, you'll have to read through the docs as well. It can be configured through the web interface or in the utserver.conf file.

Also, the link in that post is probably old. Try following the link in my signature for more up-to-date packages.

Take care!

:cool:

PS: Sorry for the delay, I never received the notice although I'm subscribed to this thread. I don't come here very often since the uTorrent release for Linux are few and far between...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...