Posts tagged: ec2

Locale issues with Ubuntu Server 13.04 on EC2

By , Tuesday 14th May 2013 11:38 am

If you see an error message with Ubuntu Server 13.04 on EC2 like the following when trying to run commands:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Error: The locale requested by the environment is invalid.

Then run the following and reboot (you might want to update the locale though):

sudo echo "" >> /etc/environment
sudo echo "LC_ALL=\"en_GB.utf8\"" >> /etc/environment

Reboot and this should fix your issues.

Install a better version of GIT on Amazon EC2 default instance

By , Monday 14th January 2013 10:27 am

I was doing some development on an Amazon default EC2 instance and wanted to commit some changes back to a repository using `git commit -p`, flag ‘-p’ not recognised, boo!

Turns out the default version of GIT that comes with the EC2 instances is 1.7.4.X. I’m not sure (and can’t easily find) what version the patch feature was added to `git commit`, but I have an install of 1.7.7.X available and it appears to be in there  (update – git commit patch added in 1.7.6).

Anyway I had a quick look around the interwebs to find a repo/rpm for a newer version of GIT so I could make my patch commit. I eventually discovered that version is sitting in the ‘amzn-preview‘ repository which is sitting on the box already. In order to upgrade GIT therefore you simply do:

sudo yum install --enablerepo=amzn-preview git

This will get you a more recent version, and the very useful patch feature.

Panorama Theme by Themocracy

1 visitors online now
0 guests, 1 bots, 0 members
Max visitors today: 8 at 07:11 am UTC
This month: 15 at 12-11-2017 04:06 pm UTC
This year: 45 at 02-01-2017 10:28 pm UTC
All time: 130 at 28-03-2011 10:40 pm UTC