ln -s

You can talk about anything here, not necessarily game-related. You may also advertise here.
Post Reply
User avatar
windhound
Fish Rocketh, cows sucketh
Posts: 1030
Joined: Wed Jun 02, 2004 4:36 pm
Location: Ze Ocean

Post by windhound »

my head just doesnt feel 'on' today
so its a great time to be playin' around with my system files ;)

mmk. well, I followed a tutorial to get azureus running, and it runs fine (plain azureus, not the one in fedora's repos using fedora's java)
however, I'd like to beable to launch it directly instead of typing
$./system/azureus/azureus

so here's what I did

code: Select all

[root@localhost azureus]# ln -s /home/windhound/system/azureus/azureus /usr/bin
[root@localhost azureus]# exit
exit
[windhound@localhost azureus]$ azureus
Starting Azureus...
Java exec found in PATH. Verifying...
Suitable java version found [java = 1.5.0_09]
Configuring environment...
Loading Azureus:
java -Xms16m -Xmx128m -cp "/usr/bin/*.jar" -Djava.library.path="/usr/bin" -Dazureus.install.path="/usr/bin" org.gudy.azureus2.ui.swt.Main ''
Exception in thread "main" java.lang.NoClassDefFoundError: org/gudy/azureus2/ui/swt/Main
Azureus TERMINATED.
[windhound@localhost azureus]$ ./azureus
Starting Azureus...
Java exec found in PATH. Verifying...
Suitable java version found [java = 1.5.0_09]
Configuring environment...
Loading Azureus:
java -Xms16m -Xmx128m -cp "/home/windhound/system/azureus/Azureus2.jar:/home/windhound/system/azureus/swt.jar" -Djava.library.path="/home/windhound/system/azureus" -Dazureus.install.path="/home/windhound/system/azureus" org.gudy.azureus2.ui.swt.Main ''
changeLocale: *Default Language* != English (United States). Searching without country..
changeLocale: Searching for language English in *any* country..
changeLocale: no message properties for Locale 'English (United States)' (en_US), using 'English (default)'
I made the link properly, it runs, but instead of looking where its supposed to, it thinks stuffs supposed to be in /usr/bin, basically where the launcher is

edit: its using Sun's java, as opposed to the free java Fedora gave out
also, if its not clear, the second version launched fine because I launched it with ./ from its directory
Hobbs FTW!
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

This doesn't answer your question directly... but the method I usually employ is to put Azureus somewhere owned by root, say /usr/Azureus/. (Just move the existing install and chown -R root:root it.) Then I create a simple shell script in, usually, /usr/local/bin (if that's in your path) called azureus:

code: Select all

#!/bin/sh

cd /usr/Azureus
./azureus
Has the same properties as actually running it, output, return code and all.

I gave up on Azureus as it's such a resource hog. :(
:wq
User avatar
windhound
Fish Rocketh, cows sucketh
Posts: 1030
Joined: Wed Jun 02, 2004 4:36 pm
Location: Ze Ocean

Post by windhound »

torrentflux doesnt like Fedora's SELinux, which I dont want to turn off
all other clients are kinda meh. Az funnels through one port, which is very nice 'cause everytime SELinux gets an update it resets the port for someodd reason

Az is a bit of a resource hog, but once it gets going its not so bad. it was much worse using the free java that came with fedora

oh, and is there any reason to give it to root?
I mean, I could change that to cd /home/windhound/system/azureus
I guess security?

thanks!
Hobbs FTW!
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

Good point. Let me put it this way, if it's roots, it's all users. But then you probably can't write to it. I keep a ~/bin directory and add it to my $PATH in my .profile/.bash_profile/.bashrc/.zshrc files. Then I stick binaries there. Shell scripts and such I stick into /usr/local/bin as I might want to run them as root or another user. I suggested that as it's already in your $PATH so you don't have to twiddle around with your rc files.
:wq
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members