Author Archives: Randy

Fixing default console resolution in Ubuntu

In recent releases of Ubuntu (at least 10.x) by default the non-graphical console attempts to use the max possible resolution supported by the connected monitor. Other than being hard on the eyes, this can cause issues with some KVM units and even more issues for headless machines that need to be troubleshooted with a crash […]

The mysterious /tmp/.tmp folder

If LFD reports a /tmp/.tmp folder on your server you have been hit with the latest timthumb.php hack, which is circulating among wordpress sites which dodged the first mass infection last August for unknown reasons. The /tmp/.tmp folder contains a list of firefox visitor IP’s who have visited your site and were exposed to malicious […]

MDADM Cheat Sheet

This info is taken from here. 1. Create a new RAID array Create (mdadm –create) is used to create a new array: mdadm –create –verbose /dev/md0 –level=1 /dev/sda1 /dev/sdb2 or using the compact notation: mdadm -Cv /dev/md0 -l1 -n2 /dev/sd[ab]1 2. /etc/mdadm.conf /etc/mdadm.conf or /etc/mdadm/mdadm.conf (on debian) is the main configuration file for mdadm. After […]

PHP IPv4 and IPv6 Network and Subnet Calculator

Just threw together a quick and dirty PHP-based subnet calculator. What sets this one apart from others is that it works with both IPv4 and IPv6 inputs and has subnet splitting capability. Use the first field to enter a network to get details about. The format is CIDR notation ‘1.2.3.4/22’. Use the second field to […]

Windows 7 / Vista DNS Suffix only one level deep

Major annoyance to any organization that has hostnames like foo.bar.domain.com — Windows 7 and Vista appends domain.com to bar, but not foo.bar. After some digging I finally found a registry hack that restores ‘proper’ functionality like any other OS or older version of windows. Create a DWORD ‘AppendToMultiLabelName’ with a value of 1 in: HKEY_LOCAL_MACHINE […]

Categories: Technical and Windows. Comments Off on Windows 7 / Vista DNS Suffix only one level deep

DJBot Rsync Copy

rsync –progress -av –delete -e ssh root@x.x.x.x:/ root –exclude=/dev –exclude=/proc –exclude=/sys –exclude=/tmp –exclude=’*.mp3′ –exclude=’*.MP3′ — exclude=’*.sql.gz’ –exclude=djbot/logs