Fix: setting locale failed

Many package installations fail with the following errors. Especially the ones which involve databases etc. I found this following error while getting postgres SQL work.

perl: warning: Setting failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = “.UTF-8″
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

or you might even this error

Error: The locale requested by the environment is invalid.

This can be easily sorted out by running following command to generate the required locales.

You can even specify the locale with this command to generated the correct locale required for installations as follows:

locale-gen

Here is how I generated en_US locale:

~# locale-gen en_US
Generating locales…
en_US.ISO-8859-1… done
Generation complete.

Enjoy!

Tags: , , , , ,

Force unity at startup for NVidia GeForce Go 7300/7400

Go 7300/7400 might have been black listed on as they found to have been hanging during the startup. Unity 3D can run with the “nvidia 173″ driver on these cards.

To force detection at startup, you can:

  • sudo nano /etc/environment
  • add: UNITY_FORCE_START=1
  • Save the file with Ctrl+S
  • reboot

Ensure you are choosing the “” session in gdm (default). This will bypass the detection and try to start unity 3D. This will help you run Unity on your machine.. Be warned about any slowness that you might feel while using it.

Tags: , , , ,

Test Unity support on Natty Narwhal (Ubuntu 11.04)

Narwhal is out with brand new Unity integrated. Many of you might be struggling to get Unity working on your machines. Unity has restrictions to run on specific graphics cards. It is better to check whether your graphic card supports running Unity or now.

Use the simple command listed below to run the check.

/usr/lib/nux/unity_support_test -p

If your card is black listed, it will be reported so. Otherwise, you can use some alternative methods to run Unity.
Read on my further posts to learn about it.

Tags: , , , , , ,

Flickr Uploader

Be simple and no more hard steps uploading photos to flickr. I found this tool very handy from burtonini.com. Add caption, set, send to groups, set privacy settings for each photo that you upload. Ofcourse write a description and title in any language using input method tool. You can find my flickr account filled with photo. […]

Fix: Making Wacom Bamboo Tablet work on Ubuntu Maverick

Making Wacom bamboo CTH-460 work on Ubuntu was bit tricky but it works. Thanks to all threads on Ubuntu forums. Here is what I did to get it working. 1. Get the needed libraries before compiling wacom device drivers. Run the following command in console. sudo apt-get install build-essential libxrandr-dev xserver-xorg-dev tk8.4-dev tcl8.4-dev libncurses5-dev libx11-dev […]

Windows key + D in Ubuntu 10.10

Unable to use “Windows Key + D” combination on Maverik? Here is a quick fix. Run the following command in console gconftool-2 -t str –set /apps/metacity/global_keybindings/show_desktop "d" Or Access System -> preferences -> key board shortcuts Here set the key binding for “Hide all normal windows and set focus to desktop” action to Mod4+D as […]