23rd Jan2014

Update/Install ImageMagick on CentOS 5 and CentOS 6

by Gyro

Today I had a classic example of what happens when you do not RTFM. I had to install ImageMagick on a webserver running CentOS 5 with cPanel. First I simply ran "yum install imagemagick", which did install ImageMagick just fine.

Now, the reason I had to install it was to do a batch resize of about 20,000 images and place the resized images in a new directory. So I did:
# mogrify -resize 250 -quality 70 -path /home/somesite/public_html/image/thumbs/ -format jpg /home/somesite/public_html/images/*

To my surprise I got the error message:

mogrify: unrecognized option `-path'.

After a quick google search, I realized that yum installed a super old version that was not supporting the -path option?!

So, after some more searching, I found this great guide on how to Install ImageMagick 6.6.5 and followed the instructions. But when I got to the final installation command, I got a dependencies error?!

After another google search, I came across a forum post saying "Make sure that RPMForge repository is installed first, and then everything works."… and when I looked back at the guide, I realized that it did in fact tell me to do that. The reason I did not see it was because it was a one liner with a link to another website, and I was expecting to be able to simply copy paste commands, so I skipped reading that line. I did not RTFM properly…

So, to make it easy for the future, I will combine these two pages, in order to have a step by step set of instructions without having to go to another website :)

Before starting, make you sure you know whether you are using a 32-bit or 64-bit system.
# uname -i
x86_64 would be 64-bit

OK, here we go!

1. Uninstall ImageMagick

# rpm -e --nodeps ImageMagick.i386 ImageMagick-devel.i386 ImageMagick.x86_64 ImageMagick-devel.x86_64
this actually didn't work for me, so I did:
# yum remove imagemagick

2. Add the EPEL repository to yum:

CentOS 6:
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
CentOS 5:
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

3. Download and Install RPMforge (Check here for newer version.)

CentOS 6:
Download RPMforge for 32-bit systems: rpmforge-release-0.5.3-1.el6.rf.i686.rpm
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
Download RPMforge for 64-bit systems: rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

Install DAG's GPG key:
# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt

If you get an error message like the following the key has already been imported:
error: http://apt.sw.be/RPM-GPG-KEY.dag.txt: key 1 import failed.

Verify the package you have downloaded:
# rpm -K rpmforge-release-0.5.3-1.el6.rf.*.rpm

Install RPMforge:
# rpm -i rpmforge-release-0.5.3-1.el6.rf.*.rpm

CentOS 5:
Download RPMforge for 32-bit systems: rpmforge-release-0.5.3-1.el5.rf.i386.rpm
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.i386.rpm
Download RPMforge for 64-bit systems: rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm

Install DAG's GPG key:
# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt

If you get an error message like the following the key has already been imported:
error: http://apt.sw.be/RPM-GPG-KEY.dag.txt: key 1 import failed.

Verify the package you have downloaded
# rpm -K rpmforge-release-0.5.3-1.el5.rf.*.rpm

Install RPMforge
# rpm -i rpmforge-release-0.5.3-1.el5.rf.*.rpm

4. Install dependencies for ImageMagick 6.6

For 32-bit systems:
# yum install djvulibre OpenEXR jasper ghostscript librsvg2 libwmf libtool-ltdl
For 64-bit systems:
# yum install djvulibre OpenEXR jasper ghostscript librsvg2.x86_64 libwmf.x86_64 libtool-ltdl.x86_64

Systems running CentOS 6 will need the old version of libtool-ltdl installed:
For 32-bit systems:
# rpm -ivh --force ftp://ftp.muug.mb.ca/mirror/centos/5.9/os/i386/CentOS/libtool-ltdl-1.5.22-7.el5_4.i386.rpm
For 64-bit systems:
# rpm -ivh --force ftp://ftp.muug.mb.ca/mirror/centos/5.9/os/x86_64/CentOS/libtool-ltdl-1.5.22-7.el5_4.x86_64.rpm

5. Download and Install ImageMagick 6.6.5

Download for 32-bit systems: ImageMagick-6.6.5-10.i386.rpm
# wget http://www.lassosoft.com/_downloads/public/Lasso_Server/CentOS-Extra/ImageMagick-6.6.5-10.i386.rpm
Download for 64-bit systems: ImageMagick-6.6.5-10.x86_64.rpm
# wget http://www.lassosoft.com/_downloads/public/Lasso_Server/CentOS-Extra/ImageMagick-6.6.5-10.x86_64.rpm

Install ImageMagick
# rpm -ivh ImageMagick-6.6.5*

DONE! :crazy:

9723

31st Jul2012

Scan IP Network show Computers Network Devices with Angry IP Scanner

by Gyro

Angry IP Scanner (aka "ipscan") is a network scanner designed to be fast and simple to use. Angry IP Scanner is a open-source and cross-platform software to Scan IP Network show Computers Network Devices in a certain IP range.

Angry IP Scanner not only finds computers and other devices connected to the network. For computers/devices found in the network, it will also display the host name, as well as scan and list their open ports. Angry IP Scanner has many other features to in regards to Scan IP Network show Computers Network Devices.

(more…)

3061

26th Jul2012

Resize VirtualBox Disk Image – grow, expand, increase a .VDI disk image in 1 minute

by Gyro
Resize VirtualBox Disk Image -- the easy and the hard way.Today I actually used up the 20GB of virtual disk space I set for the Windows XP I use for specific Windows Software. Who would have thought that an old Windows XP license would be useful again, eh? :)

After performing a quick search on how to manipulate an existing VDI file, I found a bunch of lengthy guides, all pretty much saying the exact same thing… create a new VDI, load the old and new VDI disk images into a Virtual Machine as a master and slave drive, boot with a gParted or equivalent BootCD image, and then clone the old disk to the new one… or in short: do a lot of steps that take forever, but not what I want: Resize VirtualBox Disk Image.

virtualbox

After flipping through the 10th or so guide, I realized that pretty much all of them were written in 2008… very unusual as bloggers usually write about the same subject on a yearly basis. That in mind, I search a bit more and… BINGO! Since VirtualBox 4 is out, there is a simple command line tool to resize VDI images. Man, those extra 5 minutes of searching just saved me from a lot of hassle and a huge waste of time.
(more…)

384643

06th Jul2012

Merging video, multiple audio tracks, and subtitles into one file

by Gyro

As a movie lover living in a household that speaks 3 languages, multiple audio tracks are a must for a movie, and at least English subtitles for those of us who are not native speakers of the audio we are listening to.

(more…)

2020

05th Jul2012

Customize your OS with Ubuntu Tweak

by Gyro

Ubuntu Tweak is an application to make configuring Ubuntu easier for everyone. It provides many useful desktop and system options that the default config-tool for the desktop environment doesn't provide.

(more…)

797

14th Jun2012

Photoshop CS crashing when opening complex PSD files using Ubuntu/wine

by Gyro

I installed the new Photoshop CS6 trial version on Ubuntu using Wine 1.5.5, and had a strange error when I tried to open a complex psd file with multiple layers etc, Photoshop would just crash.

As much as I hate the way email lists look when searching for something, this time they were the only source I could find with the solution for this annoying problem.

(more…)

2537

19th May2012

Keep your passwords together and safe with KeePassX

by Gyro

As a web craftsman I have to keep a nearly endless list of usernames, email addresses, and the respective passwords.

KeePassX is the perfect solution to keep all your passwords, as well as all other important information in one place. It is an Open Source software for Linux, MacOS, and even Windows, that uses one single file to store all your information. This file is protected by your own password, the encryption technology used complies with the standards of the NSA, and best of all -- you can share and open this file on the before mentioned operating systems.

(more…)

829

19th May2012

Download YouTube Videos, Channels and Playlists with Youtube-DL

by Gyro

Today, I found a fantastic YouTube channel with loads of videos that interest me. Since I especially enjoy watching videos when I do not have an Internet connection, I tend to download videos from youtube to watch them later. However, this has always been a pain in the behind to do, especially if you are following a certain channel and would like to have the latest videos…

Well, if you are a Ubuntu user, it takes about 1 minutes to setup and start downloading.

(more…)

13921

18th May2012

Install handbrake video converter on Ubuntu 12.04 Precise Pangolin

by Gyro

If you are using Ubuntu 12.04 and would like to install the video converter tool "handbrake", simply follow these instructions:

(more…)

2257

13th May2012

Best Free Screenshot and Screen Capture Software 2012

by Gyro

If you are using Ubuntu (or another Linux Distro with the same GUI), I have a real treat for you!

Check out Nanoshot, it's probably the most handy screen capturing tool there is.

(more…)

2176