View Full Version : How-To Setup Azureus on FC6
d347hm4n
2006-12-24, 07:07 AM CST
The following is a simple how-to to get azureus working in FC6, i'm not a linux or Fedora expert, i have been using linux for little over a month, but the following worked for me, should be alright for everyone else.
Follow the correct link to the version of the program you want to you, i386 for a 32-bit processor and x86-64 for a 64-bit processor
For i386
Azureus_2.5.0.2_linux.tar.bz2
http://downloads.sourceforge.net/azureus/Azureus_2.5.0.2_linux.tar.bz2?modtime=1168743559&big_mirror=0
For x86_64
Azureus_2.5.0.2_linux-x86_64.tar.bz2
http://downloads.sourceforge.net/azureus/Azureus_2.5.0.2_linux-x86_64.tar.bz2?modtime=1168743606&big_mirror=0
When the download has completed, move it to the your home folder, the default location for a download with mozilla firefox is the user's Desktop space. This is under:
/home/your_username/Desktop
Then move the file to your home folder.
Open a console and
cd -
tar -vxf azureus_2.5.0.2_linux.tar.bz2
This will extract the archive into your home folder. A new folder called azureus will be created in you home directory.
Change into su mode
su -
Then move the folder into your /opt/ directory
mv azureus /opt/
When azureus is first run it will ask you to set it up.It will ask you to forward the ports that you have decided to use, for the purpose of this guide, please visit www.iana.org/assignments/port-numbers and decide which port numbers area best to use in your case, ISP's do monitor which port's get heavily used, and in some case's throttle the traffic so if you use a high port number which is listed as unassinged at iana and everybody distributes there ports randomly, bittorrent will stay fast.
After following their comprehensive guide at http://www.portforward.com/ and your sure that you've correctly forwarded the ports in your router but your still mysteriouslly natted then read on.
All you have to do is tell the linux firewall that you want your port number both TCP and UDP open. This is achieved through.
sudo system-config-securitylevel
click add other ports and add TCP and UDP
Next go to and download Sun's implementation of Java. Fedora Core provides an open source implementation of Java. However many users, myself included, prefer Sun Java for their purposes.
Linux Platform - Java(TM) SE Runtime Environment 6
http://java.sun.com/javase/downloads/index.jsp
Click download on Java SE Runtime Environment 6, click on accept user agreement,please make sure you download the *.bin of the file. It weighs 18.4MB
Open a console. Type:
su -
Hit enter. Type your root password. Hit enter.
Type:
mv *.bin /opt
Hit enter.
Type:
cd /opt
Hit enter.
Type:
chmod +x *-linux-i586.bin
Hit enter.
Type:
./*.bin
Hit enter. Hold the enter key down until the yes/no line appears to allow you to agree to the license agreement. Type "yes" and hit enter. Wait for the installation to complete.
Type:
rm *.bin
Hit enter. Type "y" and hit enter.
vim /opt/azureus/azureus
#!/bin/bash
######## CONFIGURATION OPTIONS ########
JAVA_PROGRAM_DIR="" # use full path to java bin dir, ex. "/usr/java/j2sdk1.4.2/bin/"
#PROGRAM_DIR="/home/username/apps/azureus" # use full path to Azureus bin dir
#######################################
Change the JAVA_PROGRAM_DIR="" to point to the java folder in the /opt/ directory
i.e. "/opt/jre1.6.0/bin/"
Type:
/usr/sbin/alternatives --config java
Change from the gcj implementation of java to the new sun java and it should all be fine and dandy.
Any comments on this how-to please feel free to post.
Resources :
http://stanton-finley.net/fedora_core_5_installation_notes.html
Thanks a million to everyone, Firewing1 and Neek especially
zeroelixis
2006-12-24, 08:02 AM CST
Also if you use a PnP router to map ports, open ports (5000 TCP) and (1900 TCP) to enable azureus to find the UPnP router.
nick.stumpos
2006-12-24, 09:11 AM CST
you may want to change sudo to su -c as users are not given sudoers privilages by default in FC
d347hm4n
2006-12-24, 10:10 AM CST
you can always switch to root before running all of the commands without the sudo with
su -l
nick.stumpos
2006-12-24, 11:41 AM CST
just
su -
is all thats needed actually you dont use any programs outside of a users default path so
su
would even be fine, i just suggested the -c as that would be the closest substitute to sudo in a default fedora install, although you would be using roots password instead of the users
Dies
2006-12-24, 02:45 PM CST
Personally, I find that DL'ing Azureus straight from the source and unpacking it into /opt/ is not only easier but you avoid some issues people are having with the version installed by Yum.
Just me though.
nick.stumpos
2006-12-24, 08:55 PM CST
i totally agree
d347hm4n
2006-12-25, 04:50 AM CST
Personally, I find that DL'ing Azureus straight from the source and unpacking it into /opt/ is not only easier but you avoid some issues people are having with the version installed by Yum.
Just me though.
How would you do that? If you could lis how you do it, it would be very beneficial.
Dies
2006-12-25, 07:43 AM CST
Sure.
First of all make sure you have the latest Java, if not head here for a how-to:
http://stanton-finley.net/fedora_core_5_installation_notes.html#Java
Then you just DL Azureus from here:
http://azureus.sourceforge.net/download.php
Just click on Tux and save the file to your desktop, right-click the file and select extract here.
You should now have a folder named azureus on your desktop, just open a terminal then do:
cd Desktop
su
mv azureus /opt/
And you're done, you can run it by typing /opt/azureus/./azureus in a terminal, but more than likely you'll want to make a shortcut on your desktop or in the menu with that command. You can find icons for it in the same folder.
Duli
2006-12-25, 08:15 AM CST
Initially we want to set up the Livna repositories for yum (Yellowdog Update Manager)
Hi, I think azureus is in extras repo, not in livna:
#yum list azureus
Available Packages
azureus.i386 2.5.0.0-11.fc6 extras
Duli
Neek
2007-01-12, 06:34 PM CST
I found I had to install and enable Sun java, rather than the gcj my fc6 system was using by default.
http://liquidat.wordpress.com/2006/11/02/howto-sun-java-on-fc6/
GCJ java appeared to run but experienced almost complete failure to actually download data from the many peers, getting socket timeouts on no activity, "no progress for op" messages, and suchlike. I'd tried disabling Firewall, and had made sure all ports were suitably forwarded over the router, and restarted my laptop, to no avail. Switching java to Sun fixed Azureus immediately.
Hope that helps.
d347hm4n
2007-01-13, 03:34 AM CST
I agree, after writing thhis little how-to, and with some of the other mistakes pointed out, i'll have to re-wrtie and repost this how-to, turn's out its is better to install azureus from sourceforge. Oh well, i'll re-write it at some point
Neek
2007-01-15, 03:37 AM CST
I posted earlier about needing Sun java. It would be nice for any installation instructions to mention uPnP, which automatically forwards router ports for you if the router supports it. This would negate the need for forwarding port 6881 yourself, as above. I installed libpnp and friends from the Fedora repo's but wasn't sure where to go from there without some research.
Incidentally, my laptop ran out of disk space while downloading the other night, after getting it to download properly. Azureus promptly crashed. This is to a perfectly normal local hard drive partition mounted as my root ext3. On recovering the situation in the morning and freeing up some disk space, Azureus now refuses to start (after gui appears briefly, java VM reports a signal 11 and dies.. i'll have to google around it). I have no idea how to get it back on the road, so, be warned, people! :)
I have since gone over to uTorrent on windows, which works with uPnP out of the box, which was a refreshing change.
Neek
2007-01-15, 04:56 PM CST
Me again. After my fc6 version of azureus, which ran out of disk space, reporting numerous errors like:
""""
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xAA084ED2
Function=(null)
Library=/usr/lib/libgtkjni-2.8.so
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at org.eclipse.swt.internal.gtk.OS._gtk_widget_size_a llocate(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_widget_size_al locate(OS.java:8155)
at org.eclipse.swt.widgets.Shell.forceResize(Shell.ja va:708)
at org.eclipse.swt.widgets.Shell.resizeBounds(Shell.j ava:1103)
at org.eclipse.swt.widgets.Shell.setBounds(Shell.java :1154)
at org.eclipse.swt.widgets.Control.setBounds(Control. java:526)
at org.gudy.azureus2.ui.swt.shells.MessageSlideShell$ 1.run(MessageSlideShell.java:996)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableL ock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessa ges(Synchronizer.java:123)
- locked <0xac1fe990> (a org.eclipse.swt.widgets.RunnableLock)
at org.eclipse.swt.widgets.Display.runAsyncMessages(D isplay.java:3143)
at org.eclipse.swt.widgets.Display.readAndDispatch(Di splay.java:2845)
at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.<init>(SWTThread.java:125)
at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.crea teInstance(SWTThread.java:61)
at org.gudy.azureus2.ui.swt.mainwindow.Initializer.<init>(Initializer.java:110)
at org.gudy.azureus2.ui.swt.Main.<init>(Main.java:147)
at org.gudy.azureus2.ui.swt.Main.main(Main.java:162)
"
I tried uninstalling gtk-java and reinstalling from fedora-cora (http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/libgtk-java-2.8.6-4.fc6.i386.rpm) which didn't help.
I reinstalled azureus.
- uninstalled the installed package:
rpm -e azureus
- downloaded pkg from http://azureus.sourceforge.net/download.php, Azureus_2.5.0.2_linux.tar
- extacted to a dir, there was an 'azureus' dir
- ran 'azureus' executable from the .tar extracted dir. Since I'm running as the same user as before the problem, Azureus started and resumed downloading i.e. found ~/.azureus and resumed. One would presume.
So.. my downloaded torrent parts weren't corrupted (as i suspected, but perhaps Azureus can recover) and my system libraries weren't corrupted (as i dreaded), but my Azureus install became corrupted by running out of disk space?
Curious.
d347hm4n
2007-01-16, 04:31 AM CST
Have a read through the following 2 threads, if you experience non-existant downloads using the gcj implementation of java, then follow the instructions over the next 2 threads, a few people, myself included have run into a few probs, hopefully the 2 threads will increase your knowledge on the subject, i'm going to re-post this little how-to. catch you all later
http://forum.fedoraforum.org/forum/showthread.php?t=142999
http://forum.fedoraforum.org/forum/showthread.php?t=143877
RobertoVanto
2007-01-16, 05:58 AM CST
why not using Transmission?
yum info transmission
Name : transmission
Arch : x86_64
Version: 0.6.1
Release: 3.fc6
Size : 271 k
Repo : installed
Summary: A lightweight GTK+ BitTorrent client
Description:
Transmission is a free, lightweight BitTorrent client. It features a
simple, intuitive interface on top on an efficient, cross-platform
back-end.
d347hm4n
2007-01-16, 06:11 AM CST
some of the advanced features in the bittorrent protocol are only well implemented in azureus, it has some other nice features and plugins like safe-ip, transmission is great for the one of torrent grab but for serious p2ping a azureus is the best
glennzo
2007-01-26, 11:25 AM CST
Since the subject is Azureus, I have a question. Does it matter what ports you open, a specific port number? I'm downloading the FC6 Unity Respin as we speak and not getting what I consider good dl speed. Overall, bittorrent doesn't impress me. I don't even like using it. I've been downloading this Unity CD for the last 4 hours, with 2 hours to go. With FTP I can get 3GB in an hour or so. By the way, there's a little smiley guy wearing sunglasses in the upper right hand corner of Azureus, so I guess he's happy with the port/firewall deal here.
d347hm4n
2007-01-26, 12:29 PM CST
Aslong as the number that you have chosen isn't already assigned to a program which you are running check http://www.iana.org/assignments/port-numbers and see if the one's that you have chosen aren't interfering with something elde's port space
Neek
2007-01-26, 12:52 PM CST
glennzo.. I find most torrent speeds appallingly slow. However, some things (depending on where you know where to look and who you know to ask) are best available on torrents. I tend to get under 100k/s for a torrent, and that's a GOOD rate for me. Usenet access to dedicated servers comes in at 800-900k/s. It's just a sign that people throttle their upload bandwidth or refuse to upload at all. I have a friend who tends to deny as much bandwidth as possible for upload and disconnects as soon as his download is finished, completely against the spirit of torrenting, but then, so is most ADSL contention ratio reasoning. SDSL will be better, but habits are hard to change. At least the torrent system (and excuse me if I'm talking balls here) tries to force you to upload at least a little, or else it cripples your download speed for you. WinMX used to be a favourite, and it allows you to be a complete git to other users.
As for ports, you seem a little confused, or your question isn't very specific. Azureus likes to have some ports opened over your firewall, so that people outside your network can make unsolicited (un-asked-for, or not-originated-by-you i.e. incoming) connections to 'you'. Do you understand the concept of port forwarding over a router? Opening ports that Azureus wants is allowing more people to connect to you, so you are more likely to get a higher download (and upload) speed, because you're connected to more peers.
The last few big torrents (4-8 gb) I downloaded took about 3 or 4 days constant downloading. Split over the periods when I actually left it downloading, it took a week or two. You pays yer money, you takes yer choice. (which means, you didn't pay for anything, don't look a gift horse in the mouth :)).
glennzo
2007-01-26, 01:18 PM CST
glennzo.. I find most torrent speeds appallingly slow. However, some things (depending on where you know where to look and who you know to ask) are best available on torrents. I tend to get under 100k/s for a torrent, and that's a GOOD rate for me. Usenet access to dedicated servers comes in at 800-900k/s. It's just a sign that people throttle their upload bandwidth or refuse to upload at all. I have a friend who tends to deny as much bandwidth as possible for upload and disconnects as soon as his download is finished, completely against the spirit of torrenting, but then, so is most ADSL contention ratio reasoning. SDSL will be better, but habits are hard to change. At least the torrent system (and excuse me if I'm talking balls here) tries to force you to upload at least a little, or else it cripples your download speed for you. WinMX used to be a favourite, and it allows you to be a complete git to other users. I'm slowly figuring out this bittorrent thing. One of the first things I did was to allow unlimited upload and unlimited download. Figured I'd get more if I give more. Best I've gotten is 200 but it's generally hovering just under 100. Sucks on a 6MB cable connection.
As for ports, you seem a little confused, or your question isn't very specific. Azureus likes to have some ports opened over your firewall, so that people outside your network can make unsolicited (un-asked-for, or not-originated-by-you i.e. incoming) connections to 'you'. Do you understand the concept of port forwarding over a router? Opening ports that Azureus wants is allowing more people to connect to you, so you are more likely to get a higher download (and upload) speed, because you're connected to more peers.
The last few big torrents (4-8 gb) I downloaded took about 3 or 4 days constant downloading. Split over the periods when I actually left it downloading, it took a week or two. You pays yer money, you takes yer choice. (which means, you didn't pay for anything, don't look a gift horse in the mouth :)). I just wasn't sure if I needed to use a specific port for Azureus or if I can just pick my license plate number or my kid's birth date. Downloading as we speak, but speed is 0. Maybe I'll just send a self addressed stamped envelope :rolleyes:
d347hm4n
2007-01-26, 01:20 PM CST
The principals of how BT works is that a file is broken into pieces, the uploader sends these pieces out, in linear order or if in superseed mode, where needed (never superseed, just causes too many problems!) If you have four peers and one uploader, with the uploader setting their client to connect to four peers, each peer will receive a different piece, most likely in order, peer one statistically will receive pieces 1, 5, 9, 13, 17. This means that whilst downloading the pieces of the torrent off the uploader, you want to be downloading the pieces already given out by the uploader, and in turn, those peers want every other peers pieces.
I am going to describe two broadband lines and average speeds you will see, and beginner with one of these two lines has it easy now. 512/256 you can download at 50/51kbs whilst uploading 20kbs at the same time 1Meg/256 you can download about 100/102 whilst uploading 20kbs at the same time.
Are you bored waiting and go start another smaller torrent while you are waiting (that won't work, now your upload speed is divided between two torrents, making the problem worse!)
Has the uploader decided that with their fantastic foreign line that they will upload 4 DVD's worth of data at the same time? Are you starting to panic, thinking that with your line, by the time you get the first torrent, and pay back, the next torrent won't be working anymore?
So, what are you going to do? Jump on all 4 torrents? Give an average upload speed of 5kbs to each torrent? Not care about damaging the speeds of the torrents, because "cool torrent mate! I'll keep my client open for weeks to keep this beauty alive!" yeah, well at 5kbs you will need weeks to pay all the torrents back.
This is where everyone has to understand a very simple fact about torrents, that sadly many people are choosing to ignore. By not uploading the pieces you received from the uploader, YOU are damaging the torrent. YOU are doing it, it's YOUR fault. Patterns emerge, people ban your IP in their client, days, weeks, months from now the IP's have been exchanged between uploaders and stuck in trackers. there comes a time when your speeds go to hell, you can't get data off people, everything's so slow you start to ***** and whine about the speeds, without comprehending that maybe your actions in the first place caused this. That IP might even get shared with BT sites where I know people can enter the IP in their tracker and who in turn trust me to make educated decisions and not be juvenile about this sort of thing.
So, everybody think about the health of torrents. DON'T cap your upload and DON'T try and get too many torrents at once.
glennzo
2007-01-26, 01:34 PM CST
Hey Joey, you tawkin' to me? I just won't bother with the friggin torrents at all. I don't really give a sh*t in the grand scheme of things. Torrents have sucked since their inception. But in the mean time, since I got 85% of this damn iso downloaded, what would be then the ideal up/down settings for my 6MB connection? Or do I just not understand what you just said? At this rate I could type in ALL the code myself, burn a few CD's and install. When I'm done maybe the 'torrent' will be done :p
d347hm4n
2007-01-26, 01:40 PM CST
got to http://www.dslreports.com/stest find out what you upload speed really is an set it to that, make sure that you dan't have anything downloading or using up the tinyest amount of bandwidth otherwise you won't get an accurate measure of your line's capabilities.
Hey Joe, you tawkin' to me?
No i'm talking to all the ill educated leachers out there, unless your one of them...... :p
glennzo
2007-01-26, 01:47 PM CST
My upload speed is usually around 350. I'll set it to that, get out of my browser, won't check my e-mail and turn off my streaming music. Then we'll see. I hope the torrent idea dies a slow painful death. Beam me up!
Neek
2007-01-26, 06:43 PM CST
people ban your IP in their client, days, weeks, months from now the IP's have been exchanged between uploaders and stuck in trackers. there comes a time when your speeds go to hell, you can't get data off people
That's an interesting twist. So if my ISP caps my connection for exceeding their fair usage policy, and I only get 10k/s over my entire 8Mb connection between 8am and 11pm, people are possibly recording my IP and I end up on blacklists? That's a bit of a wake up call. Are there clients or bits in the bittorrent protocol that might auto-ban me, even? If so, over time, I and other capped people are pretty screwed when it comes to torrents in the long run. It also explains why my mate always seemed to get amazing download speeds just after moving into a new house :P or maybe it was just 'grass is greener'.
<sigh> even my usenet download is around 0 at the moment, and it's the middle of the night. I'm probably considered lucky to be allowed http traffic. The 'whats your speed' checker just freezes half way through the test.
Good answers d347hm4n :) I didn't really answer the question on ports, because I don't know the answer, but I think you can use any port number that's over 1024 (presuming you don't run azureus as root, your user won't be able to open ports below that number) and it's wise not to choose one another program's going to use, as you linked to.. if you pick an arbitrary port number for azureus to use, and forward that port over your router if you need to, I'd have to go look up the bittorrent protocol in detail to find what exactly what happens, but I believe it increases the number of peers that can connect back to you. There should be no reason to not use the default port Azureus tries to use out of the box, unless say your network provider nobbles traffic over certain port numbers.
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.