[Remix OS for PC] silv3rfox:
Last year I wrote a guide on how to triple boot Ubuntu Windows and Android-x86, which since then remains my daily set-up. Now that Android-x86 is partnering with Remix OS I thought I'd give it a try (even if it was closed-sourced).

There are other tutorials on installing Remix OS, but the reason I'm writing this one, is because the others are not detailed and depend on scripts. Lots of things can go wrong with scripts if they're not updated, so this is purely manual and detailed, which offers a

very simple successful rooting method

.

I have a 12" touch notebook Asus X200 with 4GB of RAM and 500GB of disk space.

Currently triple booting Arch Linux, Windows 10, and Remix OS 2.0.102.

Quick summary:

Create an ext3/ext4 partition for Remix OS.

Download the iso and extract its content to that partition.

Root Remix OS easily

Configure grub to detect Remix OS.

Pre-Requirements:

A Linux distribution already installed.

Grub already installed.

First of all, boot your PC into your Linux distro.

A.

Creating a partition for you Android

We need to prepare a 10GB ext3/ext4 partition for Android. You can do so by resizing an existing partition, using gparted.

Now depending on which partition you want to resize (Ubuntu or Windows), you can use gparted from a Live Ubuntu CD, or directly from Ubuntu. I highly recommend resizing an NTFS partition (Windows).

Here is a tutorial on how to use it.

Install gparted (in case you don't have it)

sudo apt-get install gparted

Once installed run gparted (requires root permission).

Select the partition you want to resize

Right-click and select Resize/Move.

Shrink it so you can get a new partition of 10GB

An unallocated partition will be created.

Right-click on it and select New.

Select ext3, label it Android and press Add.

Notice that I labeled the partition "Android", for easier identification.

Make sure that you took the right steps before you apply the changes.

Here is how my Android Partition looks like (sda8)

Write down the path for your android partition, in my case /dev/sda8 (You will need it later)

To test it. Go to nautilus (file explorer), and mount the partition and see if you can access it.

B.

Downloading and extracting the ISO

If you don't need full root (read/write) you can skip this section, all you need to do is to copy the 4 files extracted from the andorid-x86 iso (initrd.img ramdisk.img kernel system.sfs) to your android partition. Create an empty folder called data in your android partition too. And then jump to section C.

The difference here in this section is that we extract the contents of system.sfs and then copy them to the android partition with the other 3 files (initrd.img ramdisk.img kernel), and create an empty data folder. This way, we will have full root access.

(system.sfs is a squashfs which is a compressed read-only file system, which explains why we can't have full root)

Head down to the folks at Jide and download the latest version.

In my case it's Remix OS Beta 2.0.102 64 bit.

Hit the terminal.

You can use the following bash commands to easily extract and copy the files.

Extract the contents of the iso

7z x Remix_OS_for_PC_64_B2016030106.zip -oremix && \
cd remix

Extract the contents of the system.img

mkdir temp && \
mount -o loop system.img temp

Now let's copy initrd.img ramdisk.img kernel files to the Android partition. Create 2 folders on the Android partition called data and system, extract system.sfs (and eventually system.img) and copy its contents to the system folder we just created.

cp initrd.img ramdisk.img kernel [COLOR="Lime"]/path/to/the/android/partition[/COLOR] &&\
mkdir [COLOR="Lime"]/path/to/the/android/partition[/COLOR]/system && \
mkdir [COLOR="Lime"]/path/to/the/android/partition[/COLOR]/data && \
cp -avr temp/* [COLOR="Lime"]/path/to/the/android/partition[/COLOR]/system &&\
umount temp &&\
cd .. && \
rm -rf remix &&\
exit

You should have something like that

C.

Rooting

Now it's extremely easy to root it using the latest stable SuperSU, as you only need to place the su binary in your android system.

Download the latest SuperSU

Extract it

Open a terminal and depending on your architecture (I'll assume you got the 64 bit version) copy the file su to /system/bin inside your android partition and change the file permission to 6755

sudo cp x64/su [COLOR="Lime"] /path/to/the/android/partition[/COLOR]/system/bin
sudo chmod 6755 [COLOR="Lime"] /path/to/the/android/partition[/COLOR]/system/bin/su

Copy the application Superuser.apk to your system apps under SuperSU folder, and change its permission to 644.

sudo mkdir [COLOR="Lime"]/path/to/the/android/partition[/COLOR]/system/app/SuperSU
sudo cp common/Superuser.apk [COLOR="Lime"] /path/to/the/android/partition[/COLOR]/system/SuperSu/SuperSU.apk
sudo chmod 644 [COLOR="Lime"]/path/to/the/android/partition[/COLOR]/system/SuperSU/SuperSU.apk

And that's it. You're done. You have root.

D.

Configuring Grub

Now after copying all the necessary files to the Andorid partition, all we need to do is modify grub to boot from that partition.

sudo gedit /etc/grub.d/40_custom

You can actually experiment with the boot parameters to see what fits your machine more, all you have to do is when you restart and have the Grub boot menu select Remix OS and press 'e' so that you can modify the kernel boot parameter. Usually for debugging you can add DEBUG=1 for example.

You should change (hd0,8) entry based on your android partition location, the one that we wrote before.

(hdX,Y) for /dev/sdXY with a corresponding to 0, b to 1, c to 2 etc ..

In my case, my android partition is /dev/sda8 correspond to (hd0,8)

a -> X=0

8 -> Y=8

So '(hd0,8)'

Update Grub configuration by:

sudo update-grub

E.

Finally

Reboot your laptop, and select Remix OS from Grub menu (it should be the last entry).

... And enjoy Android!

(Don't forget to update the SuperSU root binaries)