Total Pageviews

Showing posts with label debian. Show all posts
Showing posts with label debian. Show all posts

Thursday, June 12, 2008

Problems updating my Debian Distribution, or do you know MMAP?

I was recently trying to update my Debian (lenny/sid) distro and ran into some problems I never had so far:
When calling
apt-get update
I got the following error message:
E: Dynamic MMap ran out of room
E: Ein Fehler trat beim Bearbeiten von g++-4.2 auf (NewVersion1)
E: Problem with MergeList /var/lib/dpkg/status

After digging around I found a solution for my problem:
Increase the Cache Limit size of APT in /etc/apt/apt.conf like this:
APT::Cache-Limit 80000000;
Be careful not to set the size too high!

Sunday, October 07, 2007

Installation of Canon Pixma 4300 under Debian Linux using CUPS

I bought a new printer (Canon Pixma 4300) and had a few problems installing it under Debian Linux. I found a very good installation instruction and I would like to share it with you.

Install necessary packages

sudo apt-get install alien libxml1 libpng3 libtiff4

Download original drivers

wget ftp://download.canon.jp/pub/driver/bj/linux/cnijfilter-common-2.70-1.i386.rpm
wget ftp://download.canon.jp/pub/driver/bj/linux/cnijfilter-ip4300-2.70-1.i386.rpm

Convert RPMs into Debian packages

sudo alien -d cnijfilter-common-2.70-1.i386.rpm
sudo alien -d cnijfilter-ip4300-2.70-1.i386.rpm --scripts
sudo dpkg -i nijfilter-common-2.70-1.i386.deb
sudo dpkg -i cnijfilter-ip4300-2.70-1.i386.deb

Create symlinks

sudo ln -s /usr/lib/libpng12.so.0 /usr/lib/libpng.so.2
sudo ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3

Restart CUPS

sudo ldconfig
sudo /etc/init.d/cupsys restart

Friday, March 23, 2007

What is needed to run a X Server on Debian Linux

Today I installed a Debian (etch) system from scratch and wanted to start a X server... hm ... no X server on a fresh installation. So what packages do I have to install to get a X server running on my system?

apt-get install x11-common xserver-xorg-core xserver-xorg xfonts-base xterm

If you prefer a small and fast window manager and no desktop like KDE or Gnome try out enlightenment.

apt-get install enlightenment

Sunday, March 18, 2007

Running Confluence behind Apache2

I decided to run my personal Confluence installation behind the Apache2 server running on my Debian Linux box using the mod_proxy configuration. I followed the instructions on Atlassians documentation pages (When using Debian it is described in the Jira docs) but ran into a problem afterwards.
Confluence was not accessible and I received a "Permission Denied" error when accessing confluence over HTTP (http://quebbemann.kicks-ass.net/confluence/).
The solution was to enable the Apache module proxy_http:
a2enmod proxy_http
After a Apache restart everything worked as expected!


Saturday, March 17, 2007

Linux IMAP Server using Postfix and Procmail

I switched from POP3 to IMAP on my Debian Linux box and had some problems setting up my local delivery transport using Postfix and Procmail. I use Dovecot as my IMAP server and I decided to move from mbox format to Maildir.
To make this happen I had to tell Postfix that I now use Maildir instead of mbox. Just add the following line in /etc/postfix/main.cf:
home_mailbox = Maildir/
Now you have to tell Procmail to use Maildir instead of mbox. To do this, create a file called .procmailrc in your users home directory and add the following line:
DEFAULT=$HOME/Maildir/
Now all my problems are gone and I have a working IMAP system using:
  • Dovecot (IMAP Server)
  • Postfix (MTA)
  • Procmail (LDA)

Monday, June 05, 2006

Serendipity Installation Problem solved (MySQL Database Setup)

I was trying to install Serendipity 1.0-beta3 and was facing problems with my MySQL database setup. The installer complained about a missing database module.
On my Debian system the debian package of the PHP Mysql module "php4-mysql" was installed into the directory
/usr/lib/php4/20050606
My "php.ini" file had the "extension_dir" set to "./"
So the Mysql module could not be found.
Solution:
  1. I created a new directory /usr/local/share/php/extensions and switched into it.
  2. I linked the mysql.so to the original location using the command:
    1. ln -s /usr/lib/php4/20050606/mysql.so mysql.so
  3. I set the "extension_dir" variable in the file "php.ini" to "/usr/local/share/php/extensions"
  4. Restart of my Apache2 webserver.
Yep, it's working now