It is a really bad idea to run uTorrent (or any server software for that matter) as root, even if the linked post instructed you to. That is really bad advice. You should create a separate user using adduser
and run uTorrent as that user. You don't even need to install it into /usr/local
, just put uTorrent in the new user's home directory.
Is uTorrent really what you need? It is closed source and hasn't been regularly updated. There are various open-source clients available, even the default Transmission
has a web interface.
Here is how I'd do it. Of course if you want a service etc. you'd need to look that up separately. This is just the very simple version:
$ sudo apt-get -y install libssl0.9.8
$ sudo adduser torrent
$ sudo cp ~/Downloads/utserver.tar.gz /home/torrent/
$ sudo su - torrent
$ ln -s ~/utorrent-server-alpha-v3_3/ ~/utorrent
$ cd ~/utorrent
$ unzip webui
$ mkdir maint torrents.queue torrents.active
$ cat << EOF > ~/utorrent/utserver.conf
dir_root: /home/torrent/utorrent/
ut_webui_dir: /home/torrent/utorrent/webui/
dir_active: /home/torrent/utorrent/torrents.active/
dir_completed: /home/torrent/Downloads/
dir_temp_files: /home/torrent/utorrent/tmp
dir_autoload: /home/torrent/utorrent/torrents.queue/
dir_request: /home/torrent/utorrent/maint
EOF
$ ./utorrent/utserver -settingspath /home/torrent/utorrent/ &
$ exit
Now uTorrent runs as user torrent
, the web UI is available on localhost:8080/gui
, user admin
, no password. Files will be downloaded to /home/torrent/Downloads/
. If you need to download to any other directory, make sure that the torrent
user has write permissions to the directory. If you have a desktop interface installed, you could also run it as your desktop user.
You can stop the server forcibly by issuing sudo pkill utserver
(which will kill uTorrent), or whatever the recommended way to stop it is.
adduser
and run uTorrent as that user. You don't even need to install it into/usr/local
, just put uTorrent in the new user's home directory. – jmiserez Aug 11 '14 at 15:32