Small Addendum

Few days ago I converted one more 12.04 LTS host to Precise/Raring hybrid and my results were slightly different from my previous experience. Both systems were stable, no problems here, but I needed to install/update some additional packages, which were not required in the first case. So, my updated /etc/apt/preferences.d/libvirt file contains additional lines:

Package: libtasn1-3
Pin: release a=raring
Pin-Priority: 990

Package: qemu-kvm
Pin: release a=raring
Pin-Priority: 990

Package: qemu-common
Pin: release a=raring
Pin-Priority: 990

As for stability – it’s like I said – I have no complaints so far.

One more bug squashed

The more complex code becomes, the more bugs it will have. It’s impossible to write bug free code, but it’s in our hands to fix the bugs as soon as possible. This time I fixed a small bug, which prevented proper .nfo/.sfv file creation in the regular mode, leading to improper removal of temp directories:

298a300
>                       ORIGINAL_NAME="$FILENAME"
303d304
<                               ORIGINAL_NAME="$FILENAME"
357a359
>                       ORIGINAL_NAME="$FILENAME"
363d364
<                               ORIGINAL_NAME="$FILENAME"

The link for the latest version is unchanged, however the version 0.52 can always be downloaded from the permanent link.

P.S. It’s always good to get feedback – it motivates you to make things better, to improve. If I hadn’t received feedback on my rarnpar script, many bugs could go unnoticed for much more longer time. So, if you encounter any bug in the script, please don’t hesitate to report it.

Rarnpar – Bugfix

One critical bug was found in the version 0.5 of my rarnpar script. I am very thankful for the person, who reported the issue. The bugfix, per se, consists only from one line, but very important one:

229c230
< if [ "$ALGO" != "sha1" ] && [ "$ALGO" != "sha224" ] && [ "$ALGO" != "sha256" ] && [ "$ALGO" != "sha384" ] && [ "$ALGO" != "sha512" ] && [ "$ALGO" != "md5" ]
---
> if [ "$CRYPTMODE" = "1" ] && [ "$ALGO" != "sha1" ] && [ "$ALGO" != "sha224" ] && [ "$ALGO" != "sha256" ] && [ "$ALGO" != "sha384" ] && [ "$ALGO" != "sha512" ] && [ "$ALGO" != "md5" ]

So make sure that you download the latest version from here or, if you would need version 0.51 specifically, here.

Testing new libvirt features on Ubuntu 12.04

If you are like me and you want to experiment with cutting edge virtualization technologies on LTS version of Ubuntu(12.04 aka Precise Pangolin), you will soon find out that this is not so easy. But, of course, it is still possible. First of all, keep in mind that to achieve this, you will be turning your stable LTS system into unstable one and I can’t guarantee that everything will work as expected or work at all. You have been warned… :) Read more

FAQ: libvirt+kvm

In my current job, I am working constantly with libvirt/kvm combination on Ubuntu based hosts, where I encounter problems with varying degrees of difficulty. From my experience, I’ve compiled following small FAQ:

Q:virsh shutdown vmname doesn’t work. Why?

A: You need ACPI installed on guest. For debian based distro do aptitude install acpid.

Libvirt logo

Read more

Cory Doctorow – Little Brother

I always thought that it’s kinda cool, when authors promote their books by seeding them away on their websites. It won’t stop a good author from being compensated for their work and this will definitely give them a good rep in a world of insane copyright trials and patent wars.

This time I stumbled upon a mention of the author, who wasn’t known to me before – Cory Doctorow. But if you have read a little about the book called “Little brother” on wikipedia, you would know, why I became interested in his works.

Little Brother

Read more

Censorship in Russia

Advocates of censorship always say that they are thinking about how to protect the minds of good, true citizens. Of course, this is just another version of propaganda – if your citizens can’t access “bad” information, they will be accessing something else – something, what could direct them to “the right” thoughts.

It’s sad that in the 21th century some politicians are still thinking that this is a viable path. And although Russia has a long history of media control, I just can’t imagine, what some bureaucrat could possibly have been thinking, when he banned following video:

According to drug and/or vodka influenced mind of some Russian government official, this video promotes suicide and shouldn’t be watched by the good citizens. Illogical? Well, we are talking about censorship here – it lacks logic by definition.

Rarnpar – Small Announcement

When I saw a quite substantial increase in visitors checking this blog, I was definitely curious about the source and the reason. Apparently, someone mentioned my rarnpar script on reddit. I am flattered that somebody finds my script useful, but it’s shame that I am not getting any new feedback.

However, I saw that many people are downloading old versions of the script. Well, maybe they have their own reasons, but I am thinking, that the links in the old posts may be confusing. So, I decided to create one persistent link, where always the newest version will be available: rarnpar

And here are all my posts on the subject:

Finally, I am adding the rarnpar tag to all the related posts. This small project has grown more than I expected.

ARGUS-IS – Does it exist?

I’ve just read about a 1.8-gigapixel surveillance platform developed by DARPA and I am not sure, if I can believe the article. It just sounds too unbelievable and too scary at the same time. 25 square kilometers are covered and processed in a real time? What the heck? Just think about all the bandwidth needed for all the video data. Even considering that this is just 12fps video, it must be still generating insane amounts of traffic. How could someone be able to transfer this huge amount of data wirelessly?

But if the system, which is shown in a video below, really exists, then my paranoia-o-meter is over the top. I could imagine, why the oppressive US government would want to have such a system, but do they really have it already? I hope not.

Rarnpar – Version 0.5

I didn’t think that I would be releasing one more update this week, but oh well… I have added the recursive mode(-R option), which you could employ, when you are too lazy to type a command like this one:

for i in $(ls); do cd $i; rarnpar all_options_here ; cd ..; done

I added also -O option, which can be used to specify an output directory. My friend told me that performance is better, when you are reading files from one disk, and archiving them on another. Now you can test this yourself.

After these two changes I got an idea that the .sfv files, like the NFOs, could be created automatically, so I added –sfv option.

In spite of having only 3 changes, the diff is quite long: Read more