Optware, the right way

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2, 3 ... 14, 15, 16  Next
Author Message
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1518

PostPosted: Wed Oct 14, 2009 6:19 pm    Post subject: Optware, the right way Reply with quote
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)
Sponsor
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 758

PostPosted: Wed Oct 14, 2009 6:52 pm    Post subject: Reply with quote
I can confirm that this is the best Optware system for my WL500W. Frater did an awesome job...Kudos man
_________________
Asus WL520gU

Asus WL500W

Asus RT-N16
yzy-oui-fi
DD-WRT Guru


Joined: 03 Mar 2009
Posts: 693
Location: France

PostPosted: Wed Oct 14, 2009 8:16 pm    Post subject: Reply with quote
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.

So....I'm hardly waiting for your reply Wink

_________________
F.Morize (not M. Champagne only one of his friends) Wink
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


Last edited by yzy-oui-fi on Wed Oct 14, 2009 9:52 pm; edited 3 times in total
Murrkf
DD-WRT Guru


Joined: 22 Sep 2008
Posts: 6410

PostPosted: Wed Oct 14, 2009 8:59 pm    Post subject: Reply with quote
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

"WILL DE-BRICK FOR SOLDER!"
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1518

PostPosted: Wed Oct 14, 2009 10:01 pm    Post subject: Reply with quote
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...

http://mybookworld.wikidot.com/forum/t-68493/

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)
yzy-oui-fi
DD-WRT Guru


Joined: 03 Mar 2009
Posts: 693
Location: France

PostPosted: Thu Oct 15, 2009 1:04 pm    Post subject: php web media center on routers Reply with quote
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. Wink

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...

http://yci69fr.fr/telechargements/yzy-media-101.tar.gz

here some screen shout:
http://yci69fr.fr/telechargements/yzy-media-101.jpg
http://yci69fr.fr/telechargements/yzy-media-101-2.jpg
http://yci69fr.fr/telechargements/yzy-media-101-3.jpg
http://yci69fr.fr/telechargements/yzy-media-101-4.jpg
http://yci69fr.fr/telechargements/yzy-media-101-5.jpg

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) Wink
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
rhdcheme
DD-WRT User


Joined: 16 Jun 2007
Posts: 88
Location: Northern Virginia, USA

PostPosted: Thu Oct 15, 2009 1:23 pm    Post subject: Re: Optware, the right way Reply with quote
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?

Do I have to prepare according to Wiki (here: http://www.dd-wrt.com/wiki/index.php/Optware)?

Thanks.

_________________
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)

RB: WNR834BV2
DD-WRT v24-sp2 (07/21/09) std - build 12533

CB: WNDR3300
DD-WRT v24-sp2 (09/08/09) mini - build 12874
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1518

PostPosted: Thu Oct 15, 2009 3:24 pm    Post subject: Re: Optware, the right way Reply with quote
rhdcheme wrote:

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?

Do I have to prepare according to Wiki (here: http://www.dd-wrt.com/wiki/index.php/Optware)?

Thanks.

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)
rhdcheme
DD-WRT User


Joined: 16 Jun 2007
Posts: 88
Location: Northern Virginia, USA

PostPosted: Thu Oct 15, 2009 4:33 pm    Post subject: Re: Optware, the right way Reply with quote
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)

RB: WNR834BV2
DD-WRT v24-sp2 (07/21/09) std - build 12533

CB: WNDR3300
DD-WRT v24-sp2 (09/08/09) mini - build 12874
cbstryker
DD-WRT Novice


Joined: 05 Sep 2009
Posts: 19

PostPosted: Thu Oct 15, 2009 8:55 pm    Post subject: Reply with quote
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.
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 758

PostPosted: Thu Oct 15, 2009 9:21 pm    Post subject: Reply with quote
If using windoze, then just create a new network place of \\192.168.1.1 (or your routers IP)
_________________
Asus WL520gU

Asus WL500W

Asus RT-N16
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 1435
Location: 3rd rock from the sun

PostPosted: Thu Oct 15, 2009 10:57 pm    Post subject: Re: Optware, the right way Reply with quote
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!
Any pointers before I try this on my SD mod? Swap? Partitions?
_________________
Peacock Thread-FAQ
Firmware Recommendations
Testing Multiple Routers
Optware the right way on a SD Mod
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1518

PostPosted: Thu Oct 15, 2009 11:27 pm    Post subject: Reply with quote
cbstryker wrote:
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)
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1518

PostPosted: Sat Oct 17, 2009 6:56 pm    Post subject: Reply with quote
Someone with a Chello account who downloaded my scripts today should redownload "service" in which I made a typo...

Code:
wget -q /opt/usr/sbin/service http://wd.mirmana.com/service

_________________
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)
Mekanik
DD-WRT Novice


Joined: 26 May 2009
Posts: 31
Location: Hawaii

PostPosted: Sat Oct 17, 2009 8:03 pm    Post subject: Re: Optware, the right way Reply with quote
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
Goto page 1, 2, 3 ... 14, 15, 16  Next Display posts from previous:    Page 1 of 16
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC 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 can attach files in this forum
You can download files in this forum