[GUIDE] uTorrent Server running on OMV as a user with startup script

  • This guide will setup uTorrent Server to use as an alternative bittorrent client to Transmission.
    After completing these steps, utserver will run at server startup as a user named "utorrent".
    This worked with a fresh install of omv-2.1 on amd64 updated to omv-2.2.1



    Prerequisites:


    1. Create a user named "utorrent" to run uTorrent Server:


    useradd -m -s /bin/bash -U utorrent
    usermod -a -G www-data -G sudo utorrent


    2. Provide write permissions to /var/www to utorrent user:


    chmod g+w /var/www


    3. Deny ssh login to user utorrent


    grep -i 'deny' /etc/ssh/sshd_config


    4. The libssl 0.9.8 package from debian squeeze is required to run uTorrent. Choose your Architecture:

    For amd64 Architecture

    wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl0.9.8_0.9.8o-4squeeze14_amd64.deb
    dpkg -i libssl0.9.8_0.9.8o-4squeeze14_amd64.deb


    For i386 Architecture

    wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl0.9.8_0.9.8o-4squeeze14_i386.deb
    dpkg -i libssl0.9.8_0.9.8o-4squeeze14_i386.deb


    (Note: you can mannually download and install from https://packages.debian.org/squeeze/libssl0.9.8)


    Install uTorrent to boot with system using the utstart startup script as root through ssh:


    1. Donwload and extract the latest uTorrent server tar.gz (utserver)


    wget http://download-new.utorrent.com/endpoint/utserver/os/linux-x64-debian-7-0/track/beta/ --content-disposition
    tar xf utserver.tar.gz


    2. Change dir to the extracted folder


    cd ~/utorrent-server-*


    3. Make dir called utorrent in and move the extracted uTorrent files to /opt/utorrent/


    mkdir /opt/utorrent/
    mv * /opt/utorrent/


    4. Now we need to download or create the utstart file in /opt/utorrent/ using nano (Also attached file here --> utstart.zip)


    Download Method:


    wget https://www.dropbox.com/s/7jejg286ldbmac0/utstart?dl=0 -O /opt/utorrent/utstart


    (Note: if you get errors during step 6, remove the downloaded utstart file and use the create method)


    Create Method:


    nano /opt/utorrent/utstart


    Copy the following text to the utstart file:




    5. Make utstart executable


    cd /opt/utorrent/
    chmod +x utstart


    6. Use the utstart script to add uTorrent Server (utserver) to the boot sequence


    ./utstart install


    (Note: ./utstart uninstall will remove utserver from the boot sequence)


    7. Start the uTorrent Server webui (utserver)


    ./utstart start


    (Note: ./utstart stop will stop the uTorrent Server webui)


    8. Now we can verify that webui is working


    In a web browser point to "your.server.ip:8080/gui" (ex. 192.168.1.10:8080/gui)


    uTorrent Server webui should prompt for default user/password


    user: admin
    password: (blank)


    Click Login and the webui loads.


    9. Reboot your OMV server via webui or terminal.


    Terminal:


    reboot


    10. After the system boots back up, launch the uTorrent Server webui again to verify that utserver boots with startup.


    Enjoy using uTorrent Server... :thumbup:



    This guide was compiled using the following sources:


    http://blog.droidzone.in/?s=utstart


    How to make uTorrent run with different user than root


    is it possible to run Utorrent server on OMV???

    • Offizieller Beitrag

    Provide write permissions to /var/www to utorrent user:


    This seems unnecessary, why write permissions to /var/www, doesn't the binary has his own webroot at /opt/utorrent?


    Deny ssh login to user utorrent


    I don't get this, why grep through the sshd_config will deny access to ssh?, users are granted access to omv by being in the ssh group, so deny is by default.

  • I would be concerned about mixing libraries from Squeeze with Wheezy libraries as well. Usually not a good idea to do this. I think this would be good to run as a Docker container until they are using Wheezy/OMV 2.x or Jessie/OMV 3.x libraries.


    There is a way to take just the library files and not use the packages though. That would be a better alternative. You could create the folder /opt/utorrent/libs and put the library files in it, see pic attached. Then put a config file in /etc/ld.so.conf.d/utorrent (chown root:root and chmod 644) give the path to the folder in that file /opt/utorrent/libs. Activate the libraries with ldconfig.

  • I'm somewhat new to linux but am picking things up.


    So this guide helped me get started but several issues have come up.


    Utorrent isn't autostarting. I think I can figure this one out -


    When started manually ( /opt/utorrent/utstart start) it starts on port 8080. I log in and under webui change it to 9091 and all is well. Except it doesn't save any settings. The next time I start it the password and port is back to default.


    Sonarr also is not passing torrents to utorrent. I was using Deluge succesfully but one of my trackers doesn't support the version of Deluge I have and I thought utorrent would solve my problem as it is supported by all my trackers.


    So first I guess I have to ask what should I be looking at to figure out why my settings won't save?


    Second, on Sonarr, when I setup the downloader and hit the test button it succeeds. I don't know why it isn't arriving at utorrent.


    Thanks

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!