Archive for the 'linux' Category

Installing RMagick2 on Debian Etch on AMD64

There are plenty of installation howto’s but in none of them I found how to get it running with debian Etch.

So here is how I did it

You can stick with the original installation guide for the beginning. Get the sources of ImageMagick > 6.3, unfortunately the debian etch packages are to old so you have to compile it yourself!

After installing ImageMagick and RMagick you will have this problem:

1
2
3
4
5
6
7
8
9
10
11
12
irb -rubygems -r RMagick
/usr/lib/ruby/gems/1.8/gems/rmagick-2.8.0/lib/RMagick2.so: libMagickCore.so.1: cannot open shared object file: No such file or directory - /usr/lib/ruby/gems/1.8/gems/rmagick-2.8.0/lib/RMagick2.so (LoadError)
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
        from /usr/lib/ruby/gems/1.8/gems/rmagick-2.8.0/lib/RMagick.rb:11
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
        from /usr/lib/ruby/1.8/irb/init.rb:252:in `load_modules'
        from /usr/lib/ruby/1.8/irb/init.rb:250:in `each'
        from /usr/lib/ruby/1.8/irb/init.rb:250:in `load_modules'
        from /usr/lib/ruby/1.8/irb/init.rb:21:in `setup'
        from /usr/lib/ruby/1.8/irb.rb:54:in `start'
        from /usr/bin/irb:13

To solve this problem create a new ld.so config by creating a file /etc/ld.so.conf.d/local.conf and add these 2 lines:

1
2
/usr/lib
/usr/local/lib

and run ldconfig

The REAL reason we use Linux

We tell people we use Linux because it’s secure. Or because it’s free, because it’s customizable, because it’s free (the other meaning), because it has excellent community support…

But all of that is just marketing bullshit. We tell that to non-Linuxers because they wouldn’t understand the real reason. And when we say those false reasons enough, we might even start to believe them ourselves.

But deep underneath, the real reason remains.

We use Linux because it’s fun!

more …

HowTo: Install splunk>_ on Debian

* Download the RPM from http://www.splunk.com
* create a deb package with alien
* install the deb package (dpkg -i .. )
* cd /opt/splunk/bin
* ./splunk start

If you get errors like this: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Then install libstdc++6

* apt-get install libstdc++6

It’s that simple :)

Technorati Tags: , ,

HowTo install openfire (former wildfire) on Debian

Note: This has been done on a Debian Sarge installation but it should work on Etch also, I will report if it does once I have done it, sometime this week.
I found this post on howtoforge and it helped me alot.

First you need Java JRE, lucky me I had a deb package on my server from some other tests so I didn’t need to create a new JRE deb package.
Follow this howto to create a debian package so you can install JRE the debian way. Once you installed the JRE you can continue with openfire.

Download openfire from http://www.igniterealtime.org/downloads/index.jsp
download the tgz file, the rpm installation with alien didn’t work for me on a AMD64, will probably work for i386.
unpack it move it to /opt

tar -xzvf openfire_3_0_0.tar.gz
mv openfire /opt

You don’t need to install any mysql java connector as mentioned on howtoforge, openfire now comes with everything you need.
Create a new database and create the tables with the provided file.
for example: mysql -u -p < /opt/openfire/resources/database/openfire_mysql.sql

Make sure openfire.xml is writeable:
# chmod 777 /opt/openfire/conf/openfire.xml

Now setup openfire over the webinterface: http://localhost:9090 or http://127.0.0.1:9090
or use whatever server it is running on instead of localhost.

Note: if you have something like this in your /etc/hosts file

127.0.0.1 foobar localhost localhost.localdomain

it won't work since it will try to connect with dbuser@foobar instead of dbuser@localhost which won't work!
change you /etc/hosts so that localhost is first!

Technorati Tags: , , , ,

[HowTo] Installing eAccelerator on Debian etch

This works for php4 and php5, apache1.3 and 2!

first get php5-dev (or php4-dev, depending on what you use)
apt-get install php5-dev

get eaccelerator from here and unpack it.
cd eaccelerator-0.9.5
phpize
./configure
make
make install

create the eaccelerator cache directories
mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator

and add this to your php.ini (in my case: /etc/php5/apache2/php.ini )

extension=eaccelerator.so
eaccelerator.shm_size=64
eaccelerator.cache_dir=/tmp/eaccelerator
eaccelerator.enable=1
eaccelerator.optimizer=1
eaccelerator.check_mtime=1
eaccelerator.debug=0
eaccelerator.filter=
eaccelerator.shm_max=0
eaccelerator.shm_ttl=0
eaccelerator.shm_prune_period=0
eaccelerator.shm_only=0
eaccelerator.compress=1
eaccelerator.compress_level=9
eaccelerator.allowed_admin_path=/path/to/control.php

adjust the memory to whatever you like.
Copy the control.php to whatever path you like (must be some htdocs accessible path) and set the path in eaccelerator.allowed_admin_path= …
edit the file and user/password.
now restart apache and you are done! go to the link where control.php is and check if you can login and if it works.

Technorati Tags: , ,

IPCop out of the “box”

I bought a VIA mini ITX mainboard to make a new firewall, the old one with a Pentium1 166mhz was going a bit slow and since I also wanted to use VPN I needed something better. IPCop was installed quite fast, and a quick search brought me to this great howto. After setting up VPN I needed a client for Mac OS and I found “Tunnelblick“, quick installation and everything worked great. Now together with my mobile internet connection I can log in from everywhere and also be IMG_7694.JPGsecured :) Ok but what is it with the topic, out of the box? Well, usually this has some other meaning, but I really mean my IPCop works “out of the box”, I couldn’t find a case where I could fit it in so I just took a cardboard box :)

My fileserver in action

esplendidos.jpgWell, after I managed to fill 600Gigs it was time to get a new hard disk. I do still have some IDE Ports on that boad free, but why not get a SATA controller and a brand new SATA disk instead? Faster and it will also work if I switch the mainboard.

Well, there was only one problem, I still had my two big discs in a RAID 0 array which can’t be expanded by a third disk so it was time to switch to LVM. Lucky me that I had 4 SATA disks for the server I am working on where I can move my data to free the disks for the LVM. It took awhile to move 600gigs but now everything is done and my fileserver is back online with a nice and big LVM that could be expanded …. if I had more power connectors for the hard disks and space in the case for a new disk, the harddisk in the photo that is outside of the case is really connected and running :)

LV        VG      Attr   LSize    Origin Snap%  Move Copy%
sharelv   sharevg -wi-ao  931.52G

getmail vs fetchmail …

I recently got quite fed up of fetchmail. The problem is that there are mails on an account from invalid sender domains (like foo.bar for example) since my Postfix rejects such mail because it can only be spam fetchmail didn’t manage to delete them. So it looped leaving the junk mails on the pop account and flooding my logfiles.
The solution was getmail. Since I use postfix + amavis + cyrus there was no example config that fits my needs so I did some experiments but finally a mail from Elimar Riesebieter on the Mailinglist solved my problem.

So I want to share my mini howto of how I configured getmail to run with amavis. I also explain how to use it with avira (former hbedv) Antivir.

Running Kolab on a AMD64

To get Kolab running on a 64bit system, compile the source on a 32bit system or if you have, like in my case, a running kolab that you want to migrate then no compilation is needed. Just install the 32bit libs (apt-get install ia32-libs) and kolab is ready to go.
Don’t forget to add users/groups/startup scripts to the new 64bit system.
Now I just have to get rid of the stupid “User Deleted, awaiting cleanup…” message, which has nothing to do with amd64, this message is there since Kolab was installed and a user deleted.

Technorati Tags: , ,

Let the fun begin :)

I love shopping computer parts, especially if it’s purpose will be to run a Server using Debian. Well I just picked up some parts from Ditech, not much, only 2 boxes :)
Now that the assembly is ready and debian almost finished burning … I will start to install a base system and a raid5 on it, that will be all for today.
Server-03Server-04

Server-05
Problems during install …
Well I didn’t get to far the first problems was right after booting. The Debin installer seems to have problems recognizing the IDE (or the now so called PATA) CD-Rom on Core 2 Duo mainboards. Strange.
The solution is quite simple, I took the cd-rom out of the server, used one of my old IDE cases for external harddisks and abused that to connect the cdrom via usb :) Worked. The next thing is, network card was not detected I “worked around” this problem by inserting some 3com I found at home, but the next thing was the sata controller. arggg.
Now I only have one more chance, downloading a daily snapshop of debian etch and hope that there is a new kernel on that one. That should solve my problems. If not …. I will have to continue searching tomorrow for solutions.

Problem solved, new Kernel find everything, system is up and running :)

Next Page »