openssl with version information under sles11sp1

Posted on Tue 29 March 2011 in Linux • Tagged with Server, SUSE Linux Enterprise Server, notepad, linux, openssl • 2 min read

If you getting errors like this one

$ /path/to/program
/usr/lib/libcrypto.so.0.9.8: no version information available

you need a libcrypto.so and a libssl.so with version information.

Here are some information about the problem.

openssl has evolved to a very important library in Linux …


Continue reading

JBoss Cluster - ServerPeerID

Posted on Tue 22 February 2011 in Linux • Tagged with JBoss, Server, Work, linux, notepad, java • 1 min read

$SERVER/deploy/messaging/messaging-service.xml

${jboss.messaging.ServerPeerID:0}

For clustered environment each jboss node need a unique ServerPeerID which must be a valid integer.


Linux Virtual Tape Library

Posted on Mon 14 February 2011 in Linux • Tagged with Backup, Linux, Server, notepad • 1 min read

to save for later...

mhvtl - A Linux Virtual Tape Library

That could be a really nice backup solution.


Nagios plugin for JBoss monitoring - check_ajp

Posted on Fri 05 November 2010 in Linux • Tagged with JBoss, Nagios, Perl, Server, linux, notepad, plugin • 1 min read

Released check_ajp v1 - see download

md5sum: bfd5c249a1f44123062a0485c3af524c

Usage: ./check_ajp --app 10.10.10.10

$ ./check_ajp --app 10.28.10.80; echo "return: $?"
OK - AJP - 0.00294 seconds response time|time=0.002943s;;;0.000000;10.000000
return: 0
default setting
port 8009
warning 1.5 seconds
critical 3 seconds …

Continue reading

Create a shared disk for VMware ESX guests

Posted on Mon 11 October 2010 in Linux • Tagged with drbd8, ocfs2, Server, VMware, linux, work, howto • 1 min read

To create a shared disk between two or more VMs, login into one of your ESX hosts and create a disk image.

cd /vmfs/volumes/#volume-name#/#vm-name#/;
vmkfstools -d thick -a lsilogic -c 50G shareddisk.vmdk;

Add the new hardrive to the guest(s) and select a new SCSI bus …


Continue reading

Apache Tomcat & logrotate

Posted on Tue 31 August 2010 in Linux • Tagged with Server, SUSE Linux Enterprise Server, Linux, work, notepad • 1 min read

Some linux distribution are shiped without a config for the catalina.out (Tomcat application server) ;)

$ cat /etc/logrotate.d/tomcat
/var/log/tomcat/base/catalina.out {
    compress
    copytruncate
    create 644 tomcat tomcat
    rotate 30
    size 4M
}

The catalina.out will be rotated after 4 mb and stored for 30 …


Continue reading

Linux routing basics

Posted on Fri 27 August 2010 in Linux • Tagged with Network, Router, Server, linux, routing • 1 min read

You getting from your ISP a subnet like this 172.30.26.16/28,
and your router has the ip 172.30.26.17 !

You need to enable the ip forwarding in the kernel

sysctl -w net.ipv4.ip_forward=1

And we need to enable proxy arp! This is necessary …


Continue reading

Ubuntu PHP hardening with Suhosin

Posted on Wed 28 July 2010 in Linux • Tagged with Debian, Security, Server, php • 1 min read

Ubuntu includes the php suhosin patches....

Install suhosin extension

aptitude install php5-suhosin

/etc/php5/{apache2,cli,cgi}/php.ini

; suhosin parameters
suhosin.executor.include.max_traversal = 4
suhosin.executor.disable_eval = On
suhosin.executor.disable_emodifier = On
suhosin.mail.protect = 2
suhosin.sql.bailout_on_error = On

Restart apache

service apache2 restart

Sometimes it could …


Continue reading

Postfix as relayhost with SASL auth

Posted on Wed 21 July 2010 in Linux • Tagged with Debian, Postfix, Server, mail, sasl • 1 min read

Client configuration (notebook, workstation what ever)

  1. Edit your /etc/postfix/main.cf
  2. Create your passwordmap - /etc/postfix/sasl_passwords
  3. Run postmap for /etc/postfix/sasl_passwords

Server configuration

  1. Nothing if you have already a working mail server. That the user (/etc/postfix/sasl_passwords) must exists on the server is plausible ? Check your …

Continue reading

z-push, imap server and *irony* a user-friendly Debian whatever *irony*

Posted on Sun 09 May 2010 in Linux • Tagged with Linux, Server • 1 min read

If you want to use z-push with your imap server (which requires php5-imap) you must add to following line to you /etc/php5/apache2/conf.d/imap.ini file

# configuration for php IMAP module
extension=imap.so

Why is that not set Debian ?