Home
 
 
davidmentis
29 June 2005 @ 12:44 am
Using exim's filters to call bogofilter seems to be outside the realms of it's capabilities. The exim mailing list hints at it's possibilities:


http://www.exim.org/mail-archives/exim-users/Week-of-Mon-20021118/msg00272.html

And the thread that it references:

http://www.exim.org/mail-archives/exim-users/Week-of-Mon-20021118/msg00063.html

To quote it:
I recently set it up in my .forward (also wanted to stay within
exim).  It requires a small setuid (or setgid) program bogofilt to
access the exim spool directory -- see the previous thread on
'$message_filename ?'.

	if "${run{/bogofilt $message_id}{s}}" is s
	 then	unseen pipe "bogofilter -s"
		deliver spam
	 else	unseen pipe "bogofilter -h"
	 endif

bogofilt simply runs a shell script bogofilt.sh, which includes:

	cd /var/spool/exim/input &&
		{ sed '1,/^$/d; s/^[0-9][^ ]*  *//' "$1-H"
		  sed '1s/.*//; s/^From />&/' "$1-D"
		  } | bogofilter

The sed scripts rebuild the message and protect "^From " lines;
simply cat-ing the files might be sufficient.
 
 
davidmentis
29 June 2005 @ 12:45 am
*argh* that wasn't the least bit lame. Symptoms are the X server segfault'ing after installing the nVidia drivers. The summary link is here. It basically says to do two things:


  1. Disable SELinux while installing the nvidia driver:
    
    # /usr/sbin/setenforce 0
    # /path/to/NVIDIA-Linux-$ARCH-$VERSION-pkg1.run
    # /usr/sbin/setenforce 1


  2. Patch /etc/X11/prefdm:
    
    --- prefdm~	2005-06-14 13:04:09.000000000 -0600
    +++ prefdm	2005-06-14 13:04:09.000000000 -0600
    @@ -45,6 +45,9 @@
     	fi
     fi
     
    +# Added because nVidia driver fails. glibc problem
    +export LD_ASSUME_KERNEL=2.4.1
    +
     # Fallbacks, in order
     gdm "$@" >/dev/null 2>&1
     if [ $? -ne 127 ]; then



All in all, it seems to be something broken after 7174 in FC4. To avoid this lameness, you could just downgrade.
 
 
davidmentis
29 June 2005 @ 12:46 am
Fun with initrd images. On a RedHat machine:


  • cp /boot/initrd-2.6.xx-1-667.img /tmp/initrd.gz

  • cd /tmp && gunzip initrd.gz

  • mkdir a && cd a

  • cpio -idumv < ../initrd


That'll uncompress the image. Make your changes, then:


  • cd /tmp/a

  • find . -type f | cpio -ocO /tmp/newinitrd.unc.img

  • cd ../ && gzip -c newinitrd.unc.img > newinitrd.img

  • mv newinitrd.img /boot



Continue on with your happy life.

[2005-08-05 04:24] Another good site is this one.