Posts Tagged ‘Linux’

magit cheatsheet

By Mark Davidson on June 7th, 2011

It’s been a long time since I’ve done a blog post since been quite busy with life the universe and everything. But today I finally got round to do something I’ve been intending to do for a while.
Which was to take the Magit Cheatsheet by daemianmack
and make it a bit more print friendly.

I’ve managed to accomplish this and have converted the 6 pages of HTML to 2 pages using latex giving it a more friendly layout. The result of this can be found in my git repository here and you can download the magit cheatsheet pdf here. I’d welcome any feedback people would like to offer. I plan on improving this cheatsheet as I master magit so stay tuned for updates.

apc-beta Install – Ubuntu 10.04

By Mark Davidson on December 15th, 2010

Recently I installed the beta version of apc using pecl under Ubuntu 10.04, it took a few attempts before I worked out what the required libraries where so here is my very quick guide to getting it installed and running.

To perform the install, first install the required libraries and second install of apc itself.

sudo apt-get install apache2 php5 php-pear php5-dev libpcre3-dev
sudo pecl install apc-beta

When install apc you will be asked a couple of questions on configuration options best to leave them as default if you don’t know what they do. Once the install is complete you should get output saying.

Build process completed successfully
Installing '/usr/lib/php5/20090626/'
install ok: channel://
configuration option "php_ini" is not set to php.ini location
You should add "" to php.ini

Simply add the line as it says to you php.ini and job done. If you check your phpinfo page output you should see a section for apc saying ‘APC Support enabled’.

I know its a very simple process but second time I have had to spend time figuring out the required libraries and though I would save people time by posting this up. – Ubuntu 10.04 Locale Warning Solution

By Mark Davidson on December 15th, 2010

With a default Ubuntu 10.04 on I have found that when running perl scripts the following warning is shown.

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_GB.utf8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

After a bit of Googling I found the simple solution to be to do

sudo apt-get install language-pack-en

also I would recommend doing

sudo update-locale

which solves another locale issue.