Cron errors due to unsupported mime magic codes
August 27th, 2007After one of my recent system updates, I started getting these cron errors daily.
/etc/cron.daily/rkhunter:
PHP Warning: mime_magic: type search/400 \\input text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\section text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\setlength text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\documentstyle text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\chapter text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\documentclass text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type regex [Cc]onstant[[:space:]]+[Ss]tory text/x-inform invalid in Unknown on line 0
After much searching, this is the workaround:
In the /usr/share/misc/magic.mime file, find the section that begins "# TeX documents, from Daniel Quinlan" and comment out the lines in that section.
# TeX documents, from Daniel Quinlan (quinlan@yggdrasil.com)
#0 search/400 \\input text/x-tex
#0 search/400 \\section text/x-tex
#0 search/400 \\setlength text/x-tex
#0 search/400 \\documentstyle text/x-tex
#0 search/400 \\chapter text/x-tex
#0 search/400 \\documentclass text/x-tex
# Type: Inform interactive fiction language
# URL: http://www.inform-fiction.org/
# From: Reuben Thomas <rrt@sc3d.org>
#0 regex [Cc]onstant[[:space:]]+[Ss]tory text/x-inform
NOTE: For Debian, it appears that this file is located at /usr/share/file/magic.mime
This device can perform faser
June 28th, 2007FINALLY!!! I've been wanting to do this for ages since I have several laptops with only USB 1.0 hubs.
The problem:
Whenever I plug-in my USB flash drive or wireless card (both of which are USB 2.0 devices), I get the annoying ballon/message pop up stating "This Device Can Perform Faster" (if plugged into a USB 2.0 port etc).
The solution:
In Device Manager, click on the USB host controller,
Click the Advanced tab
Check the box on the bottom of the window that says "Don't tell me about USB errors."
This needs to be done for each USB controller listed under USB in Device Manager so that the error message will not appear no matter which controller the device gets plugged into.
tar and gzip on unix
May 10th, 2007Being primarily a Linux user, I'm used to the GNU tar program with gzip included. UNIX tar (at least HP-UX) doesn't have gzip included as part of the tar option set. Here's how to do a tar+gzip as a single command:
tar cvf - . | gzip > ~/backup-020916.tar.gz
Sort by file size in Unix
October 16th, 2006Sort by the 5th field, numeric, descending:
ls -l |sort -k5rn,5
Live Update Repair
October 11th, 2006Here's a link to Symantec's live update repair page.
http://service1.symantec.com/SUPPORT/sharedtech.nsf/docid/1999051911110813?OpenDocument&seg=en
