Posted: Wed Oct 14, 2009 6:19 pm Post subject: Optware, the right way
Yes, I know the subject sounds pretentious but I really think this is the right way to start optware on the DD-WRT router.
I've written a similar script for the Western Digital Worlbook and it's been installed on 180 devices and counting without any complaints...
You need to take care yourself of mounting a writable blockdevice to /opt (you can do this using the webif or with the command `mount -n -o noatime -t ext3 /dev/..... /opt` in rc_startup)
This script will do the whole install:
Code:
wget -O /tmp/prep_optware http://wd.mirmana.com/prep_optware
sh /tmp/prep_optware
It will load all the necessary optware and supporting scripts I wrote from the ground up.
You'll get:
Code:
bash instead of shell in busybox (LFS support)
services running as other users than root
vim with proper terminal support
automounting and unmounting of partitions
hotmount
pre-configured samba
transmission with watchdog
reverse proxy featuring pound
service tool
many, many things more.... just check it out
I will be writing more stuff for it in the near future..... _________________ Asus WL500 Premium+USB-stick, Copperjet 1616 in ZipB-config
Running asterisk and reverse proxy (pound)
WRT54G as WDS-bridge
DD-WRT v24-sp2 mega (c) 2009 NewMedia-NET GmbH
Release: 07/18/09 (SVN revision: 12523)
It'seems interresting, are you abble this way to load php on the device?
(I'll edit this to give more info)
I'm interested in it because i've made a light php web site abble to stream lot of media type(mp3, asf, avi,mpg,http_tv,jpg,gif) within three click. my only trouble is that PHP is not include with dd-wrt, I will try to rebuilt a firmware, but if it is possible without rebuiding it will be nice and easy to set for every one.
just have to activated a second httpd pointing on it and you could have a sort of media server included on an asus device.
I'll sticky this for a week or two? _________________ Don't worry if I make sense..be thankful I'm paying attention to your issue!
http://i31.tinypic.com/24mz3ms.png
With the reverse proxy you can manage all your http-servers on port 80....
Just load lighttpd with php-support and virtual hosting on it and bob's your uncle...
I have a nice system for virtual hosting as well.
It uses your directory structure as a database...
I will take a look at it later on this week...
I'm now totally exhausted writing and testing these scripts. _________________ Asus WL500 Premium+USB-stick, Copperjet 1616 in ZipB-config
Running asterisk and reverse proxy (pound)
WRT54G as WDS-bridge
DD-WRT v24-sp2 mega (c) 2009 NewMedia-NET GmbH
Release: 07/18/09 (SVN revision: 12523)
Posted: Thu Oct 15, 2009 1:04 pm Post subject: php web media center on routers
fine,
my media server is also base on directory db(unfortunatly wrt will never support SQL almost external db but unsecur).
I'll have to check your tells, to test it, and for sure i'll be back with an how to for those who need it, but first i'd like to finish the rebuilt for wrt54 working with cifs. after that >8mb,32mb routers with USB will be easy.
thank for your help
Note:
for those who alredy have implemented PHP (or have an APACHE +PHP server at home), here is the link for media server website, sorry it's only available in french at this time...
the only thing to do is to unpack the archive file in your www directory, create appropriate link in "data" directories or storing directly media in it. If you know a little bit of french there is a readme call lisez-moi. _________________ F.Morize (not M. Champagne only one of his friends)
a voir:
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=58929
take a look:
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=59899
Joined: 16 Jun 2007 Posts: 88 Location: Northern Virginia, USA
Posted: Thu Oct 15, 2009 1:23 pm Post subject: Re: Optware, the right way
frater wrote:
You need to take care yourself of mounting a writable blockdevice to /opt (you can do this using the webif or with the command `mount -n -o noatime -t ext3 /dev/..... /opt` in rc_startup)
This script will do the whole install:
Code:
wget -O /tmp/prep_optware http://wd.mirmana.com/prep_optware
sh /tmp/prep_optware
It will load all the necessary optware and supporting scripts I wrote from the ground up.
Please forgive me as I am a novice on this. I want to use a hard drive (40 GB) as USB storage.
What is "rc_startup"? Is this a saved command (startup) in dd-wrt web GUI Administration?
If so, after doing this save command, I just telnet and run the two line script you posted?
If you have USB-enabled firmware (I don't see any reason not to use this if you are planning to use USB) you only need to tell DD-WRT to mount 'the' USB-storage to /opt
If you have partitioned your HD and have at least 1 GB as your 1st partition all is well....
Everything should go automatically after you enter those 2 commands in the "telnet interface".
It will even automatically mount swap if you partitioned this....
Do use "ext" as your filesystem. At least for optware! _________________ Asus WL500 Premium+USB-stick, Copperjet 1616 in ZipB-config
Running asterisk and reverse proxy (pound)
WRT54G as WDS-bridge
DD-WRT v24-sp2 mega (c) 2009 NewMedia-NET GmbH
Release: 07/18/09 (SVN revision: 12523)
Joined: 16 Jun 2007 Posts: 88 Location: Northern Virginia, USA
Posted: Thu Oct 15, 2009 4:33 pm Post subject: Re: Optware, the right way
frater wrote:
If you have USB-enabled firmware (I don't see any reason not to use this if you are planning to use USB) you only need to tell DD-WRT to mount 'the' USB-storage to /opt
If you have partitioned your HD and have at least 1 GB as your 1st partition all is well....
Everything should go automatically after you enter those 2 commands in the "telnet interface".
It will even automatically mount swap if you partitioned this....
Do use "ext" as your filesystem. At least for optware!
Thanks! I will give it a try. _________________ AP: WRT600N V 1.1
DD-WRT v24-sp2 (09/01/09) big - build 12774 Eko NEWD (USB Storage Link 40 MB HD w/ Frater's Optware)
Joined: 22 Jun 2008 Posts: 1435 Location: 3rd rock from the sun
Posted: Thu Oct 15, 2009 10:57 pm Post subject: Re: Optware, the right way
frater wrote:
If you have USB-enabled firmware (I don't see any reason not to use this if you are planning to use USB) you only need to tell DD-WRT to mount 'the' USB-storage to /opt
If you have partitioned your HD and have at least 1 GB as your 1st partition all is well....
Everything should go automatically after you enter those 2 commands in the "telnet interface".
It will even automatically mount swap if you partitioned this....
Do use "ext" as your filesystem. At least for optware!
So how should the partitions on the drive be set up? I have mine configured for HDsamba2 which is:
Part 1 - 250MB ext3 (optware)
Part 2 - 250MB swap
Part 3 - aprox 950MB ext3 (all the data)
And if I use this package will I be able to access the data through the network as //NAS or something similar?
Thanks.
Should do fine.... Use the webif to mount to /opt and everything should load automagically. _________________ Asus WL500 Premium+USB-stick, Copperjet 1616 in ZipB-config
Running asterisk and reverse proxy (pound)
WRT54G as WDS-bridge
DD-WRT v24-sp2 mega (c) 2009 NewMedia-NET GmbH
Release: 07/18/09 (SVN revision: 12523)
Posted: Sat Oct 17, 2009 8:03 pm Post subject: Re: Optware, the right way
DHC_DarkShadow wrote:
Any pointers before I try this on my SD mod? Swap? Partitions?
Frater,
I've got a working SD card mod too and have the same question. Should I create an ext3 partition and a swap partition in Linux first? Then mount the ext3 partition to /opt, and run the script? _________________ WRT54GLv1.1
WRT54GSv1.1
WRT54GSv5
WRT54Gv1.1
WRT54Gv2
WRT54Gv4
WRT54G2v1
WHR-G300N