Showing posts with label Android How To. Show all posts
Showing posts with label Android How To. Show all posts

Thursday, October 13, 2011

Installing Ubuntu on Your Motorola Xoom Tablet


UPDATE 4/10/11: Now you can enlarge your Xoombuntu install! http://trsohmers.com/2011/04/10/how-to-expand-xoombuntu-disk/UPDATE 4/2/11: Here’s the fix! http://trsohmers.com/2011/04/02/ubuntu-for-xoom-fix/
UPDATE 3/20/11: OK, so there are a couple of modified steps to make the system a bit faster, and to be releasing a small path tonight to fix some issues people have been having with the install.
This is simplified instructions for unlocking the bootloader and rooting the Motorola Xoom on Mac OS X, and today I have full instructions on how to install and run Ubuntu on your Motorola Xoom tablet. The method this uses is to install Ubuntu in a chroot“jail” to keep it separate of all Android processes… similar to how a Virtual Machine (Virtualbox, Parallels, VMware) runs an x86 operating system (Windows, OSX, Linux) on an x86/x64 machine. Since the Xoom and most Android devices run on an ARM processor,  you can only run an operating system made for ARM, so I am using the ARM version of Ubuntu version 9.10.

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 like cp 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 thenbootubuntu 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 in apt-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!

Read the original article here!

Dual-boot Ubuntu 10.10 And Windows 7 Side By Side



Dual booting Ubuntu 10.10 Maverick Meerkat and Windows 7 is fairly easy. If you don't believe me, just read on!

Step 1 Get Windows 7

How To Dual-boot Ubuntu 10.10 And Windows 7 Side By SideFirst thing's first! Ye can't install Windows 7 without an installation disk, can ya? So if your PC did not come with Windows 7 pre-installed, grab a disk here from Microsoft.com. Remember, it burns holes in your pocket.

Step 2 Get Ubuntu 10.10

How To Dual-boot Ubuntu 10.10 And Windows 7 Side By SideNow the fun part begins. You download a complete operating system from a legitimate site, yet you don't pay for it. Because it's FREE (as in beer, ;-) ). Get a copy of the Ubuntu ISO image here. Or if you prefer, download Ubuntu via BitTorrent. BitTorrent is my preferred method because downloads are hash checked automatically. So they are never corrupted.

Step 3 Prepare Windows

How To Dual-boot Ubuntu 10.10 And Windows 7 Side By SideIf you have Windows 7 pre-installed, you don't need this step. There is a good HowTo on installing windows right inside Microsoft's site. Here's a link.

Step 4 Prepare Ubuntu

I assume you have a fully working Windows 7 right now. Follow this steps to install Ubuntu:-
    1. Make sure you have at least one partition empty on your hard drive. This is where you are going to put Ubuntu. It is desirable to have more than 2GB of space on this partition.
    2. Burn Ubuntu ISO image to a disk (easier) OR create a bootable USB stick (harder but Unetbootin makes life easy, :) ). From here on I'll assume you have burnt a disk. Alternatively, see the end of this article for a small HowTo on Unetbootin.
    3. Enter your BIOS settings page and make sure you have your CD-DVD ROM listed as your first boot device. Save settings and exit.

  1. Put the Ubuntu disk in tray and restart your PC. You'll see Ubuntu running directly from the disk. You need not worry at this point. Since no changes are made to your PC.
  2. How To Dual-boot Ubuntu 10.10 And Windows 7 Side By SideClick on Install Ubuntu and follow on screen instructions until you reach theAllocate Drive Space dialogue. Take a deep breath here.

Step 5 The Tricky Part

Please read the Warnings section first!
Now follow the screenshots carefully:-
  • Select Specify Partitions Manually (advanced).How To Dual-boot Ubuntu 10.10 And Windows 7 Side By Side
  • Delete the partition that is Already Empty! Here /dev/sda7 is the partition I am deleting. This step might be confusing for beginners. Just make sure you remember the size of the empty partition you prepared. I had a 60GB partition, so I am deleting that one. Please don't delete anything unless you are 100% sure. Leave your Windows partition as it is.How To Dual-boot Ubuntu 10.10 And Windows 7 Side By Side
  • At this point you'll see some free space.How To Dual-boot Ubuntu 10.10 And Windows 7 Side By Side
  • Click Add while free space is selected. It will show the Create A Partition dialogue. Make sure you leave some space for swap area here. I left 1GB. So, instead of creating a partion of size 59709 MB, I set the size to 49709 GB.How To Dual-boot Ubuntu 10.10 And Windows 7 Side By Side
  • Now you'll have an Ext4 Partition AND some free space. Select free space and click Add (again!).How To Dual-boot Ubuntu 10.10 And Windows 7 Side By Side
  • This is what your partition table should look like. At this stage you should have one Ext4 and one swap partition. Click Install Now.How To Dual-boot Ubuntu 10.10 And Windows 7 Side By Side
  • The rest part should be fairly easy. You've passed the toughest hurdle.

Warnings

  • Please be careful with the previous steps. I am going to partition the hard disk manually. A mistake here can destroy valuable data saved in your hard disk.
  • Also, it is assumed that you have at least one empty partition with more than 2GB of space ready. We are going to reformat that partition. And unless you install something similar to Ext2IFS under Windows, you will not be able to see the partition from within Windows. This is normal.

Step 6 Booting Ubuntu From USB Sticks. Unetbootin Saves The Day!

Here's a good HowTo on Unetbootin. Please ask me if you have troubles following it. It is verrry simple, trust me.

Monday, October 10, 2011

ViewSonic ViewPad 10 Dual-Boots Windows 7 And Android OS, Now Available For Sale!




ViewSonic just announced that it’s dual-boot capable  is now available for sale. The ViewPad 10 was originally announced later last year and has since then been considered as one of the first high-performance dual-boot enabled tablet PCs.
The  features a 10.1-inches LED-backlit capacitive touch display which renders a display resolution of 1024×600 pixels. It packs in an amazing agglomeration of technical specifications in an elegant-yet-sturdy looking form factor.
The most interesting thing about the ViewPad 10 is its ability to boot two different operating systems. Yes, the ViewPad 10 is designed to support both Microsoft’s Windows 7 and Google’s Android operating systems under a single hardshell.
Under the hood, the device is packaged with a 1.66GHz Intel Atom processor, 2GB of  DDR3 RAM, a 1.3megapixel front-facing camera for video calls, Bluetooth, Wi-Fi connectivity and plenty of SSD storage.
There’s also a microSD card slot for up to 32GB of additional storage space. The ViewPad 10 comes preloaded with Word, Excel, PowerPoint and Adobe Acrobat  among other business and productivity applications besides social networking apps like Facetook and Twitter.
According to Adam Hanin, Vice President of Marketing for ViewSonic Americas -
“The lines of professional and personal life are blurring, which creates a need for devices that are suited for both sides. The ViewPad 10 delivers just that by enabling users to merge business productivity with personal enjoyment anywhere, anytime. We are proud of our 10-year tablet history and are dedicated to further extending our tablet product portfolio to meet every individual need.”

The device is available with either of Windows 7 Home Premium (with a 16GB SSD hard drive) or Windows 7 Professional (with a 32GB SSD hard drive) for respective ESPs of $599 and $679 and Google Android 1.6 OS.