Linux Tools

Linux /tmp size for DVD burning

I was just trying to burn the Fedora 11 Preview DVD in XUbuntu and the default burning application logically uses /tmp as the location for temporary image files. However my /tmp only had about 2.9 GB free space The DVD is 3.8G and so the DVD burn failed due to lack of...

Clear Squid Cache CentOS 5.x

How: service squid stop rm -rf /var/spool/squid/* (removes cached files and directory structure) rm -rf /var/log/squid/* (removes the logs) squid -z (recreates the cache_dir structure) service squid start Why: Doing the above can be helpful if you want to claw back...

Running Cron Every X Minutes

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 * * * *...

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>...