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.

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.

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