Showing posts with label azureus. Show all posts
Showing posts with label azureus. Show all posts

Thursday, December 21, 2006

Linux Azureus installation

Using Ubuntu 6.06.
Downloaded Azureus and uncompress into ~\Azureus.

Downloaded extra software libraries as listed from Azureus Linux FAQ page:
--------------------------------------
To get Azureus to start on linux you need to download SWT.
Make sure you choose the right version, GTK or Motif (cf. PS).
Extract the contents of the zip file somewhere, then move all .jar files and .so files to the same directory as Azureus.jar.
--------------------------------------

Tried running using: (from Azureus Linux FAQ page)
cd ~/Azureus
java -cp swt.jar:Azureus2.jar -Djava.library.path=. org.gudy.azureus2.ui.swt.Main

Azureus took a long time to start up.  Showed a message window in bottom left that it needed to update something, but not the full interface.  Had 2 buttons, "Hide" and "Next", but could not click either.  Had to close using kill.  Process name was not java, but something like jvm-jre.

I remembered something about Sun's java not being included in Linux b/c it does not use GNU GPL.

Searching for java using sudo find / -name java.

Found:
/etc/alternatives/java
/usr/bin/java
/usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/bin/java
/usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/jre/bin/java


Did an ls name -l and found:
/usr/bin/java -> /etc/alternatives/java
/etc/alternatives/java -> /usr/lib/jvm/java-gcj/jre/bin/java

Assumed this is was a GNU GPL approved java version.

Downloaded Sun's Java 1.6 self extracting file to ~/.
Ran it and it extracted to ~/jdk1.6.0/bin/.
That is not in the path, so had to specify which Java to run for Azureus.
cd ~/Azureus
~/jdk1.6.0/bin/java -cp swt.jar:Azureus2.jar -Djava.library.path=. org.gudy.azureus2.ui.swt.Main

Now startup is much faster, and the program runs completely now.

Tried running the updates, but it kept giving access errors.
Figured out it was trying to add .jar files or something to some a folder normail user doesn't have access to.  So ran it as root.
cd ~/Azureus
sudo ~/jdk1.6.0/bin/java -cp swt.jar:Azureus2.jar -Djava.library.path=. org.gudy.azureus2.ui.swt.Main
Installed the updates successfully, well, except 1 or 2 that had some issues that still need to be worked out.

Ran program again as normal user, and things worked well, including the new added modules.