Autoinstall OPKG, Transmission,hd-idle and Minidlna

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware
Goto page 1, 2, 3, 4, 5, 6  Next

Was this useful ?
Yes
88%
 88%  [ 47 ]
No
11%
 11%  [ 6 ]
Total Votes : 53

Author Message
anees.sw
DD-WRT User


Joined: 17 Sep 2010
Posts: 267
Location: India

PostPosted: Sat Mar 26, 2011 17:40    Post subject: Autoinstall OPKG, Transmission,hd-idle and Minidlna Reply with quote
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
Sponsor
viruscz
DD-WRT Novice


Joined: 28 Mar 2011
Posts: 4

PostPosted: Mon Mar 28, 2011 15:27    Post subject: Re: Autoinstall Optware transmission and minidlna Reply with quote
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


where i can find the files ?
anees.sw
DD-WRT User


Joined: 17 Sep 2010
Posts: 267
Location: India

PostPosted: Mon Mar 28, 2011 16:59    Post subject: Reply with quote
they are in the attachment.

1)unzip the attachment

2)enable automount from services>usb (mount to /mnt)

3)attach harddisk to router

4)enable ftp with write access from services>nas (make sure files directory is /mnt)

5)connect to ftp server using filezilla software and transfer the files (1 script and 1 folder) to the hardisk
anees.sw
DD-WRT User


Joined: 17 Sep 2010
Posts: 267
Location: India

PostPosted: Tue Mar 29, 2011 17:39    Post subject: Reply with quote
if you found it useful, post here to bump this thread up
ar2rar2r
DD-WRT Novice


Joined: 02 Dec 2010
Posts: 4

PostPosted: Tue Mar 29, 2011 20:39    Post subject: Reply with quote
hi

which version of samba is used in the script , cause the one from wrt160nl.org uses 2.0 and there are problems with files greater than 2GB

any ideas ??

thanks

Ar2r
anees.sw
DD-WRT User


Joined: 17 Sep 2010
Posts: 267
Location: India

PostPosted: Wed Mar 30, 2011 7:15    Post subject: Reply with quote
uses the same version but ive not had problems with files larger than 2 gb
wildfire
DD-WRT Novice


Joined: 01 Sep 2010
Posts: 3

PostPosted: Wed Mar 30, 2011 10:29    Post subject: Reply with quote
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...
anees.sw
DD-WRT User


Joined: 17 Sep 2010
Posts: 267
Location: India

PostPosted: Wed Mar 30, 2011 11:48    Post subject: Reply with quote
wildfire wrote:
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...


il update the script
edit: updated
ar2rar2r
DD-WRT Novice


Joined: 02 Dec 2010
Posts: 4

PostPosted: Wed Mar 30, 2011 15:12    Post subject: Reply with quote
hi

i've tried to use the script . I'm using newest brainslayer build on wrt160nl , ext3 formatted drive and i got

root@DD-WRT:~# /mnt /setupscript.sh initiate
-sh: /mnt: Permission denied

hmm, any ideas ??

thanks
ar2r
wildfire
DD-WRT Novice


Joined: 01 Sep 2010
Posts: 3

PostPosted: Wed Mar 30, 2011 15:34    Post subject: Reply with quote
ar2rar2r wrote:
hi

i've tried to use the script . I'm using newest brainslayer build on wrt160nl , ext3 formatted drive and i got

root@DD-WRT:~# /mnt /setupscript.sh initiate
-sh: /mnt: Permission denied

hmm, any ideas ??

thanks
ar2r


Try removing the space between "/mnt" and "/setupscript.sh initiate" Smile
ar2rar2r
DD-WRT Novice


Joined: 02 Dec 2010
Posts: 4

PostPosted: Wed Mar 30, 2011 15:56    Post subject: Reply with quote
OH MY GOD !!!

I know that i'm a linux newbie but that is just too much !! :)

Embarassed

you're a life saver mate Very HappyVery Happy:D

Thanks

Ar2r
Bonza13
DD-WRT Novice


Joined: 09 Nov 2010
Posts: 11

PostPosted: Wed Mar 30, 2011 16:20    Post subject: Reply with quote
anees.sw
Will there be all right if the hard drive will be NTFS?
anees.sw
DD-WRT User


Joined: 17 Sep 2010
Posts: 267
Location: India

PostPosted: Wed Mar 30, 2011 17:56    Post subject: Reply with quote
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
bschalker
DD-WRT Novice


Joined: 01 Apr 2011
Posts: 32

PostPosted: Fri Apr 01, 2011 9:45    Post subject: Reply with quote
Hi anees.sw,

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.

Kind Regards,

Barry
anees.sw
DD-WRT User


Joined: 17 Sep 2010
Posts: 267
Location: India

PostPosted: Fri Apr 01, 2011 13:07    Post subject: Reply with quote
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.
Goto page 1, 2, 3, 4, 5, 6  Next Display posts from previous:    Page 1 of 6
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