0

I followed these 2 tuts:

Step by step installation

Stuff if you are with x64 OS

Well, I am done until the pre-last step. I have created the symlink, and when I navigate to the folder .../opt/utorrent-server-v3_0 I can see the utserver file. But when I run the command utserver -settingspath /opt/utorrent-server-v3_0/ enter image description here

Therefore I cannot open the localhost:8080/gui/... Any ideas what might be the problem and how to proceed?

Milkncookiez
  • 465
  • 2
  • 9
  • 20

2 Answers2

0

utserver is not in your PATH yet. Run with:

./utserver -settingspath /opt/utorrent-server-v3_0/ 

or

/opt/utorrent-server-v3_0/utserver -settingspath /opt/utorrent-server-v3_0/

Then see How do I add an executable to my search path?

muru
  • 197,895
  • 55
  • 485
  • 740
  • Or just add it to the alternatives system... – s3lph Aug 25 '14 at 15:47
  • What does this have to do with the user interface. One way or another, the system just has to find the server executable, and I think adding software to the alternatives system is a better approach than adding its installation directory to the path. – s3lph Aug 25 '14 at 15:51
  • What you're talking about are MIME type application associations. This is something else than the alternatives system. The alternatives system actually just symlinks the selected program to /usr/bin/ (Well, this could also be done manually...) – s3lph Aug 25 '14 at 15:54
  • Ok, but I'm not sure how to do that with update-alternatives (if that's what you're talking about?). – muru Aug 25 '14 at 15:58
0

Alternatively to adding the installation path to $PATH, you could also create an entry for µTorrent in the Alternatives System:

sudo update-alternatives --install usr/bin/utserver utorrent-server /opt/utorrent-server-v3_0/utserver 100

This will create a symlink to /opt/utorrent-server-v3_0/utserver in usr/bin. The differences to adding it to $path are:

  1. Works in environments where custom PATH is not set
  2. User indepentent (Well, setting the PATH for all users is possible too...)
  3. Finding the binary is managed by the system, and not by the user
    • This may not be important for µTorrent, but it could help if you have multiple versions of a program installed, e.g. one compiled yourself and one from the packages, or multiple Java versions.

The general update-alternatives installation syntax is:

sudo update-alternatives --install <link/to/be/created> <name> <link to the binary> <priority, the higher, the more preferred>

To change the defaut for any alternative, use

sudo update-alternatives --config <name>
s3lph
  • 14,314
  • 11
  • 59
  • 82