Category Archives: UNIX

ARM openSUSE missing UTF-8 charmaps problem

openSUSE on Rasbperry Pi has missing package which makes difficult to use irssi or anyother application that have UTF8 on std-in or std-out especially on zsh!

agilob:~/ $ locale a
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_COLLATE to default locale: No such file or directory
agilob:~/ $ localedef -v -c -i en_GB -f UTF-8 en_GB.UTF-8
character map file UTF-8 not found: No such file or directory
cannot read character map directory /usr/share/i18n/charmaps: No such file or directory

Login as root:

root:~/  zypper ref
root:~/  zypper in glibc-i18ndata

Continue reading

ERROR: clGetPlatformIDs() -1001

Many people have problem like this one above, even if they configured and installed ATI SDK + OpenCL + ATI Catalyst correctly, without any errors or warnings. But they still cannot run any application which uses their GPU. So here I’ll show you how to fix it and we will try to run oclHashcat to check if the driver is OK after the fix.

At the beginning after installation, I had this error:

$ ./oclHashcat-lite64.bin 9fe8bcafcd86d85172097bd41abc29c0 ?d?d?d?d?d?d?d?d
oclHashcat-lite v0.4 starting...
ERROR: clGetPlatformIDs() -1001

Continue reading

Problem with camera’s up-side-down view on Linux

This problem is known for everyone who has ASUS or Acer notebook and uses its webcam.

Provided default library to use camera gives us up-side-down view.

I wrote a post how to permanently fix this bug on Skype, but the fix doesn’t work for all applications. You can still meet this bug in Firefox, Chromium and any other application which can use your web-cam.

Continue reading

Fix camera up-side-down view in Skype

After installing Skype on oS (and other distros) view from web-cam is upside down, to fix it we must install one library and replace the new one with one provided with Skype.

1. Install missing library (and dependencies):

sudo zypper in libv4l1-0-32bit libv4l-32bit libv4l

2. After that log in into a root account:

su root

3. Turn off skype!
Continue reading

Buffer I/O error on device sr0, logical block 0

I check today some old CDs, some of them were from ’90 so of course they didn’t work. With one of them was a problem with reading… and ejecting CD-ROM. My PC wasn’t able to eject the CD even calling this command from root:

eject sr0 -rm

didn’t work.

DMESG said:

[ 1067.416522] Buffer I/O error on device sr0, logical block 0
[ 1075.923084] sr 1:0:0:0: [sr0] Unhandled sense code
[ 1075.923088] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1075.923097] sr 1:0:0:0: [sr0] Sense Key : Hardware Error [current]
[ 1075.923105] sr 1:0:0:0: [sr0] Add. Sense: Timeout on logical unit
[ 1075.923115] sr 1:0:0:0: [sr0] CDB: Read(10): 28 00 00 00 00 00 00 00 02 00
[ 1075.923130] end_request: I/O error, dev sr0, sector 0
[ 1075.923137] Buffer I/O error on device sr0, logical block

The CD wasn’t mounted, there was only a thread for the device, which wasn’t even mounted (I also wasn’t able to mount it from root):

umount: /dev/sr0: not mounted



root@Agilob-PC:# lsof /dev/sr0
blkid 4079 root 3r BLK 11,0 0t0 7203 /dev/sr0

root@Agilob-PC:# kill -s 9 4079
root@Agilob-PC:# eject

Worked for me!