Posts

CyanogenMod 10.2 on Samsung Galaxy S4 (Japanese DoCoMo version - jfltedcm)

Here is how I managed to get CyanogenMod on my Galaxy S4 - the Japanse DoCoMo model. Starting back to front, the short version is: Get the repo command, and get ready to compile CyanogenMod as usual repo init -u git://github.com/CyanogenMod/android.git -b cm-10.2 Prep the extra repositories needed to compile the Samsung phone model. $ cat .repo/local_manifests/s4.xml <?xml version="1.0" encoding="UTF-8"?> <manifest> <project path="device/samsung/jf-common" name="kbc-developers/android_device_samsung_jf-common" /> <project path="device/samsung/jfltedcm" name="kbc-developers/android_device_samsung_jfltedcm" /> <project path="device/samsung/msm8960-common" name="CyanogenMod/android_device_samsung_msm8960-common" /> <project path="device/samsung/qcom-common" name="CyanogenMod/android_device_samsung_qcom-common" /> <proje...

Udev unable to rename network interfaces

I struggled for a week having udev (on CentOS 6.3) do all kinds of silly things with the interfaces names on a server with 4 onboard 1G interfaces, an 2 dual port Mellanox ConnectX-3 cards. The short story is that udev was trying to preserve the names of the interfaces to be consistently numbered starting from eth0 and ending with eth7. The problem: the modules for the network cards do not always get probed/loaded in the same order. Udev does the module loading automatically and considering how heavily parallel it is, if the Mellanox driver gets loaded first and the onboard tg3 driver second, udev tries to swap eth eth0-eth3 interfaces with eth4-eth7. Most of the time this leaves a huge mess behind. I followed RedHat's advice to stop using the "eth" names but even then udev failed to rename one or two of the eth interfaces most of the time. Here comes the solution. Modify the 70-persistent-net.rules that udev generates, and add an extra rule for each matching interface w...

Changing the "system" font in Windows

Especially in a Japanese windows, after changing the system language from Japanese to Bulgarian (or any other Cyrillic language), the letters used for some system dialogs would be displayed in full width font making it at times almost unreadable. There is no obvious place to change those fonts, and the only help is in the registry itself. Navigate to this key in the registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes And change the values for MS Shell Dlg and MS Shell Dlg 2 to a non-Japanese font (the default MS Sans Serif and Tahoma are actually pretty good). You can also try Arial Unicode MS if you still care about Japanese characters. There is a more detailed explanation at this page .

Deciding on a photo hosting service

I am getting way too lazy for my own good. After my latest trip I now want to share my photos with friends and family, and I am trying to decide how to easily to this. And since I couldn't really decide on what I need, I decide to list (mostly for myself) what I am looking for in a photo sharing service. ability to upload original images, so people can download and print photos at decent quality (12M resolution to be allowed) decent space available - my average photo size is 5MB organize photos in albums, many albums privacy - I certainly do not want to make all my photos visible to the whole world ability to share with non-account holders - I want to be able to send an email with a link to the album and not impose on my relatives to have to sign up for yet another service they may or may not need I will be trying out the two big players - Picasa and Flickr in the coming days and update this post with my findings.

Lame web interface on Motorola SBG900

Image
I've been struggling with a wireless SBG900 for a couple of hours now. The interface looks fine (as far as wireless router interfaces go) and I had the simple setting up WPA security on this router. The higher security setting was supposed to replace the current no password + MAC restriction setup. The bottom line is that after removing the registered MAC addresses the router simply refused connections from all clients. And the best part is that nowhere in the interface I could find a clicky button to enable it. [caption id="attachment_145" align="aligncenter" width="595" caption="There is no place to disable the MAC filter"] [/caption] Tamper Data to the rescue. Click "Apply" and just change the value of the Wireless.EnableAllowAccess.enableAllowAccess parameter to 0. Works fine now.

Consistent software RAID disk errors on nVidia MCP51

My brand new pair of disks in a setup that would otherwise work perfectly fine, decided to keep giving me headache. There are only two disks in the machine, partitioned in three, with the first two pairs of partitions in a RAID1 array. And every now and then one of the disks would disappear from the system, then re-appear with a different drive letter (e.g. sda would become sdc). Obviously the disk would get kicked out of the RAID, but I can then add it back and wait for the 1.5TB partition to sync back the RAID. The errors look like this: Oct 29 03:44:59 lion kernel: ata1.00: n_sectors mismatch 3907029168 != 268435455 Oct 29 03:44:59 lion kernel: ata1.00: revalidation failed (errno=-19) Oct 29 03:44:59 lion kernel: ata1.00: limiting speed to UDMA/133:PIO2 Oct 29 03:44:59 lion kernel: ata1: hard resetting link Oct 29 03:44:59 lion kernel: ata1: nv: skipping hardreset on occupied port Oct 29 03:45:00 lion kernel: ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300) Oct 29 03:45:00 lio...

Recovering from a failed LVM2 pvmove

After I left a loop moving the data from my LVM2 LVs to a new raid1 array overnight (I wanted to also reorder the LVs physically at the beginning of the disk) I came back in the morning to see that one of the moves had hung. I killed it, and the loop kept going. Unfortunately something had already gone wrong and I had to issue pvmove --abort to get things in order. And that almost worked, except I started getting these: > sudo lvs --all Number of segments in active LV pvmove0 does not match metadata Number of segments in active LV pvmove0 does not match metadata LV VG Attr LSize Origin Snap% Move Log Copy% Convert  download lionvg -wi-ao 200.00g home lionvg -wi-ao 100.00g kvmpool lionvg -wi-ao 50.00g opt lionvg -wi-ao 15.00g [pvmove0] lionvg p-C-a- 0 repos lionvg -wi-ao 2.00g root lionvg -wi-ao 4.00g  usr lionvg -wi-ao 20.00g var lionvg -wi-ao 20.00g I was furthermore unable to destroy or make inac...