[NO LONGER SUPPORTED][GUIDE] Triple Boot Ubuntu, Android, and WebOS - TouchPad Development

ATTENTION!
This guide is outdated and I can no longer support it as I no longer own an HP Touchpad.
Disclaimer:
This WILL void your warranty.
I am not responsible for mistakes, typos, bricked devices, or any problems you may encounter. You have been warned.
You will most likely brick your device if you aren't very familiar with Linux file systems and advanced UNIX CLI.
Follow steps PRECISELY.
Back up your files, you WILL lose everything you have on your Touchpad.
Please, be very careful.
I no longer own an HP Touchpad, so please help each other with issues.
What Works
WiFi
Bluetooth
USB Host (via OTG and Y-Cable Solution)
It's pretty much stable and very useable
What Doesn't Work/Some Bugs
Camera
Microphone
Audio
Unity is laggy (I suggest Gnome Classic or LXDE)
Mouse pointer disappears sometimes
Prerequisites:
PC (preferably running a Linux operating system)
The ability to follow directions precisely
For WebOS (Part 1):
WebOS Doctor 3.0.0
WebOS Doctor 3.0.5
Novaterm and Novacom (available here)
For Ubuntu (Part 2):
4GBPartition.sh
4GBUbuntuInstallSystem.sh
Modifications.tar.gz
ts_srv_init.tar.gz
TouchPadBuntuRootfs.tgz
For Android (Part 3):
ACMEInstaller2
ClockworkMod
CM9 Alpha 2
GAPPS ICS
Part 1 (WebOS)
FYI: How to enter Developer Mode In the "Just type..." text field at the home screen, type "webos20090606". In the results, there will be an icon labeled "Developer Mode". Select this, do not enter a password, and turn on Developer Mode.
A. Turn on Touchpad and connect to PC via USB
B. Open WebOS Doctor 3.0.0 and allow to run to 8%
C. Kill WebOS Doctor
D. Open Novaterm (Linux/OSX, simply type "novaterm" into a terminal window. Windows, navigate to C:\Program Files\Palm, Inc\Terminal\novaterm [it's a Windows Batch File], now press CTRL+SHIFT+C and hit enter to connect to the device [Windows only])
E. You should now be in a bash shell. Enter the following commands (one by one) to manually recreate the device partition scheme:
Code:
lvm.static vgscan --ignorelockingfailure
lvm.static vgchange -ay --ignorelockingfailure
lvm.static vgremove store
lvm.static vgscan --ignorelockingfailure
lvm.static vgchange -ay --ignorelockingfailure
lvm.static vgcreate -s 8M store /dev/mmcblk0p14
lvm.static vgscan --ignorelockingfailure
lvm.static vgchange -ay --ignorelockingfailure
lvm.static lvcreate -l 71 -M y --major 254 --minor 0 -n root store
lvm.static lvcreate -l 8 -M y --major 254 --minor 1 -n var store
lvm.static lvcreate -l 2 -M y --major 254 --minor 2 -n update store
lvm.static lvcreate -l 3 -M y --major 254 --minor 3 -n log store
lvm.static lvcreate -l 32 -M y --major 254 --minor 4 -n mojodb store
lvm.static lvcreate -l 17 -M y --major 254 --minor 5 -n filecache store
lvm.static lvcreate -l 64 -M y --major 254 --minor 7 -n swap store
lvm.static vgscan --ignorelockingfailure
lvm.static vgchange -ay --ignorelockingfailure
This command will display information about the Volume Group: store. At the bottom you will see "Free PE/SIZE X / XX" (where "X" is your own value). Please take note of the "Free PE" value.
Code:
lvm.static vgdisplay
Replace the "X" in the first command with the value you took note of in the previous command.
Code:
lvm.static lvcreate -l X -M y --major 254 --minor 6 -n media store
lvm.static vgscan --ignorelockingfailure
lvm.static vgchange -ay --ignorelockingfailure
mkdosfs -f 1 -s 64 -F 32 /dev/store/media
F. Run WebOS Doctor 3.0.0, allow it to complete and reboot into the language selection screen.
G. Power down the Touchpad by holding the Home and Power buttons simultaneously.
H. Boot into WebOS Recovery Mode by holding down the Volume Up and Power buttons simultaneously until a USB logo appears on the screen.
I. Run WebOS Doctor 3.0.5
J. Set up WebOS as you normally would
Part 2 (Ubuntu)
A. Mount USB Drive mode
B. Copy files from the prerequisite section of this guide into the root folder of the device.
C. Unmount/eject device
D. Enable Developer Mode (webos20090606 in "Just type...")
E. Open Novaterm again
F. Enter the following commands (one at a time):
This will create a 4GB partition for Ubuntu. Your device will reboot afterward, make sure it ends up back into WebOS with Developer Mode enabled again.
Code:
cd /media/internal
cp 4GBPartition.sh /tmp
cd /tmp
sh 4GBPartition.sh
This will install Ubuntu and the Moboot Bootloader. After install has completed, your device will reboot into Moboot, select "Ubuntu" to boot into Ubuntu and finish setup.
Code:
cd /media/internal
cp 4GBUbuntuInstallSystem.sh /tmp
cd /tmp
sh 4GBUbuntuInstallSystem.sh
Once you reach the Ubuntu log in screen, click on the universal access icon in the top right-hand corner and select On-Board keyboard. Type in the password "ubuntu". Once booted into Unity, click the dash home and browse through installed applications (opening On-Board and Terminal). Type the following into the terminal to enable Bluetooth and Wifi (sudo password is "ubuntu"):
Code:
sudo depmod -a
sudo gedit /etc/modules
Now a Gedit text editor window has opened. Add "ath6kl" to the bottom, save, and close. Go back to the terminal and type the following:
Code:
sudo update-rc.d bcattach_srv defaults
sudo reboot
Part 3 (Android)
A. Boot into WebOS
B. Connect via USB and enable USB Drive mode
C. Create a folder called "cminstall" in the root of the device
D. Copy all files from the Android prerequisite section into "cminstall"
E. Unmount/eject device
F. Enable developer mode (webos20090606 in "Just type...")
G. Open Novaterm
H. If in Windows, please copy the "ACMEInstaller2" file to "C:\Program Files\Palm, Inc\Terminal"
I. If in Windows, open a terminal and type the following commands in one line at a time:
Code:
cd 'C:\Program Files\Palm, Inc\Terminal'
novacom boot mem:// < ACMEInstaller2
J. If you are in Linux, simply change directories to where you have "ACMEInstaller2".
Code:
cd /directory/containing/ACMEUninstaller2/
novacom boot mem:// < ACMEInstaller2
K. Android will now install and the device will now reboot again.
L. Boot into ClockworkMod and flash GAPPS.
Sources
http://forum.xda-developers.com/showthread.php?t=1305891
http://code.google.com/p/hp-touchpad-ubuntu/wiki/Installation
http://wiki.rootzwiki.com/HP_Touchpad
http://forum.xda-developers.com/showthread.php?t=1304475
http://rootzwiki.com/topic/18843-releasealpha2-cyanogenmod-9-touchpad/

awesome
Been looking for this
Sent from my Touchpad using XDA Premium HD app

Nice. This is a nice rainy day project to check off the list. Well done.
Sent from my HTCEVO3D using Tapatalk

Leoisright said:
Nice. This is a nice rainy day project to check off the list. Well done.
Sent from my HTCEVO3D using Tapatalk
Click to expand...
Click to collapse
Thanks mate!
Sent from my Galaxy Nexus using Tapatalk 2

"TouchPadBuntuRootfs.tgz" link is broken
mirrors:
http://dl.dropbox.com/u/11867712/TouchPadBuntuRootfs.tgz
http://dl.dropbox.com/u/4357827/TouchPadBuntu/TouchPadBuntuRootfs.tgz
http://dl.dropbox.com/u/20796504/TouchPadBuntuRootfs.tgz
http://touchpadbuntu-touchpadbunutu.dotcloud.com/files/TouchPadBuntuRootfs.tgz
(found on http://wiki.hp-touchpad-ubuntu.googlecode.com/git/Installation.wiki )
edit Stuck on Part 2:
just after "cd /media/internal
cp 4GBPartition.sh /tmp
cd /tmp
sh 4GBPartition.sh"
Moboot works, but if I chose ubuntu it reboots after 15-20 sec (probably expected ?)
So I boot in WebOS in order to launch "sh 4GBUbuntuInstallSystem.sh" but I have "Cannot write: No space left on device"
Any hints please ? =)

Xmalek said:
"TouchPadBuntuRootfs.tgz" link is broken
mirrors:
http://dl.dropbox.com/u/11867712/TouchPadBuntuRootfs.tgz
http://dl.dropbox.com/u/4357827/TouchPadBuntu/TouchPadBuntuRootfs.tgz
http://dl.dropbox.com/u/20796504/TouchPadBuntuRootfs.tgz
http://touchpadbuntu-touchpadbunutu.dotcloud.com/files/TouchPadBuntuRootfs.tgz
(found on http://wiki.hp-touchpad-ubuntu.googlecode.com/git/Installation.wiki )
edit Stuck on Part 2:
just after "cd /media/internal
cp 4GBPartition.sh /tmp
cd /tmp
sh 4GBPartition.sh"
Moboot works, but if I chose ubuntu it reboots after 15-20 sec (probably expected ?)
So I boot in WebOS in order to launch "sh 4GBUbuntuInstallSystem.sh" but I have "Cannot write: No space left on device"
Any hints please ? =)
Click to expand...
Click to collapse
Thanks for the links. I'll place them in the OP when I get a chance.
Sorry to hear about your troubles, and even more sorry to say that you're going to have to go through Part 1 again :/. Even the slightest typo in a UNIX CLI can cause major issues. I'm on a 16GB TP and these are the steps I used to get a triple boot working perfectly. I can't imagine your EMMC is too small for 3 boot images.
Sent from my Galaxy Nexus using Tapatalk 2

I wanted to follow up these great instructions by adding that there is a way to do this if you are already dual booting Webos and Android.
I followed the instructions here http://code.google.com/p/hp-touchpad-ubuntu/wiki/Installation and had no trouble with a preexisting install of Android CM9 and Moboot. Smooth and easy as pie. I also was able to easily uninstall using the provided uninstall script.
Just wanted to let people know that if you are already dual booting you can add Ubuntu with no worry of breaking a preexisting dual boot or having to Doctor anything.

VitaZora said:
I wanted to follow up these great instructions by adding that there is a way to do this if you are already dual booting Webos and Android.
I followed the instructions here http://code.google.com/p/hp-touchpad-ubuntu/wiki/Installation and had no trouble with a preexisting install of Android CM9 and Moboot. Smooth and easy as pie. I also was able to easily uninstall using the provided uninstall script.
Just wanted to let people know that if you are already dual booting you can add Ubuntu with no worry of breaking a preexisting dual boot or having to Doctor anything.
Click to expand...
Click to collapse
I tried this a while back but it always bricked my device :/. And this is coming from an advanced Linux user.
Sent from my Galaxy Nexus using Tapatalk 2

ok so ubuntu doesn't work as the root password...
edit: nevermind

bbm21 said:
ok so ubuntu doesn't work as the root password...
Click to expand...
Click to collapse
Ubuntu disables root by default. You can enable it by typing "sudo passwd".
Sent from my Galaxy Nexus using Tapatalk 2

I'm wanting to do this but I am not up to date on the status of the Ubuntu port. What is actually not working at this point? Do I have to have a usb mouse and keyboard to set up ubuntu or can i use the touch screen? Can you play videos and such correctly in ubuntu?

You don't need them but they are preferred. Audio, mic, camera, and compositing are a few major bugs.
Sent from my aokp_tenderloin using Tapatalk 2

Please pardon my ignorance... is the Arch Linux implementation more complete? You didnt mention if the Ubuntu port required external keyboard / mouse or actually had touchscreen support.

babcocca said:
Please pardon my ignorance... is the Arch Linux implementation more complete? You didnt mention if the Ubuntu port required external keyboard / mouse or actually had touchscreen support.
Click to expand...
Click to collapse
Touch does work, or at least it did for me, but laggy. After the initial wireless fix I was also able to connect to wifi and bluetooth devices. I connected and used a bluetooth keyboard. Did not test a BT mouse but it probably works as well. I was also able to connect to wifi after the fix, but after another reboot, I could not connect to wifi again. My Touchpad saw my wireless but could not connect.
It's amazing that Ubuntu works as well as it does at this point, but for me, it's not useful enough to keep without a consistent wifi connection.

Which version of ubuntu is this?

jamesissocool said:
Which version of ubuntu is this?
Click to expand...
Click to collapse
11.10
Sent from my Galaxy Nexus using Tapatalk 2

Pardon me for sounding ignorant/stupid, but how do I open WebOS Doctor? It's a .jar file and I'm unsure what to do with it.

Mafuzzer said:
Pardon me for sounding ignorant/stupid, but how do I open WebOS Doctor? It's a .jar file and I'm unsure what to do with it.
Click to expand...
Click to collapse
Right click and open with Java.
Sent from my Galaxy Nexus using Tapatalk 2

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I tracked down the author of this. He likes coffee.
Sent from my Galaxy Nexus using Tapatalk 2

Gahh Its Lee said:
I tracked down the author of this. He likes coffee.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
That guy has an epic beard and rocks AOKP. Obviously he's amazing.
Sent from my Galaxy Nexus using Tapatalk 2

Related

Samsung Vibrant 4G is BLOATED!

I want to remove all the unwanted bull so bad!!! Off the back it comes with so much unnecessary apps from T-Mobile.
I have less then 200MB left!
I can't root because the confirmed root that's out is for Windows. (SuperOneClick)
HeavyComponent said:
I want to remove all the unwanted bull so bad!!! Off the back it comes with so much unnecessary apps from T-Mobile.
I have less then 200MB left!
I can't root because the confirmed root that's out is for Windows. (SuperOneClick)
Click to expand...
Click to collapse
So run a windows virtual environment... or you can always just do rage manually.
And of course its bloated. Every phone comes that way these days. Just gotta root my friend.
Ok this is my first Vibrant so what's Rage and is it perm root? I can't find anything that says Rage on the development page.
I also caught it 190MB at corp store.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
It may be defective because some members from hofo said it's 800MB left.
http://www.howardforums.com/showthread.php/1704050-what-to-get-nexus-s-vibrant-galaxy
omg is it sick or what though?? speedtest.net app!! I want to see this bad boy in action!
I'm a huge internet user on my phone btw hahaha
You'll find the Vibrant and SGS4G to be very easy to root compared to MTG4. Its always perm.
EDIT: You need to rename SU-V2 to SU. no extension.
Use the files you extract from that superoneclick to execute this.
- Extract the files to the Tools folder of your Android SDK folder
- Place your phone into Debugging Mode (Settings, Applications, Development, check USB Debugging)
- Open the command prompt (Start > Run > cmd > Press Enter)
- cd c:/wherever-your-sdk-tools-folder (Example: C:\Android-SDK-Windows\Tools)
- Then type adb devices to verify that the phone is connected. If it is connected, you will see the device serial number.
- Type in the below commands:
- adb push Superuser.apk /sdcard/Superuser.apk
- adb push su /sdcard/su
- adb push busybox /sdcard/busybox
- adb push rageagainstthecage /data/local/tmp/rageagainstthecage
- adb shell From here, you will see a $ instead of C:/
- cd data/local/tmp The output will return the same command as inputted
- chmod 0755 rageagainstthecage
- ./rageagainstthecage At this point, let it run and DO NOT TOUCH ANYTHING until it returns to the DOS Prompt (C:\Android-SDK-Windows\Tools). This will take up to two minutes or so.
- adb shell This time it will show a # sign as opposed to the $ sign before
- All of the below commands will again return the same output as the input
- mount -o rw,remount -t yaffs2 /dev/block/stl9 /system
- cp /sdcard/Superuser.apk /system/app/Superuser.apk
- cp /sdcard/su /system/xbin/su
- cp /sdcard/busybox /system/xbin/busybox
- chmod 4755 /system/xbin/su
- chmod 4755 /system/xbin/busybox
- mount -o ro,remount -t yaffs2 /dev/block/stl9 /system
- Exit x2 to close out of adb shell and the command prompt
I THINK that should work. Use at your own risk.
aloneinshadow said:
Use the files you extract from that superoneclick to execute this.
- Extract the files to the Tools folder of your Android SDK folder
- Place your phone into Debugging Mode (Settings, Applications, Development, check USB Debugging)
- Open the command prompt (Start > Run > cmd > Press Enter)
- cd c:/wherever-your-sdk-tools-folder (Example: C:\Android-SDK-Windows\Tools)
- Then type adb devices to verify that the phone is connected. If it is connected, you will see the device serial number.
- Type in the below commands:
- adb push Superuser.apk /sdcard/Superuser.apk
- adb push su /sdcard/su
- adb push busybox /sdcard/busybox
- adb push rageagainstthecage /data/local/tmp/rageagainstthecage
- adb shell From here, you will see a $ instead of C:/
- cd data/local/tmp The output will return the same command as inputted
- chmod 0755 rageagainstthecage-arm5.bin
- ./rageagainstthecage At this point, let it run and DO NOT TOUCH ANYTHING until it returns to the DOS Prompt (C:\Android-SDK-Windows\Tools). This will take up to two minutes or so.
- adb shell This time it will show a # sign as opposed to the $ sign before
- All of the below commands will again return the same output as the input
- mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
- cp /sdcard/Superuser.apk /system/app/Superuser.apk
- cp /sdcard/su /system/bin/su
- cp /sdcard/busybox /system/bin/busybox
- chmod 4755 /system/bin/su
- chmod 4755 /system/bin/busybox
- mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
- Exit x2 to close out of adb shell and the command prompt
I THINK that should work. Use at your own risk.
Click to expand...
Click to collapse
Thanks! And this is temp root? If so lets say I rebooted the device how would I get the root back?
HeavyComponent said:
Thanks! And this is temp root? If so lets say I rebooted the device how would I get the root back?
Click to expand...
Click to collapse
All roots on this phone are perm roots. No need for temp.
Oh ok cool.
You mind giving me the link where you got your info from? You did say "THINK" it will work. Lol
Um... Google? To be honest I didn't get it from any one page in perticular, just pieced it together. I've actually done it before, I just can't remember this one detail:
- mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
I can't remember if that one line is right or not. The rest I know works.
EDIT: I just tested this line on my phone and it ran fine. I'd try it and let me know if it works.
Ok good enough or me, I will give it a try.
EDIT: By the way, I'm on a Mac.
HeavyComponent said:
Ok good enough or me, I will give it a try.
EDIT: By the way, I'm on a Mac.
Click to expand...
Click to collapse
Yea I kinda figured. Nothing we can do about that now I'm afraid, I only hope you've learned from your mistakes.
What mistakes? The process works just as if I was on Windows just instead of "adb" I type in "./adb". It should work, I'll give it a try.
One thing I wanted to mention was their is 2 versions of su in the SuperOneClick file. Does it matter which one I use? su-v1 and su-v2.
HeavyComponent said:
What mistakes? The process works just as if I was on Windows just instead of "adb" I type in "./adb". It should work, I'll give it a try.
One thing I wanted to mention was their is 2 versions of su in the SuperOneClick file. Does it matter which one I use? su-v1 and su-v2.
Click to expand...
Click to collapse
rename SU-V2 to SU.
And I was referring to your mistake to buy a Mac.
aloneinshadow said:
So run a windows virtual environment... or you can always just do rage manually.
And of course its bloated. Every phone comes that way these days. Just gotta root my friend.
Click to expand...
Click to collapse
iOS and WP7 Devices aren't, and neither are T-Mobile's newer Blackberries. The excessive bloat seems to be a big thing on Symbian, Android, and Windows Mobile.
aloneinshadow said:
rename SU-V2 to SU.
And I was referring to your mistake to buy a Mac.
Click to expand...
Click to collapse
- adb shell This time it will show a # sign as opposed to the $ sign before
Never turned into "#" still shows "$". I did everything and it all went well until that part.
N8ter said:
iOS and WP7 Devices aren't, and neither are T-Mobile's newer Blackberries. The excessive bloat seems to be a big thing on Symbian, Android, and Windows Mobile.
Click to expand...
Click to collapse
My bad. All phones with operating systems that are worth at least two squirts of piss, are bloated from the start.
HeavyComponent said:
- adb shell This time it will show a # sign as opposed to the $ sign before
Never turned into "#" still shows "$". I did everything and it all went well until that part.
Click to expand...
Click to collapse
Hmmm... not sure why it didn't work. I'm half tempted to just tell you to download Wine for mac and run superoneclick, but you've come this far. I'd just keep going with the code and see what happens. Can't really screw it up, it just won't work.
EDIT: Looks like I had this wrong. I think it should be:
- mount -o rw,remount -t yaffs2 /dev/block/stl9 /system
Based it off of this run by superoneclick:
SuperOneClick v1.6.5.0
Killing ADB Server...
OK
Starting ADB Server...
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
OK
Waiting for device...
OK
Pushing rageagainstthecage...
103 KB/s (5392 bytes in 0.051s)
OK
chmod rageagainstthecage...
OK
Running rageagainstthecage...
OK
***IF IT KEEPS LOOPING, TRY DISABLING USB DEBUGGING NOW***
Killing ADB Server...
OK
Starting ADB Server...
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
OK
Waiting for device...
OK
Running rageagainstthecage...
ROOTED
Pushing busybox...
1264 KB/s (1062992 bytes in 0.821s)
OK
chmod busybox...
OK
Getting mount path...
/dev/block/stl9
OK
Reading OS Version properties...
Version: 2.2.1
OK
Remounting system with read-write access...
OK
Pushing su-v2...
449 KB/s (26264 bytes in 0.057s)
OK
chmod su...
OK
Creating /system/xbin...
mkdir failed for /system/xbin, File exists
OK
Copying busybox (/system/xbin/)...
OK
chmod busybox (/system/xbin/)...
OK
Installing busybox (/system/xbin/)...
OK
Pushing Superuser.apk...
1323 KB/s (196521 bytes in 0.145s)
OK
Remounting system with read-only access...
mount: mounting /dev/block/stl9 on /system failed: Device or resource busy
OK
Remounting system with read-only access...
OK
aloneinshadow said:
Hmmm... not sure why it didn't work. I'm half tempted to just tell you to download Wine for mac and run superoneclick, but you've come this far. I'd just keep going with the code and see what happens. Can't really screw it up, it just won't work.
Click to expand...
Click to collapse
Ok I tried the command over right before that step and now it's working.
I'm assuming "cp" is copy and paste? How do I do that? Because I typed in "cp" thinking it's part of the command, but it says "cp: not found".
Try "Busybox cp" I think you also can use dd: "dd if=/sdcard/su of=/system/xbin/su" instead of cp.

Installing BackTrack5 onto the Motorola Atrix 4G

As I am not allowed to post this where it should be, this seems to be the next best place.
Hardware Needed:
* The Motorola Atrix 4G (without this you wont be going very far)
* Atleast a 4 Gb SD card
* a way of transfering data from your computer onto the SD card (The supplied USB cable or an SD adaptor)
Apps Needed:
* SuperUser (If your on this site, you most likely already have this)
* Just about any Terminal Emulator will work (I used Better Terminal Emulator Pro)
* Any VNC Viewing Client (I used androidVNC)
* A Busybox installer (I used Stericson's BusyBox installer)
Software used:
* I used the BackTrack5 version posted by msullivan, found **HERE**:
I used a slightly edited version of the bt file from the bundle
just copy and paste over the original bt file:
Code:
perm=$(id|cut -b 5)
if [ "$perm" != "0" ];then echo "This script requires root! Type: su"; exit; fi
busybox mount -o remount,rw /dev/block/mmcblk0p5 /system
export kit=/sdcard-ext/BT5
export bin=/system/bin
export mnt=/data/local/bt5
mkdir $mnt
export PATH=$bin:/usr/bin:/usr/local/bin:/usr/sbin:/bin:/usr/local/sbin:/usr/games:$PATH
export TERM=linux
export HOME=/root
if [ -b /dev/loop7 ]; then
echo "Loop device exists"
else
busybox mknod /dev/loop7 b 7 0
fi
#mount -o loop,noatime -t ext2 $kit/bt5.img $mnt
losetup /dev/block/loop7 $kit/bt5.img
mount -t ext2 /dev/block/loop7 $mnt
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
busybox sysctl -w net.ipv4.ip_forward=1
echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf
echo "127.0.0.1 localhost bt5" > $mnt/etc/hosts
echo "Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:"
ifconfig eth0
echo " "
busybox chroot $mnt /bin/bash
echo "Shutting down BackTrack ARM"
umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt
losetup -d /dev/loop7
Installation Steps:
1. Make sure you have enough space to work with (atleast 4Gb).
2. Edit the bt file with the above coding.
3. Copy over the BT5 folder onto your SD card however you see fit, I just used a SD to USB adaptor that I got with my SD card.
4. Disconnect the USB cable if you have it connected.
5. open your Terminal emulator and type:
Code:
su <ENTER>
6. Type:
Code:
cd /sdcard-ext/BT5 <ENTER>
7. Type:
Code:
sh bt <ENTER>
8. The bt file should run, and leave you with a red command prompt.
Hit the home button.
9. Open your VNC Viewer and enter the login information.
Code:
Nickname: BackTrack5
Password: root
Address: 127.0.0.1
Port: 5901
The screen size still needs adjusting however as I believe it is set at 800×480 currently.
Sick. Just sick.
Cant wait to crack some Wifi with this. Anyone test this out and get a successful crack?
I haven't looked too far into it, however I do believe that this is almost useless as a "cracking" distro on ARM hardware. AFAIK many things don't/can't work. for instance injecting is a no go (real turn off for me, but that is what a netbook is for).
Until we get better drivers for the wifi, we don't have injection, or monitor mode. I've also found editing scripts can be a ***** because the on screen keyboard is either in the way, or the enter doesn't work as enter if using nano, running vi really hoses things up. My external bluetooth keyboard helps with this, but a bluetooth mouse while it works, is waaaaaaaaaaaaaaay (no really) too sensitive on the Atrix. Hooked up to an external monitor in webtop mode it works much better, but I've not tried running backtrack from there.
Yeah I did not even consider the ARM architecture. Very good point.
Do they make a Rosetta type app for Linux? Anyone know? That could at least help use get past the Architectural limits.
*edit*
Still not thinking straight, that app is for PPC users.
In the beginning where the script says "sdcard-ext/bt5" could I edit that to say "sdcard/bt5" in order to boot it from my internal phone memory?
Sent from my MB860 using XDA App
BravoMotorola said:
In the beginning where the script says "sdcard-ext/bt5" could I edit that to say "sdcard/bt5" in order to boot it from my internal phone memory?
Sent from my MB860 using XDA App
Click to expand...
Click to collapse
Yep.
stupid 10 character limit...
Exthero said:
As I am not allowed to post this where it should be, this seems to be the next best place.
Hardware Needed:
* The Motorola Atrix 4G (without this you wont be going very far)
* Atleast a 4 Gb SD card
* a way of transfering data from your computer onto the SD card (The supplied USB cable or an SD adaptor)
Apps Needed:
* SuperUser (If your on this site, you most likely already have this)
* Just about any Terminal Emulator will work (I used Better Terminal Emulator Pro)
* Any VNC Viewing Client (I used androidVNC)
* A Busybox installer (I used Stericson's BusyBox installer)
Software used:
* I used the BackTrack5 version posted by msullivan, found **HERE**:
I used a slightly edited version of the bt file from the bundle
just copy and paste over the original bt file:
Code:
perm=$(id|cut -b 5)
if [ "$perm" != "0" ];then echo "This script requires root! Type: su"; exit; fi
busybox mount -o remount,rw /dev/block/mmcblk0p5 /system
export kit=/sdcard-ext/BT5
export bin=/system/bin
export mnt=/data/local/bt5
mkdir $mnt
export PATH=$bin:/usr/bin:/usr/local/bin:/usr/sbin:/bin:/usr/local/sbin:/usr/games:$PATH
export TERM=linux
export HOME=/root
if [ -b /dev/loop7 ]; then
echo "Loop device exists"
else
busybox mknod /dev/loop7 b 7 0
fi
#mount -o loop,noatime -t ext2 $kit/bt5.img $mnt
losetup /dev/block/loop7 $kit/bt5.img
mount -t ext2 /dev/block/loop7 $mnt
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
busybox sysctl -w net.ipv4.ip_forward=1
echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf
echo "127.0.0.1 localhost bt5" > $mnt/etc/hosts
echo "Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:"
ifconfig eth0
echo " "
busybox chroot $mnt /bin/bash
echo "Shutting down BackTrack ARM"
umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt
losetup -d /dev/loop7
Installation Steps:
1. Make sure you have enough space to work with (atleast 4Gb).
2. Edit the bt file with the above coding.
3. Copy over the BT5 folder onto your SD card however you see fit, I just used a SD to USB adaptor that I got with my SD card.
4. Disconnect the USB cable if you have it connected.
5. open your Terminal emulator and type:
Code:
su <ENTER>
6. Type:
Code:
cd /sdcard-ext/BT5 <ENTER>
7. Type:
Code:
sh bt <ENTER>
8. The bt file should run, and leave you with a red command prompt.
Hit the home button.
9. Open your VNC Viewer and enter the login information.
Code:
Nickname: BackTrack5
Password: root
Address: 127.0.0.1
Port: 5901
The screen size still needs adjusting however as I believe it is set at 800×480 currently.
Click to expand...
Click to collapse
I get an error when doing "sh bt".
I get "bt: 36: Syntax error: end of file unexpected (expecting "then")"
BravoMotorola said:
I get an error when doing "sh bt".
I get "bt: 36: Syntax error: end of file unexpected (expecting "then")"
Click to expand...
Click to collapse
Is your bt folder on your "internal" or external sd card? If it's the sdcard-ext, you'll need to edit the bt script to point to the correct location.
barry99705 said:
Is your bt folder on your "internal" or external sd card? If it's the sdcard-ext, you'll need to edit the bt script to point to the correct location.
Click to expand...
Click to collapse
Hmm, tried a lot of things, ended up going to the OP of the original Backtrack on Android thread and use his original file instead, working now. But now I have a new problem, (lol) how can I change the screen resolution of the BT5 GUI to match the Atrix's screen? I've looked all over for this. I just can't find out how...
BravoMotorola said:
Hmm, tried a lot of things, ended up going to the OP of the original Backtrack on Android thread and use his original file instead, working now. But now I have a new problem, (lol) how can I change the screen resolution of the BT5 GUI to match the Atrix's screen? I've looked all over for this. I just can't find out how...
Click to expand...
Click to collapse
once you start up backtrack, you need to edit /usr/bin/startvnc . Change that last line to
Code:
vncserver -geometry 940x520
barry99705 said:
once you start up backtrack, you need to edit /usr/bin/startvnc . Change that last line to
Code:
vncserver -geometry 940x520
Click to expand...
Click to collapse
Thanks and yes I did see that somewhere, I just had no clue what file to edit. So is it possible to install things like Flash on Firefox on here or is the no package installer for this? Gosh, sorry I'm asking so much...thanks for the help so far
BravoMotorola said:
Thanks and yes I did see that somewhere, I just had no clue what file to edit. So is it possible to install things like Flash on Firefox on here or is the no package installer for this? Gosh, sorry I'm asking so much...thanks for the help so far
Click to expand...
Click to collapse
Firefox is already installed. Not sure if flash is there since it's so insecure.
Laptop dock
After installing BT5 to Atrix 4G, can the laptop dock be used to run BT5?
I just wanted to throw a thanks out there to Exthero (since you only have 2!) for the start up script. Couldn't get it working until i used yours.
I'm having a blast with this
NISVermeer said:
After installing BT5 to Atrix 4G, can the laptop dock be used to run BT5?
Click to expand...
Click to collapse
easiest way is on wifi:
see what your ip is
Code:
$ ifconfig
example:
eth0: 192.168.1.3
use a vnc server on your computer connect to ip address in ifconfig (port 5901 default for this chroot)
anyone know if or where the atrix wireless drivers are for this?

[How to] Linux (Backtrack5) and OpenOffice3

Backtrack5 and OpenOffice3.0
xMemphisx said:
Backtrack (http://www.backtrack-linux.org)
Backtrack-Linux.org, home of the highest rated and acclaimed Linux security distribution to date. BackTrack is a Linux-based penetration testing arsenal that aids security professionals in the ability to perform assessments in a purely native environment dedicated to hacking. Regardless if you’re making BackTrack you Install BackTrack, boot it from a Live DVD or thumbdrive, the penetration distribution has been customized down to every package, kernel configuration, script and patch solely for the purpose of the penetration tester.
Here is a guide to getting ARM Backtrack Running on the Iconia A500 (tested on Wifi Only Version, running 3.0.1)
After much frustration I have gotten the GUI part of the backtrack 5 arm release working with the Motorola Xoom.
This has only been tested to work on the Iconia A500 . But it should work just fine with any other device that supports linux, and should work especially well on anything with a dual-core processor (G2X, Atrix, etc.)
Pre-requisites:
- Rooted Iconia A500
- Busybox installed (Find on market Busybox installer)
- androidVNC from the Android Market
- Terminal Emulator from the Android Market (which you should already have)
- Backtrack 5 for ARM with Gnome downloaded and setup (check the README file, and follow the instructions.)
Link: Backtrack 5 http://www.backtrack-linux.org/downloads/. This tutorial will assume you put Backtrack 5 in the folder /sdcard/BT5 like the README says.
Code:
Extract the zip file to your internal SDCARD folder (/SDCARD/BT5)
Open Terminal emulator and type
su
cd /sdcard/BT5
gunzip bt5.img.gz (take about 7-10mins)
sh bootbt
Code:
cd /sdcard/BT5
su
sh bootbt
BackTrack will start up in shell. You will get a red line that says "[email protected]:". To verify if you type:
Code:
ls pentest
It should echo back the folders in pentest, stuff like 'backdoors','database',etc.
At this point enter the following commands:
Code:
export USER=root
vncpasswd
When you type in 'vncpasswd' this is to the the password for the tightvncserver. Since I only connect locally I just use 'qwerty' for my password, and then confirm the password. [Edit] Apparently you can skip this step, as the default password for vnc is simply, 'toortoor' (root backwards, twice).
When it asks if you want to create a view only password just type 'n' and hit enter. After you have your password setup for vnc start the server up.
Code:
[COLOR="Red"]startvnc 1280x800[/COLOR]
When this happens you will get a message confirming that "New 'X' Desktop is localhost:1" and a bunch of other random stuff below it (it isn't important unless there are errors listed).
At this point, press the "HOME" button and then open the application "androidVNC".
-In the "Nickname" box, you can name it whatever you like.
-In the "password" entry, use your password (mine is 'qwerty').
-In the "Address" box you can type in localhost (or leave it blank).
****Change the port from 5900 to 5901.
I also recommend setting the color-depth to 24-bit. After that press the "connect" button, and bam! You're rocking Backtrack 5 on your Iconia A500!!
Code:
In order to exit:
- Go back to Terminal
- Type [B]stopvnc[/B]
- Type [B]exit[/B]
you are back to android terminal environment and ur androidvncviewer will get disconnected.
Click to expand...
Click to collapse
p-ille said:
I tested openoffice 3 and it works like a charm. It is not present in the original backtrack repository, so I had to add another source. I used the Debian repository. From the backtrack terminal I typed:
Code:
add-apt-repository deb *repository address* stable main contrib non-free
apt-get update
apt-get install openoffice.org
You can find the debian mirror for your country at
Code:
debian.org/mirror/list
Click to expand...
Click to collapse
For those who want to access SDCard/USBDrive from within BB5, please follow this:
p-ille said:
I did it!
To mount sdcard, external sd and usb storage in backtrack, you have to modify the bootbt script like this (changes in red):
Code:
perm=$(id|cut -b 5)
if [ "$perm" != "0" ];then echo "This Script Needs Root! Type : su";exit;fi
mount -o remount,rw /dev/block/mmcblk0p5 /system
export kit=/sdcard/BT5
export bin=/system/bin
export mnt=/data/local/mnt
[B][COLOR="Red"]export stor=$mnt/root/storage
export sdcard=$stor/sdcard
export extsd=$stor/external_sd
export usb=$stor/usb_storage[/COLOR][/B]
mkdir -p $mnt
export PATH=$bin:/usr/bin:/usr/local/bin:/usr/sbin:/bin:/usr/local/sbin:/usr/games:$PATH
export TERM=linux
export HOME=/root[I]
[COLOR="Blue"]export USER=root[/COLOR][/I]
if [ -b /dev/loop2 ]; then
echo "Loop device exists"
else
busybox mknod /dev/loop2 b 7 0
fi
mount -o loop,rw,noatime -t ext2 $kit/bt5.img $mnt[B][COLOR="Red"]
echo "mounting storage devices in $stor..."
mkdir -p $sdcard
mkdir -p $extsd
mkdir -p $usb
busybox mount --bind /mnt/sdcard $sdcard
busybox mount --bind /mnt/external_sd $extsd
busybox mount --bind /mnt/usb_storage $usb[/COLOR][/B]
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
busybox sysctl -w net.ipv4.ip_forward=1
echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
echo "127.0.0.1 localhost bt5" > $mnt/etc/hosts
busybox chroot $mnt /bin/bash
echo "Shutting down BackTrack ARM for Iconia A500"
[B][COLOR="Red"]umount $sdcard
umount $extsd
umount $usb[/COLOR][/B]
umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt
Click to expand...
Click to collapse
Very nice indeed, will try it out very soon.............
Awesome, just what I have been looking for. I will try this when I get home tonight!
Thanks
lpachuong said:
Here is a guide to getting ARM Backtrack Running on the Iconia A500 (tested on Wifi Only Version, running 3.1)
Click to expand...
Click to collapse
3.1? maybe you means 3.0.1?
After
export USER=root
Click to expand...
Click to collapse
You/can type
startvnc
Click to expand...
Click to collapse
without the need to -geometry 1280x800, and afterward after your session type
stopvnc
Click to expand...
Click to collapse
for a clean disconnect.
Just a faster easier way.
I got I/O errors while mounting devpts and sysfs (bootbt script)
peyotll said:
I got I/O errors while mounting devpts and sysfs (bootbt script)
Click to expand...
Click to collapse
I had the same errors when i had ubuntu installed/and was trying to do this along side.. what I had to do was factory reset (I did so to get rid of ubuntu, there's probably an easier way) then tried backtrack again with no problem
Agosh13 said:
3.1? maybe you means 3.0.1?
Click to expand...
Click to collapse
Hahahaha...I wish =)
Btw, please let me know if you have any special script/suggestion about this topic. I will update the original one so that everyone can get updated.
I'm trying to get OpenOffice running...sadly the ARM version is not that stable. Anyone has any resource on it?
Works perfectly! Thanks for this!
Thanks very much for this guide!
I'm having a strange issue though, hopefully someone can help. When I press the "m" key, rather than type the letter "m", it opens up the mail icon in the tool bar. Every other letter works fine, and I can't seem to find a way to edit this keyboard shortcut.
Anyone else have this issue, or now how to correct this?
thanks a lot - it will work for me without any error or something else
i use the latest update from acer (A500_1.141.01_EMEA_CUS7)
hmm, is there any trick to log off an turn off the system ? when i exit everthing an try to start again i will only see the backtrack wallpaper...
also i got an error in term-emu when i type in "exit".
I added the OP for how to exit.
Thanks for the guide, I have been waiting for something like this!
koprofile said:
Thanks very much for this guide!
I'm having a strange issue though, hopefully someone can help. When I press the "m" key, rather than type the letter "m", it opens up the mail icon in the tool bar. Every other letter works fine, and I can't seem to find a way to edit this keyboard shortcut.
Anyone else have this issue, or now how to correct this?
Click to expand...
Click to collapse
doble-tap (right click) the mail icon in the tool bar and choose to remove it from panel. It should remove the keyboard shortcut also.
lpachuong said:
Hahahaha...I wish =)
I'm trying to get OpenOffice running...sadly the ARM version is not that stable. Anyone has any resource on it?
Click to expand...
Click to collapse
I tested openoffice 3 and it works like a charm. It is not present in the original backtrack repository, so I had to add another source. I used the Debian repository. From the backtrack terminal I typed:
Code:
add-apt-repository deb *repository address* stable main contrib non-free
apt-get update
apt-get install openoffice.org
You can find the debian mirror for your country at
Code:
debian.org/mirror/list
Thank you very much for this guide.
It works like a charm.
Just one question.
I suppose you use a bluetooth keyboard, because the virtual one doesn't seem to work with Backtrack. But is it possible to use a mouse ? Because my big fingers don't match the tiny icons and menu choices !!!
Thanks again.
p-ille said:
Code:
add-apt-repository deb *repository address* stable main contrib non-free
apt-get update
apt-get install openoffice.org
You can find the debian mirror for your country at
Code:
debian.org/mirror/list
Click to expand...
Click to collapse
Thank you for ur script. I haven't had time to play with it due to exams.Anyway, I added them to the original post so that everyone can find it easier.
Regarding to the keyboard...i tried with usb keyboard and it worked fine. I have a BT keyboard but haven't tried it yet. I don't think the mouse will work bcz it is restricted by the VNCViewer
Hi
Tanks for tour tutorial, but i'm having some issue running backtrack:
Code:
# sh bootbt
Loop device exists
ioctl LOOP_SET_FD failed: Bad file number
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
net.ipv4.ip_forward = 1
bootbt: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
bootbt: cannot create /data/local/mnt/etc/hosts: directory nonexistent
chroot: can't execute '/bin/bash': No such file or directory
Shutting down BackTrack ARM For Xoom
failed.
failed.
failed.
failed.
#
I did check the md5sum of the archive,ok. Busybox ok.
Tanks for your help.
When it asks if you want to create a view only password just type 'n' and hit enter. After you have your password setup for vnc start the server up.
Code:
Code:
startvnc 1280x800
When this happens you will get a message confirming that "New 'X' Desktop is localhost:1" and a bunch of other random stuff below it (it isn't important unless there are errors listed).
Click to expand...
Click to collapse
is it possible to use a different resolution? I tried to use 1280x768 (WXGA read on Wikipedia) but it didn't work.
Hi, Alberto
edit:
Now it works fine! thank you!
Sorry for my first post.
I just realize that I had confused the downloaded archive (.7 z, wich contain all stuff) and the compressed image (. gz), so I did not unpack image before running bootbt.
Unfortunately, the extraction of master archive did not work due to the soft used to extract .7z.
As i mentionned before I've checked the whole archive md5sum but did not check the extracted files.
bt5.img.gz was only 12.59 MB, extracted with androzip. (don't use it, at least for .7z!!)
interesting....
is the wifi adapter working in monitor mode???

webOS & CM7 - Adjusting/Premake CM7 custom size partitions

Code:
HOWTO for anyone interested: Updated on 2011 12-13
Update: resolved 'major:minor pair unavailable'
Update: Works for 32GB HP Touchpad and 16GB HP Touchpad
Credits to:
webos-internals.org/wiki/How_To_Recover#Doctor_disconnects_at_8.25
for the 32GB HP Touchpad filesystem creation example
[FIRST]
1) THIS PROCESS WILL COMPLETELY WIPE YOUR TOUCHPAD! WEBOS, CM7,
& ANYTHING ELSE YOU'VE INSTALLED!!
2) This process also assumes you can get functional terminal to your HP
Touchpad already via novaterm, novacom open TTY://, or with putty.
3) This process also assumes you know how to install CM7 already.
YOU WILL ALSO NEED:
webOS Doctor version 3.0.0
webOS Doctor version 3.0.4
from All HP WebOS Doctor Versions:
webos-internals.org/wiki/Webos_Doctor_Versions
[NOW START]
1) Put your HP Touchpad in webOS Recovery Mode:
a. Power off the HP Touchpad or reset it with [Power Button] + [Home]
b. Hold [Up Volume] + [Power Button] until you see a usb symbol on screen.
2) Start up taskmanager in Windows:
a. [CTRL]+[ALT]+[DEL] and select task manager
3) Run webOS Doctor and let it run to 8% then use taskmanager to end task
on webOS doctor.
4) Open up windows command prompt and type in: novacom open TTY://
5) Run the following commands [CASE SENSITIVE] type it exactly as shown
and make sure to get the numbers after --minor correct:
[Note: Don't bother customizing webOS partitions because in this process
webOS doctor will re-size them back to the following anyways.]
a. lvm.static vgscan --ignorelockingfailure
b. lvm.static vgchange -ay --ignorelockingfailure
c. lvm.static vgremove store
d. lvm.static vgscan --ignorelockingfailure
e. lvm.static vgchange -ay --ignorelockingfailure
f. lvm.static vgcreate -s 8M store /dev/mmcblk0p14
g. lvm.static vgscan --ignorelockingfailure
h. lvm.static vgchange -ay --ignorelockingfailure
i. lvm.static lvcreate -l 71 -M y --major 254 --minor 0 -n root store
j. lvm.static lvcreate -l 8 -M y --major 254 --minor 1 -n var store
k. lvm.static lvcreate -l 2 -M y --major 254 --minor 2 -n update store
l. lvm.static lvcreate -l 3 -M y --major 254 --minor 3 -n log store
m. lvm.static lvcreate -l 32 -M y --major 254 --minor 4 -n mojodb store
n. lvm.static lvcreate -l 17 -M y --major 254 --minor 5 -n filecache store
NOTE: THE FOLLOWING --minor JUMPS to 7 from 5 above
o. lvm.static lvcreate -l 64 -M y --major 254 --minor 7 -n swap store
NOTE: THE FOLLOWING MAKES CM7 PARTITIONS, I specified a 5GB cm-data
partition, you can do more or less. 1 Physical Extent (PE) is 8MB.
The number after -l is the number of Physical Extents for
the partition.
p. lvm.static lvcreate -l 96 -M y --major 254 --minor 8 -n cm-system store
q. lvm.static lvcreate -l 32 -M y --major 254 --minor 9 -n cm-cache store
r. lvm.static lvcreate -l 640 -M y --major 254 --minor 10 -n cm-data store
NOTE: The following creates the media partition used as SDCARD and sets
it to --minor 6, make sure you set it to --minor 6, the SDCARD is
specified as dm-6 in CM7. This will save you from having to edit
/etc/vold.fstab in CM7.
s. lvm.static vgscan --ignorelockingfailure
t. lvm.static vgchange -ay --ignorelockingfailure
u. lvm.static vgdisplay
i. this command displays information on the Volume Group: store
at the bottom you should see:
Free PE/Size X / XX
where X is the number of Physical Extents free and XX is the size free.
ii. write down the number of X (Physical Extents free) to use in the
next command
v. lvm.static lvcreate -l X -M y --major 254 --minor 6 -n media store
w. lvm.static vgscan --ignorelockingfailure
x. lvm.static vgchange -ay --ignorelockingfailure
y. mkdosfs -f 1 -s 64 -F 32 /dev/store/media
z. mkfs.ext4 /dev/store/cm-system or mkfs.ext3 /dev/store/cm-system
za. mkfs.ext4 /dev/store/cm-cache or mkfs.ext3 /dev/store/cm-cache
zb. mkfs.ext4 /dev/store/cm-data or mkfs.ext3 /dev/store/cm-data
zc. run webOS Doctor 3.0.0 and let it complete and let it reboot to
the language selection screen
zd. reset the HP Touchpad with [POWER BUTTON] + [HOME] and put it into
webOS Doctor recovery mode with [POWER BUTTON] + [VOLUME UP].
ze. run webOS Doctor 3.0.4 and let it complete and let it reboot and
complete webOS install and go into webOS.
If you did everything right, you now have an HP Touchpad tablet with a fresh
webOS 3.0.4 and pre-created CM7 partitions. Now, just follow the standard
CM7 install procedure after you boot into webOS 3.0.4 to install CM7.
ACMEInstaller will use the cm-system, cm-cache, and cm-data file system
you've already created. :-) Enjoy.
webOS Doctor 3.0.0 is required. If you do not run this first, other webOS
Doctor version will fail. webOS Doctor 3.0.0 resizes and formats partitions
as needed, the other versions seem to no longer have this and fail when
the webOS partitions aren't perfect in format/size.
Thanks for the detailed response from my post on Xron Dev Thread.
Based on the following site...
http://www.webosbuzz.com/hp-touchpad/2499-cm7-alpha2-1-here.html
saying the following
"One thing to know is that the space in the /boot partition is extremely limited at the moment, and cannot be easily re-sized, as it will freak out WebOS Doctor and may create other issues. Unless and until the /boot partition can be extended, this size limitation will affect the number of OSes that can be squeezed onto the TouchPad at one time."
How does this affect/react with your 5GB cm-data size?
There is a typo in line V.
It reads:
Code:
. lvm.static lvcreate -l X -M y --major 254 --minor 6 -m media store
but should read:
Code:
. lvm.static lvcreate -l X -M y --major 254 --minor 6 -n media store
Just a head's up for those who get stuck at that point with error messages.
herrdude said:
There is a typo in line V.
It reads:
Code:
. lvm.static lvcreate -l X -M y --major 254 --minor 6 -m media store
but should read:
Code:
. lvm.static lvcreate -l X -M y --major 254 --minor 6 -n media store
Just a head's up for those who get stuck at that point with error messages.
Click to expand...
Click to collapse
You need to replace X with the number of Physical Extents obtained from the previous few lines of instructions. X is a variable.
qwerty007 said:
You need to replace X with the number of Physical Extents obtained from the previous few lines of instructions. X is a variable.
Click to expand...
Click to collapse
it would seem he is referring to last "-m". in his its "-n" before media store.
havikx said:
it would seem he is referring to last "-m". in his its "-n" before media store.
Click to expand...
Click to collapse
lol. yeah i realized that after i posted, then it said you're new so you have to wait 5, min so i couldn't make a fix to my post. lol. then i had to go to work. anyhow, noted and fixed. thanks guys.
flashypants said:
Thanks for the detailed response from my post on Xron Dev Thread.
Based on the following site...
http://www.webosbuzz.com/hp-touchpad/2499-cm7-alpha2-1-here.html
saying the following
"One thing to know is that the space in the /boot partition is extremely limited at the moment, and cannot be easily re-sized, as it will freak out WebOS Doctor and may create other issues. Unless and until the /boot partition can be extended, this size limitation will affect the number of OSes that can be squeezed onto the TouchPad at one time."
How does this affect/react with your 5GB cm-data size?
Click to expand...
Click to collapse
i think /boot is a webOS partition and not a CM partition. i haven't tried it, but increasing the size of the partitions shouldn't kill webOS. The problem is that when you use 3.0.0 doctor, it resizes partitions back to their original size. resizing CM partitions is safe, CWM restore, etc... isn't partition size specific. resizing the media partition that's the SDCARD, common between webOS and CM, doesn't do anything either. but all the other webOS partitions seem to be picky about size when webOS Doctoring. but i'm pretty sure you could upsize a partition after you webOS doctor and it'd be just fine and webOS wouldn't throw a fit or anything. i think the main developers just won't do it because it'll cause a headache since a lot of people trying to install CM/android with webOS don't really know what we're doing until we've done it. lmao.
the only reason I even bothered with resizing CM partitions in the first place is because of the SDCARD issue that occurs when you've moved too many apps onto your SDCARD. it starts remounting at random. then it doesn't mount at all once you reached the high limit which a lot of folks have said 30/50 not sure which is it. But i ran into this issue, and i was like WTH. You have a 32GB SDCARD why can't you just have a 5-8GB /cm-data partition so you can just simply not need to move any apps to SD and avoid the whole friggen problem. it's not like there's actually "internal" storage. it's all just partitions on the same physical SD anyways. so I started playing with file system. and came up with this. 8GB seemed to be too much for the /cm-data for me cause i still had way too much space free after I installed all my apps and games. 5GB seems to be the perfect number for me. Allows for all apps to be installed and still have space for temp web storage/cache on the /cm-data partition.
qwerty007 said:
i think /boot is a webOS partition and not a CM partition. i haven't tried it, but increasing the size of the partitions shouldn't kill webOS. The problem is that when you use 3.0.0 doctor, it resizes partitions back to their original size. resizing CM partitions is safe, CWM restore, etc... isn't partition size specific. resizing the media partition that's the SDCARD, common between webOS and CM, doesn't do anything either. but all the other webOS partitions seem to be picky about size when webOS Doctoring. but i'm pretty sure you could upsize a partition after you webOS doctor and it'd be just fine and webOS wouldn't throw a fit or anything. i think the main developers just won't do it because it'll cause a headache since a lot of people trying to install CM/android with webOS don't really know what we're doing until we've done it. lmao.
the only reason I even bothered with resizing CM partitions in the first place is because of the SDCARD issue that occurs when you've moved too many apps onto your SDCARD. it starts remounting at random. then it doesn't mount at all once you reached the high limit which a lot of folks have said 30/50 not sure which is it. But i ran into this issue, and i was like WTH. You have a 32GB SDCARD why can't you just have a 5-8GB /cm-data partition so you can just simply not need to move any apps to SD and avoid the whole friggen problem. it's not like there's actually "internal" storage. it's all just partitions on the same physical SD anyways. so I started playing with file system. and came up with this. 8GB seemed to be too much for the /cm-data for me cause i still had way too much space free after I installed all my apps and games. 5GB seems to be the perfect number for me. Allows for all apps to be installed and still have space for temp web storage/cache on the /cm-data partition.
Click to expand...
Click to collapse
Cheers for even more fine detail! I might venture into this if the new ROMs get any bigger. currently I'm just deleting unnecessary apps and have enough free space.
Sent from my Desire HD using XDA App
Hey,
I followed all the steps and everything went fine. I have my 5Gb for internal memory but I've just noticed that under Android the external Sdcard has about 21-22Gb. It's Ok but when I plug it,my computer only show me about 13-14Gb
Has anyone encountered same problem ?
Thanks
Thanx for this will give it a go when I'm a bit more sober ....
Sent from my Touchpad using xda premium
Since we are talking about adjusting the partitions can anyone tell me how to completely wipe the touchpad and get a fresh start (after installing, cm7 and ubuntu/archlinux chroots that seem to have taken some space from my media partition).
after a full erase and webos doctor i still see my old partitions from novaterm.
I'm not sure what this does lol
My 16GB Touchpad shows 1.5 internal storage and 10.5 external.
How come? Is it impossible to get near the 16?
I get that WebOS uses some but I'm sure eventually we will be able to uninstall which I will probably do.
Does this process increase available storage?
Sent from my GT-i9100 using xda premium
Varemenos said:
Since we are talking about adjusting the partitions can anyone tell me how to completely wipe the touchpad and get a fresh start (after installing, cm7 and ubuntu/archlinux chroots that seem to have taken some space from my media partition).
after a full erase and webos doctor i still see my old partitions from novaterm.
Click to expand...
Click to collapse
I know your post was from a week ago: but just so you know - this process will do that - completely wipe it.
If you leave out the steps for creating the cm partitions - you will end up with a virgin TP.
sudoo said:
Hey,
I followed all the steps and everything went fine. I have my 5Gb for internal memory but I've just noticed that under Android the external Sdcard has about 21-22Gb. It's Ok but when I plug it,my computer only show me about 13-14Gb
Has anyone encountered same problem ?
Thanks
Click to expand...
Click to collapse
Thanks OP.
I followed all the steps and everything went fine. My computer shows 21-22Gb correctly.
Will an ACMEunintaller process bring back the partitions to WebOS default?
Else what will be the solution to bring back to normal(scratch)?
Please advice for a 16GB touchpad.
Thanks
Hey,
does this work for 64 GB Touchpad, too?
Or are there any differences in the system/partition structure?
Best,
z3no
Edit: ok works
Any solution if i want to remove webOS completely?
Thanks for the great work..
What is the default partition format(ext3 or ext4) which created by ACMEInstaller of CM7 and CM9? If we format the partition to ext4, will the ACMEInstaller change it to something else? Thanks.
qwerty007 said:
Code:
HOWTO for anyone interested: Updated on 2011 12-13
Update: resolved 'major:minor pair unavailable'
Update: Works for 32GB HP Touchpad and 16GB HP Touchpad
Credits to:
webos-internals.org/wiki/How_To_Recover#Doctor_disconnects_at_8.25
for the 32GB HP Touchpad filesystem creation example
[FIRST]
1) THIS PROCESS WILL COMPLETELY WIPE YOUR TOUCHPAD! WEBOS, CM7,
& ANYTHING ELSE YOU'VE INSTALLED!!
2) This process also assumes you can get functional terminal to your HP
Touchpad already via novaterm, novacom open TTY://, or with putty.
3) This process also assumes you know how to install CM7 already.
YOU WILL ALSO NEED:
webOS Doctor version 3.0.0
webOS Doctor version 3.0.4
from All HP WebOS Doctor Versions:
webos-internals.org/wiki/Webos_Doctor_Versions
[NOW START]
1) Put your HP Touchpad in webOS Recovery Mode:
a. Power off the HP Touchpad or reset it with [Power Button] + [Home]
b. Hold [Up Volume] + [Power Button] until you see a usb symbol on screen.
2) Start up taskmanager in Windows:
a. [CTRL]+[ALT]+[DEL] and select task manager
3) Run webOS Doctor and let it run to 8% then use taskmanager to end task
on webOS doctor.
4) Open up windows command prompt and type in: novacom open TTY://
5) Run the following commands [CASE SENSITIVE] type it exactly as shown
and make sure to get the numbers after --minor correct:
[Note: Don't bother customizing webOS partitions because in this process
webOS doctor will re-size them back to the following anyways.]
a. lvm.static vgscan --ignorelockingfailure
b. lvm.static vgchange -ay --ignorelockingfailure
c. lvm.static vgremove store
d. lvm.static vgscan --ignorelockingfailure
e. lvm.static vgchange -ay --ignorelockingfailure
f. lvm.static vgcreate -s 8M store /dev/mmcblk0p14
g. lvm.static vgscan --ignorelockingfailure
h. lvm.static vgchange -ay --ignorelockingfailure
i. lvm.static lvcreate -l 71 -M y --major 254 --minor 0 -n root store
j. lvm.static lvcreate -l 8 -M y --major 254 --minor 1 -n var store
k. lvm.static lvcreate -l 2 -M y --major 254 --minor 2 -n update store
l. lvm.static lvcreate -l 3 -M y --major 254 --minor 3 -n log store
m. lvm.static lvcreate -l 32 -M y --major 254 --minor 4 -n mojodb store
n. lvm.static lvcreate -l 17 -M y --major 254 --minor 5 -n filecache store
NOTE: THE FOLLOWING --minor JUMPS to 7 from 5 above
o. lvm.static lvcreate -l 64 -M y --major 254 --minor 7 -n swap store
NOTE: THE FOLLOWING MAKES CM7 PARTITIONS, I specified a 5GB cm-data
partition, you can do more or less. 1 Physical Extent (PE) is 8MB.
The number after -l is the number of Physical Extents for
the partition.
p. lvm.static lvcreate -l 96 -M y --major 254 --minor 8 -n cm-system store
q. lvm.static lvcreate -l 32 -M y --major 254 --minor 9 -n cm-cache store
r. lvm.static lvcreate -l 640 -M y --major 254 --minor 10 -n cm-data store
NOTE: The following creates the media partition used as SDCARD and sets
it to --minor 6, make sure you set it to --minor 6, the SDCARD is
specified as dm-6 in CM7. This will save you from having to edit
/etc/vold.fstab in CM7.
s. lvm.static vgscan --ignorelockingfailure
t. lvm.static vgchange -ay --ignorelockingfailure
u. lvm.static vgdisplay
i. this command displays information on the Volume Group: store
at the bottom you should see:
Free PE/Size X / XX
where X is the number of Physical Extents free and XX is the size free.
ii. write down the number of X (Physical Extents free) to use in the
next command
v. lvm.static lvcreate -l X -M y --major 254 --minor 6 -n media store
w. lvm.static vgscan --ignorelockingfailure
x. lvm.static vgchange -ay --ignorelockingfailure
y. mkdosfs -f 1 -s 64 -F 32 /dev/store/media
z. mkfs.ext4 /dev/store/cm-system or mkfs.ext3 /dev/store/cm-system
za. mkfs.ext4 /dev/store/cm-cache or mkfs.ext3 /dev/store/cm-cache
zb. mkfs.ext4 /dev/store/cm-data or mkfs.ext3 /dev/store/cm-data
zc. run webOS Doctor 3.0.0 and let it complete and let it reboot to
the language selection screen
zd. reset the HP Touchpad with [POWER BUTTON] + [HOME] and put it into
webOS Doctor recovery mode with [POWER BUTTON] + [VOLUME UP].
ze. run webOS Doctor 3.0.4 and let it complete and let it reboot and
complete webOS install and go into webOS.
If you did everything right, you now have an HP Touchpad tablet with a fresh
webOS 3.0.4 and pre-created CM7 partitions. Now, just follow the standard
CM7 install procedure after you boot into webOS 3.0.4 to install CM7.
ACMEInstaller will use the cm-system, cm-cache, and cm-data file system
you've already created. :) Enjoy.
webOS Doctor 3.0.0 is required. If you do not run this first, other webOS
Doctor version will fail. webOS Doctor 3.0.0 resizes and formats partitions
as needed, the other versions seem to no longer have this and fail when
the webOS partitions aren't perfect in format/size.
Click to expand...
Click to collapse
Hi
ACMEUninstaller doesn't work
I tried the command of first post but I've error like this
Invalid argument media : i think it's for "media store"
Else I've this
[email protected]:/# lvm.static vgscan --ignorelockingfailure
lvm.static vgscan --ignorelockingfailure
Reading all physical volumes. This may take a while...
/dev/mmcblk0p14: lseek 31228690432 failed: Invalid argument
/dev/mmcblk0p14: lseek 31228690432 failed: Invalid argument
Volume group "store" inconsistent
/dev/mmcblk0p14: lseek 31228690432 failed: Invalid argument
WARNING: Inconsistent metadata found for VG store - updating to use version 15
/dev/mmcblk0p14: lseek 31228690432 failed: Invalid argument
Automatic metadata correction failed
What did you think ?

Install full Linux OS on note 10.1 2014 using Linux deploy.

If we can install full Linux OS on note 10.1 2014, then it will become the truly laptop replacement.
It seems that Linux deploy is very promising, but it require a truly working root
Someone used Linux deploy to install full Linux OS on note 10.1 2012 and turned note into a full Linux laptop when needed.
https://play.google.com/store/apps/details?id=ru.meefik.linuxdeploy
Can someone savvy give it a try?
I've played around with a few installers and in the terminal by hand for a few hours. I am not able to grant permission to chroot. Even with root. I will look into this in the future.
dasmoover said:
I've played around with a few installers and in the terminal by hand for a few hours. I am not able to grant permission to chroot. Even with root. I will look into this in the future.
Click to expand...
Click to collapse
someone managed to install Linux on note3
https://github.com/meefik/linuxdeploy/issues/77
Since note 10.1 2014 is essentially an enlarged note3, above information maybe helpful for you
Got Linux deploy (linuxonandroid) app working with work
Hello, Sorry meant to say Complete Linux Installer in the topic, not Linux Deploy!
I tried the Linux Deploy project with no luck. The post that was in this thread got me to the point that you need to apply a patch in the source code ShellEnv.java and then recompile. It sets it up so it prefaces all commands in the script with su when run. I was not able to recompile the code nor anyone that could give it to me. So I moved on to the Complete Linux Installer linuxonandroid app http://linuxonandroid.org/ I ran into the same problems but I was able to get around it because the script that is used to starts the Linux distribution is editable it is bootscript.sh placed in /data/data/com/zpwebsites.linuxonandroid/files this script is automatically created when you walk through the setup/install process while you are downloading an image file going through the setup process you can edit this file as it will be created at that point, where ever you see "$bbox and a xxxxx" in the script you change it to "su $bbox and xxxxxxx" so basically you have to preface all these points which there are a lot of with su. This is part of the situation. Second part is that you will need to setup the mount point for the loop directory by hand and you can see this in the script, then you will need to mount the loop directory and then create each directory inside to what is specified in the script.Then unmount the loop directory, or reboot and then you can finish the setup and launch the distribution.
You may run into errors along the way and you will need to correct them as needed. This is no easy task to setup unless you are familiar with linux and what the script is doing. Sorry I have no easy way but I was able to get it running with the Ubuntu small images to even include the display, still having so issues getting the xwindow to display correctly in the other large images which are close to a full distribution.
All my work was done with a terminal emulator, root explorer, a text editor, Complete Linux Installer(linuxonandroid from ZPWebSites), and a VNC client. Oh and using the spen and Bluetooth keyboard helps as it takes more time with just the touch interface and keyboard for what needs to be done.
It is possible to get running but you have to work at it, took me 3 hours to work through all the issues and I am familiar with Linux and its tools.
Hope this gets you in the direction you need because it was important to me to get this working for what I do. I have sent updates to the developer to hope he can automate this in the future. With Samsung's Android implementation with multiple user config it messes with the security context of scripts because each command can be run through an interactive terminal session. But the script needs to pass SU with the commands to get it to work.
I have a Samsung Galaxy Note 10.1 2014 WIFI P600 and should work with the other models too because not specific to a model. Seems this work with a Galaxy S4 as well since they are setup the same in the OS from what I have found.
quser1 said:
Hello, Sorry meant to say Complete Linux Installer in the topic, not Linux Deploy!
I tried the Linux Deploy project with no luck. The post that was in this thread got me to the point that you need to apply a patch in the source code ShellEnv.java and then recompile. It sets it up so it prefaces all commands in the script with su when run. I was not able to recompile the code nor anyone that could give it to me. So I moved on to the Complete Linux Installer linuxonandroid app http://linuxonandroid.org/ I ran into the same problems but I was able to get around it because the script that is used to starts the Linux distribution is editable it is bootscript.sh placed in /data/data/com/zpwebsites.linuxonandroid/files this script is automatically created when you walk through the setup/install process while you are downloading an image file going through the setup process you can edit this file as it will be created at that point, where ever you see "$bbox and a xxxxx" in the script you change it to "su $bbox and xxxxxxx" so basically you have to preface all these points which there are a lot of with su. This is part of the situation. Second part is that you will need to setup the mount point for the loop directory by hand and you can see this in the script, then you will need to mount the loop directory and then create each directory inside to what is specified in the script.Then unmount the loop directory, or reboot and then you can finish the setup and launch the distribution.
You may run into errors along the way and you will need to correct them as needed. This is no easy task to setup unless you are familiar with linux and what the script is doing. Sorry I have no easy way but I was able to get it running with the Ubuntu small images to even include the display, still having so issues getting the xwindow to display correctly in the other large images which are close to a full distribution.
All my work was done with a terminal emulator, root explorer, a text editor, Complete Linux Installer(linuxonandroid from ZPWebSites), and a VNC client. Oh and using the spen and Bluetooth keyboard helps as it takes more time with just the touch interface and keyboard for what needs to be done.
It is possible to get running but you have to work at it, took me 3 hours to work through all the issues and I am familiar with Linux and its tools.
Hope this gets you in the direction you need because it was important to me to get this working for what I do. I have sent updates to the developer to hope he can automate this in the future. With Samsung's Android implementation with multiple user config it messes with the security context of scripts because each command can be run through an interactive terminal session. But the script needs to pass SU with the commands to get it to work.
I have a Samsung Galaxy Note 10.1 2014 WIFI P600 and should work with the other models too because not specific to a model. Seems this work with a Galaxy S4 as well since they are setup the same in the OS from what I have found.
Click to expand...
Click to collapse
Can you upload the edited script?
dasmoover said:
Can you upload the edited script?
Click to expand...
Click to collapse
Yes, I will try. One thing is that the script is producing errors when you try to Exit the running distro with syntax errors on a couple of commands and I have not been able to fix them, they looks like script issues from the generated script, still need investigation and I have contacted the developer. Only way I have been able to get the system to unmount the loop device after an exit is to restart the tablet because of the script errors. Also you will need to create all the file system in the loop directory as the script is not doing it automatically.
---------- Post added at 09:43 AM ---------- Previous post was at 09:26 AM ----------
Tried to attach file so keep getting error so pasting the script here. Just so you know this is an auto created script on setup so not sure if it is different for each install.
###########################################
# Linux boot script V8 for Android v4.3 #
# Built by Zachary Powell (zacthespack) #
# and Martin Møller (Tuxling) #
# Thanks to: #
# Johan Vromans #
# Marshall Levin #
# Vaykadji #
# and to everyone at XDA! #
# Feel free to edit/use this script as you#
# like but credit Linuxonandroid.org #
###########################################
# $ver: V8 #
###########################################
###########################################
# This is a function we use to stop the #
# script in case of errors #
###########################################
error_exit() {
echo "Error: $1"
exit 1
}
###########################################
# Set up variables #
###########################################
if [ -f /data/data/com.zpwebsites.linuxonandroid/files/busybox ]; then
export bbox=/data/data/com.zpwebsites.linuxonandroid/files/busybox
elif [ -f /data/data/com.zpwebsites.linuxonandroid.opensource/files/busybox ]; then
export bbox=/data/data/com.zpwebsites.linuxonandroid.opensource/files/busybox
else
export bbox=/system/xbin/busybox
fi
export usermounts=android # Base folder all user mounts are done in, should be moved to app later
export imgfile=$(dirname $0)/ubuntu.img # Default image file, another can be set by using an argument
export bin=/system/bin
export mnt=/data/local/mnt
export USER=root
if [[ ! -d $mnt ]]; then mkdir $mnt; fi
export PATH=$bin:/usr/bin:/usr/local/bin:/usr/sbin:/bin:/usr/local/sbin:/usr/games:$PATH
export TERM=linux
export HOME=/root
###########################################
# Handle arguments if present #
###########################################
if [ $# -ne 0 ]; then
if [ -f $1 ]; then # Is full path present?
imgfile=$1
elif [ -f $(dirname $0)/$1 ]; then # Is only a filename present?
imgfile=$(dirname $0)/$1
else
error_exit "Image file not found!($1)"
fi
fi
###########################################
# If a md5 file is found we check it here #
###########################################
if [ -f $imgfile.md5 ]; then
echo "MD5 file found, use to check .img file? (y/n)"
read answer
if [ $answer == y ]; then
echo -n "Validating image checksum... "
$bbox md5sum -c -s $imgfile.md5
if [ $? -ne 0 ];then
echo "FAILED!"
error_exit "Checksum failed! The image is corrupted!"
else
echo "OK"
rm $imgfile.md5
fi
fi
fi
################################
# Find and read config file #
# or use defaults if not found #
################################
use_swap=no
cfgfile=$imgfile.config # Default config file if not specified
if [ -f $imgfile.config ]; then
source $imgfile.config
fi
###########################################
# Set Swap up if wanted #
# #
###########################################
if [ $use_swap == yes ]; then
if [ -f $imgfile.swap ]; then
echo "Swap file found, using file"
echo "Turning on swap (if it errors here you do not have swap support"
swapon $imgfile.swap
else
echo "Creating Swap file"
dd if=/dev/zero of=$imgfile.swap bs=1048576 count=1024
mkswap $imgfile.swap
echo "Turning on swap (if it errors here you do not have swap support"
swapon $imgfile.swap
fi
fi
###########################################
# Set up loop device and mount image #
###########################################
echo -n "Checking loop device... "
if [ -b /dev/block/loop255 ]; then
echo "FOUND"
else
echo "MISSING"
# Loop device not found so we create it and verify it was actually created
echo -n "Creating loop device... "
su $bbox mknod /dev/block/loop255 b 7 255
if [ -b /dev/block/loop255 ]; then
echo "OK"
else
echo "FAILED"
error_exit "Unable to create loop device!"
fi
fi
su $bbox losetup /dev/block/loop255 $imgfile
if [ $? -ne 0 ];then error_exit "Unable to attach image to loop device! (Image = $imgfile)"; fi
su $bbox mount -t ext4 /dev/block/loop255 $mnt
if [ $? -ne 0 ];then error_exit "Unable to mount the loop device!"; fi
###########################################
# Mount all required partitions #
###########################################
su $bbox mount -t devpts devpts $mnt/dev/pts
if [ $? -ne 0 ];then error_exit "Unable to mount $mnt/dev/pts!"; fi
su $bbox mount -t proc proc $mnt/proc
if [ $? -ne 0 ];then error_exit "Unable to mount $mnt/proc!"; fi
su $bbox mount -t sysfs sysfs $mnt/sys
if [ $? -ne 0 ];then error_exit "Unable to mount $mnt/sys!"; fi
su $bbox mount -o bind /sdcard $mnt/sdcard
if [ $? -ne 0 ];then error_exit "Unable to bind $mnt/sdcard!"; fi
if [[ ! -d $mnt/root/cfg ]]; then mkdir $mnt/root/cfg; fi
su $bbox mount -o bind $(dirname $imgfile) $mnt/root/cfg
su $bbox mount -o bind /sys/fs/selinux $mnt/selinux
###########################################
# Checks if you have a external sdcard #
# and mounts it if you do #
###########################################
if [ -d /sdcard/external_sd ]; then
su $bbox mount -o bind /sdcard/external_sd $mnt/external_sd
fi
if [ -d /Removable/MicroSD ]; then
su $bbox mount -o bind /Removable/MicroSD $mnt/external_sd
fi
# This is for the HD version of the Archos 70 internet tablet, may be the same for the SD card edition but i dont know.
if [ -d /storage ]; then
su $bbox mount -o bind /storage $mnt/external_sd
fi
###########################################
# Mount all user defined mounts if any #
###########################################
if [ -f $imgfile.mounts ]; then
olddir=$(pwd)
echo "Mounting user mounts"
cd $mnt
if [[ ! -d $mnt/$usermounts ]]; then su $bbox mkdir -p $usermounts; fi
echo "# Script to unmount user defined mounts, do not delete or edit!" > $imgfile.shutdown
echo "cd $mnt/$usermounts" > $imgfile.shutdown
cd $mnt/$usermounts
for entry in $(cat "$imgfile.mounts"); do
ANDROID=${entry%;*}
LINUX=${entry#*;}
if [[ -d $ANDROID ]]; then
echo -n "Mounting $ANDROID to $usermounts/$LINUX... "
if [[ ! -d $mnt/$usermounts/$LINUX ]]; then su $bbox mkdir -p $LINUX; fi
su $bbox mount -o bind $ANDROID $mnt/$usermounts/$LINUX &> /dev/null
if [ $? -ne 0 ];then
echo FAIL
if [[ -d $mnt/$usermounts/$LINUX ]]; then su $bbox rmdir -p $LINUX; fi
else
echo OK
echo "su $bbox umount $mnt/$usermounts/$LINUX" >> $imgfile.shutdown
echo "su $bbox rmdir -p $LINUX" >> $imgfile.shutdown
fi
else
echo "Android folder not found: $ANDROID"
fi
done
echo "cd $mnt" >> $imgfile.shutdown
echo "su $bbox rmdir -p $usermounts" >> $imgfile.shutdown
cd $olddir
else
echo "No user defined mount points"
fi
###########################################
# Sets up network forwarding #
###########################################
su $bbox sysctl -w net.ipv4.ip_forward=1
if [ $? -ne 0 ];then error_exit "Unable to forward network!"; fi
# If NOT $mnt/root/DONOTDELETE.txt exists we setup hosts and resolv.conf now
if [ ! -f $mnt/root/DONOTDELETE.txt ]; then
echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
if [ $? -ne 0 ];then error_exit "Unable to write resolv.conf file!"; fi
echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf
echo "127.0.0.1 localhost" > $mnt/etc/hosts
if [ $? -ne 0 ];then error_exit "Unable to write hosts file!"; fi
fi
###########################################
# Chroot into ubuntu #
###########################################
su $bbox chroot $mnt /root/init.sh $(basename $imgfile)
###########################################
# Shut down ubuntu #
###########################################
echo "Shutting down Linux ARM"
#for pid in `lsof | grep $mnt | sed -e's/ / /g' | cut -d' ' -f2`; do kill -9 $pid >/dev/null 2>&1; done
for pid in `su $bbox lsof | su $bbox grep $mnt | su $bbox sed -e's/ / /g' | su $bbox cut -d' ' -f2`; do su $bbox kill -9 $pid >/dev/null 2>&1; done
sleep 5
###########################################
# Unmount all user defined mounts if any #
###########################################
if [ -f $imgfile.shutdown ]; then
echo "Unmounting user defined mounts"
sh $imgfile.shutdown
rm $imgfile.shutdown
fi
su $bbox umount $mnt/root/cfg
su $bbox umount $mnt/sdcard
su $bbox umount $mnt/external_sd
su $bbox umount $mnt/dev/pts
su $bbox umount $mnt/dev
su $bbox umount $mnt/proc
su $bbox umount $mnt/sys
su $bbox umount $mnt/selinux
su $bbox umount $mnt
su $bbox losetup -d /dev/block/loop255 &> /dev/null
for those brave enough ,try SELinux Permissive Kernel,maybe all problems will be solved.
http://forum.xda-developers.com/showthread.php?t=2590311
robertchow said:
for those brave enough ,try SELinux Permissive Kernel,maybe all problems will be solved.
http://forum.xda-developers.com/showthread.php?t=2590311
Click to expand...
Click to collapse
Yes the kernel in the thread you posted allows for Linux function in Complete Linux Installer. After the kernel is installed either use Wanam Xposed and disabling SELinux to set as always Permissive, or using "setenforce 0" in terminal(this is only for the session and once the system reboots will go back to Enforcing or if "setenforce 1")
At that point if you use getenforce at a terminal will show as Permissive and Linux will boot normally with full function.
My hat goes off to the developer of the kernel because now I have everything on the tablet I need.
FYI on my Ubuntu large installs I am running into a new SELinux issue, even with it in Permissive doing an apt-get upgrade, causes issues with an error related to invalid security context selinux, cant remember the full error. I am not seeing this with the Fedora large image. When this happens with the Ubuntu ones it breaks the KDE GUI and the Application menu ends up blank. The error occurs when install packages try to address the Ubuntu Group security, packages like colord is just an example which do a security group change. Still plowing through how to fix. Till then using Fedora which I haven't used in years
Hi,
I tried with the large Ubuntu image and get an error as well with apt-get update...not being too conversant on Linux on Android, I would like to find out if you had a fix or a resolution from the developers? Might have to stay with the Xperia Z Tablet for Linux in the meantime...
Fedora 19 via Complete Linux Installer. Have Selinux Permissive Kernel, Selinux Mode Changer, and root of course. Otherwise FW is stock MJ6.
Just a few remarks:
The Fedora image is a bit small for a full blown Linux desktop. I copied the contents to a larger 8 GB image. Had to reformat the SD card with exFAT in order to store the image there. Copying was done on a desktop computer because MTP connection just stops at 4 GB.
Changes to scripts include changing the mount command for external_sd to /storage/extSdCard in boot script. Once Linux is up and running, change /root/init.sh, find the line that starts vncserver and append -dpi 300, otherwise fonts in Linux are barely readable. Wigdets are still kind of small but at least the fonts are readable now.
If you get a connection refused in AndroidVNC, you may have to set a password on the Linux terminal for user, that is su - fedora, then vncpasswd.
Todo: find out why second start of Linux fails on loop mount busy and why shutdown complains about umount of dev.
So, my note happily runs KDE desktop, LibreOffice, and kile for LaTeX. The latter was the main reason for putting Linux on the note.
caferick said:
Fedora 19 via Complete Linux Installer. Have Selinux Permissive Kernel, Selinux Mode Changer, and root of course. Otherwise FW is stock MJ6.
Just a few remarks:
The Fedora image is a bit small for a full blown Linux desktop. I copied the contents to a larger 8 GB image. Had to reformat the SD card with exFAT in order to store the image there. Copying was done on a desktop computer because MTP connection just stops at 4 GB.
Changes to scripts include changing the mount command for external_sd to /storage/extSdCard in boot script. Once Linux is up and running, change /root/init.sh, find the line that starts vncserver and append -dpi 300, otherwise fonts in Linux are barely readable. Wigdets are still kind of small but at least the fonts are readable now.
If you get a connection refused in AndroidVNC, you may have to set a password on the Linux terminal for user, that is su - fedora, then vncpasswd.
Todo: find out why second start of Linux fails on loop mount busy and why shutdown complains about umount of dev.
So, my note happily runs KDE desktop, LibreOffice, and kile for LaTeX. The latter was the main reason for putting Linux on the note.
Click to expand...
Click to collapse
Thanks for the post. I played around with linux on my note 2 and have been waiting to get it running on my 2014. How well does it handle linux?
Sent from my SM-P600 using XDA Premium 4 mobile app
Duly.noted said:
How well does it handle linux?
Click to expand...
Click to collapse
It runs reasonably well. I guess the limiting factor is disk I/O, or SD I/O in this case. I run KDE 4 in desktop mode with graphical desktop effects disabled and most of the KDE services like indexing disabled. It takes about 15-20 seconds from finished boot to desktop. Once the desktop is up and running, opening apps like LibreOffice is fast enough. Feels like with the first generation Atom netbooks. KDE is a resource hog, it would probably make sense to go for something that is lighter on resources but I chose KDE for girlfriend compatibility. She only knows KDE and I won't force her to learn the XFCE way or something even more obscure like Gnome3 http://forum.xda-developers.com/images/smilies/tongue.gif .
Vncserver runs at native full screen, ie 2560x1600 at 300 dpi. There was a noticable screen redraw lag when closing windows. That was easily fixed by disabling the desktop background image. I have not yet done any high load tasks. Only opened LibreOffice and kile for a quick check.
I have a cheapo foldable bluetooth keyboard. Need to get a small bluetooth mouse. Any recommendations? Or a small keyboard/touchpad combo I can take with me when traveling.
To Caferick - Fedora 19 step by step
Hi can you explain step by step how u got the Fedora 19 to wor pleasek? where i can find the bootscript?
Amadyl said:
Hi can you explain step by step how u got the Fedora 19 to wor pleasek? where i can find the bootscript?
Click to expand...
Click to collapse
Hum, a step by step guide would be rather longish. To answer the question: Complete Linux Installer scripts are located in /data/data/com.zpwebsites.linuxonandroid/files. There is the bootscript.sh. However, editing it is not strictly necessary. It should work as is. Alright, let's see
Preliminaries:
* need root on your device along with the usual suspects like busybox and terminal emulator (both on Google Play)
* need selinux set to permissive -> flash selinux permissive kernel (to be found in xda forums) and install something like SELinuxModeChanger (Play) set to always change SELinux mode to permissive, check by rebooting and then Configuration > General > Device Info, it should say Permissive
* useful apps include a decent file manager (I like TotalCommander), ZIP extractor (ZArchiver), text editor (Jota), these make things somewhat easier
* required app: AndroidVNC (Play)
1. Install Complete Linux Installer from Play
* start the app and open the menu by touching the < sign at the top left
* choose installation guides (or the like, my interface is not English)
* choose Fedora 19, there are four tabs, work through them in sequence, second tab presents a download button, if you have not yet installed Terminal and AndroidVNC you can use the two other buttons to do it now
* third tab asks you to unzip the downloaded image, the ZIP will probably be in /storage/emulated/0/download, move it to the root of your external SD card, unzip with Zarchiver
* there should now be a new folder fedoraXXXXX with two files in it, the fedora-*.img and an md5 file, you can safely delete the md5 file and maybe rename the image to something like fedora.img, likewise for the enclosing folder
* read the rest of tab 3 and 4
2. Start Linux
* go back to CompLinInstaller menu and push the second entry labeled Start
* a page will open and probably say Ubuntu in the drop down combo box above the Start button, change it to Fedora and type in the path to the image, like /storage/extSdCard/fedora/fedora.img
* push the Start button
* a terminal will open and a few lines will fly by. If everything goes well, you will be asked to set passwords two times, just use a trivial one like 12345678, you can change it later if you are paranoid about passwords
* you will be asked to set the resolution for VNC, type 2560x1600 which is the native resolution of the tab
* you will be asked whether you want to autostart VNC, type y
* you will be asked whether you want to start SSH server, type n
* your choice will be saved right beside the image file, in my case the file is called fedora.img.config, you can change it with any text editor
3. In the chroot terminal
* still in the terminal, the prompt should now say [email protected]
* while you are there, type su - fedora , the prompt should change to [email protected]
* type vncpasswd to set a password for VNC access, just use the same password as above, then type exit
* you are back at [email protected] If you have a keyboard (bluetooth or USB), you can edit the file init.sh with vi and append -dpi 300 to vncserver startup line. This setting will take effect at next start because vncserver. If you do not have a keyboard or do not know vi editor, you can skip this for now.
4. VNC
* start AndroidVNC, Nick: fedora, Password: 12345678, Address: localhost, Port: 5900, Color Format: 24-bit color (4bpp), Connect
* you should now see a linux desktop with tiny fonts
* hit the tabs config button to bring up AndroidVNC options, change input mode to touchpad
* you can now move the linux pointer with your finger on the display
5. Shutdown
* in VNC Linux logout just as you would log out of any other Linux desktop
* terminate VNC session by choosing Disconnect from AndroidVNC config menu
* switch to the still running terminal and type exit
* Linux now stops, wait a few seconds and close the terminal
There are still some minor problems with shutdown which I am trying to trace. A subsequent start of Linux will not work because of busy devices. So best reboot the tab and try again.
That's it for the base setup. Uh, the text is long indeed. Has it worked for you so far? Next comes customization
Corrections welcome, I typed this down from memory...
script
So we need to create script ourselves, when i've done it, i was set resolution to my tablet's resolution, then all is poor to see, that words and windows is too small to work, so it's horrible at the moment, but else works good enough. Is anyone know how to get normal UI on that big resolution? Sorry for my bad english.
Hey guys is there a walk through on how to increase the IMG size for fedora in a windowc pc ? i al ready have the SD partitioned just need to encrease the size to 10 GB
sits at boot up
My device is rooted, chroot installed, vnc installed, and busybox installed.
I install SELinux Permissive and systems sits at bootup screen. never boots to OS at any point. Just sits and the Samsung screen.
I have the Galaxy Note 10.1 SM-P600 (2014 Edition).
How long does it sit at the Samsung Boot screen before finally booting the rest of the way?
I installed using Odin 3.09.
I have running Ubuntu (xfce) on my Note 3 with Linux Deploy. VNC is not the way, it is slow. You should use framebuffer mode and you will be astonished how nice its running. Also, I modified xorg.conf for the phone to only react to stylus input and the stylus button to be right click. This setup is also working on my Note 10.1 old edition.
mdalacu said:
I have running Ubuntu (xfce) on my Note 3 with Linux Deploy. VNC is not the way, it is slow. You should use framebuffer mode and you will be astonished how nice its running. Also, I modified xorg.conf for the phone to only react to stylus input and the stylus button to be right click. This setup is also working on my Note 10.1 old edition.
Click to expand...
Click to collapse
Can we use it without linux deploy, because it doesn't work on sm-p605? Can you point us to some guide or documentation? Thanks.

Categories

Resources