You all probably heard about Ubuntu for Android, right? Ubuntu is very good in the marketing and they can do a lot of locomotion around everything. So what if you have Android, want to use Linux distribution and Ubuntu isn’t your cup of tee? You can use openSUSE of course! Let me show you how…
What do you need? Obviously some device with Android. And as our main focus in openSUSE is on newer devices, you’ll need
armv7 one. How do you know whether your device is new enough? For start, my old Nexus One is
armv7. So if you have something newer (not counting cheap no-names), you are probably good to go. If you want to know for sure, open up the terminal on your android device and run
cat /proc/cpuinfo. If it shows
Processor : ARMv7, you are good to go!
Now a little bit of requirements on Android system itself. You’ll need root on your device and you’ll need decent enough busybox. Both of that is usually part of unofficial ROMs. There might be some differences and some troubles, but let’s deal with them when times come.
Separate partition installation
I would say that best way to install openSUSE is to repartition your SD card. If your are not wiling to do so, I’ll describe how to run it from file some other time… Or you can start from my previous post, replace the older script with the new one and adjust it 😉
So let’s start repartitioning. I would suggest to take your card out of your device, put it into card reader and repartition it in your computer, where you can use nice tools like
gparted. Create one
ext4 partition that will hold your root. I would recommend to create it as your second partition. Some programs (like recovery programs) expects first partition to be
FAT, so you’ll into some troubles otherwise. Create your partition as big as you want, but my recommendation would be at least 1G. Depending on what do you plan on doing, it can be more.
So I hope that you created partition successfully by yourselves, now it’s time to get openSUSE for your device. Where do you get that? On our download servers! Yes, we’ve got images and tarballs prepared for some devices. What you want to get is file starting with
LimeJeOS-openSUSE-Factory-ARM-rootfs.armv7l and ending with
-tbz.tar.bz2. Why not put whole link and make it easier for you? These images gets rebuild automatically, so the part that I left out changes over the time as you get newer and newer versions 😉 But don’t worry, you can use
zypper to upgrade too 😉
Lets put it on the card. Tarball you just downloaded actually contains another tarball and checksum. I know, not fun, but no big deal either. So get to the inner tarball, mount second partition of of your sdcard and unpack the inner tarball to it. Unpack it as a root! This can be important as as ordinary user you might not have the rights to create some files and some rights might get dropped in the process. This may result in not working system. So do the unpacking as a root. Just a hint how to do it in command line (might need some paths adjustements according to your system):
tar -C /mnt/sdcard-ext2 -xjf /home/user/download/Lime*.tbz
In the end, you should see some directories like
etc directly on this partition. If you do so, you are almost ready!
Now the hard part, take this script and adjust it! Don’t worry, I don’t want you to learn shell scripting, so adjusting will be pretty easy. There are only two or three lines for users to fiddle with. For partition setup, you need to change just one of them. The following one:
This line says where your openSUSE partition is. How to check whether it is set correctly? If you followed my advice, it will be last partition you’ve got on your device. So try running
ls -1 /dev/block/mmcblk* | tail -n 1. If your busybox can’t handle that, use
ls -1 /dev/block/mmcblk* and look for the last device in alphabetical order. Once you make sure the device is set correctly, you are ready to go and you can run the script in the terminal. It will put you inside openSUSE basic chroot. You can look around, there is not much of software in the beginning, but you can use zypper to install everything you need 😉
I hope you’ll enjoy openSUSE on your mobile phone, if you want to just take a look at the script, feel free to do so. As always, if you have no idea what are you doing, you can damage your device and I take no responsibility for any damage. But if you run into some troubles, drop by on our IRC channel
#opensuse-arm on Freenode and there are people willing to help. You can find me there as well, my nick is
|miska|. Oh, and one last think, root and user password is