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.


ARD (Video)-Podcast Downloader

Posted on Wed 24 November 2010 in Linux • Tagged with Linux, Perl, Code • 1 min read

#!/usr/bin/perl -w
#
# ARD tagesschau podcast url
$url = "http://www.tagesschau.de/export/video-podcast/webl/tagesschau/";
#
# wget parameter
$wgetopts = "--quiet";
$targetpath = "/tmp";
#
# Enable verbose output
$verbose = 0;
#
#############################

use XML::Simple;
use LWP::Simple;

sub output{
        my $msg = shift;
        if ($verbose) { printf STDERR "$msg\n"; }
}

$xmlcontent = get($url);

my $xml …

Continue reading

AWS EC2 & S3 free usage

Posted on Wed 17 November 2010 in Notepad • Tagged with Amazon Web Services, EC2, S3, Notepad, linux • 1 min read

AWS Free Usage Tier (Per Month):

  • 750 hours of Amazon EC2 Linux Micro Instance usage (613 MB of memory and 32-bit and 64-bit platform support) – enough hours to run continuously each month*
  • 750 hours of an Elastic Load Balancer plus 15 GB data processing*
  • 10 GB of Amazon Elastic Block …

Continue reading

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
timeout …

Continue reading

jstat - jvm memory stats

Posted on Wed 27 October 2010 in Linux • Tagged with java, tools, linux, notepad • 1 min read

/usr/java/jdk1.5.0_22/bin/jstat -gcutil 18703 1s 10

gcutil = Summary of Garbage Collection Statistics (mandatory)
18703 = process id (mandatory)
1s = refresh interval (optional)
10 = counter (optional)

$ /usr/java/jdk1.5.0_22/bin/jstat -gcutil 25532 1s 10
  S0     S1     E      O      P     YGC     YGCT    FGC    FGCT     GCT …

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 days …


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

Lenny Linux rockz...

Posted on Wed 30 June 2010 in Linux • Tagged with Found, Linux • 1 min read

Watch it !

[http://www.youtube.com/watch?v=6gbNZK60Xe4]{style="text-decoration: line-through;"}

YouTube - "This video is no longer available due to a copyright claim by Alley Music Corp.." - :(

http://www.google.com/search?q=Java4Ever&hl=en&tbs=vid:1,srcf:H4sIAAAAAAAAAB3IQQ4AEAwF0dvYSNyppREpfoIu3J5092bihR1jSRkjKJbYdv6t5irU-h04DdMbvJPWQKUSsyx_1D2e3mPVGAAAA&prmd=v&source=lnt&sa=X&ei=SkBETOndKs384Aa93PGiDg …


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 ?