TP-LINK TL-WDR3600 OPKG Entware + DLNA + Torrent

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware
Author Message
msantos2007
DD-WRT User


Joined: 13 Oct 2009
Posts: 245

PostPosted: Sun Feb 25, 2018 3:16    Post subject: TP-LINK TL-WDR3600 OPKG Entware + DLNA + Torrent Reply with quote
TP-LINK TL-WDR3600 OPKG Entware + DLNA + Torrent

The following replaces Optware for the latest DD-WRT builds (as of Feb-2018).


TP-LINK TL-WDR3600 Entware + MiniDLNA + Transmission
DD-WRT Build 34929M

[Update 2020-07-19] miniDLNA is now a service ("minidlnaD").


Please read the following instructions before taking any action. That will be good for getting used to them.

-------------------------------------------------------------------------------------------------
0. Hardware and Prerequisites
-------------------------------------------------------------------------------------------------
0.0 TP-Link WDR3600-N600 - v1.1: DD-WRT Build 34929, flashed and working.

0.0.1 Also works with the following devices (not tested, but reported):

- TP Link WDR4300
- TP Link Archer C7
- Netgear WNDR3700

0.1 PuTTY and WinSCP: Google, download and make them ready for use.

0.2 Kingston 16GB - DT101/G2: Create two partitions on the USB thumbdrive, using MiniTool Partition Wizard for example.

0.2.1 First Partition

- Partition Size : 14 GB (unallocated space)
- File System : NTFS or EXT3
- Create As : Primary
- Partition Label: Data (or whatever label you want to, but Optware)

0.2.2 Second Partition [IMPORTANT]

- Partition Size : 100 MB
- File System : EXT2 (NTFS or EXT3 might not work)
- Create As : Primary
- Partition Label: Optware (This must be it!)

0.3 DD-WRT Web Interface

0.3.1 Enable SSH (SSHd): [Services] > [Services] > [Secure Shell]

0.3.2 Enable Samba Sharing: [Services] > [NAS]

0.4 Router: stick the USB thumbdrive on router and reboot it.

0.5 Wait few seconds. Then make sure both [mnt/sda1] and [mnt/sda2] are mounted on the router and shared by Samba (from DD-WRT Web Interface).

0.6 Also make sure /dev/sda2 is mounted to /opt.



-------------------------------------------------------------------------------------------------
1. Entware
-------------------------------------------------------------------------------------------------
1.1 Run the following line-by-line, using PuTTY:
Quote:

cd /opt
wget -O - http://entware-3x.zyxmon.org/binaries/mips/installer/install_std.sh | sh
opkg update

1.2 Reboot the router.

1.3 Using PuTTY, you should see a colorful prompt (in red and blue). Run the following:
Quote:

opkg update
opkg upgrade




-------------------------------------------------------------------------------------------------
2. MiniDLNA
-------------------------------------------------------------------------------------------------

2.1 Run the following, using PuTTY:
Quote:

mkdir -p /tmp/mnt/sda1/dlna/Pictures
mkdir -p /tmp/mnt/sda1/dlna/Music
mkdir -p /tmp/mnt/sda1/dlna/Videos
opkg update
opkg install minidlna


2.2 You need to edit [/tmp/mnt/sda2/etc/minidlna.conf] file, with WinSCP, using the following content:
Quote:

Code:

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

# network interfaces to serve, comma delimited
network_interface=br0

# specify the user account name or uid to run as
#user=jmaggard

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

# set this to merge all media_dir base contents into the root container
# note: the default is no
#merge_media_dirs=no

# set this if you want to customize the name that shows up on your clients
friendly_name=Media Server

# set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
#db_dir=/opt/var/minidlna
db_dir=/mnt/sda1/dlna

# set this if you would like to specify the directory where you want MiniDLNA to store its log file
#log_dir=/opt/var/minidlna
log_dir=/mnt/sda1/dlna

# set this to change the verbosity of the information that is logged
# each section can use a different level: off, fatal, error, warn, info, or debug
#log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn

# 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/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.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=895

# serial and model number the daemon will report to clients
# in its XML description
serial=12345678
model_number=1

# specify the path to the MiniSSDPd socket
#minissdpdsocket=/opt/var/minidlna/minissdpd.sock

# use different container as root of the tree
# possible values:
#   + "." - use standard container (this is the default)
#   + "B" - "Browse Directory"
#   + "M" - "Music"
#   + "V" - "Video"
#   + "P" - "Pictures"
#   + Or, you can specify the ObjectID of your desired root container (eg. 1$F for Music/Playlists)
# if you specify "B" and client device is audio-only then "Music/Folders" will be used as root
#root_container=.

# always force SortCriteria to this value, regardless of the SortCriteria passed by the client
#force_sort_criteria=+upnp:class,+upnp:originalTrackNumber,+dc:title

# maximum number of simultaneous connections
# note: many clients open several simultaneous connections while streaming
#max_connections=50

# PNG image to use for an icon, optionally followed by a hex background
# color
#icon=myicon.png,7f7f7f

# Background color (hex rgb triplet) for PNG images converted to jpeg.  Two
# colors indicate that a checkerboard background, in those colors, should
# be used.
#bgcolor=666666,999999

# Suport to Movie Thumbnail generation. To use this option, thumbnail generation must be enable at compile time.
enable_thumbnail=yes

# The width of the thumbnail image. Large images takes more time to generate.  To use this option, thumbnail generation must be enable at compile time.
thumbnail_width=160

# Thumbnail Image quality. To use this option, thumbnail generation must be enable at compile time.
thumbnail_quality=8

# Should the thumbnail have a film strip? To use this option, thumbnail generation must be enable at compile time.
enable_thumbnail_filmstrip=yes

# For owners of LG TVs who suffer from 100% CPU utilization on the server
# If you have a large collection of movies, set this value to define
# how many objects will be sent by the server at once (0-100)
# The downside of using this option is being unable to
# "see" all images and/or pictures at once, the workaround is to use
# the "Browse Folders" mode
# search_limit=0



2.3 Test it, running the following, using PuTTY:
Quote:

minidlnad

You should be able to access MiniDLNA summary: http://192.168.1.1:8200

2.4 Paste the following on DD-WRT Web interface, Administration - Commands. Click "Save Startup".
Quote:

#! /bin/sh
sleep 10
/opt/sbin/minidlnad


2.5 Reboot the router.

You should be able to access MiniDLNA summary in 60 seconds: http://192.168.1.1:8200



-------------------------------------------------------------------------------------------------
3. Transmission
-------------------------------------------------------------------------------------------------

3.1 Run the following, using PuTTY:
Quote:

opkg install transmission-daemon-openssl
opkg install transmission-web
transmission-daemon
sleep 20
killall transmission-daemon


3.2 [IMPORTANT] Using WinSCP, copy [/tmp/root/.config/transmission-daemon] directory to [/tmp/mnt/sda2/]. You should see [/tmp/mnt/sda2/transmission-daemon] and subdirectories;


3.3 Edit the existing [/tmp/mnt/sda2/transmission-daemon/settings.json] file, with WinSCP, using the following content:
Quote:

Code:

{
    "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": true,
    "blocklist-url": "http://www.example.com/blocklist",
    "cache-size-mb": 2,
    "dht-enabled": true,
    "download-dir": "/tmp/mnt/sda1/dlna/Videos",
    "download-limit": 100,
    "download-limit-enabled": 1,
    "download-queue-enabled": true,
    "download-queue-size": 5,
    "encryption": 2,
    "idle-seeding-limit": 30,
    "idle-seeding-limit-enabled": false,
    "incomplete-dir": "/tmp/root/Downloads",
    "incomplete-dir-enabled": false,
    "lpd-enabled": false,
    "max-peers-global": 35,
    "message-level": 2,
    "peer-congestion-algorithm": "",
    "peer-limit-global": 240,
    "peer-limit-per-torrent": 60,
    "peer-port": 25000,
    "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": true,
    "preallocation": 1,
    "prefetch-enabled": 0,
    "queue-stalled-enabled": true,
    "queue-stalled-minutes": 30,
    "ratio-limit": 2,
    "ratio-limit-enabled": false,
    "rename-partial-files": true,
    "rpc-authentication-required": true,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-password": "guest",
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "guest",
    "rpc-whitelist": "192.168.1.*",
    "rpc-whitelist-enabled": false,
    "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": 100,
    "speed-limit-down-enabled": false,
    "speed-limit-up": 100,
    "speed-limit-up-enabled": false,
    "start-added-torrents": true,
    "trash-original-torrent-files": false,
    "umask": 18,
    "upload-limit": 200,
    "upload-limit-enabled": 1,
    "upload-slots-per-torrent": 14,
    "utp-enabled": true
}



3.4 Tests:

3.4.1 Run the following, using PuTTY:
Quote:

transmission-daemon -g /mnt/sda2/transmission-daemon/


3.4.2 Access http://192.168.1.1:9091 (http://<your-router-ip>:9091).

Username: guest
Password: guest

3.4.2.1 Edit file [/tmp/mnt/sda2/root/.config/transmission-daemon/settings.json], using WinSCP: change user and password to whatever you need.

3.5 Paste the following on DD-WRT Web interface, Administration - Commands. Click "Save Startup".
Quote:

#! /bin/sh
sleep 10
/opt/sbin/minidlnad
sleep 120
/opt/bin/transmission-daemon -g /mnt/sda2/transmission-daemon/


3.6 You can allow Transmission be accessible over Internet (protected by user/password defined on step 3.4.2).

3.6.1 Paste the following on DD-WRT Web interface, Administration - Commands. Click "Save Firewall".
Quote:

iptables -I INPUT -p TCP --dport 9091 -j ACCEPT


3.7 Reboot the router.


-------------------------------------------------------------------------------------------------
See also:
- Original Post: TP-LINK TL-WDR3600 HDD sharing, OPTWARE, DLNA, Torrent
- Reference: Installing Entware 3X


Good Luck!
Marcelo - Brazil
-----------------------------------------------------
TP-Link WDR3600 b.34929 Entware + DLNA + Transmission


Last edited by msantos2007 on Mon Jul 20, 2020 1:27; edited 4 times in total
Sponsor
omega66
DD-WRT Novice


Joined: 26 Feb 2018
Posts: 2

PostPosted: Wed Feb 28, 2018 14:03    Post subject: Reply with quote
Hello,

I have the same router (TP-LINK TL-WDR3600) and my download speed (for 1 torrent in Transmission) is somewhere between 100KB - 2MB and is inconstant (up to the maximum and down to the minimum) all the time.

On the same internet connection on my pc I have ~30MB download speed.

Can you tell me if this is a limitation of router hardware ? What is your download speed ?
msantos2007
DD-WRT User


Joined: 13 Oct 2009
Posts: 245

PostPosted: Wed Feb 28, 2018 15:49    Post subject: Reply with quote
There are a number of reasons:

- CPU;
- USB transfer rate;
- It is a "router"...


Relax, the same happens here...
omega66
DD-WRT Novice


Joined: 26 Feb 2018
Posts: 2

PostPosted: Wed Feb 28, 2018 16:12    Post subject: Reply with quote
Thank you for your quick answer.

I have tried with rTorrent and wasn't any improvement, even tried to enable swap (but for some reason swapon cmd is not recognised).

And I thought I missed something, but you are right, after all is only a router (and one with a low processor).
msantos2007
DD-WRT User


Joined: 13 Oct 2009
Posts: 245

PostPosted: Mon Mar 05, 2018 13:53    Post subject: Re: TP-LINK TL-WDR3600 OPKG Entware + DLNA + Torrent Reply with quote
up

Last edited by msantos2007 on Sun Jul 19, 2020 3:30; edited 1 time in total
bcsdias
DD-WRT Novice


Joined: 20 Oct 2013
Posts: 7
Location: Araraquara - SP - Brazil

PostPosted: Fri Jun 01, 2018 12:02    Post subject: Reply with quote
Hello Marcelo,

First of all, thank you for your work.

I have two questions.
1. Does DLNA work well for you? Convert videos automatically, or do I need to convert to the correct format?
2. What are the advantages of entware vs opwtare?

_________________
Bruno Dias
Brazil
ian5142
DD-WRT Guru


Joined: 23 Oct 2013
Posts: 2135
Location: Canada

PostPosted: Fri Jun 01, 2018 12:25    Post subject: Entware Reply with quote
Entware is fully contained and supports dd-wrt as well as AsusWRT and others. Optware for dd-wrt is no longer maintained so the OpenWRT repo must be used. This can cause some packages to not work at all, others to barely work, etc.

I did up a wiki page here on Entware: https://wiki.dd-wrt.com/wiki/index.php/Installing_Entware

_________________
Before asking a question on the forums, update dd-wrt: Where do I download firmware? I suggest reading it all.

Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one, I am trying to update them.

Atheros:
Netgear R7800 - gateway, DHCP, QoS, VPN
TP-Link Archer C7 v2 x2 - WDS AP, WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - WDS Station
D-Link 615 C1 x 4 - not used
D-Link 615 E3 x 2 - not used
D-Link 825 B1 - WDS Station
D-Link 862L A1 x2 - WDS Station
Netgear WNDR3700v2 - WDS Station
UBNT loco M2 x2 - airOS

Broadcom
Asus N66U - backup Gateway
Netgear r6300 v1 - AP
Linksys E2500 - not used
Linksys EA2700 - not used
Linksys 160N v3 x2 - not used
Netgear WNDR3700v3 - not used
MediaTek
UBNT EdgeRouter X - not used
bcsdias
DD-WRT Novice


Joined: 20 Oct 2013
Posts: 7
Location: Araraquara - SP - Brazil

PostPosted: Fri Jun 01, 2018 13:03    Post subject: Re: Entware Reply with quote
ian5142 wrote:
Entware is fully contained and supports dd-wrt as well as AsusWRT and others. Optware for dd-wrt is no longer maintained so the OpenWRT repo must be used. This can cause some packages to not work at all, others to barely work, etc.

I did up a wiki page here on Entware: https://wiki.dd-wrt.com/wiki/index.php/Installing_Entware


tks Very Happy

_________________
Bruno Dias
Brazil
andreskwao
DD-WRT Novice


Joined: 02 Jan 2019
Posts: 1

PostPosted: Wed Jan 02, 2019 13:48    Post subject: Re: TP-LINK TL-WDR3600 OPKG Entware + DLNA + Torrent Reply with quote
msantos2007 wrote:
TP-LINK TL-WDR3600 OPKG Entware + DLNA + Torrent

3.4.2.1 Edit file [/tmp/mnt/sda2/root/.config/transmission-daemon/settings.json], using WinSCP: change user and password to whatever you need.

3.6 You can allow Transmission be accessible over Internet (protected by user/password defined on step 3.4.2).

-----------------------------------------------------
TP-Link WDR3600 b.34929 Entware + DLNA + Transmission



hello, first .. thank you very much, could you help me with this point ?, I do not find that directory I get that does not exist, can I create it or did something wrong?
ian5142
DD-WRT Guru


Joined: 23 Oct 2013
Posts: 2135
Location: Canada

PostPosted: Wed Jan 02, 2019 14:04    Post subject: Mount point Reply with quote
Where is your drive mounted to?
/opt , /mnt , etc
Use that instead of /tmp/mnt/sda2/

_________________
Before asking a question on the forums, update dd-wrt: Where do I download firmware? I suggest reading it all.

Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one, I am trying to update them.

Atheros:
Netgear R7800 - gateway, DHCP, QoS, VPN
TP-Link Archer C7 v2 x2 - WDS AP, WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - WDS Station
D-Link 615 C1 x 4 - not used
D-Link 615 E3 x 2 - not used
D-Link 825 B1 - WDS Station
D-Link 862L A1 x2 - WDS Station
Netgear WNDR3700v2 - WDS Station
UBNT loco M2 x2 - airOS

Broadcom
Asus N66U - backup Gateway
Netgear r6300 v1 - AP
Linksys E2500 - not used
Linksys EA2700 - not used
Linksys 160N v3 x2 - not used
Netgear WNDR3700v3 - not used
MediaTek
UBNT EdgeRouter X - not used
Dutzzu
DD-WRT Novice


Joined: 24 Aug 2019
Posts: 3

PostPosted: Tue Aug 27, 2019 5:21    Post subject: Lost everything on restart Reply with quote
Hello,

I have a TP-Link TL-WDR3600 v1 router with DD-WRT v3.0-r40559 std (08/06/19) firmware installed.

I've done everything as explained above but every folder is lost after reboot (i.g. the folders created: Video, Pictures, Audio folders).

My stick has 14.56 GiB, so I have the following in Services - NAS:
/dev/sda not mounted Unsupported Filesystem
/dev/sda1 mounted to /tmp/mnt/sda1
/dev/sda2 mounted to /opt (with Volume name "Optware" )

It happens the same (for example) with ZNC: the config file, which is saved in /tmp/root/.znc is deleted (together with the .znc folder) after a restart.

Any suggestion of what should I do? Also, should I reformat my stick and increase the sda1 volume to have all the remaining capacity after having 100 Mb to sda2? (so I don't have that empty partition /sda)?

Thank you in advance.
Dutzzu
DD-WRT Novice


Joined: 24 Aug 2019
Posts: 3

PostPosted: Wed Aug 28, 2019 7:44    Post subject: Reply with quote
I've also tried with the latest firmware (r40784) but I have the same behave (files deleted from /tmp/sda1 and from /tmp/root).

Any help is appreciated.
adent
DD-WRT Novice


Joined: 06 Feb 2018
Posts: 47
Location: Vienna, Austria

PostPosted: Wed Aug 28, 2019 8:28    Post subject: Reply with quote
Did you execute step 3.2?

Quote:
3.2 [IMPORTANT] Using WinSCP, copy [/tmp/root/.config/transmission-daemon] directory to [/tmp/mnt/sda2/]. You should see [/tmp/mnt/sda2/transmission-daemon] and subdirectories;

Obviously anything directly in /tmp will be deleted on reboot.
Dutzzu
DD-WRT Novice


Joined: 24 Aug 2019
Posts: 3

PostPosted: Wed Aug 28, 2019 12:58    Post subject: Reply with quote
Hello adent,

thank you for your reply.

Well, I didn't even start the process of installing transmission at all. I didn't reach that step, as I'm having issues with miniDLNA.

At step 2.1, it is stated:
Quote:
2.1 Run the following, using PuTTY:
Quote:


mkdir -p /tmp/mnt/sda1/dlna/Pictures
mkdir -p /tmp/mnt/sda1/dlna/Music
mkdir -p /tmp/mnt/sda1/dlna/Videos
opkg update
opkg install minidlna



After that, I edited the file from /tmp/mnt/sda2/etc/minidlna.conf and save the "Startup" code (as explained at step 2.4), but, after reboot, the folders created above at step 2.1 (Pictures, Music, Videos) are deleted (with all the files included inside).
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC 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 cannot attach files in this forum
You cannot download files in this forum