I keep forgetting the correct format of cron entries to have a command run every three minutes To do it every three minutes you need to make the syntax */3 not simply 3 (which means on the 3rd minute of every hour) # m h dom mon dow command */3 * * * *...
Putting the I in Idiot – or I just deleted my External USB Drive Partition
The Problem: Doing a Windows XP Pro install at work... Boot Install CD Delete partitions Delete C: Hmm didn't know there was a D: but hey it's got to go.... Delete D: ... Oh No! That was my 250GB External USB drive holding a heap of backups.... Argggh The Fix: I have...
Tesseract gotcha – tif works, tiff doesn’t
Problem tesseract mytiff.tiff myout Tesseract Open Source OCR Engine name_to_image_type:Error:Unrecognized image type:mytiff.tiff IMAGE::read_header:Error:Can't read this image type:mytiff.tiff tesseract:Error:Read of file failed:mytiff.tiff Signal_exit 31 ABORT....
PopTop PPTP Server + Linux Gateways
Suppose you have the following configuration Priv Network A---Windows XP Clients | Linux gateway (iptables NAT etc) | [Internet] | Linux gateway (iptables GRE and PPTP port 1723 NAT'd and forwarded to internal PPTP server) | Priv Network B---<linux PPTP Server>...
How not to choke your internet connection while downloading with wget
wget has a cool feature known as limit-rate. If you want to leave a bit of bandwidth for other things then use it with double u get. wget -c -t 100 --limit-rate=80k http://ftp.iinet.net.au/pub/ubuntu-releases/8.10/ubuntu-8.10-beta-desktop-i386.iso The above means -c...
How long should dd take to zero a partition
I had a virus infested computer and I wanted to zero the partition and restore from a partimage file but first I thought I would zero out the data on the partition using dd so: dd if=/dev/zero of=/dev/hda1 This took absolutely ages... and I was wondering when it was...
Work around for umount: /mnt/sdb1: device is busy
You get this error when trying to umount a partition: umount /mnt/sdb1/ umount: /mnt/sdb1: device is busy umount: /mnt/sdb1: device is busy At a root prompt: Run fuser see man fuser for options fuser -v /mnt/sdb1/ Output of fuser USER PID ACCESS COMMAND...
Using Linux/Cygwin to split files into chunks for transfer to CD
Question: How can I tar up about 12GB of files on a linux box and then split the files into 700MB chucks? Answer: You can use the following 2 methods on any GNU tooled box or using the Cygwin environment on Windows. Using tar, gzip, split and cat - Method 1...
Windows XP printing to a HP PSC1610 connected to a Ubuntu Computer
On Ubuntu Using sudo system-config-printer publish the printer and enable sharing for the LAN. This will allow IPP printing but restrict clients to the local network IP Addresses only. On Windows XP Add a printer and choose: A network printer, or a printer connected...
Ubuntu Disk Stuff – running fsck at next reboot
How to schedule a disk check for the next reboot. As root or using sudo do the following: Method 1: Use the forecfsck file method touch /forcefsck shutdown -r now Note: This command seems to check all partitions when run Method 2: Up the mount count above the fsck...