“There has been an error cropping your image.” solution

I encountered this “There has been an error cropping your image.” error in WordPress when I tried to crop an image for theme header.

The solution is surprisingly easy.

sudo apt-get install php5-gd

This will install the PHP GD library for image processing.

Update: You may need to restart apache server for it to come into effect.

Source: https://wordpress.org/support/topic/image-issues-cropping#post-6230879

Install Sublime Text 3 on Ubuntu

Firstly, find out what’s the latest build, open browser, http://www.sublimetext.com/3

In this case, we have http://c758482.r82.cf2.rackcdn.com/sublime-text_build-3065_amd64.deb

Run command,

Then find out where it is installed, for my case, it’s /opt/sublime_text/.

Thus create symbolic link:
sudo ln -s /opt/sublime_text/sublime_text /usr/bin/sublime