LVM recovery

Few days ago i made mistake and forced fsck to check partition that contain LVM instead of logic volume, as result i got broken LVM metadata. I was unable to see volume group an logic volumes. pvs output looked like that: # pvs -v Scanning for physical volume names Incorrect metadata area header checksum I […]

Tags: , ,

Posted in Linux related | No Comments »

Libvirt + vnc + sasl

Yesterday i wanted to configure libvirt with kvm virtualization, while i read comments in config file, i observed, that qemu can share credentials  with  libvirt via sasl. Also i found few how-to, that said ‘just copy /etc/sasl2/libvirt.conf to /etc/sasl2/qemu.conf’. I done that, but when i tried to open console of VM i got “Error: connection […]

Tags: , ,

Posted in Linux related | No Comments »

Pulseview compilation

Half year ago i wanted to make device that can be used to clone ski pass. I thought that ski passes use RFID 125kHz. First i bought itead module RDM6300 but it turned out that it can only read tags, so i bought  EM4095 chip. At this time i also noticed, that most ski passes […]

Tags: , ,

Posted in Hardware, Linux related | 3 Comments »


Few months ago, i tried very cool feature called ‘zram’. It is linux kernel module that allow to create compressed block devices into memory, it can be used for creating compressed fs in ram  (/tmp for example) or for swap. May be you think, that in context of swap, it is dumb to keeping  memory […]

Tags: ,

Posted in Linux related | No Comments »

How to fix ‘Timezone database is corrupt – this should *never* happen!’

Today i upgraded to wheezy. When i entered my blog i observed that it does not work anymore. I looked into logs and found next errors: [26-Jun-2013 12:59:41 UTC] PHP Fatal error:  date(): Timezone database is corrupt – this should *never* happen! in … [26-Jun-2013 12:59:49 UTC] PHP Fatal error:  strtotime(): Timezone database is corrupt […]

Tags: , , , ,

Posted in Linux related, Web related | 3 Comments »

Kali linux on LiveUSB with working persistent partition

Few days ago i wanted to make liveusb with kali linux (i had backtrack before). I used this guide to install kali, but i observed, that persistence partition does not work. There is partitions on my usb drive: When init script found persistent partition and tried to mount  their return error “mount: mounting /dev/sdaX on […]

Tags: , ,

Posted in Linux related, Security related | 22 Comments »

Split and encode FLAC/CUE to mp3/ogg in one run.

Few days ago i  needed to split and encode one flac file to mp3. I found few solutions, one of them only split flac file, other encode flac to mp3, but no one do not do it in one run. So, i wrote script, you must specify flac and cue/toc files, after that script will […]

Tags: , , ,

Posted in Linux related | 7 Comments »

Failsafe zoneminder with gluster and geo-replication.

Near year ago i configured zoneminder for monitoring my approach. But i got one problem, host that running zoneminder placed in same approach, so, if it will be stolen, it will be stolen with recordings. I spend a lot of time while choosing solution to organize replication on remote server. Most solution that i found […]

Tags: , ,

Posted in Linux related, Security related | 3 Comments »

How to block large ip subset on the example of TOR

I wrote before how i blocked TOR exit nodes by iptables, disadvantages of method that i used before – big amount of rules (one per each ip). This solution easy and obvious, but had speed penalty. Today i want write about more effective solution that use ipset, let’s see what is ipset: IP sets are […]

Tags: , ,

Posted in Linux related, Security related | 1 Comment »

How to transfer data between hosts securely.

From time to time i faced with task how to transfer important data between servers securely (ie over ssl or something similar). I do not use passwords for remote access and do not have private keys on remote systems, so i can not use ssh for this purposes. First i wanted to write about solution […]

Tags: , ,

Posted in Linux related, Security related | 6 Comments »

Powered by WordPress. Designed by Försäkra Online.