aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: how to share files ?  (Read 2759 times)

janste

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
how to share files ?
« on: September 04, 2008, 05:53:13 PM »

how to share files in amule ?
Logged

gav616

  • Guest
Re: how to share files ?
« Reply #1 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'

??
Logged

q5q

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: how to share files ?
« Reply #2 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
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: how to share files ?
« Reply #3 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).
Logged
concordia cum veritate

q5q

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: how to share files ?
« Reply #4 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
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: how to share files ?
« Reply #5 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')
Logged
concordia cum veritate

q5q

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: how to share files ?
« Reply #6 on: September 10, 2008, 08:08:40 AM »

Thanks i will make said change
Logged