Posted: Sat Mar 26, 2011 17:40 Post subject: Autoinstall OPKG, Transmission,hd-idle and Minidlna
Here is a simple way to install packages on atheros devices.
Unzip and transfer the files to the root of a hard disk attached to your router.
Run
Code:
chmod +x /mnt/setupscript.sh
then run
Code:
/mnt/setupscript.sh initiate
It will automaticaly setup IPKG and OPKG. You can also auto install transmission torrent client, minidla media server for dlna devices, samba and printer sharing. Just run the script to see what it can do
Code:
/mnt/setupscript.sh
P.S: You may want to use a fresh ddwrt setup before running the script
update:script now contains hd-idle for spin down of idle hard disks.
update 2: fixed error in creating startup script, fixed config file for minidlna
update 3: /dev no longer copied to hdd. hopefully this will solve problems with router login (if you were affected you might need to reset to factory and then rerun the script)
Last edited by anees.sw on Thu May 26, 2011 18:42; edited 13 times in total
Posted: Mon Mar 28, 2011 15:27 Post subject: Re: Autoinstall Optware transmission and minidlna
anees.sw wrote:
Here is a simple way to install optware packages on atheros devices.
Unzip and transfer the files to the root of a hard disk attached to your router.
Run
Code:
chmod +x /mnt/setupscript.sh
then run
Code:
/mnt /setupscript.sh initiate
It will automaticaly setup IPKG and OPKG. You can also auto install transmission torrent client, minidla media server for dlna devices, samba and printer sharing. Just run the script to see what it can do
Code:
/mnt/setupscript.sh
P.S: You may want to use a fresh ddwrt setup before running the script
Shouldn't the line reading:
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
be
iptables -I INPUT -p tcp --dport 80 -j ACCEPT" ?
Otherwise I suspect the nvram command is going to fail...
Shouldn't the line reading:
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
be
iptables -I INPUT -p tcp --dport 80 -j ACCEPT" ?
Otherwise I suspect the nvram command is going to fail...
hmm not the answer you were probably looking for but using an ext3 formatted hard disk is a lot more straight forward.
if you are going to keep this hard disk attached to your router at all times, then why would it matter if it is ntfs or ext?
p.s: i tried ntfs too but couldnt get it to work on my wrt160nl. Though it seems the buffalo g300nh has built in support for ntfs
edit: you could try running this in the CLI : opkg install ntfs-3g. u might just need a usb hub
I want to thank you for providing us with an easy way to install and setup miniDLNA. However I have a couple of questions. I run DD-WRT 16454 on a WRT160NL. This firmware (according to the GUI) already includes Printer Sharing and Samba, will this conflict with your script? Also I am curious which version of miniDLNA is included in your script. A couple of weeks a go miniDLNA 1.0.19 was released. As soon as I pick up my 1TB USB drive this weekend I plan on setting up miniDLNA on the router to stream to my Samsung TV and Blu-Ray player.
Will your script automatically create all the nessisary folders and files on the HDD (Videos, Pictures, Music, miniDLNA libaries, etc.)?
Will your script configure HDD spindown to save engergy or does it provide a way to set this up?
I am familiar with DD-WRT already for a couple of years. I owned a WRT54Gv5 running DD-WRT 2.4 SP1 micro before. However this is my first time I will install extra software to the router.
hmmm build 16454 gave me "bus error" when trying to install with ipkg from CLI on my wrt160nl. i rolled back to build 14896 which seems to me as the most stable release for a wrt160nl. between these two builds, all others used up way too much ram (coz i had transmission, ftp, minidlna and samba running simultaneously) and router would reboot way too frequently.
only problem with build 14896 is that it doesnt has inotify enabled so you will have to manually rescan your entire library to add media files.
yes it does creat media folders called "share" in the root of the hdd.
hdd spin down is not included but look around in the forum, ive seen it somewhere. or maybe il just post it here. personally hd spin down is not of much use for me as i have transmission running all most all the time.