simple command line to browser page

this is a simple html/php page for showing commands from the line in a browser. use it as a template for whatever you need. <html> <head> <title></title> <body> <form method=GET> <input type=”radio” name=”choice” value=”1″>uptime<br> <input type=”radio” name=”choice” value=”2″>whoami<br> <input type=”radio” name=”choice” value=”3″>df -h<br> <input type=”radio” name=”choice” value=”4″>du -h<br> <input type=”radio” name=”choice” value=”5″>ps -ef<br> <input type=”radio” … Read More

simple snmp counter script

this is a simple little script to count the errors and other things out put over snmp during the course of one minute. i didnt leave the output portion of this script on the bottom of it since i was using it for a couple of different things. #!/bin/bash -x # count is a “counter” … Read More

mrtg cpu, mem, swap, tcpopen and oracle connections cfg

i am posting a quick mrtg cfg file which will check for free memory, cpu usage, swap, tcp connections and oracle connections. these were tested with solaris 10, various linux distros and snmp v1. ## specify mrtg workdir ## WorkDir: <work dir> RunAsDaemon: Yes ## interval for mrtg can not be set to less than … Read More

old kernel mount issue

while trying to mount my nas box (debian 2.4.25 armv41 kernel) from my gentoo box, i kept getting these weird errors in dmesg: rpcbind: server localhost not responding, timed out RPC: failed to contact local rpcbind server (errno 5). lockd_up: makesock failed, error=-5 the command i was issuing: $ sudo mount -t nfs 192.168.100.11:/mnt/disk1/All /media/pluto … Read More

firefox extension sync — sort of

so i have been plagued with a pain in the ass problem, “how do i keep the same extensions across multiple machines ?” being the lazy fuck that i am and not looking for an extension that can sync other extensions, i found a half assed way of copying / syncing all extensions to one … Read More

quick mrtg memory graph

this graph is for all memory available to processes. this is just a snippet for mrtg: Target[test.mem]: .1.3.6.1.4.1.2021.4.6.0&.1.3.6.1.4.1.2021.4.6.0:comname@ip + .1.3.6.1.4.1.2021.4.14.0&.1.3.6.1.4.1.2021.4.14.0:comname@ip + .1.3.6.1.4.1.2021.4.15.0&.1.3.6.1.4.1.2021.4.15.0:comname@ip PageTop[test.mem]: <H1>Free Memory</H1> Options[test.mem]: nopercent,growright,gauge,noinfo Title[test.mem]: Free Memory MaxBytes[test.mem]: 1000000000000 kMG[test.mem]: k,M,G,T,P,X YLegend[test.mem]: Memory ShortLegend[test.mem]: bytes LegendI[test.mem]: Total Free: Legend2[test.mem]: LegendO[test.mem]: Total Free: Legend1[test.mem]: Free memory, not including swap, in bytes # memAvailReal.0 … Read More

pfsense workin its magic

so i replaced my router, since the original pfsense box died due to a power surge, with a hacked up thin client. has one pci slot which is housing a 4 port 10/100/1000 network card hard drive has been replaced with an ide to cf adapter 256 MB cf card (i don’t think it needed … Read More

gentoo’s portage from a livecd

if ever you need to run emerge (install) from inside a live gentoo cd/dvd to repair your file system here are some steps to remember: mount drive /mnt/gentoo mount -t proc none /mnt/gentoo/proc chroot /mnt/gentoo /bin/bash this will let you emerge stuff as needed

xorg.conf snippets

here is an xorg.conf snippet from my gentoo machine video card: nvidia geforce 8600 ts monitor: sony gdm-fw900 this machine has the nvidia.com drivers installed snippet: Section “Device” Identifier “nvidia geforce” Driver “nvidia” EndSection Section “Screen” Identifier “Screen 1” Device “nvidia geforce” Monitor “sony gdmfw900” DefaultDepth 24 SubSection “Display” Viewport 0 0 Depth 16 Modes … Read More