Bash file extension substitution the KISS way.
Ever wanted to bulk-rename files in linux? Say all files have extention txt, and you want to rename them to doc. Here’s how 😉 for i in `ls *.txt` do mv ${i} ${i%.*}.doc done
Ever wanted to bulk-rename files in linux? Say all files have extention txt, and you want to rename them to doc. Here’s how 😉 for i in `ls *.txt` do mv ${i} ${i%.*}.doc done
Today, I started the task of updating my home_network gentoo hosts since its been a while. What a mess I have run into, baselayout2+openrc has been marked stable, luckily I caught the newsitem not to reboot before fixing the /etc/init.d directory with etc-update or similar tools. Next up, I have tons of broken packages and …
How to configure your Serviio software to recognise the Sharp AQUOS TV. in the serviio software install directory, there is a directory named “config” with 2 files in it. log4j.xml and profiles.xml step 1) Open the profiles.xml Step 2) paste the “code” block from this post          …
Today, My security scanner Lynis informed me that it found an expiring certificate for my cyrus imap server. Oh noes!!!! So I quickly located the following instructions online: openssl req -new -nodes -out req.pem -keyout key.pem openssl rsa -in key.pem -out new.key.pem openssl x509 -in req.pem -out ca-cert -req -signkey new.key.pem -days 999 cp new.key.pem …
After last weekend, the raw hard disk image of the virtual host has been successfully extracted. Now we will use this image, to try and find the PV’s on the disk so that we can extract those and import them back. 1) Look for volumes on the virtual disk [root@hardware /vbox/HDD]# fdisk -l -u virtual.bak.vdi …
Today, my client gave me the task of moving a virtualbox machine to real hardware. VBox specs: 2 Gigabyte ram, 1-CPU, 80 Gig harddisk. Real Hardware: 8 Gigabyte ram, 4-CPU and 1 Terabyte raid5 harddisk. The reasons to move this host to real hardware are performance issues. The hosting machine is an old linux install …