With a little side of applesauce...

Sunday, May 27, 2007

Exim4 / Mailman - Debian sarge and user Debian-exim

I finally figured the mismatched group error with the mailman package in Debian. I was getting this in the /var/log/exim4/mainlog:

2007-05-27 15:06:15 1HsP0J-0006a9-OV ** userlist@myserver.org R=mailman_router T=mailman_transport: Child process of mailman_transport transport returned 2 from command: /var/lib/mailman/mail/mailman

I saw that mailman was running as user "list":

list 25276 1 0 15:05 ? 00:00:00 /usr/bin/python /usr/lib/mailman/bin/mailmanctl start

while exim4 runs as Debian-exim:

Debian- 25794 1 0 15:16 ? 00:00:00 /usr/sbin/exim4 -bd -q30m

My previous fix was to recompile the source deb package to change the flag:


and then using that package to upgrade, but now, I realized it was my Exim4 config all this time... In:


I changed:

# User and group for Mailman, should match your --with-mail-gid
# switch to Mailman's configure script.


# User and group for Mailman, should match your --with-mail-gid
# switch to Mailman's configure script.


update-exim4.conf ; /etc/init.d/exim4 restart

and Voila! My exim4 mailman routers are sending :)

Tuesday, May 22, 2007

YUM - making sure that YUM clients reindex your repository

To force YUM clients to reindex your repository, you need to:

cd /path/to/my/repo
yum clean all
createrepo .

Then rerun yum update on the client machine.

YUM - accessing a locally hosted yum repository

I finally got the yum client working with a locally hosted repository. It appears that yum ignores the baseurl protocol of http:// when it is attempting to find the repomd.xml on a locally hosted repository, returning the following error:

http://localhost/yum/repodata/repomd.xml: [Errno 14] HTTP Error 500: Server Error
Trying other mirror.
Cannot open/read repomd.xml file for repository: myrepo
failure: repodata/repomd.xml from myrepo: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from myrepo: [Errno 256] No more mirrors to try.

If you change the baseurl protocol from http:// to file:// in the /etc/yum.repos.d/localhost.repo file, then the repository will then be available for installation, searching, etc. from the local machine.

This happens with:

Monday, May 21, 2007

YUM - download RPM or SRPM packages

I have finally found the trick to using YUM to download RPM packages without installing them. On CentOS 4.4, you need to install the yum-utils package, which contains the utility /usr/bin/yumdownloader.

Example usage, (from the man page):

Download the kernel RPM to /var/tmp:
yumdownloader --destdir /var/tmp kernel

CentOs - Disable SELinux

I find that selinux cramps my style :)), so have found that you can disable it by changing:




And, rebooting, or running:

/usr/sbin/setenforce 0

to disable it until the system is rebooted.

CentOs - starting httpd at startup

As I am a Debian dude, I had to google on the way to start httpd at startup:


is the simplest way to add a daemon to start at startup... You can also use chkconfig, or the:

Applications->System Settings->Server Settings->Services

GUI tool to control this as well. According to this page:

The tools listed above add and remove symlinks into the rcN.d directories... Yikes! I miss my /etc/default/ files in Debian :)

Wednesday, May 16, 2007

Yum - creating a repository yum

I am learning how to build my own Yum repository, and found the following linux.com article to be very helpful:

The one note that I want to add, is that yum-arch is being deprecated in favor of createrepos:

for indexing and metadata generation for your Yum repository... It's faster too :)

Sunday, May 13, 2007

Debian - Apache 2.0 -> 2.2 upgrade - Unexpected error on 443

This was a difficult one to track down. I upgraded from apache 2.0 to apache 2.2 (both Debian packages), and the following errors, (as described in the bug):

Firefox complains: server has sent an incorrent or unexpected message.
Error Code: -12263.

Apache2 error.log shows: [client ip] Invalid method in request

It all boiled down to a problem with the -DSSL not being passed from the /etc/init.d/apache2 script, to the /usr/sbin/apache2ctl script... As a quick work-around, (until I can really trace it down), I modified the apache2ctl file:



$HTTPD -k start -DSSL

PHP - open_basedir and symlinks

Found this interesting bug today:

open_basedir doesn't work with symlinks...

Saturday, May 12, 2007

Debian - Apache 2.2 - failure to start

I thought I would write this one down, since it has bitten me more than once. It appears that apt removes the /var/log/apache directory when upgrading to apache2.2, so apache kept failing with a cryptic error:

Configuration Failed

This was really difficult to trace, as both:

/usr/sbin/apache2ctl configtest


/usr/sbin/apache2 -t


Syntax OK

The failure to start was actually caused by the RewriteLog be set to:

RewriteLog /var/log/apache/rewrite

which was passed down through the generations... I had to enable a single virtualHost, and then start to comment out lines until I found the right one :P

Saturday, May 5, 2007

xine - feisty and wmv... Playing

Imagine my surprise tonight when I clicked on a Paul Gilbert video off the Racer X website, and the wmv file opened up _and_ played in Xine... This is on 64-bit Ubuntu Feisty with the following packages installed:

ii libxine-extracodecs 1.1.4-2ubuntu3 the xine video/media player library, transit
ii libxine-main1 1.1.4-2ubuntu3 the xine video/media player library, transit
ii libxine1 1.1.4-2ubuntu3 the xine video/media player library, binary
ii libxine1-ffmpeg 1.1.4-2ubuntu3 the xine video/media player library, binary
ii libxinerama-dev 1.0.1-4build1 X11 Xinerama extension library (development
ii libxinerama1 1.0.1-4build1 X11 Xinerama extension library
ii totem-xine 2.18.1-0ubuntu3 A simple media player for the Gnome desktop
ii x11proto-xinerama-dev 1.1.2-4ubuntu1 X11 Xinerama extension wire protocol
ii xine-ui 0.99.4+dfsg+cvs20061111-2ubuntu2 the xine video player, user interface