DDWRT and Netgear r6700 w MiniDLNA and Transmission-daemon

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
neveroffline
DD-WRT Novice


Joined: 06 Jan 2011
Posts: 32
Location: USA

PostPosted: Sun May 12, 2019 9:27    Post subject: DDWRT and Netgear r6700 w MiniDLNA and Transmission-daemon Reply with quote
Hello all,

I tried several ways to get transmission-daemon and minidlna to work on my r6700 running <39494 std> and wasn't able to find a guide or a solution. It certainly didn't work out of the box.

Out of the box with <39494 std> installed I had all sorts of issues with transmission and minidlna, so this should help.

Make sure you have your Services -> USB core set to on, USB storage set to on, and USB auto-mount set to on - save & reboot after your HDD is detected or before. No need to set anything else here. ext2/3 I didn't try as my HDD was/is NTFS and I didn't want to change it.

Make a file on your /mnt/sda1 or the root of your USB device that is named "tmdlna.enable". It may be 0 bytes. Make a folder on your mnt/sda1 named minidlna, dlna and also tsettings (chmod 755). If doing this from your SSH console you may type "touch tmdlna.enable" etc.

Code:

cd ..
cd /tmp/mnt/sda1/
mkdir tsettings dlna minidlna
chmod 755 tsettings dlna minidlna
touch tmdlna.enable


Disable Bittorrent/Transmission and MiniDLNA in your ddwrt gui under Services/NAS. We'll set these later.

For your transmission settings (/mnt/sda1/tsettings/settings.json), modify this to your /mnt/sda setup. You only need to change the /mnt/sda folders and the settings you want to, keeping in mind json syntax and not mistakingly entering a comma or : where it isn't needed:

/mnt/sda/tsettings/settings.json
syntax "": <int> or <string in quotes>, (last line, no comma)
Code:


{
    "max-percentage": 50,
    "alt-speed-down": 50,
    "alt-speed-enabled": false,
    "alt-speed-time-begin": 540,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": false,
    "alt-speed-time-end": 1020,
    "alt-speed-up": 50,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "::",
    "blocklist-enabled": false,
    "blocklist-url": "http://www.example.com/blocklist",
    "cache-size-mb": 4,
    "dht-enabled": true,
    "download-dir": "/mnt/sda1/Torrents",
    "download-limit": 100,
    "download-limit-enabled": 0,
    "download-queue-enabled": true,
    "download-queue-size": 5,
    "encryption": 1,
    "idle-seeding-limit": 30,
    "idle-seeding-limit-enabled": false,
    "incomplete-dir": "/mnt/sda1/Torrents",
    "incomplete-dir-enabled": true,
    "lpd-enabled": false,
    "max-peers-global": 200,
    "message-level": 3,
    "peer-congestion-algorithm": "",
    "peer-id-ttl-hours": 6,
    "peer-limit-global": 200,
    "peer-limit-per-torrent": 50,
    "peer-port": 51413,
    "peer-port-random-high": 65535,
    "peer-port-random-low": 49152,
    "peer-port-random-on-start": false,
    "peer-socket-tos": "default",
    "pex-enabled": true,
    "port-forwarding-enabled": false,
    "preallocation": 1,
    "prefetch-enabled": true,
    "queue-stalled-enabled": true,
    "queue-stalled-minutes": 30,
    "ratio-limit": 2.0000,
    "ratio-limit-enabled": true,
    "rename-partial-files": true,
    "rpc-authentication-required": false,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-host-whitelist": "",
    "rpc-host-whitelist-enabled": true,
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "",
    "rpc-whitelist": "127.0.0.1,192.168.1.*",
    "rpc-whitelist-enabled": true,
    "scrape-paused-torrents-enabled": true,
    "script-torrent-done-enabled": false,
    "script-torrent-done-filename": "",
    "seed-queue-enabled": false,
    "seed-queue-size": 10,
    "speed-limit-down": 400,
    "speed-limit-down-enabled": false,
    "speed-limit-up": 10,
    "speed-limit-up-enabled": true,
    "start-added-torrents": true,
    "trash-original-torrent-files": true,
    "umask": 18,
    "upload-slots-per-torrent": 14,
    "utp-enabled": true
}



If you want to prevent over-seeding, please lower your rate-limit to something lower than 2, or 1. This is your setting for how many times you want to upload the torrent you downloaded before stopping. Valid values are x.0000 to x.0000. IE: 2 is 2:1, 0 is 0:1.

For your minidlna settings, modify this to your /mnt/sda setup.

/mnt/sda/minidlna/minidlna.conf
Set your video/images/music folders, port, and other options.
Code:

#port for HTTP (descriptions, SOAP, media transfer) traffic
port=8200

# network interface to bind to (this is the only interface that will serve files)
network_interface=br0

# set this to the directory you want scanned.
# * if have multiple directories, you can have multiple media_dir= lines
# * if you want to restrict a media_dir to a specific content type, you
# can prepend the type, followed by a comma, to the directory:
# + "A" for audio (eg. media_dir=A,/home/dlna/Music)
# + "V" for video (eg. media_dir=V,/home/dlna/Videos)
# + "P" for images (eg. media_dir=P,/home/dlna/Pictures)
media_dir=V,/mnt/sda1/Torrents
#media_dir=V,/mnt/sda1/dlna/Videos
#media_dir=P,/mnt/sda1/dlna/Pictures
#media_dir=A,/mnt/sda1/dlna/Music

# set this if you want to customize the name that shows up on your clients
friendly_name=dlna-2019

# set this if you would like to specify the directory where you want MiniDLNA to store its database and alb
db_dir=/mnt/sda1/dlna
#/mnt/tmp/minidlna

# Path to the directory that should hold the log file.
log_dir=/mnt/sda1/dlna

# Type and minimum level of importance of messages to be logged.
#
# The types are "artwork", "database", "general", "http", "inotify",
# "metadata", "scanner", "ssdp" and "tivo".
#
# The levels are "off", "fatal", "error", "warn", "info" or "debug".
# "off" turns of logging entirely, "fatal" is the highest level of importance
# and "debug" the lowest.
#
# The types are comma-separated, followed by an equal sign ("="), followed by a
# level that applies to the preceding types. This can be repeated, separating
# each of these constructs with a comma.
#
# The default is to log all types of messages at the "warn" level.
log_level=general=off,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=fatal


# this should be a list of file names to check for when searching for album art
# note: names should be delimited with a forward slash ("/")
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg
album_art_names=AlbumArt.jpg/Album.jpg/Folder.jpg

# set this to no to disable inotify monitoring to automatically discover new files
# note: the default is yes
inotify=yes

# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
enable_tivo=no

# set this to strictly adhere to DLNA standards.
# * This will allow server-side downscaling of very large JPEG images,
# which may hurt JPEG serving performance on (at least) Sony DLNA products.
strict_dlna=no

# default presentation url is http address on port 80
presentation_url=http://192.168.1.1:8200/

# notify interval in seconds. default is 895 seconds.
notify_interval=300

# serial and model number the daemon will report to clients
# in its XML description
serial=12345678
model_number=1
model_name=Windows Media Connect compatible (MiniDLNA)



Make sure you save your files while minidlna and transmissiond are not running. If they are, do a killall minidlna and a killall transmissiond from your SSH prompt logged into the router - or save the files to your HDD connected to your PC before booting your router. Make sure your files and folders are chmod 777 or 755.

I find that sleep 30 works well, but this is only so my HDD syncs up and so the router boots before I run these commands. If these commands are run before the router boots and has your USB synched it will fail.

DDWRT -> Administration - Commands -> Save as Startup
Code:

sleep 30
 if [ -f /mnt/sda1/.tmdlna.enable ]; then
  killall transmissiond
  transmissiond -g "/mnt/sda1/tsettings"
  killall minidlna
  minidlna -f /mnt/sda1/minidlna/minidlna.conf -R
 fi


If for some reason your settings.json isn't respected fully, I ran into this for RPC allowed whitelist, you may modify the transmissiond line above as so: <transmissiond -a "rpc-list-of-servers-to-allow-comma-separated>192.168.1.*" -g "/mnt/sda1/tsettings">

Hope this helps at least one other person trying to get these 2 working when "out of the box" doesn't.


transmission-daemon settings.json minidlna.conf netgear r6700 ddwrt dd-wrt
Sponsor
portsup
DD-WRT User


Joined: 20 Oct 2018
Posts: 85

PostPosted: Sun Aug 04, 2019 15:02    Post subject: Reply with quote
The whitelist line getting changed is some remotes change lots of settings when you look at the settings through them, annoying.. I overwrite the settings file from another to restore it every time transmission is started.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum