Tag: linux

Scroll emulation with Trackman Marble in Debian 9

Spending a lot of time with mouse and keyboard, I decided I would give it a try with trackball. A friend lent me Logitech Trackman Marble for a week to see if I can get used to it. The one

Tagged with: , , ,

header_checks and Spamassassin headers in Postfix 2.6

I’ve had this mail server of mine for some time. I was an early adopter of Gmail back then, but as years went on and it became obvious that messages were data-mined by Gmail, I eventually started running my own

Tagged with: , ,

Apache and umask 002

I ran into a problem with Apache on Centos 6. For some time, I was the only person who had access to this particular machine so permissions were not a problem. However, now that somebody else is taking care of the website

Tagged with: , , , ,

Centos 7 – bridge for KVM

I got a machine on which I wanted to try Centos 7 and KVM virtualization. As usual, I had to search for how to do a network bridge as it’s been quite long since I did it last time (on

Tagged with: , , ,

AWK – print no newline

Using awk to display information, the print function, by default, adds newline after each iteration. I wanted to copy the results and use them as an actual array in a program and preferred to have them all on one line,

Tagged with: , ,

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: , ,
Top