yashsingh1/xdaforums huggingface dataset:
[Motorola Atrix 2] Emoslayer8:
Greetings,

I have has success with this install, Thanks Jim you made this very easy, the only issue i am having, i installed the gnome-shell and all of its dependents, now how can i start the shell.....the desktop rather.... i looked at you 3rd post regarding changing the start-oshwt-2.sh script and i have no problems doing that but i think mine may look a little different......maybe im just over thinking this one. to any avail i would like some help on this.

here is my script. Also im posting this off the lapdock now! i purchased a pro 500, and all of the people who said USB mass storage is broken are wrong it works just fine! finally i can program my arduino off of my phone!!! haha the IDE actually works!

#! /bin/sh

### BEGIN INIT INFO

# Provides: start_lxde2.sh

# Required-Start:

# Required-Stop:

# Default-Start:

# Default-Stop:

# Short-Description: started by adas user at login

### END INIT INFO

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib

. /lib/lsb/init-functions

export `fbcp_dsba`

log_action_msg "Will now start OSHWT 2 scripts"

# start OSHWT 2 scripts

sfalv -i "aiw -d"

evbridge &

# Allow AIW & Evbridge to start

sfalv -i "docking_manager"

window_switcher&

sfalv -i "/usr/lib/gvfs/gvfs-gdu-volume-monitor"

print-daemon.sh --start &

# IKXWEBTOP-5690 workaround.

# xkb is broken in 10.10 in that each time a keyboard is connected

# the layout of all other keyboards become the layout of

# the last connected keyboard.

# There is an xorg.conf.d rule that forces all keyboards to

# layout 'us(android)' but for some reason it is not working for

# evfwd. Here we force xkb to work with 'us(android)' so evfwd

# is assigned the right layout.

setxkbmap 'us(android)'

thanks again!

Kenneth
[Motorola Atrix 2] jimbridgman:
Yes they are going to look a little different becuase this how to was written with 2.3.4 instructions, but everything still applies and works now. Just make the changes in the same location in both start-oshwt-2.sh and start-oshwt-1.sh. In start-oshwt-2.sh you edit and make your changes on the line after, the one below:

# start OSHWT 2 scripts

and of the start-oshwt-1.sh you comment out a few things so that those don't start, like awn and such.
[Motorola Atrix 2] Emoslayer8:
Oh awesome thank you so much. Also.are you good with the enlightenment 17 environment. I have e17 all installed but cannot start it thru the terminal. I also cannot start the gnome-shell. Has some errors. I can post them when I'm.home if.you would like.

I am interested in development for this device man! I am fluent in C C# C++ I'm learning Java now at school. But yea man I would really like to be a big part of this.

Have you seen the Ubuntu Android development they are working on for dockable phones?

Anywho thanks again Jim!

Kenneth
[Motorola Atrix 2] rob219:
i keep getting this

tar -xvf webtop_unlock.tar

tar: not found
[Motorola Atrix 2] cainn24:
Most likely it's because you don't have BusyBox installed. Search for a BusyBox installer on the Market, install it, and then install BusyBox to "/system/bin/" (you'll have to choose this location manually since the installers default to the /system/xbin/ directory).
[Motorola Atrix 2] rob219:
i have busybox 1.94 installed already, but its in xbin as thats were it was installed in the rom so i replaced it with the newerversion. ill try it in bin instead and retry and see what happens.

---------- Post added at 10:29 AM ---------- Previous post was at 10:21 AM ----------

i checked and its in bin not xbin

---------- Post added at 10:58 AM ---------- Previous post was at 10:29 AM ----------

its fixed. problem was because busybox was in bin and not xbin.
[Motorola Atrix 2] ari197:
just want to say thanks .. finally get my lapdock yesterday and it's now running ubuntu ..

a bit strange though, when I ran the script it failed with the error not enough space, but then I ran the script line-by-line (copy pasting) and it works just fine ..

my guess is, for some reason, when I ran the script, it didn't copy the files to the partitions I made ..
[Motorola Atrix 2] rob219:
i keep trying to finish this, but after i run the script it says its done but phone doesnt reboot automatically. after i reboot it remount and go into webtop and try to bring up the terminal i get an error saying its not installed. any help?
[Motorola Atrix 2] jimbridgman:
Yeah the reboot command has for some odd reason not worked on most peoples phones, that is not an issue, you just power the phone off and on.

Try this:

Grab this file:

http://dl.dropbox.com/u/45576654/mountosh

copy it to /data/local on your phone with adb:

adb push mountosh /data/local

Then:

adb shell
su
cd /data/local
mount -o remount, rw /system
cp mountosh /system/bin
chown root /system/bin/mountosh
chmod 755 /system/bin/mountosh
reboot

Now see if your webtop partition on your sdcard mounts, you might have to do a few other things after this to finish the install.

To see if your card is mounted as the webtop partition do this:

adb shell
su
busybox df -h | grep -i osh

It should return a filesystem size that matches what you created in the steps in the original post of this thread. If it does not then run these commands and PM me the output.

adb shell
su
which busybox
busybox df -h
ls -l /system/bin/mountosh
ls -l /system/bin/mountosh.orig
fdisk -l /dev/block/mmcblk0 | grep Linux

Now if it mounted and you try webtop, and you still don't have the terminal installed, I will help you through PM, but you have to send me the commands I listed right about this, so that I have all the info to create a list of commands for you to run.
[Motorola Atrix 2] rob219:
i cant download the file you posted, it just opens the dropbox page with a bunch of commands and no file to download and push
[Motorola Atrix 2] jimbridgman:
You HAVE to right click and do a save as. Try this link istead, and do the following.

http://dl.dropbox.com/u/45576654/mountosh.tar

adb push mountosh.tar /data/local
adb shell
cd /data/local
tar -xvf mountosh.tar
su
cd /data/local
mount -o remount, rw /system
cp ./mountosh /system/bin
chown root /system/bin/mountosh
chmod 755 /system/bin/mountosh
[Motorola Atrix 2] ari197:
Jim,

I'm planning to change my sdcard (bigger size), I'm assuming that I could just mount my old ext3 partition and copy the content ?
[Motorola Atrix 2] sugwacee:
why not use a disk dump img? which is OK and no need to fix anything.

1.just restore it into the sdcard's first/second partition.

2. use a cwm zip file to change the phone to use the new osh partition.

3 reboot, done! enjoy.

when i used Atrix4G, i did it this way. i think it's a little bit easier.

http://xdaforums.com/showthread.php?t=1093790

And with Atrix2 i'm looking for chroot method, but i'm a little confused about the shutdown script(i don't know where to setup scripts which runs when the phone is turning off. this script is needed, cos i have to kill all chrooted system's apps, filesystem should be unmounted correctly with no program running on it) .

any solution for this? thks.
[Motorola Atrix 2] tvd0405:
I agreed. I tried it 3 times and could not get it to work :(
[Motorola Atrix 2] tvd0405:
I gave this tutorial another try after reading through all the posts and yes, I got it to work. Thanks to Jim and his dedication.

tvd0405
[Motorola Atrix 2] tvd0405:
I quite not understand this hack. I switched out the sd card today and the webtop still work so I just wonder that I hacked directly to the original webtop. It may be fine for me since I may not install much Linux apps. Most of them does not work anyway.
[Motorola Atrix 2] ari197:
Jim,

right now I'm using (was lfaber's) Supercharged ROM. I'm thinking about trying another ROM. I think I would have to re-run the script right ? but do I have to re-install the packages again ?
[Motorola Atrix 2] ShotSkydiver:
Hey Jim, so, I was having problems with the mountosh scripts as well, it would only mount a 1.3 GB partition as /osh whereas the ext3 partition I made is 4GB, so I performed this step to replace the scripts, and now my phone is stuck at the moto logo.... :( where did I go wrong?
[Motorola Atrix 2] ShotSkydiver:
Please, anyone know what to do? Obviously I can boot into fastboot and do a full wipe, but I'd like to find a way to fix my bootloop...
[Motorola Atrix 2] ShotSkydiver:
Tried reinstalling from a stock system. All I did was do the instructions 100% step-by-step, including making the sdcard partitions in gparted. I was able to get into the terminal and do an apt-get update, but right away I got the "no space left" error. Checked busybox df -h and /dev/webtop is again mounted to /osh with 1.3GB space, while my ext3 partition is 6GB. Put the new mountosh scripts in again from the post I quoted, and again I'm stuck on the boot logo... my question isn't how to get past the stuck boot logo, it's how in the hell do I get /osh mounted to my sdcard?!?!? I literally followed your entire guide from start to finish, on a completely fresh stock system, and the sdcard still isn't mounted at all. Please, help...

EDIT: Interesting... if I open the script manually and run the lines myself, the ext3 sdcard partition actually successfully gets mounted to /osh, and a "busybux df -h" shows it as having 6GB. But, upon reboot, the phone gets stuck at the bootlogo again... so, it must be something in the way of the mountosh scripts being copied manually? But I fail to see the difference between manually copying it and letting the script copying it, and it reboots fine with the script.
[Motorola Atrix 2] matthewsteross:
I messed up!

I think I messed up badly. I had the webtop running well after playing around with this tutorial, I even got the terminal to launch and was able to have synaptic to download gnome, but then I realized that osh was not mounted to the partition I made, so I, being the newb I am, tried to manually copy the osh files from / to /sdcard-ext which did not go over fantastically.... now Webtop will boot up sort of. It flashes wildly and the main screen is very tiny and only shows a background and nothing else in the top left corner.. I was trying to move the files from one spot to another on my phone using rootexplorer and my phone restarted itself. I don't have a clue what to do now. I guess I'm mildly retarted. Anyone want to PM me and try to walk me through this?
[Motorola Atrix 2] matthewsteross:
Let me know if you ever get this thing to mount properly. I am restored my phone and started over and now I'm at the part where I get everything running and synaptic just doesn't have room to do anything because it's not mounted on the partition I created. =(

EDIT:

I was able to get everything working by reverting to stock and just rooting and installing busybox and following the rest of the tut almost verbatim. I appreciate xda and everything this community has done for me, even though I'm just a newb that never posts, I use this forum for information all the time.

EDIT:

I tried the same thing as ShotSkydiver, probably not a good idea since he was having similar troubles with no luck, and of course I got a frozen moto boot screen as well. I am using fastboot to start over again. This time I will try from stock without flashing supercharged Rom. Maybe that will help? I just can't get this to mount correctly! I will keep updated, if anyone has had similar trouble, let me know if anything worked for you!
[Motorola Atrix 2] matthewsteross:
fixed!

I had to revert to stock with fastboot again, but then I just did the OTA update, rooted, installed busybox and followed the tutorial without installing supercharged and everything went fine! I have now unlocked Ubuntu on my phone thanks to all of you! Thank you!
[Motorola Atrix 2] ShotSkydiver:
Glad you got it fixed! I got mine fixed as well, ran into a million issues after, and fixed them, I will write up a large post later today with info for anyone else running into these same problems.
[Motorola Atrix 2] gidi:
Dear all,

Just a very quick question. Will this work on the original Atrix + Lapdock?

Thank you very much in advance!!
[Motorola Atrix 2] ShotSkydiver:
Why bother? The OG ATRIX has much better options for webtop mods.
[Motorola Atrix 2] wolfebaine:
Confirmed working on Atrix2 with Atrix 1 lapdock (after flipping the connectors).

I tried at least 4 custom roms (including just Deodex ones) and the install always failed. Finally had success using the 2.3.5 Return to Stock script, upgrade via OTA, then rooted it with the One-Click method to get this to work properly.

Confirmed working:

OpenOffice

Firefox (chrome crashes)

Gnome-RDP/rdesktop

Geany

Gedit

mpd

gnome-panel (disabled built-in dock)

tilda

Very please with the performance.

(screenshot blocked)
[Motorola Atrix 2] jimbridgman:
This will not work with custom ROMS because, the custom ROMs are missing most of the important pieces such as the doc apps and the webtop launcer apps, etc.

THIS WILL NOT WORK WITH CUSTOM ROMS!!!!

Fully Stock ONLY!!!

The other issue, is that you MUST install busybox in /system/bin, NOT /system/xbin, that causes the mount_osh script to not function properly, as well as some of the installer script as well.
[Motorola Atrix 2] ted1735:
I can confirm this DOES WORK with ECLIPSE ROMS. I have had it working for months! I am using a beta .904 on eclipse and it still works.
[Motorola Atrix 2] jimbridgman:
Yes, it is because the Elcipse ROMs are based off of stock, and they kept the doc apks and the webtop apks in the ROM, as well as the webtop frame work. Most ROMS have been stripped of so much that they just will not work with this process.

So if you want this to work with your favorite custom ROMs have the devs PM me, and I will tell them how to implement the parts needed into thier ROMs to make webtop work.
[Motorola Atrix 2] jahuang:
After update to 2.3.6

Jim,

When I update my phone to 2.3.6 from OTA. then run the script again, and get something wrong as below:

tar: ./proc/1721/task/1721/fd/7: Cannot open: No such file or directory

./proc/1721/task/1721/fd/8

tar: ./proc/1721/task/1721/fd/8: Cannot open: No such file or directory

./proc/1721/task/1721/fd/9

tar: ./proc/1721/task/1721/fd/9: Cannot open: No such file or directory

./proc/1721/task/1721/fd/10

tar: ./proc/1721/task/1721/fd/10: Cannot open: No such file or directory

./proc/1721/task/1721/fd/11

tar: ./proc/1721/task/1721/fd/11: Cannot open: No such file or directory

./proc/1721/task/1721/fd/12

tar: ./proc/1721/task/1721/fd/12: Cannot open: No such file or directory

./proc/1721/task/1721/fd/13

tar: ./proc/1721/task/1721/fd/13: Cannot open: No such file or directory

./proc/1721/task/1721/fd/14

tar: ./proc/1721/task/1721/fd/14: Cannot open: No such file or directory

./proc/1721/task/1721/fd/15

tar: ./proc/1721/task/1721/fd/15: Cannot open: No such file or directory

./proc/1721/task/1721/fd/16

tar: ./proc/1721/task/1721/fd/16: Cannot open: No such file or directory

./proc/1721/task/1721/fd/17

tar: ./proc/1721/task/1721/fd/17: Cannot open: No such file or directory

./proc/1721/task/1721/fd/18

tar: ./proc/1721/task/1721/fd/18: Cannot open: No such file or directory

./proc/1721/task/1721/fd/19

Could you point out what's the problem? Thank you!
[Motorola Atrix 2] jimbridgman:
You should be OK, anything in /proc is volatile, and really just a small storage place for kernel and running apps to store running process information. I am guessing that you had something running in webtop recently and did not close everything out, and or reboot before doing this.... that is why you had stuff in /proc.
[Motorola Atrix 2] jahuang:
OK, got it, ths!
[Motorola Atrix 2] souljaboy:
Can someone who has it running, just make a (ghost) image of the sd card partition of a clean install ? Please so nobody has to go through this battle.
[Motorola Atrix 2] jimbridgman:
That won't work, or I would have done that. This is the only way. If you want to you can thank Motorola for making this so hard.
[Motorola Atrix 2] jimbridgman:
I don't think your root is working. Are you sure that you are rooted correctly?

run the following and post the output as a reply back to me here in this thread.

adb shell
su
id
which busybox
busybox df -h
which su
exit
exit
[Motorola Atrix 2] z652366:
i got this

C:\adb>adb shell

su

id

which busybox

busybox df -h

which su

exit

exitshell@edison:/$ su

root@edison:/# id

uid=0(root) gid=0(root)

root@edison:/# which busybox

/system/xbin/busybox

root@edison:/# busybox df -h

Filesystem Size Used Available Use% Mounted on

tmpfs 464.7M 336.0K 464.4M 0% /dev

tmpfs 464.7M 0 464.7M 0% /mnt/asec

tmpfs 464.7M 0 464.7M 0% /mnt/obb

/dev/block/system 477.5M 361.5M 116.0M 76% /system

/dev/block/userdata 4.5G 264.1M 4.1G 6% /data

/dev/block/cache 689.0M 16.7M 637.2M 3% /cache

/dev/block/webtop 1.3G 784.8M 526.8M 60% /osh

/dev/block/pds 3.9M 1.1M 2.8M 28% /pds

/dev/block/preinstall

274.7M 25.6M 249.2M 9% /preinstall

/dev/block/vold/179:1

11.2G 37.6M 11.2G 0% /mnt/sdcard

/dev/block/vold/179:1

11.2G 37.6M 11.2G 0% /mnt/secure/asec

root@edison:/# which su

/system/bin/su

root@edison:/# exit

shell@edison:/$

what's the matter..
[Motorola Atrix 2] z652366:
that's ok.but it turn up to this now.......

tar: Error exit delayed from previous errors

unmounting your sdcard from the temp mount, now that we are done copying all the

files.

umount: /tmp/osh: not found

Now we will mount the sdcard with webtop copied over to it, to the correct place

, so we can patch it, and remove the FACLs and MACLs. These are what prevent you

accessing application and making changes in the ubuntu install.

fdisk: not found

fdisk: not found

We are done and your phone will now reboot, go visit the xda-developers thread a

nd perform the next steps when your phone starts back up.

link_image[1964]: 3669 could not load needed library 'liblog.so' for '/system/b

in/reboot' (link_image[1964]: 3669 could not load needed library 'libgcc_s.so.1

' for 'liblog.so' (load_library[1106]: Library 'libgcc_s.so.1' not found))CANNOT

LINK EXECUTABLE

THanks~
[Motorola Atrix 2] jimbridgman:
Now right off, I see an issue in the other commands you sent me.

Your busybox is installed in the wrong location.

Go to the market and download Jrummy16s busybox installer.

https://play.google.com/store/apps/details?id=com.jrummy.busybox.installer&hl=en

Then launch it, and in the second dropdown it has a location of where to install busybox. Make sure you select /system/bin, and NOT /system/xbin.

ONLY install version 1.19.4, in the top dropdwon.

Now select install. It may give you an error and tell you that it is already installed in /system/xbin, and if you want to move it, say yes.

This should fix most of your issues. After you do this reboot your phone, and try it again, then if you have more issues, reply back here. I will then see where to go next.

This might be be several tries back and forth with me to get this all fixed up, because it looks like a few other issue may come up too, from what I see in your output. Let's do one thing at a time though, so we know what was done and what fixed or did not fix something.
[Motorola Atrix 2] mtnlion:
Jim I thought I'd go ahead and hijack your thread to ask why you say to only install the 1.19 busybox? I've got 1.20.1 installed and haven't run into any issues yet. What haven't I run into yet?
[Motorola Atrix 2] jimbridgman:
It is made for ICS, and there have been a few users reporting things not working in a "stellar" manner on GB. Just watch and be careful when using anything busybox related. I have had great success with 1.20.0 and an 1.19.4, so that is what I am recommending to most people on until ICS is out, then 1.20.1, should do what it is supposed to.

There are a few kernel hooks in ICS that are not in GB, so certain calls will return nothing or gibberish to the busybox stack.
[Motorola Atrix 2] z652366:
when i run it again ,it's show me

file changed as we read it

what should i do??
[Motorola Atrix 2] ri4naire:
What Partition Table to use?

Hey Jim,

I really appreciate all the work you do for the phone, it's great to be able to stretch the limits of our devices with your help.

I tried to do your workaround on my phone twice, actually, with a Franken-hacked (lots of little mods I cobbled along the way) and then with Supercharged and both times ran into issues. I'm also working with an Atrix OG Lapdock which seems to sometimes only want to be seen as a Standard Dock depending on what stage up the mod I'm in, but that's beside the point.

I'm starting from scratch; RSDed to 2.3.5 (which does Webtop swimmingly with the old Lapdock, no mods, root, nothing, although it says "Unsupported Device"), I'm going to update and apply this mod along the way.

Quick question, though. What Partition Table should I use on my SD card? I had GPT because I was in Windows and was trying to clear everything up for the second try but I'm in Ubuntu now and using GParted.

Last time I tried to run your script it gave me an error and mentioned that GPT was wrong, actually, which is why I'm switching to GParted.
[Motorola Atrix 2] jimbridgman:
Your partition needs to be formatted as an ext3 primary linux partition.

If you go to the OP here I give step by step how to do it with gparted. :D
[Motorola Atrix 2] z652366:
Jim,

what happened to my phone is like this

tar: ./usr/lib/ICAClient/nls/en/UTF-8/Wfcmgr: file changed as we read it

tar: ./usr/lib/ICAClient/nls/en/UTF-8/pna.nls: file changed as we read it

tar: ./usr/lib/ICAClient/nls/en/UTF-8/Wfica: file changed as we read it

tar: ./usr/lib/ICAClient/nls/en/UTF-8: file changed as we read it

tar: ./usr/lib/ICAClient/nls/en/Wfcmgr: file changed as we read it

tar: ./usr/lib/ICAClient/nls/en/Wfica: file changed as we read it

tar: ./usr/lib/ICAClient/nls/en/module.ini: file changed as we read it

tar: ./usr/lib/ICAClient/nls/en: file changed as we read it

tar: ./usr/lib/ICAClient/nls/ja/UTF-8/Wfcmgr: file changed as we read it

i confused...what should i do
[Motorola Atrix 2] jimbridgman:
You should be ok, that just means that you were copying a file that was being written to, besides those are fonts, so you "should" be ok. Does the rest of the hack work, can you pull up a terminal in webtop? Have you tried to launch webtop yet?
[Motorola Atrix 2] jimbridgman:
Try this, I think that somehow the MACLs (Mandatory Access Control) were not turned off.

adb shell
su
cd /osh/etc
mv tomoyo toy
exit
exit

Now reboot your phone (power it off and back on).

After your phone comes all the way back up, then connect it to the dock, or hdmi cable and try webtop again, and see if you can get the terminal to launch.

Thanks for sending all of that data beforehand it helped me figure out what I think the issue could be, much faster.
[Motorola Atrix 2] ri4naire:
Q'apla!

"adas@localhost:/data/home/adas$" in the house.

Thank you, Jim. This is amazing, if only I didn't have to leave for work right now... Will work on this further later tonight.
[Motorola Atrix 2] williammturner:
Hi Jim,

I have stock rooted 2.3.5. I have tried a hard reset 3 times, re-flashed the stock ROM with fastboot, formatted the sd card 3 times (tried both gparted and Windows) and have Busybox v1.19.4 installed in /system/bin. I keep getting the following error when I run the script:

....

./proc/4005/attr/fscreate

./proc/4005/attr/keycreate

./proc/4005/attr/sockcreate

./proc/4005/wchan

./proc/4005/stack

./proc/4005/schedstat

./proc/4005/cgroup

./proc/4005/oom_score

./proc/4005/oom_adj

./proc/4005/coredump_filter

tar: ./proc: implausibly old time stamp 1969-12-31 16:00:00

unmounting your sdcard from the temp mount, now that we are done copying all the files.

I'm not sure how far into the script this error occurs, but it runs for quite a while before reaching this point. Regular Webtop continues to function.
[Motorola Atrix 2] jimbridgman:
Someone asked this same question a few posts back. /proc is similar to temp space, but for the running kernels processes.

You should be just fine. What this means is that you did not got into the webtop connector and stop your last running webtop session, so the files in /proc are out of date.