Upgrading Sony's Xperia Ray from Android 2.3.4 (Gingerbread) to Cyanogenmod 10 (Jellybean 4.1) via Linux
So I wanted to upgrade my Sony Xperia Ray from its now old (and official) Gingerbread version of Android to the relatively more modern Jellybean. The most reliable alternative out there is Cyanogenmod.
While the Cyanogenmod wiki was generally useful, here's what I think is a cleaner guide. I performed the upgrade via a Kubuntu Trusty (14.04) laptop.