MLDONKEY change download directory

MLDONKEY change download directory
MLDONKEY is installed in /var/lib/mldonkey/ on debian/ubuntu.
And Shares are made relative to the installation directory

shared
incoming/files
incoming/directories

For example /var/lib/mldonkey/incoming/files

But we may want to change that.

/home/user/.mldonkey

So we create directories:

mkdir /home/user/.mldonkey
mkdir /home/user/.mldonkey/shared
mkdir /home/user/.mldonkey/incoming
mkdir /home/user/.mldonkey/incoming/files
mkdir /home/user/.mldonkey/incoming/directories

But remember that mldonkey app runs on user mldonkey, for safety.
So we have to grant permission to access those directories.

sudo chown -R user:mldonkey /home/user/.mldonkey

Now we go to mldonkey’s interface:

http://localhost:4080

and in [Options] [Share] we add through [Add Share] the following configuration:

0 /home/user/.mldonkey/shared all_files
0 /home/user/.mldonkey/incoming/files incoming_files
0 /home/user/.mldonkey/incoming/directories incoming_directories

and we [Unshare] previous shared directories.
And that’s it.

Related posts