yashsingh1/xdaforums huggingface dataset:
[Motorola Atrix 2] noobsquared:
Just tried 4th time.

Script runs and ends in the same error.

I installed busybox in system/bin..used root explorer to double check.

busybox is under system/bin and script runs all the way and once the script finisheds in like 20 minutes, this is where it ends:

tar: ./proc/2098: Cannot change mode to r-xr-xr-x: Operation not permitted

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

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.

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]: 2067 could not load needed library 'liblog.so' for '/system/b

in/reboot' (link_image[1964]: 2067 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

I should not have tried to do it from scratch but even then it should work.

I am on stock 2.3.6, rooted and busybox installed and working since script is running.

I think I am going to go home and put it down for the weekend and pick it back up maybe Monday.

Thanks for all your help man.

Edit: Like I said, I was tired.

Sorry to bother you man..I just noticed that for some reason my partition changes did not stick.

I made the changed in MiniTool and started working on something else..by the time I got back to eject USB drive, there was no USB drive so I just unplugged it and it seems like that messed with the SD Card and phone was showing it to be complete 14.5GB instead of half that after partition.

I'll mess with it later. At least we know there is nothing wrong with the script but the nut running the script :)
[Motorola Atrix 2] noobsquared:
Happy to report that all is working now.

I also installed pidgin and so far it works perfect. I guess you can add that to working apps list :)

Thank you!!
[Motorola Atrix 2] troycarpenter:
I had to switch from the Atrix OG to the Atrix 2, and I already had my SD card formatted for webtop. I was able to simply clear out that partition and run the script here. I also ran into the toymoyo issue at first, but finally got past that based on previous posts. The other problem I had is that sudo access was not setup properly for adas. I had to modify the sudoers file.

Now I have webtop with the terminal. I just did an apt-get update/upgrade and the only thing that upgraded was cups-common.

So with the Atrix OG, there are all kinds of worries about dependencies (also mentioned in your post), and there are webtop scripts that freeze packages and whatnot. Is there anything like that for the A2?
[Motorola Atrix 2] jimbridgman:
no, just don't try to do an update/upgrade. Whenever an update for the phone comes out they update webtop, and you might have to re-do this, I so far have not had to, because the update updated my sdcard partition not the one on the phone, so I lucked out, but not everyone has been so lucky.

You can pretty much install whatever you would like, and have synaptic deal with the dependencies, but you can not do any upgrade or update from within webtop... that so far is the only limitation. I am working to try and get a few other distro images in here, but I have not had the success that I would like yet.
[Motorola Atrix 2] troycarpenter:
Good work, BTW.

I'm wondering about the root partition remount. Isn't webtop contained completely in the /osh partition, and isn't that mounted rw? What is apt-get/synaptic trying to write outside of the /osh partition?

I don't remember having to do that for the Atrix OG. If it is absolutely necessary, then can it be put into one of the start-oshwt-* scripts?
[Motorola Atrix 2] jimbridgman:
You are confusing the fact that 2 different OS's are running here, so yeah /osh is mounted as read write in Android, but / in the Ubuntop install is by default mounted read only. I think that the fstab may need to be fixed for that, but I have had issues with editing their version of the file and getting it to stick. I will take a look at it and see what I can come up with, for an automount of / in rw.
[Motorola Atrix 2] NighTalon:
Potential to Cause Reboot-Loop

Hey all,

I first followed this guide on a factory 2.3.6 rooted install with lazy one-click root. I had to get BusyBox, but I did not see that I needed 1.9.3/1.9.4 until late in the thread. Similarly, older versions tend to install in /usr/xbin instead of /usr/bin. Note that su is almost always installed in /usr/xbin instead of /usr/bin. I think it may have also been a problem that

The first time, the install seemed to succeed except for the tar permissions errors at the end. Then upon running webtop (and using a Milestone to send Ctrl and Alt since my mini BT keyboard didn't seem to have its super-keys recognized) I got the "gnome-terminal not found" error.

The following time I had all of my BusyBox and su ducks in order, and again got the same tar permissions error.

This is when the reboot loops started happening, every successive time I'd try to install the script, both on 2.3.5 and 2.3.6. Perhaps it was an FXZ flashing issue, but the phone seemed otherwise normal.

Once the script just hung (using a strange version of ADB on Windows) and I had to uncheck and check Development Mode

Anyway, I commend Jim for his Linux expertise, his enthusiasm, and his compassion, but problems executing this script more or less wasted 8 hours of my life. :-( I just want full-featured Ubuntu on a phone! Is that so much to ask? ;-)
[Motorola Atrix 2] Light_Soul:
I want ubuntu at ICS LEAK 4.0.4 very much..because I`m in Russia, and I want to have a russian input keyboard.
[Motorola Atrix 2] jimbridgman:
Be patient!

I am working on getting ubuntu back for webtop for ICS... but the "Official" OTA has not even been released yet. I am working on things using the leak, but that is no guarantee... So, again just hang tight, I am working in the background to bring the ubuntu webtop back from the dead.
[Motorola Atrix 2] Alperon:
I'm glad you're already working on this! I was heading over to this thread to ask about Ubuntu on the ICS leak.

If you need testers or have anything else I could do to help just let me know, I have a Lapdock that is very disappointed with Webtop 3.0 and would love to test out anything you cook up.
[Motorola Atrix 2] souljaboy:
this was my biggest concern too, the webtop system didnt have international keyboard layout, its fine with 3.0 though, because every integrated(and preinstalled keyboard layout works on external keyboard too.
[Motorola Atrix 2] redeyedjedi:
Does the kernel in the ICS leak have loop back support, to run a chrooted linux? Im assuming this is how it was done in webtop, but is the loop back support still there?
[Motorola Atrix 2] jimbridgman:
Well it is not the android kernel that is the issue, it is all missing parts in the ICS leak that make it not possible at the moment. I am working on something as I have mentioned before to bring ubuntu back for webtop. but I am not ready to give any real details yet.

If you do a chroot env. you will be doing it via a VNC connection and running it like that, rather than the webtop client like we had before.
[Motorola Atrix 2] redeyedjedi:
Hey jim, I know you are a busy guy but if you find the time, I would like to know a couple of things. I have searched, and I have found out about "ubuntop" and other similar threads, but there is one thing I cannot figure out. If webtop, in its ubuntu form, is not run chroot, how does it run?? does it run natively using the same kernel as GB? does the phone reboot and load another kernel? Or is it in fact some form of chroot? I would like to port this to my gtab, which although it is old, has a dual core processor. I have seen that the universal ubuntop only works on Motorola phones, but cannot figure out why. Seeing that you have ported it to ICS makes me think it should be possible to port it to another brand of device other than Motorola. Is there a secret thread that I cannot find which explains all this? I prefer to read before I ask questions so I do not look dumb, but I just cant find info on exactly how webtop boots ubuntu, or why it cannot be done with any other device that has comparable hardware. Ill read 100 pages about it if I could find it. attempts to search xda have failed as I cannot pick the right keywords.
[Motorola Atrix 2] jimbridgman:
No, it is a motorola only thing. They (Moto) took the ubuntu for arm, and wrapped the needed parts into the phones kernels (it is basically running a VM) for the phones that support webtop, then they implement the ubuntu kernel in a zimage that is loaded by a "special" software BL that is loaded with the dock apps or the hacks, and those call the scripts that will load the zimage into running memory then it takes over cpu1 as the locked device in the kernel while it is running and in sleep mode.

So it is all built into moto's kernel, and then the other needed parts are all there, but the needed the parts that are in the kernel to allow everything to properly run.

If you do a chrooted env for your tab, which you will have to, you will be using the VNC method similar to the ubuntu for android project.

The reason you won't find enough on the webtop thing is becuase it is really a moto patented envronment, and why only moto devices had it.

The ONLY reason I am able to port it to ICS is because moto has left all the needed parts in the kernel and their doc apps to make it still work right.
[Motorola Atrix 2] troycarpenter:
So let me ask the explicit question...When you finally release this, will it disable tablet mode (I know, Moto still calls it webtop mode), or work in conjunction with it? Meaning, do I have to permanently chose between the two webtops, or can I get the mode picker to give me the choice between tablet mode or ubuntu when I dock?

Thanks for all the hard work. I'm actually starting to like the tablet mode, so I would have to think hard about using old webtop.
[Motorola Atrix 2] jimbridgman:
right now it is just one or the other, if you do my hack tablet mode will be gone. I guess I could try and figure out a way to give you a choice, since I have not actually completely finished it yet. Let me see what I can come up with before I make any promises.
[Motorola Atrix 2] troycarpenter:
Now it's my turn to say it...you are the man! If I had to choose between the two, I probably would stick with tablet mode...but if I have a choice at runtime, then I would definitely do the mod! BUT, don't knock yourself out or delay release trying to figure it out.
[Motorola Atrix 2] Light_Soul:
Jim, do you have any news about ubuntu for our webtop?
[Motorola Atrix 2] :
I have a question out of curiousity, would it be possible to integrate this hack into the upgrade to ICS roms? Considering it upgrades webtop, would it be possible to replace to files so that it installs a linux friendly system if the partitions are already in place on the SD?
[Motorola Atrix 2] redeyedjedi:
OP is working on doing exactly this as we speak.
[Motorola Atrix 2] :
That's amazing!! I will await patiently, but anxiously.
[Motorola Atrix 2] :
Add me to the list of new lapdock owners (running rooted OTA) that would love to be able to use this mod.

Thank you so much for everything you do for this community, Jim. It's people like you that make me stay with this phone, this ecosystem. Big kudos to you.
[Motorola Atrix 2] marnold425:
I would love to do this if only it were as easy as partitioning and flashing a zip looks like wayyyyyyy too much just to use the lapdock as a somewhat desktop and having to adb everytime i reboot is kinda a no go for me
[Motorola Atrix 2] marnold425:
When I get down to running this line of the code I get this error

sh ./setup_webtop.sh

./setup_webtop.sh[119]: .: /osh/upath.sh: not found

root@edison:/data/local #
[Motorola Atrix 2] eetu1923:
a few hints

well after sadly not being able to ship my test device to Jim, it got shelved and i just now am tinkering with it trying to put the ubuntu webtop on it..

so after some tries i found out some things that may not be clear for anyone still trying this ( if any)..

1.- you have to be on GingerBread for it to work

2.- you have to be rooted

3.- you have to install busybox 1.20 on it or the adb commands wont work.

Well at this point i have to say some things i perosnaly did, and happenned to me.. first i went back from the JellyBean leak 3 update to GingerBread for this to work. ( this can only be done on an unlocked bootloader and im a lucky test device).

for some reason in gingerbread when i connect the lapdock the webtop app starts fine and then after 5 seconds or so it goes to a big M screen saver and the phone goes back to phone mode.. this didnt happenned on the JB leak and webtop worked fine..

so even if i managed to run Jim script here.. i cant download the desktop from synaptic or anything ause the webtop just goes bak to phone mode for no reason.. and i cannot find a way to fix this..
[Motorola Atrix 2] eetu1923:
here is a video of what happens when i connect the lapdock.. https://www.youtube.com/watch?v=YdRek7scM9Y
[Motorola Atrix 2] eetu1923:
Ok so quick update.. i managed to put the phone on 2.3.5 after tinkering and finding out i had to:

1.- replace some files on the original stock image ( i could only find an ATT image by the way. InlineFlashing_edison_5.5.175.16_cfc_p3_APBP_CID285.xml

2.- After several tries i found out that after flashing the lockscreen got stuck if i didnt had a sim card inserted.. weird huh?.

so i re did everything again.. but the same thing happens.. first the webtop launches ok when i connect it with the lapdock but after 5 seconds it shuts off and the phone goes back to phone mode.. i just cannot find why is this happenning, sometimes it works ok though and i have tried doing the ctrl+alt+T to het the temrinal and i get an error saying the temrinal is nowhere to be found.. I did saw a not linkable message while the script was running... any help guys?..
[Motorola Atrix 2] eetu1923:
well i tried again and again.. but the script keeps giving me that unlinkable error at the end when it wants to reboot.. so i reboot it manually..

so far the other errors are gone, busybox 1.19 gets rid of some other small errors in the script.. the end result now is.. well the webtop doesnt load this time.. but im guessing im close to something because it tries to load and the screen stays black.. the thing is that the webtop error shown in the video above is still happening even though the webtop doesnt show... it just waits 5 seconds and goes back to the phone.. showing only a big red M on the lapdock screen..
[Motorola Atrix 2] voodoomurphy:
Sitting Tight. Thanks Jim!
[Motorola Atrix 2] woodview:
setup_webtop.sh

hi

Thanks for this easy to use intruction guide (im a noob)

however im having a problem that i cant get pased, everything has gone fine (except i had to exstract the webtop archive my self on my laptop then push each file via adb)

when i use the command :

sh ./setup_webtop.sh

i get the following error:

sh ./setup_webtop.sh

permission denied

Can you help me get pased this stage

i have su access

Thanks
[Motorola Atrix 2] voodoomurphy:
I'd wait for Jim to respond, but I'd imagine you might have to CHMOD the file. Out of curiosity, why did you have to extract the files on your laptop?
[Motorola Atrix 2] jimbridgman:
You will have to do the following:

Run everything from the command line after Code, until End Code. Voodoomurphy is correct, you need to make the script executable.

Code:

adb shell

su

chmod 755 setup_webtop.sh

sh ./setup_webtop.sh

End Code
[Motorola Atrix 2] woodview:
Hi,

I had to do this on my laptop as my motorola atrix g4 did not have the tar command.

I have also tried chmod the file but still did not work.

Any Ideas?
[Motorola Atrix 2] jimbridgman:
Sounds like you either don't have root, or you don't have busybox installed.

You must have both root and busybox installed on your atrix2

What was the output from the script? Did chmod work, or did that error out.
[Motorola Atrix 2] woodview:
The output of chmod is

$su

#chmod 755 setup_webtop.sh

Chmod 755 setup_webtop.sh

#su

#sh ./setup_webtop.sh

Permission denied

---------- Post added at 01:08 PM ---------- Previous post was at 01:02 PM ----------

I have just installed busy box from the android market, i will try again, havent got my laptop with me but i have a terminal emulater on my phone

---------- Post added at 02:05 PM ---------- Previous post was at 01:08 PM ----------

Hi Again, thanks for the info so far.

after install of busybox i get the following after typing sh ./setup_webtop.sh:

welcome, webtop will setup to run off your sdcard, and you will be allowed to install programs from the ubuntu install that is hidden in there after this is done. sit back this will all take a while ==============================================

finding the partition you setup and formated to ext3.....

copying the script that will mount the osh partition on your sdcard at every boot.

[: missing]

mounting your sdcard linux partition so that we can copy over the webtop install to it

[: missing]

[: 45840: unknown operand

your sdcard did not mount properly; please send the log to the author of this script

#

END

how do i get the log?

i formated my sd card as primary ext3 via linux ubuntu on my laptop then placed it into my phone, the phone said unsuported sdcard but after running this script and got the message above my phone no longer says i have a unsupported sdcard so i ran the script again and got the same output after a phone reboot, could this error be due to me running the script from a terminal emulater i downloaded from the android market? I will aslo try this later today when i get to my laptop and run it via adb.exe
[Motorola Atrix 2] woodview:
Hi

Just ran it via adb.exe and here is the entire lot:

C:\Users\BT5\Desktop\ubuntu-1.0.6>adb push webtop_unlock.tar /data/local

408 KB/s (20480 bytes in 0.049s)

C:\Users\BT5\Desktop\ubuntu-1.0.6>adb shell

$ su

su

# cd /data/local

cd /data/local

# tar -xvf webtop_unlock.tar

tar -xvf webtop_unlock.tar

mountosh

mountosh1

setup_webtop.sh

# chmod 755 setup_unlock.sh

chmod 755 setup_unlock.sh

Unable to chmod setup_unlock.sh: No such file or directory

# chmod 755 setup_webtop.sh

chmod 755 setup_webtop.sh

# sh ./setup_webtop.sh

sh ./setup_webtop.sh

Welcome, webtop will be setup to run off your sdcard, and you will be allowed to

install programs from the ubuntu install that is hidden in there after this is

all done. Sit back this will all take a while. =================================

=========================

Finding the partition you setup and formatted to ext3....

Copying the scripts that will mount the osh partition on your sdcard at every bo

ot.

[: missing ]

Mounting your sdcard linux partition so that we can copy over the wetop install

to it

[: missing ]

[: 45840: unknown operand

Your SD card did not mount properly; Please send the log to the author of this s

cript

#
[Motorola Atrix 2] jimbridgman:
Ok, lets start over and try it again. Run the following from the command line, from Code: to End code.

Code:

adb shell

su

cd /data/local

rm ./mountosh

rm ./mountosh1

rm ./setup_webtop.sh

rm ./mbm.tar.bz2

rm ./webtop_unlock.tar

rm webtop_setup.log

exit

exit

End code

Now remove the webtop_unlock.tar from your computer, and go back to the OP and start from there again, you don't need to reformat your SDcard, so don't that part.

IT is very important that you go re-download the webtop_unlock.tar again, I think it somehow got corrupted. I just ran this last night on my replacement warranty exchanged atrix2 and it ran as expected, So I am guessing it is something odd like a corruption. It is also VERY important to follow every step very closely.

If you have the same issue again, I will have you run some commands and give me the output, to see what is up, at that point.

P.S. the logfile is in /data/local and is called webtop_setup.log
[Motorola Atrix 2] woodview:
Hi Jim,

Thanks for your help so far.

i removed it all as you said and re-downloaded the tar file, i noticed my last download was 20k and this one was 22mb, here is my outcome:

C:\Users\BT5\Desktop\ubuntu-1.0.6>adb push webtop_unlock.tar /data/local

1084 KB/s (23111680 bytes in 20.819s)

C:\Users\BT5\Desktop\ubuntu-1.0.6>adb shell

$ su

su

# cd /data/local

cd /data/local

# tar -xvf webtop_unlock.tar

tar -xvf webtop_unlock.tar

setup_webtop.sh

mountosh1

mountosh

mbm.tar.bz2

# chmod 755 setup_webtop.sh

chmod 755 setup_webtop.sh

# sh ./setup_webtop.sh

sh ./setup_webtop.sh

Welcome, webtop will be setup to run off your sdcard, and you will be allowed to

install programs from the ubuntu install that is hidden in there after this is

all done. Sit back this will all take a while. =================================

=========================

Finding the partition you setup and formatted to ext3....

Copying the scripts that will mount the osh partition on your sdcard at every bo

ot.

[: missing ]

Mounting your sdcard linux partition so that we can copy over the wetop install

to it

[: missing ]

[: 45840: unknown operand

Your SD card did not mount properly; Please send the log to the author of this s

cript

#

just a heads up on my partition layout, i have a 8gb sdcard, first partition is 5gb at the start of the card in ext3 set as primary, then have the rest as a fat32 partition as primary.
[Motorola Atrix 2] jimbridgman:
Ok, this will not be fun, but we are going to have to try a few commands and see what they return, to know where to go next, I need you to post the output for me.

Code:

adb shell

su

cd /data/local

ls -l

ls -l /system/bin/mountosh

ls -l /system/bin/mountosh.orig

/system/bin/fdisk -l /dev/block/mmcblk0 | grep -i linux

/system/bin/fdisk -l /dev/block/mmcblk1 | grep -i linux

which busybox

exit

exit

End code

I think that should get me enough to see what is going wrong.