aMule Forum

English => aMule Help => Topic started by: janste on September 04, 2008, 05:53:13 PM

Title: how to share files ?
Post by: janste on September 04, 2008, 05:53:13 PM
how to share files in amule ?
Title: Re: how to share files ?
Post by: gav616 on September 04, 2008, 06:45:23 PM
connect to good server http://peerates.net/servers.php connect to KAD

make sure all is HighID

place file  in Incoming folder, press refresh in 'shared files'

??
Title: Re: how to share files ?
Post by: q5q on September 05, 2008, 10:33:19 PM
How can I  recursively share multiple directories. I read the man page but it did not cover this question.
(note this is running on a headless debian server.)

The wiki said to add the path to shareddir.dat
my shareddir.dat looks like this
/mnt/VIDEO
/mnt/SECURE/SOFTWARE
/mnt/SECURE/MUSIC

but I'm not seeing them as shared via the remote-gui
do i need to enable reading of the shareddir.dat some how?
or put the full path i.e. /mnt/VIDEO/
thanks
Title: Re: how to share files ?
Post by: GonoszTopi on September 06, 2008, 12:55:25 PM
You either have to edit the file when amuled is not running, or reload shared files afterwards. You won't see them as shared in remote-gui's directory tree browser, that's yet unimplemented.

Note, that adding /mnt/VIDEO to shareddir.dat will only share files under /mnt/VIDEO, not its subdirectories. If that directory contains subdirectories, those must also be listed in shreddir.dat.

You can easily create the full list of direcories into shareddir.dat by running "find /mnt/VIDEO -type d -print >> shareddir.dat" (without the quotes).
Title: Re: how to share files ?
Post by: q5q on September 06, 2008, 08:50:36 PM
Thank you for the help.
I add new sub-dir often, so i will probly need a cron script to update the new folders.

I have put this togather but my scripting skills are lacking at best. Would you mind taking a look at this and tell me if you would make any changes to it.

Code: [Select]
#/bin/sh
#Path to shareddir.dat
SHAREDDIR=/mnt/SECURE/p2p/.aMule/shareddir.dat
/etc/init.d/amule-daemon stop
find /mnt/VIDEO -type d -print > $SHAREDDIR
find /mnt/SECURE/SOFTWARE -type d -print >> $SHAREDDIR
find /mnt/SECURE/MUSIC/Tammi -type d -print >> $SHAREDDIR
/etc/init.d/amule-daemon start

Thank you
Title: Re: how to share files ?
Post by: GonoszTopi on September 08, 2008, 12:39:02 PM
The script looks OK, but I'd use amulecmd to make amuled reload shared files instead of stopping/starting daemon. (amulecmd -c 'reload shared')
Title: Re: how to share files ?
Post by: q5q on September 10, 2008, 08:08:40 AM
Thanks i will make said change