Tag: Uncategorized

Replace text inside a file

To replace all occurances of “shtml” with “php” inside of all of the *.php files in a directory. $ perl -pi.bak -e 's/shtml/php/' *.php See: hacks.oreilly.com: Global Search and Replace with Perl for more examples.

Read more...

L.A. freeways top list of worst bottlenecks

Like this is a suprise to anyone living in Los Angeles. The interchange of Ventura Freeway US-101 and Interstate 405 ranked as America's worst highway bottleneck, according to a report issued Thursday by the American Highway Users Alliance, a Washington, D.C., lobbying group that presses Congress for more money for…

Read more...

Telnet Based Server Testing

These tips and tricks detail the command syntax necessary to test common services using a telnet client. Network and System administrators can attest to how invaluable these types of tests can be when troubleshooting a system.

Read more...

mrtgsql

I have just released version 0.1 of mrtgsql. mrtgsql – a MRTG to SQL logging and reporting tool for MRTG Copyright (c) 2004 Max Clark mrtgsql is composed of two programs: mrtgsql which inserts data from the MRTG .log files into a database, and mrtgreport which reports usage on the…

Read more...

Recover the root password on Solaris

Seeing that I have had to do this twice now this month, I figured I would post this brief HOWTO. 1. Use the software cd 1 of 2 to recover root password 2. Boot cdrom -s from ok prompt 3. mkdir /tmp/a 4. mount /dev/dsk/c0t0d0s0 /tmp/a…

Read more...

Stir the entropy pool in FreeBSD 4

Entropy is used by the random number generator on your system for things like SSL, SSH and GPG, put simply encryption. On FreeBSD 4 it is possible to increase the inputs to generate entropy for your system (usefull if you are generating a large GPG key over the network). 1.

Read more...

Make an ISO image

From How to make a bootable OpenBSD CD on www.shockley.net On a Unix machine with the files in /iso/openbsd/3.4 # mkisofs -v -r -l -L -T -J -V "OpenBSD-3.4" -A "OpenBSD v3.4-Release, Custom ISO, 2004-01-15." -b i386/cdrom34.fs -c boot.catalog -o openbsd-i386-3.4.iso -x openbsd-i386-3.4.iso /iso/openbsd/3.4/ On a Windows…

Read more...

Passwordless Logons with SSH

Create your keypair: # ssh-keygen -t rsa Send the public key (~/.ssh/idrsa.pub) to the remote host. It is a plain text file. Store this in ~/.ssh/authorizedkeys on the remote host. If the file exists already, append it to the end of the file on a new line. Log out…

Read more...