Scripting

Formatting date in MS-DOS batch file

I needed to make a simple MS-DOS backupscript in Windows XP today and the files were supposed to be stored in folders named by the current date, ISO style. I ended up formatting the date using the following command echo %date:~6,8%-%date:~3,2%-%date:~0,2% Output 2007-10-02 The script @echo off REM Declare variables Set TODAYSDATE=%date:~6,8%-%date:~3,2%-%date:~0,2% Set DATADRIVE=c: Set […]

Read More
Linux

Ubuntu Linux 7.10 Beta on HP Compaq 8510p (laptop)

I experienced problems booting the install-CD for both Ubuntu 7.04 and Fedora Core 7 on my HP Compaq 8510p laptop because the kernel didn’t have the correct SATA driver, so I decided to try the beta of Ubuntu 7.10. The booting problem was fixed on 7.10 Beta and the installation process halted at 88% “importing […]

Read More
Linux

Install Geo::IP Perl Module on Debian Etch

This post describes how to install MaxMind Geo::IP perl module on Debian Etch. You need the GeoIP C library (that includes also the free GeoLite Country database). This is fortunately available in the Debian repositories. apt-get install libgeoip1 libgeoip-dev To install the GeoIP perl module, we need to download the perl module locally from MaxMind […]

Read More