[Atrix 4G Android Development] Sogarth:
Now introducing: webtop2sd!

Please don't post in this thread if you happen to catch it when it's open - I'd like to keep it clean if possible. Discussion threads:

Motorola Atrix/Olympus + general

Motorola Droid Bionic/Targa

Motorola Photon/Sunfire

Index:

Main (this post!)

Changelog

Screenshots

Instructions

Partitioning Instructions

Known Issues

Major features:

As the name implies, you can now use your SD card as your Ubuntu disk. No more relying on a wimpy filesystem.

Since this uses a separate partition, you can still export your filesystem to your desktop.*

As a native** Android application, no more worrying about how to run a script. Just download the .apk, install, then run.

Taking it a step further, you can now boot from external storage as well. If you put your phone into USB host mode (such as via the lapdock), you can boot from any external USB drive. As a nifty note, this means that you can actually have multiple Ubuntu partitions lying around for testing purposes. Particularly useful for me! ;) (Not working yet!)

Allows selection of various source and target partitions (so you can use this to create an Ubuntu partition, then use that new partition as a source for a testing partition if you so choose).

Now has an uninstall feature (but why would you want to? :confused:).

Serves as the first of two applications. The other is a Python/Gtk program that will run within webtop to allow for configuration within the proper environment.

* Unfortunately, anything that can mount extfs (e.g. Linux) will still try to mount the Ubuntu filesystem, potentially causing double-mounting issues.

** Mostly native Android application, really, since it's performing several shell calls on the backend. But I'm sure you won't notice. :D

Other features:

If you don't have the ability/desire to partition and format your SD card first, webtop2sd can take care of that for you.

webtop2sd can also:

Delete an ubuntu.disk if you have one, freeing up space on your /data.

Disable TOMOYO Linux (mandatory access control).

Permanently fix /etc/mtab (which tends to become stale over time). Atrix and Photon only.

Grant sudo access.

Install a modified dock. Atrix and Photon only.

Tested hardware:

Motorola Atrix

AT&T

4.1.57

4.1.83

4.5.91 (1.1.0)

SmarTone-Vodafone

4.5.2 (a.k.a. the HKTW build) (0.9.1)

Motorola Droid Bionic

Verizon

5.5.886 (2.0.0)

Motorola Photon

Sprint

4.5.1A (2.0.0)

End User License Agreement:

Due to the amount of time and effort I've put into this project (at least an order of magnitude more than the Ubuntu batch files, as I've been working on it for several months), I've implemented an end user license agreement (EULA) on webtop2sd, although I've tried to make it as sane and readable as possible. I know many of you won't care, and many of you will ignore it, but it still felt like the appropriate thing to do in this situation. So that you can take a look at it prior to downloading:

By using webtop2sd, you agree to the terms of this End User License Agreement (EULA). If you do not agree with this EULA, uninstall and remove all copies of it (you can reject it by hitting Home and killing the application).

You are free:

to Use - execute this piece of software.

Under the following conditions:

Noncommercial - You may not use this software for commercial purposes.

Nondistributive - You may not distribute this software.

No Derivative Works - You may not disassemble, distribute, alter, transform, or build upon this software.

With the understanding that:

Waiver - Any of the above conditions can be waived if you get permission from the copyright holder.

Ownership - Use of this software does not grant ownership of any kind.

No Warranty/Liability - The author has done his best to write the software, but ultimately, you are responsible for anything that results from usage of the software.

Nonseverable - If any part of this EULA is deemed invalid, the rest of it still applies.

In case you are wondering, yes, this is patterned after the Creative Commons licenses.​

As a result, xda-developers (specifically, this thread) is the only place you should be downloading this application. Which is conveniently attached below for your downloading pleasure. :D

Thanks:

eval-, for pointing out that it's possible to create a device during bootup if the system hasn't done it yet (which allowed for this endeavor to even take place!).

YellowGTO, for helping to debug the Atrix SmarTone-Vodafone build.

Brandon15811, for pointing me at the Ubuntu archive.

tallnerd1985, for lending me a Droid Bionic to port webtop2sd to.

distaula, for providing some of the details for and testing the Motorola Photon.

Lokifish Marz, for helping to test the Motorola Photon.

P.S. If you're wondering why there's an icon.zip attached, that's due to GPL requirements. You can safely ignore it, since it's just a svg of the icon. :p