[Update 2023-05-11] Revision on [0.3.2 USB Support]
[Update 2021-09-20] Transmission script revision
[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.2 USB Support: [Services] > [USB] > [USB Support]
- Core USB Support: Enable
- USB Storage Support: Enable
- Automatic Drive Mount: Enable
0.3.3 Enabled Samba Sharing: [Services] > [NAS]
0.3.4 Click [Save].
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 in [Services] > [USB]
-------------------------------------------------------------------------------------------------
1. Entware
-------------------------------------------------------------------------------------------------
1.1 Run the following line-by-line, using PuTTY:
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
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 ?
Joined: 20 Oct 2013 Posts: 7 Location: Araraquara - SP - Brazil
Posted: Fri Jun 01, 2018 12:02 Post subject:
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
Posted: Fri Jun 01, 2018 12:25 Post subject: Entware
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.
Joined: 20 Oct 2013 Posts: 7 Location: Araraquara - SP - Brazil
Posted: Fri Jun 01, 2018 13:03 Post subject: Re: Entware
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.
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?
Posted: Wed Jan 02, 2019 14:04 Post subject: Mount point
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.
QCA Best WiFi Settings
Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one.
Atheros:
Netgear R7800 x3 - WDS AP / station, gateway, QoS
TP-Link Archer C7 v2 x2 - WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - NU
D-Link 615 C1/E3/I1 x 7 - 1 WDS station
D-Link 825 B1 - NU
D-Link 862L A1 x2 - WDS Station
Netgear WNDR3700v2 - NU
UBNT loco M2 x2 - airOS
Broadcom
Linksys EA6400 - Gateway, QoS
Asus N66U - AP
Netgear WNDR3700v3 - not used
MediaTek
UBNT EdgeRouter X - switch
Posted: Tue Aug 27, 2019 5:21 Post subject: Lost everything on restart
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)?
Joined: 06 Feb 2018 Posts: 48 Location: Vienna, Austria
Posted: Wed Aug 28, 2019 8:28 Post subject:
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.
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).