My_Page

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page Previous  1, 2, 3 ... 21, 22, 23, 24, 25, 26  Next
Author Message
jumran
DD-WRT User


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

PostPosted: Wed Aug 17, 2011 12:34    Post subject: Reply with quote
Install the following version.

http://www.dd-wrt.com/phpBB2/download.php?id=17134

Install Instructions:
Code:
------------------------------
opt=replase with any dir or dive you want
put this code in startup.

------------------------------ 9.25 / 11.25 ---- 0 / 64 / 128 / 256 / 512 / 1024

To start mypage - were it is - loging time - dade theshold in byte

Code:

/opt/www/mypageup.sh /opt/www 10 512
 



winscp uplode mypage_V0.17.2-20101115.tgz to the router's tmp.

telnet
login into dd-wrt
and run this code.

opt=replase with any dir or dive you want
put this code in startup.


Code:

tar xvzf mypage_V0.17.2-20101115.tgz -C/opt/www
 



telnet
login into dd-wrt
and run this code.
to use MAC-PCname.

opt=replase with any dir or dive you want
put this code in startup.


Code:

echo '
00:1A:2B:3C:4D:5E,PC-1
00:1A:2B:3C:4D:5E,PC-2
00:1A:2B:3C:4D:5E,PC-3
00:1A:2B:3C:4D:5E,PC-4
00:1A:2B:3C:4D:5E,PC-5
00:1A:2B:3C:4D:5E,PC-6
' > /opt/www/MAC-PCname.txt



icehacker wrote:
hi jumram i am unable to locate your link .. atm i am using 17.2 and this is what i did. but the bwmonitor is not working

if i run manually on console bwmod works but keeps giveing op

Code:
grep: invalid option -- w


this is what i did for install

Code:
cd /opt/www/
wget http://www.dd-wrt.com/phpBB2/download.php?id=17134
mv download.php\?id\=17134 mypage_V0.17.2-20101115.tgz
tar xvzf mypage_V0.17.2-20101115.tgz -C /opt/www
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 *
cd setup
rm -rf /tmp/www
./mypage_setup.sh /opt/www
ln -s /opt/www /tmp/www


my startup script is

Code:
rm -rf /tmp/www
ln -s /opt/www /tmp/www
/opt/www/mypageup.sh /opt/www 10 512


are there any workarounds

also if i use

sh /opt/www/mypageup.sh /opt/www

i get
Code:
mypage_setup.sh: ./libs/mypage_libusr.sh: line 129: syntax error: Bad substitution


i do have a MAC-PCname.txt in /opt/www/ with the MAC,PC format

edit

also i noticed that my nvram vars were

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 /

so i set it to

mypage_scripts="/opt/www/mp1.sh /opt/www/mp2.sh /opt/www/mp3.sh /opt/www/mp4.sh /opt/www/mp5.sh /opt/www/mp6.sh /opt/www/mp7.sh /opt/www/mp8.sh /opt/www/mp9.sh /opt/www/mp10.sh /opt/www/mp11.sh /opt/www/mp12.sh /opt/www/mp13.sh /opt/www/mp14.sh"


finally tried this one still the bwmod is not working any pointers wold be nice
http://www.dd-wrt.com/phpBB2/download.php?id=16678

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


Joined: 16 May 2011
Posts: 45

PostPosted: Wed Aug 17, 2011 21:41    Post subject: Reply with quote
Hi Jumran,

I followed your steps to the dot after uninstalling what i had. the My_page is not showing up.
jumran
DD-WRT User


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

PostPosted: Wed Aug 17, 2011 21:49    Post subject: Reply with quote
telnet into the router and go to the my page setup directory in opt folder and run the setup script.
_________________
Asus RT-N16 [Build King Kong 18050M NEWD-2 K2.6 + Optware + My Page] Mr. Green
icehacker
DD-WRT Novice


Joined: 16 May 2011
Posts: 45

PostPosted: Thu Aug 18, 2011 1:05    Post subject: Reply with quote
if i run setup like this i get an error

Code:
root@DD-WRT:/opt/www/setup# sh mypage_setup.sh /opt/www
mypage_setup.sh: ./libs/mypage_libusr.sh: line 129: syntax error: Bad substitution


if i run the setup like this everything is fine but not simlink to
Code:
/tmp/www -> /opt/www


i have to put start-up script on router

Code:
rm -rf /tmp/www
ln -s /opt/www /tmp/www


bwmon still not working. any suggestions would be nice

edit:- okay onething i am using dhcpd not dnsmaq
icehacker
DD-WRT Novice


Joined: 16 May 2011
Posts: 45

PostPosted: Sat Aug 20, 2011 14:37    Post subject: Reply with quote
solution below

Last edited by icehacker on Wed Aug 24, 2011 19:32; edited 1 time in total
icehacker
DD-WRT Novice


Joined: 16 May 2011
Posts: 45

PostPosted: Mon Aug 22, 2011 18:34    Post subject: Reply with quote
okay found a fix

to uninstall run this

Code:

rm -rf /tmp/www
rm -rf /opt/www/*
nvram unset mypage_scripts
nvram commit


to download and install run this

Code:

mkdir -p /opt/www/
cd /opt/www/
wget http://www.dd-wrt.com/phpBB2/files/mypage_working_v172_462.tar
tar -xvf mypage_working_v172_462.tar -C /opt/www/
dos2unix  mp* my* w*
dos2unix 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 *
ln -s /opt/www /tmp/www
cp S85wrtbwmon /opt/etc/init.d/S85wrtbwmon
chmod 755 /opt/etc/init.d/S85wrtbwmon
ls -l /opt/etc/init.d/S85wrtbwmon
cd setup
/bin/sh mypage_setup.sh /opt/www y y y y y y y y y


put you pc names and thier mac address like this

Code:

echo '
01:00:00:00:00:00,PC-1
02:00:00:00:00:00,PC-2
03:00:00:00:00:00,PC-3
' > /opt/www/MAC-PCname.txt


reboot

wait for 6 mins
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 2070
Location: South Florida

PostPosted: Fri Sep 09, 2011 2:27    Post subject: Reply with quote
icehacker wrote:
okay found a fix

to uninstall run this

Code:

rm -rf /tmp/www
rm -rf /opt/www/*
nvram unset mypage_scripts
nvram commit


to download and install run this

Code:

mkdir -p /opt/www/
cd /opt/www/
wget http://www.dd-wrt.com/phpBB2/files/mypage_working_v172_462.tar
tar -xvf mypage_working_v172_462.tar -C /opt/www/
dos2unix  mp* my* w*
dos2unix 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 *
ln -s /opt/www /tmp/www
cp S85wrtbwmon /opt/etc/init.d/S85wrtbwmon
chmod 755 /opt/etc/init.d/S85wrtbwmon
ls -l /opt/etc/init.d/S85wrtbwmon
cd setup
/bin/sh mypage_setup.sh /opt/www y y y y y y y y y


put you pc names and thier mac address like this

Code:

echo '
01:00:00:00:00:00,PC-1
02:00:00:00:00:00,PC-2
03:00:00:00:00:00,PC-3
' > /opt/www/MAC-PCname.txt


reboot

wait for 6 mins



I installed your script as outlined and now I have the following in my FORWARD chain:

Code:
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
 370K   71M RRDIPT     0    --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     udp  --  *      *       0.0.0.0/0            192.168.1.141       udp dpt:3658
 955K  436M RRDIPT     0    --  *      *       0.0.0.0/0            0.0.0.0/0
1127K  596M RRDIPT     0    --  *      *       0.0.0.0/0            0.0.0.0/0
 5367  286K TCPMSS     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           tcp flags:0x06/0x02 TCPMSS clamp to PMTU


May I ask why it is in the wrong position?

_________________
Optware, the Right Way
Asus RT-AC68U
Asus RT-N66U
Asus RT-N10
Asus RT-N12
Asus RT-N16 x5
Asus WL520gU
Engenious ECB350
Linksys WRT600Nv1.1
Linksys WRT610Nv1
Linksys E2000
Netgear WNDR3300
SonicWall NSA220W
SonicWall TZ215W
SonicWall TZ205W
SonicWall TZ105W
pizzulicchio
DD-WRT User


Joined: 16 Dec 2009
Posts: 83
Location: Florence (ITALY)

PostPosted: Fri Sep 23, 2011 7:18    Post subject: Reply with quote
Why System Kernel Logs and System User Logs are empty?

I have enabled the syslogd. What is necessary to do?
Marv1n
DD-WRT Novice


Joined: 29 Oct 2010
Posts: 15

PostPosted: Tue Dec 20, 2011 22:12    Post subject: Reply with quote
Hi,
I have a RTN16 with kingkong mog last version. I have installed optware (minimal install) without otrw because of transmission that seems have problem with rtn16 and otrw.

Now I'm trying to install mypage, but I can see only a blank page (I have double checked permission).

I miss some package?

Thank you
Dark_Shadow
DD-WRT Guru


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

PostPosted: Tue Dec 20, 2011 23:44    Post subject: Reply with quote
Marv1n wrote:
Hi,
I have a RTN16 with kingkong mog last version. I have installed optware (minimal install) without otrw because of transmission that seems have problem with rtn16 and otrw.

Now I'm trying to install mypage, but I can see only a blank page (I have double checked permission).

I miss some package?

Thank you
See MyPage (Part Deux). or simply check to see if all the sh files start with
Code:
#!/bin/sh

_________________
Peacock Thread-FAQ -- dd-wrt Wiki

Testing Multiple Routers -- Bootloader Collection Project -- My Wiki
kingsmill
DD-WRT User


Joined: 20 May 2008
Posts: 79

PostPosted: Wed Dec 21, 2011 7:34    Post subject: Reply with quote
If you get a blank screen when accessing MyPage and you are running a late version of dd-wrt then you need to make the following changes.

1/ Edit /opt/www/S85wrtbwmon
Change the first line from #/bin/sh to #!/bin/sh
Create the directory /opt/etc/init.d/ if does not already exist and then copy /opt/www/S85wrtbwmon to /opt/etc/init.d/S85wrtbwmon.

2/ Edit all /opt/www/mp*.sh files and ensure that the first line of the file is #!/bin/sh. If not then add #!/bin/sh as the first line of the file.

These changes should resolve the MyPage blank screen.

Geoff..
Marv1n
DD-WRT Novice


Joined: 29 Oct 2010
Posts: 15

PostPosted: Wed Dec 21, 2011 9:03    Post subject: Reply with quote
kingsmill wrote:
2/ Edit all /opt/www/mp*.sh files and ensure that the first line of the file is #!/bin/sh. If not then add #!/bin/sh as the first line of the file.


Thank you! now works perfectly
slobodan
DD-WRT Guru


Joined: 03 Nov 2011
Posts: 1555
Location: Zwolle

PostPosted: Thu Feb 09, 2012 21:33    Post subject: Reply with quote
icehacker wrote:
okay found a fix

Your scripts work, I only found a minor glitch, namely use in line 91 of mp7.sh:
Code:
sed -n 's/.*'size:'// p'

instead of:
Code:
grep size:


Besides, I had to do:
Code:
mkdir /opt/www/backup
chmod 644 /opt/www/backup

_________________
2 times APU2 Opnsense 21.1 with Sensei

2 times RT-AC56U running DD-WRT 45493 (one as Gateway, the other as AP, both bridged with LAN cable)

3 times Asus RT-N16 shelved

E4200 V1 running freshtomato 2020.8 (bridged with LAN cable)

3 times Linksys WRT610N V2 converted to E3000 and 1 original E3000 running freshtomato 2020.8 (bridged with LAN cable)


John Peterson
DD-WRT Novice


Joined: 03 Sep 2010
Posts: 22

PostPosted: Mon Apr 16, 2012 14:39    Post subject: Reply with quote
mypage looks trange for me. mypage is applied with
Code:
nvram set mypage_scripts="/tmp/mypage/mypage1.sh /tmp/mypage/mypage2.sh /tmp/mypage/mypage3.sh /tmp/mypage/mypage4.sh /tmp/mypage/mypage5.sh /tmp/mypage/mypage6.sh /tmp/mypage/mypage7.sh /tmp/mypage/mypage8.sh /tmp/mypage/mypage9.sh /tmp/mypage/mypage10.sh /tmp/mypage/mypage11.sh /tmp/mypage/mypage12.sh"
nvram commit
mkdir /tmp/mypage
cd /tmp/mypage
wget -Omypage-files-v0.16-20100129-00520.tgz http://www.dd-wrt.com/phpBB2/download.php?id=12417
tar -xvzf mypage-files-v0.16-20100129-00520.tgz .

Update: The problem was all resources were bad links, the command below was missing
Code:

if [ -d /tmp/www ]; then rm -rf /tmp/www; fi
ln -s /tmp/mypage /tmp/www
John Peterson
DD-WRT Novice


Joined: 03 Sep 2010
Posts: 22

PostPosted: Mon Apr 16, 2012 16:17    Post subject: Reply with quote
Suggestions

Add a box to the Network page that show the number of connections per protocol, state and direction (in/out).

It's helpful if there is a need to tune the timeout settings. For example for a router that handle bittorent traffic the
Code:
grep -c TIME_WAIT /proc/net/ip_conntrack
grep -c ^udp /proc/net/ip_conntrack
can be too big, resulting in cat /tmp/var/log/messages | grep 'dropping packet' messages.

Add a box to the Network page that show the /proc/sys/net/ipv4/netfilter/ip_conntrack_count per minute over an hour and per hour over a week.

It's important to know how many open connections it handles.
Goto page Previous  1, 2, 3 ... 21, 22, 23, 24, 25, 26  Next Display posts from previous:    Page 22 of 26
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking 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