Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Discussion (https://www.gnutellaforums.com/general-discussion/)
-   -   How-to: Phex 0.7.3 On Linux (https://www.gnutellaforums.com/general-discussion/15542-how-phex-0-7-3-linux.html)

marccd September 14th, 2002 12:21 PM

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

Unregistered September 15th, 2002 10:14 AM

Thanks for the intro, I followed along and thought I would mention that to append to a file you need to use >> rather than just > . It overwrote my existing rc.local the first time I went through it.

I am still having a trouble though. I am getting the errors

command:
$bash: phex

errors:
Exception in thread "main" java.util.zip.ZipException: No such file or directory
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.jar.JarFile.<init>(JarFile.java:117)
at java.util.jar.JarFile.<init>(JarFile.java:55)


Any help would be great. thanks.

Unregistered September 15th, 2002 11:44 AM

on redhat 7.3 I had to add the alias command to the /etc/.bashrc instead of /etc/rc.d/rc.local

marccd September 15th, 2002 12:58 PM

Yes
 
Sorry about the rc.local thingy i forgot the other > :p
try
alias "phex=java -jar /home/user/phex/phex.jar"
:)
marccd

Unregistered September 16th, 2002 05:09 AM

phex works, but can't connect to a network. It's now trying for 10 minutes to connect, but still nothing, how come????

marccd September 16th, 2002 02:53 PM

...
 
Actually i posted this message. cause people needed help with Phex. but i actually dont like it *snifff*, btw java sucks, ahh and i use gtk-gnutella. check gkt-gnutella.sf.net
or google for it
marccd
just wait for it to connect.
btw, gnutella sucks. but thats all we have :P

GregorK September 17th, 2002 01:14 AM

Hi marccd..

can you tell me why you don't like Phex? Is it just because of Java or are there other things that you don't like.
I would be very happy to get all feedback I can, this helps me improve Phex and maybe in one day it will work just the way you like it.

Thanks,
Gregor

marccd September 17th, 2002 05:47 PM

k
 
First of all Java!, try using libraries like Qt or Gtk, its not so hard to learn. second it needs more feature. like bandwith control, stats. etc. the Search thingy should have tabs, it will be cool to have shorcuts like Open with > Xmms FreeAmp etc etc, Maybe a mp3 player ? xmms is very extensible, mpg123 is cooll too,
Ahh, and the GUI needs some clean up, and some features, :/, a little mp3/ogg organizer (file manager) will be nice too, what about a dock app ? it can be kde / gnome, but just like a wm one cause i use fluxbox *sniff*, theres lots of things that will be cool. eg a cvs!!!!, or a live little chat support window on phex, or even maybe OpenNap compatible client, like gnapster. has opennap, or even giFT,
etc etc etc etc etc etc etc etc etc
:p marccd

GregorK September 18th, 2002 12:38 AM

Hi...

switching from Java to a different library is no choice. It would take to much development to port everything.

You might have not noticed it but Phex already has bandwidth control since a long time.

We are working on integration with more plattform related programs. The only problem is that it can be very difficult on linux to determine whats your favorite program for mp3 or html.
On windows this is no big deal at all. But if you know how to do it I sure integrate it.
Always keep in mind that will will not start to concentrate on just one plattform. We may integrate plattform specific features but compatibility to other plattforms must be ensured.

I'm also working on the integration of a better library manager. But this will take some more time till its ready.

Chat support will be available shortly in Phex 0.8.

Other P2P protocols will not be supported. The nature of different P2P protocols is too different to support them both correctly.

What do you mean with 'a cvs'?

Gregor

marccd September 18th, 2002 02:51 PM

yes
 
A Phex CVS, so we can keep updated with the latest ::Devel:: version of Phex, really good for proggramers in Linux, mp3 player nmnm. the most used are mpg123 and xmms you can add this command to the Open with mpg123 ...
===========
xterm -t mpg123 -e mpg123 %x
(i think)
-----------
%x is the file that u want to play, xmms will be like
xmms %f &

then the browser stuff, i use galeon myself, but most of the people use Mozilla / Galeon, then opera or konqeror, theres still people that use lynx,

lynx %url &

same with all the browsers. except konqueror. that is something with kdmclient crap, kde is full of unusable crap anyways,
:rolleyes:
yesterday i checked out the latest cvs of gtk-gnutella , ( 0.91), and now they have some new Server stats feature, thats pretty cool. maybe u guys will implement it, you can use Java, but the instalation is kind of tricky with the export stuff for a newbie, :)
anyways good luck
marccd


All times are GMT -7. The time now is 12:09 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.