Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO] aMule with webserver and GTK+2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
FMulder
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2004
Posts: 83
Location: Cagliari, Italy

PostPosted: Thu Feb 10, 2005 11:44 pm    Post subject: [HOWTO] aMule with webserver and GTK+2 Reply with quote

HOWTO: aMule with webserver and GTK+2

Hi! This is an english translation of this italian howto!
I'm italian and I don't write in a perfect english, but I hope you'll find this useful ;-)
It would be great if a moderator wants to do the hard job of checking and correcting all my mistakes ;-)

Required:
- aMule 2.0.0rc8,
modified ebuild that can be compiled on GTK+2 with remote tools enabled.

This ebuild is masked so you need to do (as root)

Code:
# echo "net-p2p/amule ~x86" >> /etc/portage/package.keywords


- wxGTK-2.5.3 (installed as dependency of the ebuild) are hard masked, so if you don't already have them you have to do this as root before emerging amule:

Code:
# echo "=x11-libs/wxGTK-2.5.3" >> /etc/portage/package.unmask


If you already have them, you MUST have them compiled with flag USE="gtk2", otherwise you'll never be able to use gtk2 with amule ;-)

Step 1: adding the ebuild to portage
Look into /etc/make.conf for the line
Code:
PORTDIR_OVERLAY=/usr/local/portage

If you don't have that, add it.

Create the folder for the portage overlay:
Code:
# mkdir -p /usr/local/portage/net-p2p/amule
# cd /usr/local/portage/net-p2p/amule


Now copy the downloaded ebuild in this folder, with name amule-2.0.0_rc8.ebuild and do
Code:
# ebuild amule-2.0.0_rc8.ebuild digest


Step 2: emerge amule
You have to enable flags remote and gtk2.

If you also want support for internal statistics, you have to add flag stats

If you former emerged wxGTK 2.5.3 using flag gtk2 AND unicode, you can choose against which version linking amule.

for gtk2+unicode version:
Code:
# USE="gtk2 remote stats unicode" emerge amule -v --pretend


for gtk2 version:
Code:
# USE="gtk2 remote stats -unicode" emerge amule -v --pretend


Obiouvsly, you must select gtk2 only version if you didn't emerged wxGTK with unicode



If all seems fine, just remove --pretend and cross fingers ;-)

Step 3: amule configuration
Log-on as the user who will run the amule webserver, and start amule with

Code:

# amule


I won't explain how to config amule, I suppose you already know that!
I'll give you just the needed option for enabling webserver.

Go in Preferences, Remote connection, and check the options:

- enable password
- enable gzip compression
- enable external connection
- use TCP ports instead of UNIX local sockets

Choose a port as tcp external port (default 4712) and choose one another for webserver (default 4711)

Choose a password in external connection parameters and another one for full rights on webserver parameters.

Done? Close amule, you need it in order to apply changes.

Step 4: Last settings
Log on as the user who will run the webserver, type

Code:

# cp /usr/share/amuleweb/* ~/.aMule/ -r


this is needed because amule tries to find the web pages template for the webserver directly inside ~/.aMule.

Step 5: aMule and web access
From now on, you can start amule typing
Code:

# amule


and start webserver giving as parameter the external port for TCP connection, like this:
Code:

# amuleweb -p 4712

You have to type the password you choose for TCP external connections.

Now, you can access your c00l amule webserver just typing http://192.168.0.1:4711/ (with the right IP you know ;-)) where you will be prompt to type the password for webserver access

I hope you'll find this useful...
Enjoy :D
_________________
Chi rinuncia ai sogni, è destinato a morire
--> Jim Morrison
Back to top
View user's profile Send private message
WaTcHmE
n00b
n00b


Joined: 18 Aug 2004
Posts: 36

PostPosted: Mon Feb 14, 2005 4:41 am    Post subject: Reply with quote

it works!

*dancing round in circles*

THX a lot FMulder for your Howto!

U saved my night :)
_________________
It doesnt matter how to pronounce "Linux"....
If you use it!
Back to top
View user's profile Send private message
Cklein
n00b
n00b


Joined: 07 Sep 2003
Posts: 18

PostPosted: Tue Feb 15, 2005 11:05 pm    Post subject: Reply with quote

Thanks a lot for your guide, it works perfect! Thank you very much
Back to top
View user's profile Send private message
VeritisQuo
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jun 2004
Posts: 90
Location: Barcelona

PostPosted: Fri Mar 04, 2005 9:06 pm    Post subject: Reply with quote

Fmulder:

A lot of thanks!:D It's favulous! It runs! :wink:
_________________
Be clever, use Linux
Back to top
View user's profile Send private message
mascanho
Veteran
Veteran


Joined: 21 Dec 2004
Posts: 1241
Location: On my Bmx Bike on a Concrete Park Flatlanding ...

PostPosted: Sun Mar 13, 2005 11:24 pm    Post subject: Reply with quote

nice job , well done man tkx
_________________
Flatland Life is a Choice !
emerge avatar
Back to top
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Fri Aug 26, 2005 7:00 pm    Post subject: Reply with quote

is this possible on 2.03 too?
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum