Posts Tagged ‘Linux’

Gentoo and libvirt-0.9.12

Yesterday i’ve started the update process for my system…so far, so good. After a while emerge finished successfully…of course with a lot of messages, even some messages (from libvirt) that in my kernel config some features are missing e.g. [...] CONFIG_DEVPTS_MULTIPLE_INSTANCES CONFIG_VETH CONFIG_MACVLAN CONFIG_NETFILTER_XT_TARGET_CHECKSUM CONFIG_NETFILTER_ADVANCED CONFIG_BRIDGE_NF_EBTABLES [...] As usually i’ve ignored these messages After a [...]

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] [ <=> ]

libvirt – QEMU Monitor Protocol (QMP)

Because libvirt self is using the qemu monitor to mange the guests, it is not available for the user. Since version 0.8.6 [1] its possbile to send a command throught libvirt to the monitor. virsh qemu-monitor-command <domain> <command> The problem is that you must use the QMP format to send a command like $ virsh [...]

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

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.

ARD (Video)-Podcast Downloader

#!/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 = [...]

Lenny Linux rockz…

Watch it ! http://www.youtube.com/watch?v=6gbNZK60Xe4 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&ved=0CCIQp

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

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 ?

How to delete a command from the bash history / Hide an command from the bash history

Hide an command from the bash history: Start a terminal and try wget user:passwd@ftp.example.com/secret.tar.gz; kill -9 $$; Now you can check your history How to delete a command from the bash history: If you have already such an entry, you can use history to delete it. history # [...] # 849 uname -a # 850 [...]

Don’t try this at home – root shell Russian roulette

Don’t try this at home! [ $[$RANDOM%6] = 0 ] || rm -rf /; Unless you really know what you are doing.