I'm a geek

Place to discuss anything, almost. No politics, religion, Microsoft, or anything else that I (the nazi censor) deem inappropriate.
User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

I'm a geek

Post by Void Main » Tue Apr 06, 2004 1:32 am

Thanks to Jim (a new member) I was able to revive that Linksys wireless router tonight. Since I bought a new one the only thing I could think of to do with it is to turn it into another web server. :) I threw a copy of OpenWRT on it and hacked it a little. I copied the main page and the redhat/fedora tips from the void site over to it along with associated images. I linked back to the main site for most of the other stuff on the page. There surely are pages that have broken links but it's past my bedtime and I'll spruce it up later.

"top" memory stats shows:
4460K used
10004K free
0K shared
536KB buff
1564K cached

11 processes are running

disk free:

Code: Select all

# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/root                  928       928         0 100% /rom
/dev/mtdblock/4           2176       436      1740  20% /
cpuinfo:

Code: Select all

# cat /proc/cpuinfo
system type             : Broadcom BCM947XX
processor               : 0
cpu model               : BCM4710 V0.0
BogoMIPS                : 82.94
wait instruction        : no
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : no
hardware watchpoint     : no
VCED exceptions         : not available
VCEI exceptions         : not available
dcache hits             : 1678095948
dcache misses           : 14013018
icache hits             : 1505200861
icache misses           : 55352131
instructions            : 1561309301
Wow, look at all them bogomips!

Here's the site (everything on port 81 is on the Linksys):
http://voidmain.is-a-geek.net:81/

Now I got 10MB of free memory to play with. I should be able to run all kinds of stuff!
Last edited by Void Main on Sun Sep 25, 2005 6:07 am, edited 1 time in total.

ucosty
n00b
n00b
Posts: 3
Joined: Mon Apr 05, 2004 8:10 am
Location: Sydney, Australia

Post by ucosty » Tue Apr 06, 2004 1:55 am

Very nice work there :D

User avatar
xyle_one
programmer
programmer
Posts: 122
Joined: Mon Jan 13, 2003 1:02 pm
Contact:

Post by xyle_one » Tue Apr 06, 2004 2:45 am

Wow. Just....wow :shock:

Very cool Void Main. Very cool :)

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Tue Apr 06, 2004 2:48 am

And a CGI program for some stats:

http://voidmain.is-a-geek.net:81/cgi-bin/stats.cgi

:)

Ice9
guru
guru
Posts: 577
Joined: Thu Jan 09, 2003 12:40 am
Location: Belgium
Contact:

Post by Ice9 » Tue Apr 06, 2004 3:46 am

Erm, what can I say?
You ARE a geek :P
A cool one but a geek nevertheless! :D

Very nice Work Void!!

Doogee
administrator
administrator
Posts: 261
Joined: Fri Jan 10, 2003 1:40 am

Post by Doogee » Tue Apr 06, 2004 7:44 am

:shock: :shock: :shock: :shock:

Tux
guru
guru
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Post by Tux » Tue Apr 06, 2004 10:28 am

Voidmain is A geek dot net

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Tue Apr 06, 2004 10:34 am

If anyone is interested in what was done to revive my router that I thought was going to live the rest of it's days as a door stop you can skip ahead to about 3/4 of the way through the first page where Jim Buzbee gives me the magick advice:

http://voidmain.is-a-geek.net/forums/vi ... .php?t=760

I believe Jim is one of the first people to get in on the WRT hacking and I think he can be credited with being the first to get snort working on it:

http://www.batbox.org/wrt54g-linux.html

Again, thank to Jim for helping me out!

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Sat Apr 10, 2004 12:17 pm

My new WRT54G revival tip served right from the router itself:
http://voidmain.is-a-geek.net:81/redhat ... vival.html

Or if the above is down because I am playing you can get it here:
http://voidmain.is-a-geek.net/redhat/wr ... vival.html

Tux
guru
guru
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Post by Tux » Sat Apr 10, 2004 1:32 pm

Hehe, that's cool. We even get to see your thumb, lol.

By the way, I think Jim needs a round of applause for being a geek too!

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Sat Apr 10, 2004 2:03 pm

Tux wrote:Hehe, that's cool. We even get to see your thumb, lol.
Heh heh, yeah I was thinking about wearing gloves for the pictures. I could also say that I had a friend hold the router while I took the pictures. :) Yeah, that's it. It was a "friend". Actually, my daughter took the pictures where my hands are showing. I tried to hold the camera in my mouth and snap the shutter with my tooth but I just slobbered on the lense and it came out all blurry. :)

Tux
guru
guru
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Post by Tux » Sat Apr 10, 2004 3:12 pm

Well, thumbnail Identification doesn't exist yet so you are probably safe from those cyber-ninja's that are tracking you :P

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Sat Apr 10, 2004 10:40 pm

And now I have plenty of disk space after NFS mounting a remote share:

http://voidmain.is-a-geek.net:81/cgi-bin/stats.cgi

I also got kismet up and running. I compiled and installed the new openwrt firmware (b4). Better have about 1.5GB of free disk space to do it! What I really need to do is to get snort up and running. Too bad there's not an ipkg for it. ipkg is a lot like apt. I can just do an "ipkg install package" and it will fetch it from the net and install it. There are only a few packages available so far though:

Code: Select all

# ipkg list
admcfg - WRT54G adm configuration kernel module and binary
dropbear - SSH server
kismet - Wireless 802.11b monitoring tool
nfs-modules - Kernel modules needed to run NFS
strace - Utilidad para el debug de otros programas
tcpdump - A Tool for network monitoring and data acquisition. BSD licensed.
zlib - Zlib library needed by some packages

phil
user
user
Posts: 5
Joined: Fri May 14, 2004 10:16 am

Post by phil » Fri May 14, 2004 10:19 am

hmm...

sounds like you're using openwrt. How did you get cgi running on the webserver?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Fri May 14, 2004 10:34 am

I'm not home right now so I can't give you a definitive answer but I think I may have used the micro-asp stuff from here:

http://wrt54g.free.fr/openwrt/b4/ipkg/

I could be very wrong on that and I can check for sure this evening. Either that or it's built right in to the existong httpd server that comes with b4. My normal HTML stuff goes in /www and CGI scripts go in /www/cgi-bin (I think it's hard coded to take anything in "DocRoot/cgi-bin" as CGI).

I was planning on putting a little more robust web server on it but I think the hardware is failing. If you notice on the stats page the box only sees 4MB of RAM right now, which is still enough to run everything I'm running though. I also can no longer bring up the wireless interface so something appears to be wrong with the hardware.

Post Reply