Use your Sprint Instinct as a modem in Ubuntu (Hardy) with USB

Friday, August 1st, 2008

Edit: For typo, USBDialup is now Instinct. This isn’t a beginners guide so you need to install ppp and such on your own.
I was going through a lot of craziness setting up my Sprint Instinct to use as a modem, but I figured it out tonight.
First, make sure your phone is in Modem mode.  [...]

Root Password Generation

Tuesday, April 8th, 2008

Creating and maintaining root passwords across a large number of servers is not something to take for granted. In networks there are often hundreds of servers to maintain. A good Sysadmin knows that for maximum security each and every server needs to have a unique root password. The practicality for this is [...]

Secure /tmp usage for bash scripting

Tuesday, April 8th, 2008

I’ll cut to the chase…
# Secure tmp directory usage.
tmp=${TMPDIR-/tmp}
tmp=$tmp/unf.$RANDOM.$RANDOM.$RANDOM.$$
(umask 077 && mkdir $tmp) || {
echo “Could not create temporary directory! Exiting.” 1>&2
exit 1
}
(umask 077 && mkdir $tmp/mebad) || {
echo “Could not create temporary directory! Exiting.” 1>&2
exit 1
}

in-addr.arpa!

Thursday, January 31st, 2008

I wrote this in 2004, but I figured it’d be good to get this archived in here for safe keeping. Enjoy the geekery.
Finally I have figured out how to delegate a class B. Actually I learned that it’s not a delegation at all. That was my main barrier, semantics. Some dude and a guy [...]

LVS/ldirectord virtual ports don’t match real, the fix and them monitoring script action.

Wednesday, January 30th, 2008

As far as I know this only applies to Ubuntu Server 6.06 LTS. ymmw. This is for my notes and I will use shorthand explanations to suit my own purposes. Please leave comments and I will reply as appropriate. All IPs are forged.
Take a look at my /etc/heartbeat/ldirectord.cf config:
virtual=149.212.45.44:80
real=10.0.1.1:8080 masq
real=10.0.1.2:8080 masq
# [...]