View Single Post
  #1 (permalink)  
Old September 14th, 2002
marccd marccd is offline
Apprentice
 
Join Date: September 14th, 2002
Location: Santa Cruz, Ca
Posts: 9
marccd is flying high
Talking How-to: Phex 0.7.3 On Linux

Ok, i heard a lot of stuff about Phex. that doesnt work bla bla, well here are the steps to get it to work:
Download Java JRE 1.4/1.3, i use
www.blackdown.org myself. cause sun sucks..
Install it
Set the path envoriment as root
export PATH="/usr/java/jre2/bin":$PATH
NOTE, that line. should be different, check where your jre/bin dir is.
Ok, you might want to add that line to /etc/rc.local or create a sh script eg:

#!/bin/sh
echo "Starting Java..."
export PATH="/usr/java/jre2/bin":$PATH
echo "Done..."

Save it as java.sh and copy it to /etc/profile.d/
Oh, and remember to chmod +x java.sh before copying it,
OR if you want to do it more easily just do
echo export PATH="/usr/java/jre2/bin":$PATH >> /etc/rc.d/rc.local

Now, you got Java working and stuff
Do this. download this
http://prdownloads.sourceforge.net/phex/phex.hosts
and copy it to the user youre are running Phex.
EJ: im user marccd
so.. do this
cp phex.hosts /home/marccd/.phex/
Overwrite the one is already there,
or if youre root then cp phex.hosts /root/.phex/
Bla Bla, Nowe download the gnutella.net file
http://gnutella.co.uk/servers/gnutella.net
Copy the content of that file and paste it into your
/home/user/.phex/phex.hosts
Ok. that should work allright, now you might want to add an alias for java -jar phex.jar
[marccd@marccd phex_0.7.3_j2se1.4]$ alias "phex=java -jar phex.jar"
that should add an alias. so u just type Phex, instead of java -jar phex.jar,
now. add thar line to the end of /etc/rc.local
do this
echo alias "phex=java -jar phex.jar" >> /etc/rc.d/rc.local
remember to do all the steps as root. but run phex as normal user. so it reads /home/user/.phex/stuff
or you can copy the contents of /home/user/.phex
to /root/.phex
that should work,
Ok, hope it helps!!
Ps: for the speed problem.. get more memory. is juts that java sucks. and eats lots of memory




GregorK: I changed the > to >> to not overwrite the rc.local

Last edited by GregorK; September 16th, 2002 at 03:46 AM.
Reply With Quote