Backup your Pictures in Linux Mint – Ubuntu

This script takes all the jpg pictures inside the PICSSOURCE folder and backs them up into the PICSDESTINATION folder. The script reads the creation date of the pictures and based on that it creates folders with the year  and month (ie. 2014-08) to where the pictures are stored. Pictures without date information are copied into the “No-date” folder.

Download script


# Backup your pictures
# By Juan C. Riano

# This script backups your JPG or JPEG pictures organizing them into folders by year and month.
# Folders are created only if they do not already exist.

# Dependencies: grep, awk, exif.

# Destination folder.

# Source Folder

for file in $( ls $PICSSOURCE/*.{jpg,JPG,JPEG,jpeg} )
	echo "Backing up $file"
	WHOLESTR=$( exif $file | grep 'Date and Time' | grep 'Origi' )
	THEDATE=$( echo "$WHOLESTR" | awk '{split($0,arr,"|"); print arr[2]}' )
	THEYEAR=$( echo "$THEDATE" | awk '{split($0,arr,":"); print arr[1]}' )
	THEMONTH=$( echo "$THEDATE" | awk '{split($0,arr,":"); print arr[2]}' )

	if [[ "$THEYEAR" == "" ]]	# Is there exif info for this picture?
		THEFOLDER="$PICSDESTINATION/no-date"	# Pictures with no exif info.
	# Create folder, ignore if folder already exists.
	$( mkdir -p "$THEFOLDER")

	# Copy files, change for mv if you want to delete original files.
	cp "$file" "$THEFOLDER"
echo "Completed backing up pictures."

If you rather delete the pictures, just changed the “cp” command for “mv”.

Use Dropbox and This Script to Backup your Cellphone Pictures

You can configure Dropbox to automatically backup your cellphone pictures to a folder in your Dropbox, then run this script to backup your pictures organized by date from your computer to an external hard drive.

Convert many pictures into a single pdf in Linux Mint / Ubuntu

If you take pictures of your lectures in school, this is an easy way to put them together into a single document that will contain all the pictures sorted by name. This works for any Linux distribution, only the way you install the programs may change.

First, you will need to install two applications:

sudo apt-get install ImageMagic pdfmod

Now go into the folder where you have your pictures – you should have nothing but pictures! – then run the following command:

convert -quality 90 * pictures.pdf 

Sometimes the resulting pdf document has pictures with the wrong orientation, you can fix that by running:

pdfmod pictures.pdf

Of course save the document after making the changes.

Cleanup File Names

This is a simple bash script meant to clean the names of your songs or pictures. Just drop the script in a folder containing (only) your target files, and run it. It will change the names of anything apart from the script.

Download script.


# By Juan Riaño

# Feel free to use as you please, a thank you card (or email) will be appreciated,
# but don't hold me responsible for whacking your grandma's pc.

# This script standardizes file names, it is meant mostly for mp3s or pictures, just
# copy this script inside the folder where the files are located and run it.
# The folder should only have the files you want to standardize. The script does:
# - change file name to lowercase
# - removes non ascii characters
# - replaces spaces by _

# This script is not meant to be short or fast, but rather easy to read and change.

file_to_lower() {
	local FILENAME	# file name without the extension
	local FILEEXT	# just the file's extension

	for file in *; do
		FILENAME="$(echo "${file%.*}" | tr '[:upper:]' '[:lower:]')"
		FILEEXT="$(echo "${file##*.}" | tr '[:upper:]' '[:lower:]')"

		if [ $FILEEXT != 'sh' ]; then
			if [ "$file" != "$FILENAME.$FILEEXT" ]; then
				mv "$file" "$FILENAME.$FILEEXT"
			echo "Changed extension to lower case: '$FILENAME'.'$FILEEXT'"

remove_non_ascii() {
	local FILENAME	# whole name, including extension
	local FILEEXT	# just the file's extension

	for file in *; do
		FILENAME="$(echo "$file" | tr -cd "a-zA-Z0-9._- ñáéíóú")"

		if [ $FILEEXT != 'sh' ]; then
			if [ "$file" != "$FILENAME" ]; then
				mv "$file" "$FILENAME"
			echo "Removed non ascii chars for: '$FILENAME'"

replace_spaces() {
	# replaces spaces and '-'' with '_'
	local FILENAME	# whole filename
	local FILEEXT	# just the file's extension

	for file in *; do
		FILENAME="$(echo "$file" | tr -s ' ' '_')"
		FILENAME=$(echo "$FILENAME" | tr -s '-' '_')
		FILENAME=$(echo "$FILENAME" | tr -s '_' '_')

		if [ $FILEEXT != 'sh' ]; then
			if [ "$file" != "$FILENAME" ]; then
				mv "$file" "$FILENAME"
			echo "Removed spaces, new file name: $FILENAME"


Windows Virus Removal

This is a Do-it-yourself  Windows Virus Removal tutorial that will help you with basic infections, if this instructions are not enough to clean your PC,  you will need to reach for your pocket and pay a visit to your local PC repair shop.


Opening Windows by Name and Executing Commands the Fast Way

Instead of chasing for dialog windows, I will  tell you the direct command, so when I say “Open inetcpl.cpl” (notice the italics) – I need you to hit the keyboard combination Win-R like the picture below, then type the command inetcpl.cpl in the box and hit OK.


Let’s start!


How to Enable FiiO E07’s Digital Output in Linux Mint / Ubuntu

FIIO Andes

FIIO Andes

I have seen this question asked several times in forums, and I used to have this issue too. It is a bummer not to have digital output when normally that’s the whole reason why you buy a DAC!

The solution is simple but a little bit of a nuisance: Connect the FiiO Andes to your laptop before you turn it on!. If you disconnect it and reconnect it while the computer is on, your digital output will not come back until next time you restart your pc.




If you put your computer into hibernation because you have applications you don’t want to close, as long as you keep the DAC connected until the computer hibernates, and you connect it back before waking up the laptop, your digital output will still be available.

Windows Support Tools


This is a small list of websites and tools I use all the time to clean and repair Windows PCs.


Windows Repair
Tune up Utilities


Free Antivirus For Linux Mint / Ubuntu Desktop

You may think that there is no need for antivirus in Linux, so far I don’t think you need active protection, but having the option to scan folders and flash drives is always nice. I also use them to cleanup Windows machines’ hard drives.

BitDefender is my favorite one, you can apply for a free personal licence here, and you can install it by:

# Add the BitDefender repository key to the list of apt trusted keys:
sudo apt-key add bd.key.asc

# Add the following line to the /etc/apt/sources.list file:
deb bitdefender non-free

# Refresh your apt cache by running:
apt-get update

# Install the desired BitDefender packages:
apt-get install bitdefender-scanner-gui

ClamAv does have a full GUI, and have many other packages available for servers. The installation for desktop is very simple:

# Install the engine, updater and GUI:
sudo apt-get install clamav clamav-freshclam clamtk

# To also install active protection:
sudo apt-get clamav-daemon 

# To update the virus definitions:
sudo freshclam

Free Blackberry Apps That Run Over Wi-Fi

Note: This is an old post no longer updated.

I have not tried every single app I could find, thus the list here may not have the best free apps that run on BB over Wi-Fi, they are the ones I know so far. And again, you can trust they actually work over Wi-Fi because I do not have a data plan. Here they are:

Bing for Blackberry You get Search, Maps, Top News, Business Directory and Get Directions. Pretty sweet. My favorite SE is Google, sadly Google Apps won’t run over Wi-Fi. I found some people were able to make Google Apps run by using a program called WiFiX. WiFiX is an app that will fool your BB into believing it is using your data plan, tunneling the connections through your Wi-Fi. I tried it and did not like it, I don’t think it is yet ready for prime time. I’ll keep an eye on it though.

Opera Mini This is a nice and fast web browser, much faster than the default BB browser, the only limitation I found is you still need to use the BB browser to install apps, but I can live with that.

Snaptu Snaptu gives you a lot, it is like a portal with a list of apps you can use, the ones I care about are Facebook, Twitter and Weather, but you have others like movies and games. The Facebook and Twitter app are very basic, but again, they are free and work over Wi-Fi! For Twitter there are several options, but for Facebook this is the only one I have found so far, if you know of a better one, please let me know. Warning: People with data plan should now that there is a bug in this application that causes Snaptu to use the data channel. If you do not have a data plan you should be ok. Thanks to Kalt for pointing this out.

UberTwitter Thanks to Husss and Jason I tried this one, and I was blown away! This is by far the best free twitter client I have tried for BB that works over Wi-Fi. It has all the features I wanted to have. And it is fast too. If you use the free version it will display ads, but they are really not that intrusive. I recommend this app for Twitter.

Nimbuzz This is an IM app that work with the following networks: Windows Live Messenger, Skype Chat, Yahoo, Facebook, Google Talk, AIM, Myspace and ICQ.

LogicMail This is a nice e-mail client that you can configure to get your email from any email account that supports POP or IMAP. I use it to read my Gmail. The details on how to configure it for Gmail are here.