C

  • Calculating Zip Code Distances Table
    Calculating Zip Code Distances Table Overview I use MySQL to store my zipcode information in. The raw data is taken from a commercial package sold at http://www.zip-codes.com/, ...
  • Checking and Repairing Systems files
    Checking and Repairing Systems files To verify and correct modified Windows systems files, run the command sfc /scannow If you do not have your original install disk, ...
  • Cisco VPN Client Error
    Cisco VPN Client Error On some versions of the Linux 2.6 kernel, Cisco 4.7 fails Create a file with the following content. --------------------------------------------------------------------- --- linuxcniapi.c\t2005-11-12 11:53:06.000000000 -0600 +++ ...
  • Common LVM Recipes
    Overview LVM (Logical Volume Manager) allows you to take a portion of a block level device and use it as a repository for other block level ...
  • Common mdadm commands
    Common mdadm commands I found a really great, if somewhat dated, article at . This is mainly a copy of that article, updated for what ...
  • Computer Asset Manager Program Documentation
    Computer Asset Manager Program Documentation CAMP, the Computer Asset Manager Program, is an open source project managed by Daily Data, Inc.. The goal of CAMP ...
  • Configuring Xen Tools
    Configuring Xen ToolsFirst, modify the file /etc/xen-tools/xen-tools.conf to have the following options (comments from the configuration file removed). Don't just copy/paste this. It is set ...
  • Convert passwd to shadow
    NOTE: It would be very unlikely a modern system does NOT have shadow passwords set up How do I enable shadow passwords on my Linux box? Following ...
  • Create a backup server
    Create a backup server Basic Server Setup (Debian Etch) Perform a standard Linux install, but do not install any unnecessary packages (ie, no web servers, no ftp). ...
  • Create a running average with SQL
    Create a running average with SQL I was doing running averages on a flat file using Perl, and decided I had enough data to warrant ...
  • Create an SSH Tunnel
    How to connect to a remote network via ssh tunnel ssh -Llocal_ip:local_port:remote_ip:remote_port remote_server This sets up connections from local_ip on port local_port to be forwarded to remote_ip:remote_port ...
  • Creating a Proxy Server with ASSP
    ASSP ASSP is a SMTP Spam Proxy server. It can also integrate with ClamAV fairly easily, giving a "one stop shop" and allowing your mail server ...
  • Creating crosstabs with SQL
    This article relies heavily on an article published at http://dev.mysql.com/tech-resources/articles/wizard/index.html I tried to do a pure SQL crosstab but there is not one that is not ...
  • Creating multiple certificates for Apache-ssl
    How to set up multiple ssl domains for apache. All domains must have a unique IP In the world of Debian, you have a couple choices ...
  • Cyberpower OR500 under NUT
    Cyberpower OR500 under NUT Under nut 2.2.2, the CyberPower OR500 rackmount UPS does not work. Following are the instructions to get UPS working. Note: This ...
  • Clean spam from mail folders
    I run a few servers that do mail processing, and part of them is ASSP (http://sourceforge.net/projects/assp/). The result of this is that spam can be ...
  • Convert JBOD to Software RAID-1 maintaining data
    Converting to raid1 from a bare partition structure: Overview: Starting system: 1 drive: /dev/sda Materials: 2 spare drives Finished system: 2 drives, all partitions RAID1, ...
  • Connect iPad to OpenVPN on IPFire
    End User Instructions   You must be at a minimum of IOS v5. Upgrade your iPad before the following if you are not. See http://notebooks.com/2011/03/09/how-to-upgrade-your-iphone-ipod-touch-or-ipad-to-ios-4-3/ for more ...
  • Create a filter to pull e-mail addresses out of STDIN
    Client asked me to pull all e-mail addresses out all messages in his sent folder on the mail server. My first attemp was: grep -i '^to:' ...
  • Creating a router from IPFire using a Soekris appliance
    Taken from (and modified) http://wiki.ipfire.org/en/installation/start#installation_on_a_alix-board This is the way we build routers at Smart Appliances/Daily Data. Your install may not be the same.   Get a serial number, ...
  • clamscan notes
    clamscan is an Open Source antivirus available for Linux. It is especially suited for servers, and is used in many e-mail setups. However, it is ...
  • Change strings in multiple files in directory tree
    I ran into a little problem where I had to move a clients web site to a new server. Unfortunately, the directory structure had changed ...
  • Creating an iSCSI Initiator
    This will create an iSCSI Initiator, which is the term used for the "client" in an iSCSI environment. An Initiator uses the block devices provided ...
  • Cut all but last field in strings
    Sometimes, all you want is the last field for a bunch of strings. In the following, we will be taking a list of file names ...
  • Corrupted Windows Update Fix
    Sometimes Windows Update will have a corrupted download. It does not automatically fix that. I had a situation where I ran out of disk space ...
  • Create an external script for Zabbix
    Create a script that will collect the data. The script MUST be placed in the location specified in zabbix_server.conf as "ExternalScripts=/some/path". I generally change that ...
  • Copying very large files with error handling
    Once in a while I need to copy multi-gigabyte files on my very slow internet connection to one of the servers. This means the copy ...
  • Change Time Synchronization Frequency under Windows
    Description We had a problem with one of our Server 2008 virtuals (running under Xen). For whatever reason, it would lose track of the time, advancing ...