Force a reboot/shutdown

Posted on Wed 27 April 2011 in Linux • Tagged with Linux, notepad • 1 min read

force reboot

$ echo 1 > /proc/sys/kernel/sysrq
$ echo b > /proc/sysrq-trigger

force shutdown

$ echo 1 > /proc/sys/kernel/sysrq
$ echo o > /proc/sysrq-trigger

ERROR: boot device didn't show up after 30 seconds

Posted on Wed 20 April 2011 in Linux • Tagged with Arch Linux, HowTo, linux, notepad • 1 min read

If you're trying to boot the Archlinux 2010.05 CD/DVD/Netinstall and getting the message

ERROR: boot device didn't show up after 30 seconds ...

try this one to fix the problem

$ udevadm trigger
$ exit

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.


Migrating Ubuntu to Linux Mint 10

Posted on Tue 22 February 2011 in Linux • Tagged with Debian, Linux, notepad, ubuntu, linux mint • 1 min read

Here are some random notes for the migration from ubuntu to linux mint 10 (julia) !

/etc/apt/sources.list

deb http://packages.linuxmint.com/ julia main upstream import
deb http://archive.ubuntu.com/ubuntu/ maverick main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ maverick-updates main restricted universe multiverse …

Continue reading

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.


Happy New Year 2011 !

Posted on Sat 01 January 2011 in Life • 1 min read

Wish u a very Happy & Prosperous New Year 2011 !Wish u a very Happy & Prosperous New Year 2011 !


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