aMule Forum
English => aMule Help => Topic started by: janste on September 04, 2008, 05:53:13 PM
-
how to share files in amule ?
-
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'
??
-
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
-
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).
-
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.
#/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
-
The script looks OK, but I'd use amulecmd to make amuled reload shared files instead of stopping/starting daemon. (amulecmd -c 'reload shared')
-
Thanks i will make said change