Posts Tagged ‘Linux’

Safely recover from a freeze in Ubuntu

Tuesday, July 26th, 2011

If you ever encounter a system lockup in Ubuntu here’s a little trick you can use to safely restart your computer.

Hold down the Alt and PrtScn/SysRq keys at the same time and, keeping them held down, enter the following sequence of keys: R, E, I, S, U, B. Hold each key down for a second or so and don’t rush.

What it does is it allow Linux to take control of your system, requests politely that all processes close, forces all processes to close, flushes data to disk, unmounts your filesystems and reboots.

Here’s a couple of mnemonics: ”Raising Elephants ISUtterly Boring” or “Reboot Even ISystem Utterly Broken”.

It’s extremely rare that this is necessary due to Linux’s stability but I’ve found I’ve needed this a couple of times recently (I suspect Google Chrome is the culprit) so I’m posting this here for easy future reference from my phone.

Change default Google localisation in Firefox in Ubuntu

Wednesday, May 4th, 2011

Be default in Firefox on Linux, when you use the Google search up in the address bar it defaults to a search of google.com instead of my preferred google.co.nz. If you want to change this, go look in /usr/lib/firefox[--version--]/searchplugins/google.xml and swap out the .com for .co.nz (or whatever localised Google site you prefer).

Save multiple images to a PDF in Linux

Friday, December 4th, 2009

Place all the images you want in the PDF into a new directory and in the console run the following from within that directory:

convert * mynewfile.pdf

The powerful convert command uses the ImageMagick library which can be installed (in Ubuntu) with the following console command:

sudo apt-get install imagemagick

How to delete all .svn directories

Thursday, July 30th, 2009

In Linux, if you want to remove all .svn files and folders within a directory, navigate to the directory in your terminal and use:

find . -name ".svn" -type d -exec rm -rf {} \;

Credit

Preload to make Linux faster

Wednesday, February 27th, 2008

If you’re running Linux you’ll be aware that it’s crazyfast™ already. Want even more speed? Get Preload. If you’re running Ubuntu you can get it by opening your console and typing sudo apt-get install preload.