Snippet: Converting all .flac to .mp3 into the same directory

I needed all my flac as mp3 to play them on a device that does not support .flac. Heres how to convert them all:

export IFS="                                                                                                                                          
"
for file in `find /home/claw/Musik -name *.flac` ; do echo "converting $file" && nice -19 sox $file `echo $file | sed 's/\.flac/\.mp3/g'`   ; done

You may have to install sox and libsox-fmt-mp3:

apt-get install sox libsox-fmt-mp3

File Encryption using LUKS

luks logo File Encryption using LUKSLUKS (Linux Unified Key Setup) is a part of dm-crypt which provides encryption for block devices by the Linux Kernel. It is possible to encrypt a whole hard drive or a container which can be stored in a native file system containing unencrypted files.

You will learn how to create such an encrypted container here. Some common scenarios could be to store the container on an cloud service such as (Dropbox, Google Drive, Own Cloud and co.) or to store sensible data own your own devices or at your workplace.

Continue reading