Optware, the right way

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3 ... 153, 154, 155 ... 157, 158, 159  Next
Author Message
Bird333
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 809

PostPosted: Wed Apr 18, 2012 10:08    Post subject: Reply with quote
basmaf: Can you see if anything can be done about pixelserv slowing down the loading of some webpages? Some sites I go to take an incredible amount of time to load (if ever) when pixelserv is started.
Sponsor
wabe
DD-WRT Guru


Joined: 17 Jun 2006
Posts: 889

PostPosted: Wed Apr 18, 2012 15:21    Post subject: Reply with quote
I've found a problem with the dbus script (S20dbus).
What seem to happen is the following:
When rebooting the router a file 'pid' is left in /opt/var/run/dbus/ and prevent the start of dbus when the router starts again.
Executing 'service dbus stop' removes the file cleanly and a manual 'service dbus start' works after this.
basmaf
DD-WRT Guru


Joined: 24 Feb 2011
Posts: 1074

PostPosted: Mon Apr 23, 2012 17:55    Post subject: Reply with quote
wabe wrote:
I've found a problem with the dbus script (S20dbus).
What seem to happen is the following:
When rebooting the router a file 'pid' is left in /opt/var/run/dbus/ and prevent the start of dbus when the router starts again.
Executing 'service dbus stop' removes the file cleanly and a manual 'service dbus start' works after this.


On my installation i don't have the dbus script??

But to solve this create a symlink in to K20dbus.
By default all executable K* scripts will perform a "stop" command on reboot/shutdown.

Code:
ln -s /opt/etc/init.d/S20dbus /opt/etc/init.d/K20dbus
wabe
DD-WRT Guru


Joined: 17 Jun 2006
Posts: 889

PostPosted: Mon Apr 23, 2012 18:25    Post subject: Reply with quote
basmaf wrote:

But to solve this create a symlink in to K20dbus.
By default all executable K* scripts will perform a "stop" command on reboot/shutdown.

Code:
ln -s /opt/etc/init.d/S20dbus /opt/etc/init.d/K20dbus

Thanks! I'll try it out. I've made some small changes to the script to make it work with a never version of dbus (the default one segment faults). If you want to add this to your update effort of OTRW, please let me know.
Apex-XT
DD-WRT Novice


Joined: 12 Dec 2008
Posts: 23

PostPosted: Mon Apr 23, 2012 19:23    Post subject: Reply with quote
basmaf wrote:

I made a mistake in the order of fixing bugs in the prep script... will update the script later.

For fixing your problem.
Files need to be created again

Remove files created by asia and run the prep script again
Code:
service asiablock stop
rm /opt/etc/iptables.asia*
wget -O /tmp/prep_optware http://www.dd-wrt.com/phpBB2/download.php?id=22258
sh /tmp/prep_optware
service asiablock start



basmaf....

Thank you and the rest of the crew for maintaining this very useful tool. Many thanks to Frater for creating it in the first place. I hope he is doing well and will eventually make it back to the scene.

I ran the update above and have an error on restart:
Code:
grep: can't load library 'libpore.so.1'

which repeats before eventually dumping out to system prompt. Would you please recommend next steps to resolve?

Thank you again.


Linksys WRT-610N, v1 with DD-WRT Mega 15962
wabe
DD-WRT Guru


Joined: 17 Jun 2006
Posts: 889

PostPosted: Mon Apr 23, 2012 21:45    Post subject: Reply with quote
It's probably 'libpcre.so.0'

Search for this on this forum and you'll find a fix by basmaf
Apex-XT
DD-WRT Novice


Joined: 12 Dec 2008
Posts: 23

PostPosted: Tue Apr 24, 2012 15:15    Post subject: Reply with quote
wabe wrote:
It's probably 'libpcre.so.0'

Search for this on this forum and you'll find a fix by basmaf


That was it. Thank you!

Using the info from above, I created a symlink with:

ln -s /opt/lib/libpcre.so.0 /opt/lib/libpcre.so.1


Thank you again. All is up and running fine now.
basmaf
DD-WRT Guru


Joined: 24 Feb 2011
Posts: 1074

PostPosted: Tue Apr 24, 2012 17:20    Post subject: Reply with quote
Bird333 wrote:
basmaf: Can you see if anything can be done about pixelserv slowing down the loading of some webpages? Some sites I go to take an incredible amount of time to load (if ever) when pixelserv is started.


I'm using pixelserv as is.
I don't experience any extreme delays but will check if i can find something

Can you give me some example websites?
Thanx
basmaf
basmaf
DD-WRT Guru


Joined: 24 Feb 2011
Posts: 1074

PostPosted: Tue Apr 24, 2012 17:35    Post subject: Reply with quote
wabe wrote:
Thanks! I'll try it out. I've made some small changes to the script to make it work with a never version of dbus (the default one segment faults). If you want to add this to your update effort of OTRW, please let me know.


Sent it to me in a pm..

I'll add it to my todo list...
Darr247
DD-WRT Novice


Joined: 15 Dec 2011
Posts: 15

PostPosted: Tue Apr 24, 2012 19:49    Post subject: Reply with quote
Using the 'Optware, the Right Way' wiki, I installed it onto a 2GB USB stick (512MB "Optware" ext2, 256MB 'swap', 1.19GB "Shared" ext2) plugged into a WRT600N v1 running build 18777 mega (BrainSlayer's ftp://dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2012/03-19-12-r18777/broadcom/dd-wrt.v24_mega_wrt600n.bin ). That's 2.4.37 #23936 according to uname -rv.
I used PuTTY via WinSCP to do the install.

Anyway, when I PuTTY across my LAN and run
~$ perl showtime.pl
where ~/showtime.pl contains
Code:
#!/usr/bin/perl
use POSIX qw(strftime);#<--Deals with formatting the Time output.
print("\n**Script to show the local and GMT time**\n\n");
#Formats the output
my $format = '%I:%M:%S %p - %d/%m/%Y';
print("The local time is: " . strftime($format, localtime()) ."\n");
print("The GMT time is: " . strftime($format, gmtime()) . "\n");
print("\n**DONE**\n")

my linux box (which has perl 5.10.0 on it) properly shows me both the local time and UTC time.

But when I copy showtime.pl into /opt/tmp and run
# /opt/bin/perl /opt/tmp/showtime.pl

(either in PuTTY or from DD-WRT's web interface on Administration->Commands using the Run Commands button), it shows the same time for both localtime and for gmtime.

Yes, I have an NPT server entered at the bottom of the Setup->Basic Setup tab, and as far as I can tell DD-WRT is using it since the correct date/time is shown on the Status tab.

So, how do I tell if the problem is in DD-WRT's linux or in Optware's perl?

For what it's worth, I tried making showtime.pl rwxrwxrwx (777) and pointing the first line to #!/opt/bin/perl and to #!/opt/bin/sh -- # -*- perl -*-
and a few other ways, but it still wouldn't execute without passing it to perl manually in DD-WRT.
Still, that part doesn't matter so much... I'd just like to make Optware's perl display localtime and gmtime properly, as it does on my linux box.

Thanks!
crashfly
DD-WRT Guru


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

PostPosted: Tue Apr 24, 2012 21:43    Post subject: Reply with quote
Darr247 wrote:
So, how do I tell if the problem is in DD-WRT's linux or in Optware's perl?

The problem is in DD-WRT and not in the perl for it. DD-WRT does not distinguish between time zones. It is all considered the same (little to no provisions for time zone).

_________________
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.
jack_90125
DD-WRT Novice


Joined: 13 Apr 2011
Posts: 21

PostPosted: Wed Apr 25, 2012 20:30    Post subject: Reply with quote
hello
I am running optware on kong 18777Mega 3-19-12. also my page . in the log I get the following anyone know what it means?
I get it is dropping but do not get the kernel warn. is something set wrong? I have no special needs running this just as a router and I get something is trying to come in and get out.
any help
thanks


Apr 25 15:18:40 DEATH kern.warn kernel: DROP IN=vlan2 OUT= MAC=ff:ff:ff:ff:
»»ff:ff:00:22:90:de:af:d9:08:00:45:00:01:62 SRC=10.27.19.1 DST=255.255.255.25
»»5 LEN=354 TOS=0x00 PREC=0x00 TTL=255 ID=49768 PROTO=UDP SPT=67 DPT=68 LEN=3
»»34
Apr 25 15:19:12 DEATH kern.warn kernel: DROP IN=vlan2 OUT= MAC=ff:ff:ff:ff:
»»ff:ff:00:22:90:de:af:d9:08:00:45:00:01:62 SRC=10.27.19.1 DST=255.255.255.25
»»5 LEN=354 TOS=0x00 PREC=0x00 TTL=255 ID=49945 PROTO=UDP SPT=67 DPT=68 LEN=3
»»34
Apr 25 15:19:12 DEATH kern.warn kernel: DROP IN=vlan2 OUT= MAC=ff:ff:ff:ff:
»»ff:ff:00:22:90:de:af:d9:08:00:45:00:01:62 SRC=10.27.19.1 DST=255.255.255.25
»»5 LEN=354 TOS=0x00 PREC=0x00 TTL=255 ID=49948 PROTO=UDP SPT=67 DPT=68 LEN=3
»»34
Apr 25 15:19:35 DEATH kern.warn kernel: DROP IN=vlan2 OUT= MAC=ff:ff:ff:ff:
»»ff:ff:00:22:90:de:af:d9:08:00:45:00:01:99 SRC=10.27.19.1 DST=255.255.255.25
»»5 LEN=409 TOS=0x00 PREC=0x00 TTL=255 ID=50071 PROTO=UDP SPT=67 DPT=68 LEN=3
»»89
Apr 25 15:19:35 DEATH kern.warn kernel: DROP IN=vlan2 OUT= MAC=ff:ff:ff:ff:
»»ff:ff:00:22:90:de:af:d9:08:00:45:00:01:99 SRC=10.27.19.1 DST=255.255.255.25
»»5 LEN=409 TOS=0x00 PREC=0x00 TTL=255 ID=50074 PROTO=UDP SPT=67 DPT=68 LEN=3
»»89
Apr 25 15:19:42 DEATH kern.warn kernel: DROP IN=vlan2 OUT= MAC=ff:ff:ff:ff:
»»ff:ff:00:22:90:de:af:d9:08:00:45:00:01:35 SRC=10.27.19.1 DST=255.255.255.25
»»5 LEN=309 TOS=0x00 PREC=0x00 TTL=255 ID=50122 PROTO=UDP SPT=67 DPT=68 LEN=2
»»89
Apr 25 15:19:49 DEATH kern.warn kernel: DROP IN=vlan2 OUT= MAC=ff:ff:ff:ff:
»»ff:ff:00:22:90:de:af:d9:08:00:45:00:01:62 SRC=10.27.19.1 DST=255.255.255.25
»»5 LEN=354 TOS=0x00 PREC=0x00 TTL=255 ID=50161 PROTO=UDP SPT=67 DPT=68 LEN=3
»»34
Apr 25 15:19:51 DEATH kern.warn kernel: DROP IN=vlan2 OUT= MAC=ff:ff:ff:ff:
»»ff:ff:00:22:90:de:af:d9:08:00:45:00:01:62 SRC=10.27.19.1 DST=255.255.255.25
»»5 LEN=354 TOS=0x00 PREC=0x00 TTL=255 ID=50176 PROTO=UDP SPT=67 DPT=68 LEN=3
»»34
Apr 25 15:19:54 DEATH kern.warn kernel: DROP IN=vlan2 OUT= MAC=ff:ff:ff:ff:
»»ff:ff:00:22:90:de:af:d9:08:00:45:00:01:35 SRC=10.27.19.1 DST=255.255.255.25
»»5 LEN=309 TOS=0x00 PREC=0x00 TTL=255 ID=50183 PROTO=UDP SPT=67 DPT=68 LEN=2
»»89
Apr 25 15:20:02 DEATH kern.warn kernel: DROP IN=vlan2 OUT= MAC=ff:ff:ff:ff:
»»ff:ff:00:22:90:de:af:d9:08:00:45:00:01:35 SRC=10.27.19.1 DST=255.255.255.25
»»5 LEN=309 TOS=0x00 PREC=0x00 TTL=255 ID=50260 PROTO=UDP SPT=67 DPT=68 LEN=2
»»89
Apr 25 15:20:13 DEATH kern.warn kernel: DROP IN=vlan2 OUT= MAC=ff:ff:ff:ff:
»»ff:ff:00:22:90:de:af:d9:08:00:45:00:01:35 SRC=10.27.19.1 DST=255.255.255.25
»»5 LEN=309 TOS=0x00 PREC=0x00 TTL=255 ID=50334 PROTO=UDP SPT=67 DPT=68 LEN=2
»»89
Apr 25 15:20:17 DEATH kern.warn kernel: DROP IN=vlan2 OUT= MAC=ff:ff:ff:ff:
»»ff:ff:00:22:90:de:af:d9:08:00:45:00:01:62 SRC=10.27.19.1 DST=255.255.255.25
»»5 LEN=354 TOS=0x00 PREC=0x00 TTL=255 ID=50356 PROTO=UDP SPT=67 DPT=68 LEN=3
»»34
Apr 25 15:20:17 DEATH kern.warn kernel: DROP IN=vlan2 OUT= MAC=ff:ff:ff:ff:
»»ff:ff:00:22:90:de:af:d9:08:00:45:00:01:62 SRC=10.27.19.1 DST=255.255.255.25
»»5 LEN=354 TOS=0x00 PREC=0x00 TTL=255 ID=50359 PROTO=UDP SPT=67 DPT=68 LEN=3
»»34
Apr 25 15:20:20 DEATH kern.warn kernel: DROP IN=vlan2 OUT= MAC=ff:ff:ff:ff:
»»ff:ff:00:22:90:de:af:d9:08:00:45:00:01:35 SRC=10.27.19.1 DST=255.255.255.25
»»5 LEN=309 TOS=0x00 PREC=0x00 TTL=255 ID=50369 PROTO=UDP SPT=67 DPT=68 LEN=2
»»89
crashfly
DD-WRT Guru


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

PostPosted: Thu Apr 26, 2012 3:23    Post subject: Reply with quote
jack_90125 wrote:
hello
I am running optware on kong 18777Mega 3-19-12. also my page . in the log I get the following anyone know what it means?
I get it is dropping but do not get the kernel warn. is something set wrong? I have no special needs running this just as a router and I get something is trying to come in and get out.
any help
thanks

Have you tried (at least temporarily) without optware? And as you did not mention, what router are you running optware on? If you are trying to run any of the media servers, those do not work on the K26 kernel at this time.

_________________
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.
jack_90125
DD-WRT Novice


Joined: 13 Apr 2011
Posts: 21

PostPosted: Thu Apr 26, 2012 12:21    Post subject: Reply with quote
asus rt16 router. no willl try witput optware. it could be the firmware guess did not think.
thanks
nitrocs
DD-WRT User


Joined: 21 Jul 2009
Posts: 59

PostPosted: Thu Apr 26, 2012 17:08    Post subject: Reply with quote
router: WRT350N
SVN: 17990 STD

I have Frater's optware installed w/ the updated Asiablock script from a few pages earlier. A few issues I'm looking for a little guidance on:

1 - when router is reboot through GUI or telnet, it hangs & does not fully reboot...web interface/telnet are not accessible & unit requires unplug to reset. I remember reading something where DBUS is causing this...but I'm not sure. Any hints?

2 - when router is reset by power on/off, it fails to get WAN ip unless modem is reset immediately prior to router power-on. My automated WAN IP refresh script does not renew, neither does DHCP release/renew in the web interface. Could this be due to pixelserv at all?

3 - Birmablock reads:
Quote:

birmablock is blocking -3 subnets whilst whitelisting -4
It is referred to 0 time(s) in the chain FORWARD and 0 times in the chain INPUT

The updated S95 script fixed a similar problem I was having with asiablock, but birmablock doesnt seem to want to function

4 - When I run a test on stophammer (grc.com) I can see entries in the log (tail -f /opt/ver/log/messages) but the test causes extreme router slowdown & sometimes a crash/reboot...is this normal???

5 - is there a way to "update" my optware to the newly hosted version instead of doing a full reinstall from the new repo?
Goto page Previous  1, 2, 3 ... 153, 154, 155 ... 157, 158, 159  Next Display posts from previous:    Page 154 of 159
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