Advertisement
Guest User

Install entware minidlna on asus router

a guest
Jan 12th, 2015
1,346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. Ok, first, to answer your question about risk: There is no risk of damage to the router by simply trying to configure DLNA.
  2.  
  3. 1: go to your routers webpage -> administration -> system:
  4. Enable JFFS partition: YES
  5. Format JFFS partition at next boot: YES (if you havent done step one before)
  6.  
  7. 2: Save, and hit "Restart" button on the top of the router webpage.
  8.  
  9. 3: After restarting router, go torouters webpage -> administration -> system:
  10. Enable JFFS partition: YES
  11. Format JFFS partition at next boot: NO
  12. Activate Telnet: YES
  13.  
  14. 4: Save, and hit "Restart" button on the top of the router webpage.
  15.  
  16. 5: Telnet to your router (e.g 192.168.1.1 or 10.0.0.1 is most common)
  17.  
  18. 6: Connect a HDD or USB-stick to your router, it must be ext2/3 formatted or atleast have a ext2/3 partition on it. Use Minitool partition wizard if you use Windows to make a ext3 partition and set as primary, eventually you can have a second ntfs partition on the same HDD set to logic, label both of them before connecting it to router. You should be able to format/create an ext3 from the router through telnet aswell, but I dont know the commands for it - sorry.
  19.  
  20. 7: Once HDD is connected, restart router with same method as before.
  21.  
  22. 8: routers webpage -> USB application -> Servers senter:
  23. Activate DLNA-mediaserver: OFF
  24.  
  25. Continue to Network-Samba / Cloud disk-submenu:
  26. Activate network share: ON
  27. In here you set up sharing as you like in your own taste, preferably with your mediafiles directories shared so you can copy to/from them from your PC.
  28.  
  29. 9: Save and restart router like mentioned before.
  30.  
  31. 10: When restarted, telnet (download puttytel or putty <- google it) to your routers ip-address (most common is 192.168.1.1 or 10.0.0.1), on port 23.
  32. Login with your routers webpage admin loginname/password.
  33.  
  34. 11: Type cd /usr/sbin
  35. 12: entware-setup.sh
  36. 13: Follow whatever instructions comes on the screen.
  37.  
  38. 14: When entware is installed restart router by typing:
  39. reboot
  40.  
  41. 15: Telnet into router again after restart, then type:
  42. cd /opt/tmp
  43. wget http://entware.wl500g.info/binaries/entware/archive/minidlna_1.1.4-1b_entware.ipk
  44. opkg install ./minidlna_1.1.4-1b_entware.ipk
  45. opkg flag hold minidlna
  46. opkg install nano
  47.  
  48. Thats a special version ryzhovau made for me today, which has the asus-router icon instead of the horrific penguin icon (when it shows on your TV).
  49.  
  50. If all is done as above now, you will have minidlna installed, and it should start automatically, if not, you need to make a services-start script in your /jffs/scripts folder, like this:
  51.  
  52. 1: telnet into router
  53. 2: type:
  54. cd /jffs/scripts
  55. nano services-start
  56.  
  57. Now, in the editor that comes up, you insert:
  58.  
  59. #!/bin/sh
  60. sleep 90
  61. /opt/etc/init.d/rc.unslung start
  62.  
  63. then save with ctrl-x and "Y" to save contents.
  64.  
  65. 3: (while still in /jffs/scripts):
  66. chmod a+rxw *
  67. cd ..
  68. chmod a+rxw *
  69. nano /opt/etc/minidlna.conf
  70.  
  71. insert all the dirs and configurations you like in minidlna.conf - please refer to the manual of minidlna or google the settings / minidlna.conf to set it up correctly. now save as before with ctrl-x
  72.  
  73. 4: Now, this is if you do NOT want minidlna to recreate the DB every time you restart, then type:
  74.  
  75. nvram get dms_dbdir <- make a written note of the value it gives back
  76.  
  77. if it says "/opt/var/minidlna", then you need to do the following:
  78. nvram set dms_dbdir=-1
  79. nvram commit
  80.  
  81. this will prevent the routers boot-process for the inbuilt/bundled and now disabled minidlna to try and delete / clean out your current dbdir.
  82.  
  83. If it does NOT say "/opt/var/minidlna" then you dont need to do that nvram-thing at all.
  84.  
  85. Thats it, do a "reboot" and you're good to go.
  86.  
  87. Sincerely Karmacom
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement