How to flash Android 8.1 on Nexus 5X / 6P

Android 8.1 is the next version of Android operating system that is still currently in developer preview stage. Right now it  can be flashed only for phones that made by Google such as Nexus 5X / 6P, Pixel C / XL, and Pixel 2 / 2 XL. The latest version is Android 8.1 DP2 which was released on Nov 27th, 2017 come with several features, improvements, and bugs fixed such as fixed audio issue on Nexus 5X, Pixel Visual Core activated, Bluetooth indicator,  hamburger imoji issue fixed, updated Pixel C launcher, and more. This post will walk through the guide on how to flash Android 8.1 on Nexus 5X / 6P.

Lets surf to the guide

Unlock the Bootloader

Since it is not an official release / beta version, you need to unlock the bootloader to be able to flash an Android image. Follow the very detail guide on how to unlock phone’s bootloader from this website.

Install Android Tools (ADB & Fastboot)

For those of you who uses Apple macOS operating system like me, to install Android ADB & Fastboot we can use ‘Homebrew aka brew‘. Make sure that you have the latest version of Android tools otherwire the flashing will fail.

brew tap caskroom/cask
brew cask install android-platform-tools

Download the latest Android 8.1 image file

You can download the Android 8.1 developer preview image from official Android webpage here. Scroll down to near the bottom of the page to get the download links.

Unzip the image and start flashing

Once the image file is downloaded, unzip it and run ‘flash-all.sh’ script. For example I flashed my Nexus 5X (code-named with Bullhead).

$ unzip bullhead-opp6.171019.012-factory-65b5b35c.zip
$ cd bullhead-opp6.171019.012
$ ./flash-all.sh 
target reported max download size of 536870912 bytes
sending 'bootloader' (4620 KB)...
OKAY [ 0.179s]
writing 'bootloader'...
OKAY [ 0.136s]
...
[snipped]
...
rebooting...

finished. total time: 335.385s

It takes around 10 minutes to completely flash the image though the script says 335 seconds which is around 5 minutes and a half. Once the flashing process finished, the phone will automatically reboot into the new system.

Below is screenshot of Nexus 5X running Android 8.1 Developer Preview 2

Flash Android 8.1

How to Install Microsoft Visio Mac / MacBook Pro / Air

This article is written intended to guide you how to Install Microsoft Visio Mac / MacBook Pro / MacBook Air running OS X El Capitan.

One program that missing when using MacBook is there is no Microsoft Visio for Mac. Although Microsoft has been officially releasing Microsoft Office (e.g Word, Excel, PowerPoint) for Mac, Microsoft still does not release  Visio for Mac, at least until now.

Since I work as a network administrator, Microsoft Visio is very important for me to draw network diagram / topology. Although there are many Visio alternatives for Mac such ConceptDraw, LucidChart, SmartDraw, or OmniGraffle according to my opinion they can not replace Visio. It is the best because of its simplicity and easy to use. Another reason is I am already familiar with Visio when running Windows and also already bought the software license so buying another program for this purpose is wasting money.

In this article I will not talk about which software is better. I want to show you how to install Microsoft Visio on Mac running OS X El Capitan on top of Wine, thanks to WineHQ team for making this great tool. It should be applicable on previous version of OS X such as OS X Yosemite, OS X Mavericks, and Mac OS X Mountain Lion.

Lets start with the installation process

Windows programs can be run on OS X, Linux and BSD via WINE (Windows Emulator) so first we need to install wine and winetricks.

We can install wine and winetricks packages using Homebrew, follow this post how to install Wine on OS X.

brew install wine winetricks

Define Visio Home directory

Although it is not necessary, it is better to set environment folder for Visio. We will set it under $HOME/.vision2007. Inside your $HOME directory (/Users/your_username), create .visio2007 directory.

mkdir .visio2007

Perform Wine initialisation and setup of WINEPREFIX in .visio2007

env WINEPREFIX=~/.visio2007 wineboot

We need several packages be installed to run Visio 2007. Those packages are gdiplus, msxml6, dotnet20, riched20, and corefonts. Install them using winetricks as follows:

env WINEPREFIX=~/.visio2007 winetricks gdiplus
env WINEPREFIX=~/.visio2007 winetricks msxml6
env WINEPREFIX=~/.visio2007 winetricks dotnet20
env WINEPREFIX=~/.visio2007 winetricks riched20
env WINEPREFIX=~/.visio2007 winetricks corefonts

Capture example of installing .Net Framework (dotnet20) is as in image below:

Install Microsoft Visio Mac dotnet20

After installing the packages above, then run Wine configuration editor (winecfg)

env WINEPREFIX=~/.visio2007 winecfg

In Wine configuration, under Libraries tab make sure that gdiplus, msxml6, riched20 are set to native. See image below!

Install Microsoft Visio Mac winecfg

Run Visio setup installation

Once the above dependency packages installed and configured, we are ready to run the installation.

env WINEPREFIX=~/.visio2007 wine /path/to/visio2007/setup.exe

Install Microsoft Visio Mac installation progress

After the installation completed and successful, you can run Visio using command below:

env WINEPREFIX=~/.visio2007 wine ~/.visio2007/drive_c/Program\ Files/Microsoft\ Office/Office12/VISIO.EXE

Visio should be running well without any problem.

Install Microsoft Visio Mac completed
Create visio script

To make it easier to run Visio using Terminal, create a script named as ‘visio’.

touch visio
vi visio

Copy and paste the following command into the visio script. Change the ‘your-username’ accordingly with yours.

/usr/bin/env WINEPREFIX=/Users/your-username/.visio2007 /usr/local/bin/wine /Users/your-username/.visio2007/drive_c/Program\ Files/Microsoft\ Office/Office12/VISIO.EXE &>/dev/null &

Make it executable and then move it into $PATH

chmod +x visio 
sudo mv visio /usr/local/bin/

To run Visio, just type visio in Terminal.

Remove GRUB Bootloader MacBook Pro / Air / iMac

So you have done installing  Ubuntu or Linux Mint on MacBook Pro by following the articles on this site. Although both Ubuntu or Linux Mint work well on MacBook, you may want to remove GRUB Bootloader MacBook Pro for some reasons. This article guides you how to remove GRUB Bootloader on MacBook Pro. It should be also applicable for MacBook Pro, MacBook Air, iMac and Mac Pro.

Absolutely it is very easy to remove GRUB Bootloader MacBook Pro. Once it is removed, it will automatically restore with the Mac Boot loader.

Let’s go to the guide to Remove GRUB Bootloader on MacBook Pro

    • Boot into OS X and open Terminal (Utilities/Terminal)
    • In Terminal application write the following commands!
mkdir mnt (I assume that no mnt folder before)

sudo mount -t msdos /dev/disk0s1 mnt
 
cd mnt/EFI/

sudo rm -rf ubuntu 

sudo reboot
  • Reboot the Mac

Once the MacBook reboot, you should not see the Ubuntu GRUB Bootloader anymore.

To make it easier to follow the guide above, I have create a video that you can find below

Hopefully this brief post is helpful for you to remove Linux Grub Boot loader on your MacBook.

Install CyanogenMod 13 Galaxy Tab P1000

You have the first generation of Galaxy Tab P1000 and would like to install the latest version of Android 6.0 Marshmallow into it. Thanks to feroxxx who has built unofficial release of CyanogenMod 13 / CM13 for Galaxy Tab P1000 and posted it to XDA Developer forum. This article guides you how to install CyanogenMod 13 Galaxy Tab P1000.

Requirements

To follow this tutorial, you need to have the following requirements:

  1. Unofficial CyanogenMod 13 / CM13 image for Galaxy Tab P1000 that can be downloaded at this site.
  2. Open GApps for Android 6.0 Marshmallow. Download it from this website.
  3. CWM or TWRP recovery installed on Galaxy Tab P1000.

I had previously installed CyanogenMod 11 (Android 4.4 KitKat) into my Galaxy Tab P1000. I just upgraded from CM11 Android 4.4 to CM13 Android 6.0.

Install CyanogenMod 13 Galaxy Tab P1000

Copy the files into the SDcard of the Galaxy Tab. You can use AirDroid app to copy files from computer / laptop to Android device wirelessly or use Android file transfer program to copy the files. If you already have CyanogenMod installed in your Android device, just plug the USB data cable to computer / laptop. Computer will automatically detect the Tab as storage.

After copying the files, reboot into recovery mode, Wipe data / cache / Dalvik, then install or flash the CM13 image. If you install it through CWM recovery, you need to install it twice because the first attempt is failed so re-install it on the second attempt should install the TWRP recovery. The device looks stuck on this step, wait for about 10 minutes or more then force to power it down by pressing and holding the power button. Then power it up. It will boot into TWRP recovery. Run Wipe again and then install the image. It should be successful here. Reboot the device. You might surprise that it reboot into TWRP recovery again. Do not panic. Just reboot again. After this it should boot into the new CyanogenMod 13.

Since it is unofficial release version so it may be so buggy and laggy although almost the apps should be working.

I have created a video on how to install CyanogenMod 13 into Galaxy Tab P1000 in the following video.

Hopefully the video is clear enough for you on how to install CM13 into Galaxy Tab P1000. CyanogenMod really makes this old tablet excellent again.

RemixOS Triple-boot with OS X El Capitan and Ubuntu 16.04

In previous post I have shown you how to install Ubuntu / LinuxMint on MacBook Pro. If you are also an Android lover you might wonder whether you can install RemixOS on MacBook Pro. Well, you can, and in this post I will show you how easy it is to install RemixOS on MacBook Pro triple-boot with OS X El Capitan and Ubuntu 16.04.

RemixOS on MacBook Pro

You DO NOT even need a USB flash drive. What you need is just a RemixOS iso file that you can download it from here and an installed Ubuntu on MacBook Pro. You can follow my previous article how to install Ubuntu on MacBook Pro on Ubuntu / Linux Mint. Thanks to gb_14 on XDA Dev for making this installation very easy.

Lets begin with the installation

1. Create directories called “remix” and “remix/data” under / directory on Ubuntu. You must be a root or super user to create this directory.

sudo mkdir /remix
sudo mkdir /remix/data

You can create the above directory in one line using –p option

sudo mkdir –p /remix/data

2. Download RemixOS for PC from the website. Unzip the downloaded file and you will see 3 files in the extracted folder. One of the files is the image (.iso) file. Mount this file to a mounting folder, just create a folder name ‘mnt’

mkdir mnt
sudo mount –o loop Remix_OS_for_PC_64bit_B2016042001.iso mnt

Copy or move files initrd.img, kernel, ramdisk.img, system.img inside the mnt directory above into /remix directory

sudo cp mnt/{initrd.img, kernel, ramdisk.img, system.img} /remix

3. Add RemixOS into the Grub Menu by editing the

/etc/grub.d/40_custom

and append the below config.

menuentry 'Remix OS' --class android-x86 {
    insmod part_gpt
    search --file --no-floppy --set=root /remix/system.img
    linux /remix/kernel root=/dev/ram0 androidboot.hardware=remix_x86_64 androidboot.selinux=permissive CMDLINE
    initrd /remix/initrd.img
}

Then update the grub to read the new config

sudo update-grub

You can now reboot the laptop and you should see RemixOS in the Grub menu and should be able to boot.

remixos triple-boot with os x elcapitan and ubuntu

In this installation method RemixOS will share storage with Ubuntu but unable to see contents outside of /remix/data. If necessary, we can allocate space for Remix like below (e.g. 8GB of space):

sudo dd if=/dev/zero of=/remix/data.img bs=1M count=8192
sudo mkfs.ext4 /remix/data.img

You should now have a working RemixOS  running on MacBook Pro triple-boot with OS X El Capitan and Ubuntu.

Ubuntu 16.04 Running on MacBook Pro

Do you have a MacBook Pro and want to run Ubuntu 16.04 on it? This post shows you that Ubuntu 16.04 running on MacBook Pro.

Ubuntu 16.04 Xenial Xerus which was released on 21 April 2016 comes with performance improvements and new features including snap application format, Linux kernel 4.4 which supports ZFS file system out of the box, Python version 3, and more. It is an LTS (Long Term Support) version which will be supported for 5 years with critical security, bug and app updates.

Continue reading Ubuntu 16.04 Running on MacBook Pro

Install LinuxMint MacBook (LinuxMint 17.3)

More and more Linux operating system becomes popular especially for geeks, system administrators or developers. Several popular Linux operating systems for desktop are Ubuntu, LinuxMint and Elementary OS. This post will show you how to install LinuxMint 17.3 on MacBook Pro dual-boot with OS X El Capitan. This method should also be applicable for Ubuntu 15.10 and Elementary OS 0.3.2 Freya.

Continue reading Install LinuxMint MacBook (LinuxMint 17.3)

How to Install Swift on Elementary OS

Swift is a new programming language developed by Apple to build iOS, OS X, watch OS, and tvOS applications. Its goal is to replace the current Objective-C language in future, not for now or in near few years. Apple Inc. has made it open-source so community around the world can help to make it available everywhere. At the time of this writing, it is only available for Apple Platform and Linux (Ubuntu 14.04 and Ubuntu 15.10 64-bit). Windows and other Linux distributions such as RedHat, CentOS, OpenSUSE will be supported later. This article will guide you how to install Swift on Elementary OS Freya 0.3.2 or previous release which is based-on Ubuntu 14.04. Continue reading How to Install Swift on Elementary OS