Archive for the ‘Notepad’ Category

Gentoo / ArchLinux – NetworkManager and policykit

If you want to use the NM (especially the nm-applet) in Gentoo or ArchLinux, you have to grant the user to access the NM. Therefor you create the following file # cat /etc/polkit-1/localauthority/50-local.d/org.freedesktop.NetworkManager.pkla [nm-applet] Identity=unix-group:plugdev Action=org.freedesktop.NetworkManager.* ResultAny=yes ResultInactive=no ResultActive=yes Thats necessary because polkit-auth was removed from the policykit package. Also you must add the user [...]

pv – monitor the progress of data through a pipe

I’ve found a very nice tool pv… $ dd if=/dev/sda1 | pv | dd of=backup.img 359MB 0:00:05 [75.3MB/s] [ <=> ]

Force a reboot/shutdown

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

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

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 distribution. A lot of cryptographic applications link to it including system libraries like pam [...]

JBoss Cluster – ServerPeerID

$SERVER/deploy/messaging/messaging-service.xml <attribute name="ServerPeerID">${jboss.messaging.ServerPeerID:0}</attribute> For clustered environment each jboss node need a unique ServerPeerID which must be a valid integer.

Migrating Ubuntu to Linux Mint 10

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 deb http://security.ubuntu.com/ubuntu/ maverick-security main restricted universe multiverse deb http://archive.canonical.com/ubuntu/ maverick partner deb http://packages.medibuntu.org/ maverick free non-free #deb http://archive.getdeb.net/ubuntu [...]

Linux Virtual Tape Library

to save for later… mhvtl – A Linux Virtual Tape Library http://sites.google.com/site/linuxvtl2/ That could be a really nice backup solution.

AWS EC2 & S3 free usage

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 Storage, plus 1 million [...]

jstat – jvm memory stats

/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 0.00 0.00 71.36 35.59 72.25 39 6.195 1 0.440 6.635 0.00 0.00 [...]