`

Run Ubuntu on the Motorola Xoom

阅读更多

INSTRUCTIONS:
NOTE: Even though this is running in a chroot jail, and I am 99.9% sure this will not cause any harm to your device, I can not be held responsible for anything that may happen to your device. Just by rooting and unlocking your device (which you have to have done already to do this) COULD void your warranty and/or brick your device. Then again, you COULD be struck by lightning 42 times the next time you walk outside your house… it is highly improbable unless you go outside in a thunderstorm with a lightning rod.

NOTE 2: The install files for this are about 660mb zipped, and once expanded the files are about 2.5gb.

 

STEP ONE: Setting up your enviornment

NOTE: I will be writing this from the viewpoint of a Linux/Mac user. If you are running Windows, just remove the ‘./’ from the commands.

NOTE 2: My Android SDK folder is /AndroidSDK/… please insert whatever the name of yours is.

 

1. I am assuming you have the Android SDK from when you rooted… if you do not, download it.

2. Please download this zip… this is the 660mb one, so it may take a while. Get your favorite drink, have a snack, and if you want you can skim through the rest of this  while it is downloading.

3.OK, now that you have the ubuntu.zip file, extract it to AndroidSDK/tools/

4.Take the busybox and installbusybox.sh files and copy/move them to the root of the sdcard on your device… you can do that manually by plugging your xoom into your computer and browsing the directories (on the Mac you have to use the Android File Transfer application provided by Motorola).The other way is to use ADB push, and that is what I will explain.

(Make sure you have USB debugging enabled in Settings > Applications > Development)

4a.Open up your terminal application, and change the directory to your AndroidSDK/tools

4b.Type in ./adb push busybox /sdcard (It should tell you when it has done transferring)

4c.Type in ./adb push installbusybox.sh /sdcard (It should tell you when it has done transferring)

4d.Type in ./adb shell (This allows you to access the terminal on the device itself)

4e.Type in su (This gives the terminal Super User privileges. If you get the error “Permission Denied”, you have not rooted your device)

4f.Type in cd /sdcard (Changes the directory to the device’s sdcard. NOTE: The Xoom doesn’t really have an sdcard at release… but Motorola seems to have made a virtual one so devices that require an sdcard still run.)

4g.Type in sh installbusybox.sh

After that is complete, busybox should be installed. Try entering a command likecp and see if it displays anything. If not, reboot the device (./adb reboot) and try the cp again.

5. Now that busybox is installed, lets get to actually installing Ubuntu. You now have to move all the files in the Ubuntu folder (minus busybox and installbusybox.sh) to /sdcard/ubuntu …. you can do this using a method other than ADB push, but I will explain it the ADB push way.

5a.Type in ./adb push fsrw /sdcard/ubuntu (It should tell you when it has done transferring)

5b.Type in ./adb push mountonly /sdcard/ubuntu (It should tell you when it has done transferring)

5c.Type in ./adb push ubuntu.sh /sdcard/ubuntu (It should tell you when it has done transferring)

5d.Type in ./adb push ubuntu.img /sdcard/ubuntu (It should tell you when it has done transferring)

NOTE: This file is over 2gb’s! It will take a while to transfer, and on average it takes 25-30 minutes. Time for another snack break.

5e.Type in ./adb push unionfs /sdcard/ubuntu (It should tell you when it has done transferring)

STEP TWO: Installing Ubuntu

6. OK, lets get this installing. You are going to be going to be going into the shell again, so follow these commands:

6a.Type in ./adb shell (This allows you to access the terminal on the device itself)

6b.Type in su

6c.Type in cd /sdcard/ubuntu

6d.Type in sh ./ubuntu.sh

It will give some errors, but as long as it gets to “To enter the Debian Linux Console type in ‘bootubuntu’”, you should be good. Congratulations, Ubuntu is now installed.

7. OK, now that Ubuntu is installed… you want to turn it on, right? now Type In:bootubuntu and you should give you a new line saying “root@localhost:/” Congratulations, Ubuntu is now running. If it is not running, try to Type in su bootubuntu and then bootubuntu again. If that does not work, try rebooting your device and do it again… if it is still not working, try going through steps 5-7 again. If you have any more issues, feel free to comment here and I will try to help you.

STEP THREE: Setting up Ubuntu

8. You should still be in the shell and at the root@localhost entry. You are now entering commands through your terminal, into Android’s terminal, which is entering into Ubuntu’s terminal (What is this, Inception?). Like all operating systems, you need to update them… but with Ubuntu, this is quite easy.

8a.Type in apt-get update

8b.Now we are going to add a “head” to this “headless” OS. Since Android is the main operating system on here and Ubuntu has nothing to display on, we are going to output X windows (The GUI Linux OSs) to VNC. Type inapt-get install tightvncserver

8c.Once tightvncserver is installed, type in apt-get install lxde

8d.Type in export USER=root

8f.Type in vncserver -geometry 1280×800 (Resolution of the Xoom’s display. You can experiment to find a resolution you like.. you can type this command whenever to change the resolution)

8g.It should ask you for a password for your VNC… you can use something simple like 123 since you are the only one who can access it since it is only on your device.

9.Now we are going to change some settings to make the VNC experience better….

9a.Type in cat > /root/.vnc/xstartup
9b.Type in #!/bin/sh
9c.Type in xrdb $HOME/.Xresources
9d.Type inxsetroot -solid grey
9e.Type in icewm &
9f.Type in lxsession

10.Press CNTRL+D, and then enter this…

10a. cat > front
10b. export USER=root
10c. cd /
10d. rm -r -f tmp
10e. mkdir tmp
10f. cd /
10g. vncserver -geometry 1280×800

11.Hit CNTRL+D again, and enter this…

11a. cat front /root/.profile > temp #Thanks David Tangye

11b. cp temp /root/.bashrc

12. Now you can exit out of the Ubuntu terminal by typing exit

13.Reboot your device

13a.Install a VNC app from the market such as this Android VNC (Free)

13b.Install a Terminal Emulator app from the market like this Better Terminal Emulator Pro (3.99) or Android Terminal Emulator (Free)

13c.Now you can use the ADB shell again, but I suggest doing this on the device using one of the Terminal Emulators.

13c.cd /sdcard/ubuntu

13c.su (If the Superuser app asks for permission, press yes)

13c.bootubuntu

13c.OK, you should see the same thing as you did on your computer screen. Now go back to your homescreen, and  open your VNC client.

13d.Now, in the Nickname spot, put ‘Ubuntu’ or whatever you want.

13e.In the password spot, put whatever you put for a password earlier.

13f.Leave the address blank.

13g.Set the port at 5901.

Set the color format to 256 colors (1 bpp) for the best results.Then you press the Connect button, and you are on Ubuntu!

14. Some information:

1.Tap to click, pretty simple.

2.Double tap for right click.

3.You can switch in and out of ubuntu… just click your home button or the task manager button.

4.You should be automatically connected to the internet since it shares the device’s internet connection. So this will work on 3G, 4G, Wifi, or not having any connection. I am also going to see if I can transfer files between Android and Ubuntu since they should be on the same ‘network’.

 

 

 

That about wraps it up! Hope you will enjoy Ubuntu on your Xoom!

 

CREDITS:

Thomas Sohmers -Writer of this guide, file modification for the Xoom

Max Lee -Original hacker which did this on the Nexus One.

Charan Singh -Original installer file creator

Koush -Rooting the Xoom

分享到:
评论

相关推荐

    how-to-run-ubuntu-on-windows-10

    在Windows 10上运行Ubuntu的知识点可以详细地分为几个步骤来解析,包括准备条件、加入Windows Insider计划、设置系统更新选项、开启开发者模式、更新系统至 Insider Preview 版本、启用 Windows Subsystem for Linux...

    RUN Beyond the Metaphor-An Efficient Optimization Algorithm Based on Runge K.pdf

    "RUN Beyond the Metaphor-An Efficient Optimization Algorithm Based on Runge Kutta Method" 本文介绍了一种基于 Runge-Kutta 方法的高效优化算法,称为 RUN Beyond the Metaphor。该算法旨在解决复杂优化问题,...

    Ubuntu The Complete Reference

    - **Java Clients**: Brief introduction to Java-based applications and how they can be installed and run on Ubuntu. #### Part VI - Security **Chapter 17 - Encryption, Integrity Checks, and Signatures...

    ubuntu vps安装docker报错:Cannot connect to the Docker daemon at unix:///var/run/docker.sock.问题解决

    在Ubuntu VPS上安装Docker时,可能会遇到一个常见的错误:“Cannot connect to the Docker daemon at unix:///var/run/docker.sock.” 这个问题通常是由于Docker守护进程未运行或者是由于Linux内核版本过低导致的。...

    Ubuntu 18 Docker run出现no space left on device错误的解决.rar

    Ubuntu 18 Docker run出现no space left on device错误的解决.rar

    tsb.rar_On The Run

    TSB flushes need only occur on the processor initiating the address space modification, not on each cpu the address space has run on. Only the TLB flush needs that treatment.

    ofdm.rar_On The Run

    The LTE simulators make use of the new Object-Oriented capabilities of Matlab (available since R2008a),...libraries be available on the computer they are run on. The runtime &#64257 les can be downloaded

    EE.rar_On The Run

    i. You open the DPHU_Format_26Dec.xls, then apply DPHU_Match, after the program starts to run, you select the after-meeting test report from which you want to generate a dphu report. ii. Use “Save ...

    src.rar_On The Run

    Program to run the heaps, Leftist heaps are the heaps which contain higher depth on the left side of the heap.

    解决:去掉dell电脑开机Strike the F1 key to continue, F2 to run the setup utility

    "解决Dell电脑开机Strike the F1 key to continue, F2 to run the setup utility问题" 在PC机器启动时,我们经常会遇到一些问题,其中一个常见的问题就是Dell电脑开机时出现"Strike the F1 key to continue, F2 to ...

    AT91SAM7A3-EK.rar_AT91SAM7A3_ATMEL flash_On The Run_ice FLASH_sa

    SAM7A3 RAM - ULINK: configured to run from on-chip RAM, using ULINK (may be used for target debugging) SAM7A3 Flash - SAMICE: configured for on-chip Flash ROM, using SAM-ICE (used for production ...

    src.zip_On The Run_encode src

    example of perceptron implementation in java. read text file that encode the learning examples and the question and run perceptron on it

    Rust学习书籍整理2022-07-06.zip

    Game Development with Rust and WebAssembly Learn How to Run Rust on the Web while Building a Game (Eric Smith) (z-lib.org).pdf Hands-on Rust Effective Learning through 2D Game Development and Play ...

    case1354pegase.zip_On The Run

    《On The Run:基于Pegase的1354节点潮流计算分析》 在电力系统领域,潮流计算是一项基础而重要的任务,它用于确定电力网络在特定运行条件下的电压、功率分布以及线路潮流等关键参数。本文将深入探讨标题为"case...

    run online

    this is a app for run online to use bug or cheat

    Run 3 Online Game [Upadted Play now]-crx插件

    Run 3 Online Game是一个无尽的跑步游戏,您需要在空间中导航小外星人。 Run 3是无尽的跑步游戏,您需要在空间中导航小外星人。 Run 3由Joseph Cloutier创建,是Run游戏系列的第三部分。 HTML 5现在提供了Run 3,...

    MP3_Decoder.zip_On The Run

    The whole decoding process has been implemented natively on MATLAB. I need help in streamlining it so that it can run real-time. top level module is decoder.m. It takes in as input parameter the file ...

    coco-python.rar_On The Run_console

    On Windows or Mac OS X, locate the "run_game.pyw" file and double-click it. Othewise open a terminal / console and "cd" to the game directory and run:

    fou_bb85.zip_On The Run_j2me

    K-means clustering algorithm based on the PSO, Partial least squares method, Implemented with SDRAM run nios, while saving camera data SRAM.

    Beginning Ubuntu Linux Part1

    Part 7 carries on from Part 4, taking an even more in-depth look at the underlying technology behind Ubuntu. This time, the emphasis is on giving you the skills you need to keep your system running ...

Global site tag (gtag.js) - Google Analytics