Skip to content
Lawrence edited this page Dec 21, 2012 · 4 revisions

Linux

Manual Method

Here is a manual method of installing Ubuntu on the Nexus 7. This does exactly the same thing as the official installer, and is outlined for for your information, or porting purposes.

Preparations

Your Nexus 7's bootloader must be unlocked, and set to USB Debugging mode. (Settings->Developer Options). If you don't see Developer Options, go into About Phone

After that, you'll need to install these dependencies from a package manager:

  • android-tools-fastboot
  • wget

You also need to open up a terminal window, where we will run commands from.

Create a folder where you can work from, and then navigate to it in the terminal. For example:

	# create an `ubuntu-n7` folder in your home folder
	mkdir ~/ubuntu-n7
	# navigate to it
	cd ~/ubuntu-n7

Download the Images

Here we will retrieve the boot and root filesystem images for Ubuntu on Nexus 7.

Notice that there are variants for each Nexus 7 variant. Replace <VARIANT> with 8GB, 16GB, or 32GB, depending on the stated size of your tablet.

	# get checksum
	wget http://hwe.ubuntu.com/uds-r/nexus7/<VARIANT>/ubuntu-nexus7-sha256sum.txt
	# get boot image
	wget http://hwe.ubuntu.com/uds-r/nexus7/<VARIANT>/boot.img
	# get root file system
	wget http://hwe.ubuntu.com/uds-r/nexus7/<VARIANT>/rootfs.img

Image Sanity Check

We need to make sure that we don't install a corrupt system, so image checksums are used to ensure that the files have not been damaged or modified along the way.

	sha256sum --check ubuntu-nexus7-sha256sum.txt

Flash the Images

  1. Send your Nexus 7 into fastboot mode. If you have ADB installed, enable USB Debugging on your tablet and use the command adb reboot fastboot.

  2. Plug in your Nexus 7.

  3. Type in this command (as root), and it will display the serial number of your tablet if detected.

     fastboot devices
    

After your tablet is detected, run these commands in the same directory to flash.

	# erase and flash boot image
	fastboot erase boot
	fastboot flash boot ./boot.img
	
	# erase and flash root filesystem
	fastboot erase userdata
	fastboot flash userdata ./rootfs.img
	fastboot reboot

After that, you now have Ubuntu Linux on the Nexus 7!

Restoring Android

Return to Stock

If you want to go back to normal ol' Android or don't have a custom recovery image installed, you can restore your device to Android with this method.

If you screw up your Nexus for any reason, you can always reflash\ and life will be back to normal.

Nexus Restore

Custom ROM Recovery installed

Rejoice! If you use a custom recovery (perhaps for installing custom ROMs), you can just wipe the system and flash a backup or a new ROM like normal.

See the custom recovery guides for more details.

It remains to be seen whether the custom recovery can back up Ubuntu, however...

Android + Ubuntu Dual Boot

Yes, it's possible.

Sources

BA Logo

Bibliotheca Anonoma

BASLQC Wiki

  • Introduction - A quick intro to the rationale and ideals of this guide, and modding in general.
  • Essential Maker Skills - Essential Skills that every maker should have.
  • Archivist Tools - All the tools an internet archivist needs under their belt.

General Guides

  • Android Development Codex - All kinds of Android smartphones.
  • Business Class Laptops - Computers that last: The ThinkPad, the HP EliteBook, the Dell Precision/Latitude.
  • EBook Readers - A good eInk screen remains the best way to read literature comfortably.
  • Game Consoles - Homebrew development scenes have made it possible to unlock the full power of your game console's computer chip.
  • Graphing Calculators - This is the last vestige of the age of 80's Home Computers; where programs were simple and graphics were minimal.
  • Home Server - Why buy cloud storage when you can build your own cloud? For media streaming, torrenting, and VPN access (to bypass blocked internet).
  • Routers - Amazingly, your ordinary router probably runs Linux on it's little embedded CPU.
  • Authentication Wallets - Manage your plethora of accounts, passwords, and RSA public keys using a GPG-encrypted wallet.
  • LEGO Mindstorms - The easiest way to build functional robots and machines; using good ol' LEGO and Technic bricks.
  • Vintage Computers - Amiga, Apple ][, and all the other random home computers that defined the 1980s.

Research

  • Genetic Programming - Programs that mutate and evolve by themselves, like Genes. It's a very difficult concept to grasp, but a very powerful method that transcends math or algorithms.

Content Guidelines

  • General Guidelines - The ideals that you should uphold while working with and editing this guide.
  • Device Guide Templates - Templates and general guidelines for creating customized guides for a device.
  • Linux - Run a full desktop OS on your little mobile device; research is being made to make it comfortable to use in the mobile space.

Reference

  • Glossary - Contains all the crazy acronyms and word soup that you'll need to wade through when using this guide.
Clone this wiki locally