Sunday, June 7, 2015

On my MacBook Pro Retina 13" with Fedora 22 I received notifications about system errors.

This is the error which triggered the alert:

mce: [Hardware Error]: Machine check events logged

The common advice on the interwebs was to run mcelog, but that didn't show anything.
It turned out that the reason for that is that in Fedora runs it as a daemon and sends the output to syslog.

With journalctl /usr/sbin/mcelog I could see all the errors.

An example event:
apr 05 21:41:32 localhost.localdomain mcelog[891]: MCE 1
apr 05 21:41:32 localhost.localdomain mcelog[891]: CPU 2 THERMAL EVENT TSC 21059c66c67
apr 05 21:41:32 localhost.localdomain mcelog[891]: TIME 1428262844 Sun Apr  5 21:40:44 2015
apr 05 21:41:32 localhost.localdomain mcelog[891]: Processor 2 heated above trip temperature. Throttling enabled.
apr 05 21:41:32 localhost.localdomain mcelog[891]: Please check your system cooling. Performance will be impacted
apr 05 21:41:32 localhost.localdomain mcelog[891]: STATUS 88000bc3 MCGSTATUS 0
apr 05 21:41:32 localhost.localdomain mcelog[891]: MCGCAP c07 APICID 1 SOCKETID 0
apr 05 21:41:32 localhost.localdomain mcelog[891]: CPUID Vendor Intel Family 6 Model 69
apr 05 21:41:32 localhost.localdomain mcelog[891]: Hardware event. This is not a software error.

This happened when all CPU cores were on 100%.

Sunday, January 13, 2013

How to fix your locale settings for Mosh

Mosh is a great tool. It does require a UTF-8 environment.

The "locale" command will show your local locale settings:
$ locale

On Debian based systems like Ubuntu the LANG environment variable will be sent in the SSH session. (This is the SendEnv setting in /etc/ssh/ssh_config)

But for iSSH on the iPhone this won't do. This will pick the environment as defined in /etc/default/locale. To set the locale put the following line in /etc/default/locale and run sudo update-locale.

For further troubleshooting:
1. Check your 'local' environment
2. Check if your SSH sends an environment variable
3. Check the contents of /etc/default/locale on the server

Wednesday, January 9, 2013

Solaris 11 as guest on KVM

To install Solaris 11 as a guest on KVM the following steps are needed.

I will use Ubuntu 12.10 (Quantal) with KVM (qemu-kvm package) and Virtal Machine Manager (virt-manager package). Ubuntu uses a 3.5 Linux kernel.

I will use the sol-11_1-text-x86.iso to install Solaris.

Create a new VM with:
OS Type: Solaris
Version: OpenSolaris
You will have to click "Show all OS options" before Solaris is available in the list. The list doesn't contain Solaris 11 yet, that's why I chose OpenSolaris.

After installing you will need to install slim_install to get a graphical environment:
pfexec pkg install slim_install
pfexec svcadm enable gdm
pfexec init 5

Now you need to remove the Tablet device which is used to keep the pointer of the host and the guest in sync, otherwise your mouse won't work.

Now you should be able to power-on your machine and use GNOME.

Have fun with SMF, ZFS and all other Solaris features!

Sunday, January 6, 2013

Raspberry Pi and the ISY USB Wireless Micro Adapter

I bought the "ISY USB Wireless Micro Adapter" for my Raspberry Pi's.
It's also called "IWL 2000" and supports the N150 standard. It is equipped with a blue led. It works with and without a powered USB HUB. It has a Belkin USB ID and a Realtek Chipset.

It doesn't work out of the box with Raspbian 2012-12-16 wheezy release.

But fortunately it's not hard to get it working:
The 8192cu driver included with raspbian does work, but is not linked with the USB ID of the device. The 8192cu is not the same as the rtl8192cu driver which is included in other releases. I'm using kernel 3.6.11+.

In the output of "lsusb" this is what's show for the device:
Bus 001 Device 006: ID 050d:11f2 Belkin Components

After an "sudo update-usbids" this is what's shown in "lsusb"
Bus 001 Device 004: ID 050d:11f2 Belkin Components ISY Wireless Micro Adapter IWL 2000 [RTL8188CUS]

To load the 8192cu kernel module:
echo 8192cu >> /etc/modules # this makes sure the driver gets loaded on startup
modprobe 8192cu # this loads the driver now

To add the USB ID to the driver:
echo "050d 11f2" > /sys/bus/usb/drivers/rtl8192cu/new_id

You should add this line to /etc/rc.local to make it persistent.

Now it should show up with "ifconfig"  and "iwconfig" and you could configure it just like any other wifi interface.

Monday, November 14, 2011

Connect Omnis Studio to MySQL on Ubuntu

The environment is a 32-bit single CPU machine running Ubuntu 10.04.3 LTS. I will be using Omnis Studio 5.1.1.

The first step is to download and install the software. Nothing special is needed for this step.

Omnis Studio will crash when libc6-i686 is installed because it's not compatible with tls (thread local storage).

The second step is to get the MySQL DAM working.
The issue with the DAM is that the SSL symbols in the so file can't be resolved. You can see this by using "ld -M xcomp/ > /dev/null"
The fix for this is to modify the omnisI386 script and add the following lines:

Now the MySQL DAM should work!