Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

amule without X -> Is it possible?

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
25 posts • Page 1 of 1
Author
Message
wantilles
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 136
Joined: Tue Aug 12, 2003 7:17 pm
Location: Athens - Greece

amule without X -> Is it possible?

  • Quote

Post by wantilles » Mon Dec 19, 2005 2:44 pm

I am planning to setup a small x86 machine as a file server using Gentoo.

I would like to know if it is possible for amule to run with no X emerged in this system (in make.conf USE flags -> -X, -gtk, -gtk2, -gnome, -qt, -kde). How does amule run? As a daemon?

I know that I can control it through its web interface (amuleweb daemon).
Top
jedsen
Apprentice
Apprentice
Posts: 276
Joined: Fri Oct 15, 2004 9:41 pm
Location: Sacramento, California, USA

  • Quote

Post by jedsen » Mon Dec 19, 2005 7:39 pm

Code: Select all

emerge mldonkey
http://mldonkey.berlios.de/modules.php? ... llowed_ips
You can :

Code: Select all

telnet localhost 4000
into mldonkey to set this option, then use telnet or the web interface (http://192.168.x.x:4080) from a remote box on your network.
Last edited by jedsen on Mon Dec 19, 2005 7:59 pm, edited 4 times in total.
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

Re: amule without X -> Is it possible?

  • Quote

Post by i92guboj » Mon Dec 19, 2005 7:43 pm

wantilles wrote:I am planning to setup a small x86 machine as a file server using Gentoo.

I would like to know if it is possible for amule to run with no X emerged in this system (in make.conf USE flags -> -X, -gtk, -gtk2, -gnome, -qt, -kde). How does amule run? As a daemon?

I know that I can control it through its web interface (amuleweb daemon).
Dont think so, As stated above, your best bet would be mldonkey, that can also use the mule/donkey net shares.
Top
jedsen
Apprentice
Apprentice
Posts: 276
Joined: Fri Oct 15, 2004 9:41 pm
Location: Sacramento, California, USA

Re: amule without X -> Is it possible?

  • Quote

Post by jedsen » Mon Dec 19, 2005 7:58 pm

6thpink wrote:Dont think so, As stated above, your best bet would be mldonkey, that can also use the mule/donkey net shares.
How does one use net shares?
Top
wantilles
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 136
Joined: Tue Aug 12, 2003 7:17 pm
Location: Athens - Greece

  • Quote

Post by wantilles » Mon Dec 19, 2005 8:00 pm

Thank you for your interest.

I am well aware of mldonkey. In fact I had been using it for months. Switched to X+Gnome+amule though because mldonkey has a much different codebase in its core, and it is far less "aggressive" and efficient in getting sources for the downloads. Amule on the other hand, has the original emule codebase in the core, and it's much more efficient.
Top
jedsen
Apprentice
Apprentice
Posts: 276
Joined: Fri Oct 15, 2004 9:41 pm
Location: Sacramento, California, USA

  • Quote

Post by jedsen » Mon Dec 19, 2005 8:05 pm

I thought that mlnet was just renamed mldonkey.
Top
nydoofus
n00b
n00b
Posts: 2
Joined: Wed Dec 21, 2005 3:50 am

  • Quote

Post by nydoofus » Wed Dec 21, 2005 4:07 am

wantilles wrote:Thank you for your interest.

I am well aware of mldonkey. In fact I had been using it for months. Switched to X+Gnome+amule though because mldonkey has a much different codebase in its core, and it is far less "aggressive" and efficient in getting sources for the downloads. Amule on the other hand, has the original emule codebase in the core, and it's much more efficient.
It actually is possible. I just managed to do this myself, though it took a lot of effort. Hopefully these steps will get you a working amuled / amuleweb without needing X.

1. Edit /etc/portage/package.use and add these lines

Code: Select all

net-p2p/amule amuled -gtk remote
x11-libs/wxGTK -debug -doc -gnome -gtk2 -joystick -odbc -opengl -sdl -unicode -wxgtk1
2. Do an emerge amule -pv. It should show only amule and wxGTK
3. Run emerge amule
4. Run amuled as root. It should quit immediately
5. Pick a random password and create an MD5 of it.

Code: Select all

echo -n yourpasswordhere | md5sum | cut -d ' ' -f 1
6. Edit /root/.aMule/amule.conf and change the following options to the values in parens

Code: Select all

TempDir=/root/.aMule/Temp (/home/p2p/.aMule/Temp or whatever you choose, has to be owned by p2p)
IncomingDir=/root/.aMule/Incoming (/home/p2p/.aMule/Incoming or whatever you choose, has to be owned by p2p)
AcceptExternalConnections=0 (1)
ECUseTCPPort=0 (1)
ECPassword= (MD5 of password)
7. Move the /root/.aMule to /home/p2p
8. Do a chown -R p2p /home/p2p/.aMule
9. Run /etc/init.d/amuled start it should start normally
10. Edit /etc/conf.d/amuleweb and AMULEPWD to yourpasswordhere
11. Edit /etc/init.d/amuleweb and change

Code: Select all

OPTIONS="-rh ${AMULEHOST} -p ${AMULEPORT} -pw ${AMULEPWD}"
to

Code: Select all

OPTIONS="-h ${AMULEHOST} -p ${AMULEPORT} -P ${AMULEPWD} -q"
12. Run /etc/init.d/amuleweb
Top
Crazor
Tux's lil' helper
Tux's lil' helper
Posts: 131
Joined: Wed Apr 23, 2003 8:10 pm

  • Quote

Post by Crazor » Wed Dec 21, 2005 10:49 am

Many thanks nydoofus, that worked =) Now amuled is up and running on my xbox =)
Top
nydoofus
n00b
n00b
Posts: 2
Joined: Wed Dec 21, 2005 3:50 am

  • Quote

Post by nydoofus » Wed Dec 21, 2005 7:15 pm

|Crazor| wrote:Many thanks nydoofus, that worked =) Now amuled is up and running on my xbox =)
No problem :). Now if I can only get the amule-cvs to compile without X I'll be happy :)
Top
Ilvalle
Guru
Guru
User avatar
Posts: 325
Joined: Mon Mar 07, 2005 1:06 pm
Location: Gallarate - ITALY
Contact:
Contact Ilvalle
Website

  • Quote

Post by Ilvalle » Wed Jan 04, 2006 12:29 am

I , sorry for my english
but in italian forum some people work for amule cvs and without X:
http://forums.gentoo.org/viewtopic-t-350384.html

Paolo
Top
dpetka2001
l33t
l33t
Posts: 804
Joined: Fri Mar 04, 2005 1:11 pm

  • Quote

Post by dpetka2001 » Thu Jan 12, 2006 10:42 pm

is it possible to run amule as a daemon and control it through console?? let's say copy over from your computer to the server just the links and then give a command ,as for an example "download e2dk://link" ?? is there some other programme you would recommend in order to do such a thing?? and maybe use the original emule codebase in the core?? thanks...
Top
tmf
Tux's lil' helper
Tux's lil' helper
Posts: 76
Joined: Tue May 10, 2005 3:47 pm
Location: Warsaw, Poland

  • Quote

Post by tmf » Fri Jan 13, 2006 12:40 pm

You need to compile amule with amuled flag, then run amuled and than control it via amulecmd.

tmf
Top
dpetka2001
l33t
l33t
Posts: 804
Joined: Fri Mar 04, 2005 1:11 pm

  • Quote

Post by dpetka2001 » Fri Jan 13, 2006 6:42 pm

so this way i won't be needing any web-interface at all right?? thank you for your answer...
Top
dpetka2001
l33t
l33t
Posts: 804
Joined: Fri Mar 04, 2005 1:11 pm

  • Quote

Post by dpetka2001 » Mon Jan 16, 2006 5:16 pm

i have just emerged amule and would like to run amuled and be able to control it through amulecmd...are the instructions above identical for amulecmd?? should i follow them or would i be in trouble if i'd do it?? thanks...
Top
tmf
Tux's lil' helper
Tux's lil' helper
Posts: 76
Joined: Tue May 10, 2005 3:47 pm
Location: Warsaw, Poland

  • Quote

Post by tmf » Mon Jan 16, 2006 9:47 pm

quite the same. Since you dont want to have web interface dont follow points 10 and 11. If you plan to run amulecmd locally I think you can leave AcceptExternalConnections and ECUseTCPPort equal to 0.

cheers,
tmf
Top
dpetka2001
l33t
l33t
Posts: 804
Joined: Fri Mar 04, 2005 1:11 pm

  • Quote

Post by dpetka2001 » Tue Jan 17, 2006 12:21 am

i have a "/root/.aMule/amule.conf" and also a "~/.aMule/amule.conf"...which of the two should i edit?? also why should i change the paths in amule.conf in order to match those of the amuled and not just edit "/etc/conf.d/amuled" ?? what is the difference??
Top
tmf
Tux's lil' helper
Tux's lil' helper
Posts: 76
Joined: Tue May 10, 2005 3:47 pm
Location: Warsaw, Poland

  • Quote

Post by tmf » Tue Jan 17, 2006 9:01 am

When amule is run first by a user it creates in _user home_ directory another one called .aMule/, in wich it stores it configs, downloads, credits, etc. Every single user then will have his own .aMule/ dir. So you have to edit the config that you will then copy to p2p dir. AFAIK /etc/conf.d/amuled is config file not for amule itself, but for initscript that will run amule at boot time (if you want it to do so). You have to edit amule.conf file (to change the paths) if you want amule to be run as diffrent user.

cheers,
tmf
Top
tmf
Tux's lil' helper
Tux's lil' helper
Posts: 76
Joined: Tue May 10, 2005 3:47 pm
Location: Warsaw, Poland

  • Quote

Post by tmf » Tue Jan 17, 2006 9:03 am

another thing - if you dont want amuled to be run at boot time, you dont have to follow these steps - just run it from one of consoles when you need it
Top
dpetka2001
l33t
l33t
Posts: 804
Joined: Fri Mar 04, 2005 1:11 pm

  • Quote

Post by dpetka2001 » Tue Jan 17, 2006 11:51 am

soi if i change the path in /etc/conf.d/amuled instead of ~/.aMule/amule.conf will i not be able to run amule?? for example if i change the path from ~/p2p to ~/.aMule in /etc/conf.d/amuled won't it be the same ?? will it not run?? because this way it will see the directories normally (i think) under ~/.aMule since the script for the daemon will be prompted to look in the changed directory...
Top
tmf
Tux's lil' helper
Tux's lil' helper
Posts: 76
Joined: Tue May 10, 2005 3:47 pm
Location: Warsaw, Poland

  • Quote

Post by tmf » Tue Jan 17, 2006 5:26 pm

well, try it, experiment, see if it will work for you ;). The method mentioned in one of the previous posts was about having amuled running as special user ("p2p"), having its own dir. Its the most elegant solution, probably best for most of users not willing to have gui version, maybe it will be easier to follow it exactly? One more thing - ~/p2p is not the same as /home/p2p

tmf
Top
dpetka2001
l33t
l33t
Posts: 804
Joined: Fri Mar 04, 2005 1:11 pm

  • Quote

Post by dpetka2001 » Tue Jan 17, 2006 5:58 pm

ok i think i got it...one last question before proceeding...you said that the instructions in the previous post were meant for a user p2p...so i guess i'll just have to create one...but in which groups should the user "p2p" be a member of?? just group "users" or maybe something else aswell??
Top
tmf
Tux's lil' helper
Tux's lil' helper
Posts: 76
Joined: Tue May 10, 2005 3:47 pm
Location: Warsaw, Poland

  • Quote

Post by tmf » Tue Jan 17, 2006 6:23 pm

You dont have to add any user:

Code: Select all

$ cat /etc/passwd | grep p2p
p2p:x:105:506:added by portage for amule:/home/p2p:/bin/false
I think you dont have to deal with any groups related stuff to have amuled running.

tmf
Top
dpetka2001
l33t
l33t
Posts: 804
Joined: Fri Mar 04, 2005 1:11 pm

  • Quote

Post by dpetka2001 » Tue Jan 17, 2006 7:07 pm

i don't have a "ECUseTCPPort" in my amule.conf...where is this entry needed?? does it have any effect on how i control amule with amulecmd??
Top
epinefryna
n00b
n00b
Posts: 16
Joined: Thu Jan 27, 2005 4:57 pm

  • Quote

Post by epinefryna » Thu May 11, 2006 8:52 pm

Hi

nice procedure here :-)
I folowed it up except USE flags (I do not mind X)
and I get in /home/p2p/.aMule/logfile something like:

Code: Select all

006-05-11 22:47:13: Creditfile loaded, 0 clients are known
2006-05-11 22:47:13: Loaded ipfilter with 0 new IP addresses.
2006-05-11 22:47:13: Loading server.met file: /home/p2p/.aMule/server.met
2006-05-11 22:47:13: 0 servers in server.met found
2006-05-11 22:47:13: No part files found
2006-05-11 22:47:13: *** TCP socket (ECServer) listening on 0.0.0.0:4712
2006-05-11 22:47:13: Found 0 known shared files
2006-05-11 22:47:13: Connecting
2006-05-11 22:47:13: Connecting to
2006-05-11 22:47:13: No valid servers to connect in serverlist found
2006-05-11 22:47:13: AICH Thread: Syncronization thread started.
2006-05-11 22:47:13: AICH Thread: Masterhashes of known files have been loaded.
2006-05-11 22:47:13: AICH Thread: No new files found.
2006-05-11 22:47:13: AICH Thread: Terminated.
netstat -a shows

Code: Select all

tcp        0      0 *:4712                  *:*                     LISTEN      p2p        14270
tcp        0      0 *:4662                  *:*                     LISTEN      p2p        14275
tcp        0      0 *:ssh                   *:*                     LISTEN      root       11447
udp        0      0 *:4665                  *:*                                 p2p        14271
udp        0      0 *:4672                  *:*                                 p2p        14276
Where do I do mistake?
There is no spoon.
Top
netbui
n00b
n00b
Posts: 48
Joined: Mon Jul 03, 2006 1:56 pm

  • Quote

Post by netbui » Fri Feb 02, 2007 8:25 pm

Hi,

I followed this instructions, but the web server did not came up. But I got it working:

http://forums.gentoo.org/viewtopic-p-38 ... ml#3882330
Top
Post Reply

25 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic