locale error

If you’re here, then you had problem like this:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = “hr_HR.UTF-8”,
LANG = “en_US.UTF-8”
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
locale: Cannot set LC_ALL to default locale: No such file or directory

user@computer:~$ /usr/bin/locale
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE=”en_US.UTF-8″
LC_NUMERIC=”en_US.UTF-8″
LC_TIME=hr_HR.UTF-8
LC_COLLATE=”en_US.UTF-8″
LC_MONETARY=”en_US.UTF-8″
LC_MESSAGES=”en_US.UTF-8″
LC_PAPER=”en_US.UTF-8″
LC_NAME=”en_US.UTF-8″
LC_ADDRESS=”en_US.UTF-8″
LC_TELEPHONE=”en_US.UTF-8″
LC_MEASUREMENT=”en_US.UTF-8″
LC_IDENTIFICATION=”en_US.UTF-8″
LC_ALL=

Solution is quite simple:

sudo /usr/sbin/locale-gen hr_HR.UTF-8
sudo /usr/sbin/update-locale LANG=hr_HR.UTF-8

Get sound on HP ProBook 4510s Ubuntu Karmic amd64

Recently I installed Ubuntu Karmic (9.10) and everything worked fine until I made first upgrade. since then I had no sound. Solution is quite simple.

Btw. I assume that U have mediubuntu repositories installed.

sudo aptitude install alsa-firmware alsa-firmware-loaders linux-backports-modules-alsa-karmic-generic linux-backports-modules-‘uname-r’

Last step was to edit /etc/modprobe.d/alsa-base.conf and /etc/modules.

After restart, everything should be working fine.

Connect to your router/switch via USB to SERIAL cabel on linux

user@computer# tail -f /var/log/messages

connect USB to SERIAL cable to your network device and to your computer. turn on network device, and locate port (mine is ttyUSB0)

—————-
[ 3201.770270] usb 7-1: new full speed USB device using uhci_hcd and address 2
[ 3201.934529] usb 7-1: configuration #1 chosen from 1 choice
[ 3202.360357] usbcore: registered new interface driver usbserial
[ 3202.360391] USB Serial support registered for generic
[ 3202.360484] usbcore: registered new interface driver usbserial_generic
[ 3202.360491] usbserial: USB Serial Driver core
[ 3202.373747] USB Serial support registered for pl2303
[ 3202.373815] pl2303 7-1:1.0: pl2303 converter detected
[ 3202.385706] usb 7-1: pl2303 converter now attached to ttyUSB0
—————-

user@computer# aptitude install minicom
user@computer# sudo minicom -s

go to Serial port setup, press A and change Serial Device (in my case it’s /dev/ttyUSB0).
now, press E and change Bps/Par/Bits to 9600 8N1.
Choose Save setup as df1, and then Exit.

voila! you’re connected 🙂

for extra configuration, you can edit /etc/minicom/minicom.users or simply use man minicom.