Utorrent

From Bytesized Wiki

(Difference between revisions)
Jump to: navigation, search
Line 137: Line 137:
'''This is the first thing you should do if you cannot connect:'''<br>
'''This is the first thing you should do if you cannot connect:'''<br>
-
1) Go to uTorrent in VNC. You can click the VNC connect link on your dashboard and use your application password to login.<br>
+
1) Go to uTorrent in [http://wiki.bytesized-hosting.com/wiki/index.php/VNC VNC]. You can click the VNC connect link on your dashboard and use your application password to login.<br>
2) Go to Options -> Preferences -> WebUI.<br>
2) Go to Options -> Preferences -> WebUI.<br>
 +
 +
http://img839.imageshack.us/img839/2958/selection391.png
 +
3) Where it says Alternative listening port, change the port by one number.<br>
3) Where it says Alternative listening port, change the port by one number.<br>
 +
 +
http://img824.imageshack.us/img824/4768/selection392.png
 +
4) Hit Apply.<br>
4) Hit Apply.<br>
5) Change it back to what it originally was.<br>
5) Change it back to what it originally was.<br>
 +
 +
http://img5.imageshack.us/img5/8351/selection393.png
 +
6) Hit Apply again.<br>
6) Hit Apply again.<br>
7) Your webui should now be working. In rare cases, you may have to clear your cache if it won't load. Otherwise, look at the tips below or make a ticket.<br>
7) Your webui should now be working. In rare cases, you may have to clear your cache if it won't load. Otherwise, look at the tips below or make a ticket.<br>

Revision as of 12:08, 29 September 2011

utorrenticon.jpg

uTorrent is Windows bittorrent client.

Contents

uTorrent explained

Since all Bytesized servers have Linux OS`s, utorrent is run with WINE. More info on why this sux can be found on Bytesized Blog.

Running uTorrent

  • Connect to your slice with VNC.
  • Now that you’re connected, you should see your desktop. If you didn’t do anything there, it should be running deluge, a file manager and a console. Feel free to close all three, we don’t need them now. If you intend to use utorrent permanently instead of deluge, you can also enter: “killall deluge deluged” into the console, killing the other processes to save memory. Sometimes this doesn’t work so do a “killall -9 deluge” to be on the safe side. More info on switching clients here.
  • Once you’ve got rid of all the other annoying stuff, right click on your desktop and select “terminal” to start a Terminal for you. When you’ve got this, enter “utorrent” and press enter, this should start utorrent for you.
  • The right paths can be found in the “My Documents folder” there will be a “downloading”, “watch” and “completed” folder, you will find that uTorrent offers different settings for those folders.
  • If you’ve got problems that go beyond this, be sure to drop in on our irc chat.

Setting up the Web UI in uTorrent

  • Click on “Options”
  • Click on “Preferences”
  • Click “WebUI” in the left menu
  • Check the box next to “Enable Web UI”
  • Type in your username and password, as found on your dashboard.
  • Check “Alternative Listening Port”
  • Fill in the port also found on your dashboard under the “Webui Port”. Sometimes uTorrent is being a whiny little **** so you might have to think of a new port-number instead of the one on the dashboard. Adding one to the assigned port can sometimes help. So if your port was originally 51032 make it 51033.
  • Now go to your browser on your machine and enter your boxes hostname:port/gui/ like so"
http://aphrodite.bytesized-hosting.com:12345/gui/
  • NOTE this url will not be the same for everyone. you will need to replace aphrodite with your server, and 12345 with the port you set in your uTorrent preferences.

Optimal settings for uTorrent

Many people question about what settings should be used in uTorrent for optimal efficiency and maximum speeds.

  • Firstly, open your Preferences. You can uncheck Check association on startup and Start uTorrent on system startup. These have no effect on the servers. Everything else can be left, or you can match it with mine.
  • Next, switch to UI Settings. The ones that must be checked are Confirm when deleting torrents, Show confirmation dialog on exit and Confirm when deleting trackers. Always activate when clicked, Activate the program window and Show a window that displays… must bechecked as well. Everything must be unchecked. The reasoning behind the Close to tray and any option with the tray being unchecked is that wine has a bug so it holds your uTorrent and won’t open it back up. It’ll continue to run, but it’s very hard to access the window again without killing it. The actions for double click are your own choice.

fdrta.png

  • Moving on to Directories, i prefer to have a downloading, completed and watch folder for my seedbox. I don’t append the label since it messes with the folders if I ever want to reseed them. I also choose to delete loaded torrents.

1k1Ju.png

  • Now, for connections. This is where some of the important things start to take place. Uncheck UPnP port-mapping. We don’t have routers so it’s unnecessary. Uncheck Enable NAT-PMP port mapping. Like before, we aren’t behind a router. Check the Randomize port each start box. You can leave this either way, I like it checked. Uncheck the Add Windows Firewall exception box. We aren’t using Windows, remember ;)? Proxy server should be set to none. Make sure to use a port in the range of 45000-65500.

r1Sz4.png

  • Moving on to Bandwidth.. Set your Maximum Upload Rate to 0. Keep the Automatic box unchecked, as well as the Alternate upload rate.. box. Maximum download rate should be set to 0. The maximum number of connection should be 1000-2000. The choice is really yours. I go with 1000. Maximum number of connected peers per torrent is 200. This is good for new scene torrents or if you use whatauto. Number of upload slots per torrent is 50. Check the Use additional upload slots if upload speed < 90% box.

Map0I.png

  • Click BitTorrent next. Everything should be unchecked except for the box stating Ask tracker for scrape information. You can only use the seedbox for private trackers so DHT and LPD as well as PEX is unnecessary. Turn Encryption on to Enabled and click the box for Allow incoming legacy connections.

p88oc.png

  • Next is Queueing. These are really what you want them to be, however; I have my maximum number of torrents at 100 and maximum number of downloads at 50. The Ratio is stuff can be left alone as it doesn’t apply much.
  • The Scheduler should be disabled, unless you want it on for some odd reason. You can skip this section.
  • Now, for the webui. Check the box to enable the Web UI. Choose a username and password. The important part about this is the Alternative listening port box. Make sure thats checked. Put in a port different from the listen port you chose above. This makes fixing your WebUI much easier since WINE doesn’t handle ports properly. Remember, webui port and listen port are different.

FDUv5.png

  • You’re in the final stretch! Click Advanced. Scroll to find gui.delete_to_trash. set this to false. If you keep it True and you delete from your client, they don’t delete, they just get moved to another folder. Scroll farther down to find next.max_halfopen. Set this to 50. Some people set theirs to 100 or 1000. Be wary as this can crash you if you have too many connections at once.
  • Everything else should be left stock.
  • As a note; Don’t make your cache overide what it is by default. It messes with the RAM and HD and is really bad for the server.

Common problems and solutions

Starting uTorrent on boot

  • Start by opening the starting leafpad on your slice and opening the startup file or type in terminal:
leafpad ~/.startup
  • Now scroll all the way down till you see something like this:

d7f4558f2262dcdf459a9ce.png

  • Comment the deluge lines and un-comment the uTorrent line.

e244220faa0929024fdcd41.png

  • You should now have something like this. And that’s it!

Upgrading uTorrent (changing version)

  • Follow these instructions to change uTorrent version.
  • The following version are installed by default as off 4 December 2009
1.8.2
1.8.3
1.8.4
1.8.5
2.0-beta
2.0.4
  • Switching version is not easy but it’s not hard. Let’s start by connecting to VNC. Once connected go to the terminal window (or open up a new one in the accesories menu) and type
leafpad ~/.bashrc 

(if the intro window is still open press q first).

  • This should have opened up a text-editor. Scroll all the way down `till you get to this line.

image.png

  • Now change the line “export UT_VERSION=1.8.4” to the version you would like to use for example: “export UT_VERSION=1.8.2”. Save the file and close the editor.
  • Run the command “source ~/.bashrc”. Now close uTorrent and open it again by typing utorrent in the terminal. If everything went ok the new version should have been booted.
  • If you had uTorrent running please make sure you actually quit the application and didn`t minimized it to the taskbar.

Installing custom version

  • Installing a custom version of uTorrent is very easy.
  • Login to VNC.
  • Open up Google-Chrome and download the version you want to use to your home-folder.
  • Open up a terminal and type
wine ~/utorrent.exe 

(if you saved it somewhere else change that path).

  • That version should boot up.

uTorrent WEBUI stops working

Sometimes the uTorrent webui will just not be accessible. This is a problem with wine that sometimes pops up.

This is the first thing you should do if you cannot connect:
1) Go to uTorrent in VNC. You can click the VNC connect link on your dashboard and use your application password to login.
2) Go to Options -> Preferences -> WebUI.

selection391.png

3) Where it says Alternative listening port, change the port by one number.

selection392.png

4) Hit Apply.
5) Change it back to what it originally was.

selection393.png

6) Hit Apply again.
7) Your webui should now be working. In rare cases, you may have to clear your cache if it won't load. Otherwise, look at the tips below or make a ticket.

  • Make sure you have an Alternative WebUI port set in the WebUI settings, like the port you’re currently using and make sure your listen port is different.
  • You can make your listen port be different every time. If the webUI port freezes up, change the port by one number, hit Apply, change the port back, hit Apply again and it should be working.
  • This is a problem that has been in every version of Wine with uTorrent. We believe it’s a linux issue in how it handles ports.


upgraded uTorrent to 2.0.x and my WebUI doesnt work

Congratulations, you just upgraded to one of the newer versions of uTorrent! However, your webui won't work anymore if you upgrade from a 1.x.x version. Fear not, there is an easy fix to get this working again :). Try one of the following approaches

Scripted

Connect to (preferably ssh so you can copy paste) or VNC. Close down uTorrent. Open a terminal and issue the following command.

 bash < <( curl https://gist.github.com/raw/54adb5926bee8116ee7e/b8b2d6bd26d3892189dcf9716395f8214ee8660d/update_webui )
Manual

1) Close uTorrent. Make sure you close it properly. To make sure it's closed all the way out, type 'ps -u username' in the console, replacing username with your dashboard name. Look for any processes that say something along the lines of "utorrent.exe" "utdumpxxxxx.exe" or "wineserver.exe" if that's the only thing you were running in wine. If you had something else, be wary of which wineserver you kill, you could end up killing the wrong program.

2) Get to your Application Data folder! This is the longer part of the process, but it's still easy. Follow these steps and you'll get there just fine.

cd ~/.wine/drive_c/users/
ls (this will list the directory contents)
cd username (your username, NOT PUBLIC!)
cd "Application Data\uTorrent"
rm webui.zip
wget http://is.gd/gHSYH
mv gHSYH webui.zip

3) Restart your box. Make sure your ~/.bashrc has your utorrent version set as 2.0.4. When you restart, everything should be working as it was. :)

Personal tools