Tag: linux

Grep result to a shell variable – no line breaks

There was this website containing regularly updated content I wanted to follow. Unfortunately, they had no RSS feed available and I didn’t feel like checking on the website every now and then. Also, what I needed was just the posts

Tagged with: , ,

Mount a disk image containing LVM

If you have an image with standard partitions, you can mount any partition as a loopback device using the offset given by fdisk:

The sda5 partition starts on sector 204804096. We know from fdisk -l that one sector is

Tagged with: ,

Broken MATE panel

Following an upgrade in Debian Jessie/testing, I was left with no panels at all after logging into the MATE desktop. Running dpkg -s mate-desktop, I saw that MATE had been changed to 1.8 from the previous 1.6 version. My first

Tagged with: , , ,

GPG encrypted files for Amazon Glacier storage

I am no big fan of cloud solutions, mainly because I don’t like to entrust my data to people I don’t know. But like with any other tool, the cloud is still just a tool and it really depends on

Tagged with: ,

Delete huge amount of files in a directory

I had this peculiar problem – one of my virtual hosts had a custom tmp directory where sessions were stored and not deleted for a long time. When I found out, the number of files in there already posed a

Tagged with: , ,

Encrypt partition with dm-crypt

Ever wnated to have your external disk or USB stick encrypted? This is a way to get there on a Debian-based system using dm-crypt and LUKS. First, make sure dm-crypt module is loaded (see if /dev/mapper/ is present), and if

Tagged with: ,
Top