MyPage (Part Deux)

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2, 3 ... 18, 19, 20  Next
Author Message
Dark_Shadow
DD-WRT Guru


Joined: 31 Aug 2009
Posts: 2448
Location: Third Rock from the Sun

PostPosted: Thu Sep 30, 2010 18:08    Post subject: MyPage (Part Deux) Reply with quote
Currently running on Asus RT-N16 17670 kingkong
Also tested on WRT-54G-TM w/ 16MB SD MOD
******10-29-2011 v0.17-20111029******

* Embedded dd-wrt - Bandwidth Usage Monitor into mypage13.sh. If you have the bandwdth monitor installed and working it will display under the BWMON tab. It's a little wider then some of the themes, I am working on narrowing it.



******10-28-2011 v0.17-20111028******

* fix loaded module display

******10-27-2011 v0.17-20111027******

More cosmetics

* Reintegrated Web Links and pitcher aids in different spot on each page
* Reformatted Help column to display properly in all default themes in dd-wrt
* Added help sections not present

******10-26-2011 v0.17-20111026******

Just cosmetics

*Reformatted so that it looks proper in other themes
*Disabled BWMonitor to incorporate new version


Note: I am not sure how the install script works, never used it. If you have any improvements or have a fix for it let me know.
******Old Post******

All Working on BS build 15362 k2.6 Mega RT-N16

V0.16.2-Currently Working on

Wiki = MyPage Wiki
gi-minni's last update = Page 5 Post

It's been awhile since gi-minni made any updates. gi-minni went so far so fast I really couldn't keep up with the code change. I am slowly starting to figure things out. I have made some changes and a fix or 2. Just thought I would share in a clean thread since I am unsure when gi-minni will return.

I am open to additions, fixes, and translations. Bear with me since I am just learning what all the code does.

Changelog:
http://infodepot.wikia.com/wiki/MyPage#Change_Log

Live Traffic has very little footprint now.

put this code in startup.

Code:
/opt/www/mypageup.sh



winscp upload mypage_V0.16.2-20101013.tar
to the routers /tmp.

telnet
login into dd-wrt
and run this code.

Code:
nvram set mypage_scripts="/opt/www/mypage1.sh /opt/www/mypage2.sh /opt/www/mypage3.sh /opt/www/mypage4.sh /opt/www/mypage5.sh /opt/www/mypage6.sh /opt/www/mypage7.sh /opt/www/mypage8.sh /opt/www/mypage9.sh /opt/www/mypage10.sh /opt/www/mypage11.sh /opt/www/mypage12.sh /opt/www/mypage13.sh"
nvram commit
mkdir /opt/www
tar xf v0.17-20111026.tar -C/opt/www
cd /opt/www
dos2unix M* m* u* w* setup/m* setup/t* setup/lang/* setup/libs/* js/* libs/* style/*
chmod -R 644 /opt/www/*
chmod -R 755 /opt/www/*.sh /opt/www/*.asp /opt/www/libs/*.sh /opt/www/js/*.js /opt/www/wrt*
chmod -R 755 /opt/www/setup/*.sh /opt/www/setup/libs/*.sh /opt/www/setup/lang/*.sh
chown root.root *



reboot the router.

Special Thx to the author gi-minni and to the contributors so far - Dark_Shadow, Luniz2k1, FezJay, mojso, Wolf Kodi and arthu



v0.17-20111029.tar
 Description:
MyPage v0.17-20111029

Download
 Filename:  v0.17-20111029.tar
 Filesize:  457.5 KB
 Downloaded:  1835 Time(s)


_________________
Peacock Thread-FAQ -- dd-wrt Wiki

Testing Multiple Routers -- Bootloader Collection Project -- My Wiki


Last edited by Dark_Shadow on Fri Nov 25, 2011 12:38; edited 22 times in total
Sponsor
mojso
DD-WRT User


Joined: 09 Sep 2007
Posts: 232
Location: Macedonia

PostPosted: Fri Oct 01, 2010 13:06    Post subject: Reply with quote
works great Smile
_________________

wrt54gl v1.1. with DD-WRT v24-sp2 (08/12/10) std-nokaid
(SVN revision 14929) + 1GB SD Card + Optware + MyPage + lighttpd

WDS linked

wrt54gl v1.1. with DD-WRT v24-sp2 (08/12/10) std-nokaid
(SVN revision 14929)
+ 2GB SD Card + Optware + MyPage

crashfly
DD-WRT Guru


Joined: 24 Feb 2009
Posts: 2026
Location: Sol System > Earth > USA > Arkansas

PostPosted: Fri Oct 01, 2010 16:33    Post subject: Reply with quote
Good to hear that someone is going to 'carry the torch'. I will test out what you have when I get home this evening. Keep up the great work Dark_Shadow.
_________________
E3000 22200M KongVPN K26
WRT600n v1.1 refirb mega 18767 BS K24 NEWD2 [not used]
WRT54G v2 16214 BS K24 [access point]

Try Dropbox for syncing files - get 2.5gb online for free by signing up.

Read! Peacock thread
*PLEASE* upgrade PAST v24SP1 or no support.
jumran
DD-WRT User


Joined: 31 Jul 2009
Posts: 492
Location: Toronto, ON, CA

PostPosted: Sat Oct 02, 2010 23:29    Post subject: Reply with quote
Thanks for the updated file Dark Shadow, installed and working great on my unit. I don't think gi-minni is coming back to the forums since he has been mia for so long so we need someone to take over and update and improve this project.

For future updates, is it possible to change the main display font to match dd-wrt font style and maybe rename the display tab from My Page to something with a better description?

_________________
Asus RT-N16 [Build King Kong 18050M NEWD-2 K2.6 + Optware + My Page] Mr. Green


Last edited by jumran on Sun Oct 03, 2010 2:51; edited 1 time in total
crashfly
DD-WRT Guru


Joined: 24 Feb 2009
Posts: 2026
Location: Sol System > Earth > USA > Arkansas

PostPosted: Sun Oct 03, 2010 2:46    Post subject: Reply with quote
I think the "My Page" naming comes from DD-WRT itself. Maybe we could ask Eko to make that name user configurable.
_________________
E3000 22200M KongVPN K26
WRT600n v1.1 refirb mega 18767 BS K24 NEWD2 [not used]
WRT54G v2 16214 BS K24 [access point]

Try Dropbox for syncing files - get 2.5gb online for free by signing up.

Read! Peacock thread
*PLEASE* upgrade PAST v24SP1 or no support.
Phonism
DD-WRT User


Joined: 27 Sep 2008
Posts: 449
Location: Norway

PostPosted: Sun Oct 03, 2010 20:13    Post subject: Reply with quote
I got around to play with Optware, the right way here the other night, and succeeded due to the very well written wiki page.

So I thought I'd venture some more with this MyPage, but I'm really struggling with this, since I have close to none experience with linux. My first obstacle is that I download your file Dark_Shadow, but following the installation instructions in the My Page wiki, I'm really not sure where to upload it to the router from within the Telnet session.

Can it be run from the memory card, where I also am running Optware from? That would be really great, cause I already got my head wrapped around that one.

Any pointers would be highly appreciated. Thank you!

_________________

Asus RT-AC66U DD-WRT v24-sp2 giga - build 25015 [Main]
Linksys E3000 DD-WRT v24-sp2 mega - build 15962 [Backup]
Linksys WRT600N v1.1 DD-WRT v24-sp2 (08/12/10) mega - build 14929 [Retired]
Linksys WRT54GS v4 DD-WRT v24-sp2 mini - build 15747 [Retired]
E3000 Info | WRT600N Info | Know-it-all thread
crashfly
DD-WRT Guru


Joined: 24 Feb 2009
Posts: 2026
Location: Sol System > Earth > USA > Arkansas

PostPosted: Sun Oct 03, 2010 20:50    Post subject: Reply with quote
Let me assist with this just a bit Phonism. You will likely have to do this with an ssh session and transfer it to the router using the SCP protocol. I do not think telnet you can do that with.

After that, what it generally requires is putting it into its own subdirectory (usually '/opt/www'). You need to make all of the sh scripts executable (including in the subdirectories). Once that is done, you need to make a link from the '/tmp/www' to the one you created. At which point, if you have the nvram variables for 'My Page' set up correctly, then it should work.

_________________
E3000 22200M KongVPN K26
WRT600n v1.1 refirb mega 18767 BS K24 NEWD2 [not used]
WRT54G v2 16214 BS K24 [access point]

Try Dropbox for syncing files - get 2.5gb online for free by signing up.

Read! Peacock thread
*PLEASE* upgrade PAST v24SP1 or no support.
Phonism
DD-WRT User


Joined: 27 Sep 2008
Posts: 449
Location: Norway

PostPosted: Mon Oct 04, 2010 18:40    Post subject: Reply with quote
Thanks for the help, crashfly, but I'm not quite there (been using SSH this time, not telnet):



I tried applying the chmod +x mypage*.sh for each page, but I still can't get the pages to show.

I've saved the files at /mnt/mypage/ folder, since the wiki said it was OK to save them to a place that survives reboots.

Any help is appreciated. Thanks =)

_________________

Asus RT-AC66U DD-WRT v24-sp2 giga - build 25015 [Main]
Linksys E3000 DD-WRT v24-sp2 mega - build 15962 [Backup]
Linksys WRT600N v1.1 DD-WRT v24-sp2 (08/12/10) mega - build 14929 [Retired]
Linksys WRT54GS v4 DD-WRT v24-sp2 mini - build 15747 [Retired]
E3000 Info | WRT600N Info | Know-it-all thread
Eko
DD-WRT Developer/Maintainer


Joined: 07 Jun 2006
Posts: 5771

PostPosted: Mon Oct 04, 2010 20:20    Post subject: Reply with quote
link /mnt/mypage to /tmp/www
jumran
DD-WRT User


Joined: 31 Jul 2009
Posts: 492
Location: Toronto, ON, CA

PostPosted: Mon Oct 04, 2010 20:36    Post subject: Reply with quote
I had the exact same issue as well and took me a while to figure out and to get it it to work. Add the following code as startup command.

Code:
# Link /opt/www to /tmp/www for mypage NLS support
if [ -d /tmp/www ]; then rm -rf /tmp/www; fi
ln -s /opt/www /tmp/www


Phonism wrote:
Thanks for the help, crashfly, but I'm not quite there (been using SSH this time, not telnet):



I tried applying the chmod +x mypage*.sh for each page, but I still can't get the pages to show.

I've saved the files at /mnt/mypage/ folder, since the wiki said it was OK to save them to a place that survives reboots.

Any help is appreciated. Thanks =)

_________________
Asus RT-N16 [Build King Kong 18050M NEWD-2 K2.6 + Optware + My Page] Mr. Green
Phonism
DD-WRT User


Joined: 27 Sep 2008
Posts: 449
Location: Norway

PostPosted: Mon Oct 04, 2010 20:43    Post subject: Reply with quote
Eko wrote:
link /mnt/mypage to /tmp/www


Thanks, Eko - when I run "ln /mnt/mypage /tmp/www" I get the "`/mnt/mypage': hard link not allowed for directory" message. I tried applying "chmod -R 755 /mnt/mypage" over again, but still same. I'll read some more about linux commands, and hopefully figure this one out =)

_________________

Asus RT-AC66U DD-WRT v24-sp2 giga - build 25015 [Main]
Linksys E3000 DD-WRT v24-sp2 mega - build 15962 [Backup]
Linksys WRT600N v1.1 DD-WRT v24-sp2 (08/12/10) mega - build 14929 [Retired]
Linksys WRT54GS v4 DD-WRT v24-sp2 mini - build 15747 [Retired]
E3000 Info | WRT600N Info | Know-it-all thread
Eko
DD-WRT Developer/Maintainer


Joined: 07 Jun 2006
Posts: 5771

PostPosted: Mon Oct 04, 2010 20:44    Post subject: Reply with quote
SOFT link... use ln -s
Phonism
DD-WRT User


Joined: 27 Sep 2008
Posts: 449
Location: Norway

PostPosted: Mon Oct 04, 2010 20:58    Post subject: Reply with quote
Thanks for the help guys - the ln -s worked, and I put in the startup script, but still something that is missing, but closer than ever:



I'll re-read the wiki and hopefully find the missing link =)

_________________

Asus RT-AC66U DD-WRT v24-sp2 giga - build 25015 [Main]
Linksys E3000 DD-WRT v24-sp2 mega - build 15962 [Backup]
Linksys WRT600N v1.1 DD-WRT v24-sp2 (08/12/10) mega - build 14929 [Retired]
Linksys WRT54GS v4 DD-WRT v24-sp2 mini - build 15747 [Retired]
E3000 Info | WRT600N Info | Know-it-all thread
crashfly
DD-WRT Guru


Joined: 24 Feb 2009
Posts: 2026
Location: Sol System > Earth > USA > Arkansas

PostPosted: Mon Oct 04, 2010 22:13    Post subject: Reply with quote
Phonism wrote:
I tried applying the chmod +x mypage*.sh for each page, but I still can't get the pages to show.

I've saved the files at /mnt/mypage/ folder, since the wiki said it was OK to save them to a place that survives reboots.

Any help is appreciated. Thanks =)

Ok, have you also applied the 'chmod +x' command to those scripts in the subdirectories of '/mnt/mypage/'? I had a similar issue (way back when), until I figured out that the scripts in the sub-directories are also needed to be executable.

_________________
E3000 22200M KongVPN K26
WRT600n v1.1 refirb mega 18767 BS K24 NEWD2 [not used]
WRT54G v2 16214 BS K24 [access point]

Try Dropbox for syncing files - get 2.5gb online for free by signing up.

Read! Peacock thread
*PLEASE* upgrade PAST v24SP1 or no support.
mojso
DD-WRT User


Joined: 09 Sep 2007
Posts: 232
Location: Macedonia

PostPosted: Mon Oct 04, 2010 23:29    Post subject: Reply with quote
would be good Live Traffic Per-user to be in this script
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=75275&postdays=0&postorder=asc&start=0

_________________

wrt54gl v1.1. with DD-WRT v24-sp2 (08/12/10) std-nokaid
(SVN revision 14929) + 1GB SD Card + Optware + MyPage + lighttpd

WDS linked

wrt54gl v1.1. with DD-WRT v24-sp2 (08/12/10) std-nokaid
(SVN revision 14929)
+ 2GB SD Card + Optware + MyPage

Goto page 1, 2, 3 ... 18, 19, 20  Next Display posts from previous:    Page 1 of 20
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT 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