aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amuled 2.2.6 - how to add shares  (Read 2998 times)

me777

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
amuled 2.2.6 - how to add shares
« on: February 04, 2010, 04:25:17 PM »

Hi!

Just compiled amuled and the other non-gui stuff on my server (debian Linux) and using remote-gui from windows.

adding shares is a real problem as i can't run the gui on the server and the remote-gui shows local files instead of the files on the server.

I also tried to symlink my shared folder into incoming, but only 1 file got shared (it is right in the top of the linked directory) the files in sub-directory's don't get shared :(

.../Incoming/symlink -> Shares

.../Shares/File #this is shared
.../Shares/somedir/file #this is not shared

also it seems the remote-gui sets some settings back to default at random, or it just displays up- and download rates as 0...
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: amuled 2.2.6 - how to add shares
« Reply #1 on: February 04, 2010, 05:42:46 PM »

I also tried to symlink my shared folder into incoming, but only 1 file got shared (it is right in the top of the linked directory) the files in sub-directory's don't get shared :(

This is intentional, subdirectories don't get shared. To share a directory recursively you can use the following command:
Code: [Select]
$ find /path/to/shared.dir -type d -print > ~/.aMule/shareddir.datBe careful that /path/to/shared.dir should be an absolute path, and do this while amule(d) is not running. (IIRC it should work on-the-fly with 'reload shared files', but I'm not sure).
Logged
concordia cum veritate

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: amuled 2.2.6 - how to add shares
« Reply #2 on: February 04, 2010, 11:19:03 PM »

Nope, 'reload shared files' only looks for files, not for dirs.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Dante_

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: amuled 2.2.6 - how to add shares
« Reply #3 on: April 08, 2010, 12:22:25 AM »

Well, that a very "crappy"  "feature"...
I'm always organizing my downloaded files into meaningful directories, so, even if I ran that command, some days later the newly created directories containing the new files won't be shared.

I guess I could create a cron job to stop amuled, run the command, and start amule again periodically, but that would be an extremely "crappy" fix too.

I seriously believe  you should add a flag we could use before or after a line on shareddir.dat, someting like:

Code: [Select]
/path/to/directory1
recursive /path/to/directory2

directory1 would be shared non recursively and directory2 would be shared recursively, and scanned regularly (every hour or more often, perhaps a configurable parameter on aMule.conf
Logged
(\_/)
(°_°) <- This is Bunny. Copy Bunny into your signature
(>< ) to help him on his way to world domination.

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: amuled 2.2.6 - how to add shares
« Reply #4 on: April 08, 2010, 07:28:48 PM »

1) Do not cross-post.
2) If you try to convince us to do something for you, do not use "crap" and "aMule" in the same sentence.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon