FORUMS
Remove All Ads from XDA
Honor 7x
Win an Honor 7X!

[MOD] v0.3.1 Working Full Ubuntu for 1.5.7 and 1.8.3 based on Sogarth's script

464 posts
Thanks Meter: 590
 
By the2dcour, Senior Member on 11th April 2011, 07:59 PM
Thread Closed Email Thread
Sogarth's webtop2sd will be released soon, you really should wait and install that instead of this! Thanks -The Management
No longer breaks on 1.83, thanks to Romracer
Update: This script worked on my phone. Mind you I was installing it from a fresh SBF flash, but it should work on your phone too. Absolutely no guarantees as usual.
Update 11th April 2011, 06:59 PM: Won't be getting CWM package because it'd be huuuuuuuuuge.
Update 28th April 2011. 16:38 PM: Removing BETA tag since there have been no issues with the script for quite some time.

First off I would like to thank Sogarth for making this script in the first place as well as Romracer for fixing it for 1.83. Since he is busy doing more important work I decided to do this little hack for those of us that updated to 1.5.7 and dont feel like flashing back to earlier versions to get full Ubuntu working.

Again, this is only necessary if you're already running 1.5.7 or 1.8.3.

Secondly, I am still working on this script so it may not work for you. If you have a problem you may post in the thread or PM me showing exactly the error message, word for word, that you receive.

Updates will be included in the OP from time to time as I fix errors.

Instructions:
1) install.bat (from your computer)
2) adb shell (get a shell on your phone)
3) su (get root on your phone in that shell)
4) . /data/local/tmp/install.sh (run the install script *on your phone* don't forget the "." and the space after the dot, or you will have to chmod 755 the shell script manually)
5) ?????
6) profit\

Noob instructions, written by Viamonte (I take no credit or responsibility):
Thanks again for all your help. Now the noob instructions:

"1-Download "Terminal Emulator" from the market, on your phone (or any other terminal), and the file anexed in this thread to your computer.

2-Connect the Atrix to the computer via USB, configuring the connection mode to "None" and enabling USB Debugging mode (Settings>Applications>Development>USB debugging)

3-Unzip the file you downloaded on your pc, and run Install.bat. This will push the script to your phone.

4-Go back to your phone and open the emulator you downloaded. Then type "su" (without quotes) and press enter. Then type ". /data/local/tmp/install.sh" (without quotes) and press enter again.

The script should begin running now. It will stop in two moments where you'll be instructed to get a cup of coffee, and may take several minutes to continue form this point. When finished, the Atrix will reboot.

To check if this worked, use the Webtop either on your multimidia dock or your lapdock and verify if new itens appeared on your task bar and on the right upper side of the screen"

0.3.1 release
0.2 release
0.1 first release

Changelog
0.3.1 fix to gconf file's mdate so it does what its supposed to do =)
0.3 Small typo fixes and cpp package install fix by romracer, now works on 1.83 =)
0.2 Fixed some typos in uninstall.sh and make sure the %gconf file wound up in the right spot.
0.1 - first version. NOT CWM install but ready to be packaged for that more or less
The Following 12 Users Say Thank You to the2dcour For This Useful Post: [ View ] Gift the2dcour Ad-Free
 
 
11th April 2011, 08:00 PM |#2  
Member
Thanks Meter: 14
 
More
Nice, I'll give this a shot later.
11th April 2011, 08:05 PM |#3  
mafiaboy01's Avatar
Senior Member
Flag Toronto
Thanks Meter: 37
 
Donate to Me
More
Ill give it a shot when I get home!

Sent from Motorola Atrix on TELUS.
11th April 2011, 09:00 PM |#4  
Junior Member
Flag Gothenburg
Thanks Meter: 1
 
Donate to Me
More
My phone is working perfectly, so why not ruin it?

I'm giving this a try right now!

1.4.57 - Rooted and gingerblurred with HDMI Mirroring and Webtop hack.

I'll update as progress goes along:

Edit 1:
Initial try gave me this

Checking device state...
Obtaining temporary root access...pushing shell scripts
A filesystem file already exists. Reset it? [n] y
Mounting the filesystem...
07.sh
--------------------------------------------
EXECUTION FAILED
Unable to mount the filesystem file. ERR 07
--------------------------------------------
Press any key to continue . . .

Edit 2:
Ok, it doesnt work with resetting it. How about removing?

Checking device state...
Obtaining temporary root access...pushing shell scripts
A filesystem file already exists. Reset it? [n] n
A filesystem file already exists. Delete it? [n] y
Deleting the filesystem file...
--------------------------------------
EXECUTION FAILED
Unable to delete the filesystem file.
--------------------------------------
Press any key to continue . . .

Edit 3:
Ok, only one option left then.

Checking device state...
Obtaining temporary root access...pushing shell scripts
A filesystem file already exists. Reset it? [n] n
A filesystem file already exists. Delete it? [n] n
--------------------------------------------------------------------------
EXECUTION FAILED
The filesystem file already exists, but no operations have been selected.
--------------------------------------------------------------------------
Press any key to continue . . .

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

Edit 4:

Since execution is failing I'm trying to find the problem. Using ADB Shell i tried to manually run the shell scripts and stumbled here:

(I tried chmod 777 @ 02.sh to see if that was the problem, no change is results)

# ls -l
...
...
-rwsr-sr-x shell shell 87 2011-04-06 12:13 03.sh
-rwxrwxrwx shell shell 82 2011-04-06 12:11 02.sh
-rwsr-sr-x shell shell 251 2011-04-06 12:04 01.sh

# pwd
pwd
/data/tmp/shell

# /data/tmp/shell/02.sh
/data/tmp/shell/02.sh
/data/tmp/shell/02.sh: not found
11th April 2011, 09:07 PM |#5  
Senior Member
Flag Arizona
Thanks Meter: 113
 
More
I had the same issue as flybob when I tried to run the script.

Sent from my MB860 using XDA Premium App
11th April 2011, 09:14 PM |#6  
Ririal's Avatar
Retired Recognized Developer
Flag Grayslake
Thanks Meter: 398
 
Donate to Me
More
Good effort, but 1.57 changes how we have to run commands as root. On a normal linux box, I'm sure your methods would work fine, but we're not dealing with a normal su binary. You should look into doing this as CWM as opposed to .bat files. I had a hell of a time getting around the restrictions since the psneuter exploit was closed.
11th April 2011, 09:19 PM |#7  
the2dcour's Avatar
OP Senior Member
Flag Boston
Thanks Meter: 590
 
Donate to Me
More
Ah, I did not think about that Ririal, thanks for the info. I am not familiar with CWM though.

Why is the /tmp directory in /data ? That would certainly cause every script to fail.
I'll look at this some more tonight.
11th April 2011, 09:21 PM |#8  
molotof's Avatar
Member
Flag Virginia
Thanks Meter: 10
 
More
Quote:
Originally Posted by Ririal

Good effort, but 1.57 changes how we have to run commands as root. On a normal linux box, I'm sure your methods would work fine, but we're not dealing with a normal su binary. You should look into doing this as CWM as opposed to .bat files. I had a hell of a time getting around the restrictions since the psneuter exploit was closed.

How about a shell script that we can run in terminal emulator ? and the output goes to screen and a log file for debug !
11th April 2011, 09:28 PM |#9  
the2dcour's Avatar
OP Senior Member
Flag Boston
Thanks Meter: 590
 
Donate to Me
More
Quote:
Originally Posted by molotof

How about a shell script that we can run in terminal emulator ? and the output goes to screen and a log file for debug !

most of the script is now run by shell scripts, no reason you couldn't run them in the terminal emulator, just get the order right. There are also a few lines I didn't translate to shell so you'd have to enter them by hand.

In any case I'll keep working on this until Sogarth releases his version with union mounts =D
11th April 2011, 09:40 PM |#10  
Junior Member
Flag Gothenburg
Thanks Meter: 1
 
Donate to Me
More
You might be interested to know this;

# cd /tmp
cd /tmp

# pwd
pwd
/data/tmp



# ls -l /tmp
lrwxrwxrwx root root 2011-04-09 14:47 tmp -> /data/tmp


I'll happily help with the script, i know tons of linux and got my Atrix ready to be bricked
11th April 2011, 09:57 PM |#11  
Ririal's Avatar
Retired Recognized Developer
Flag Grayslake
Thanks Meter: 398
 
Donate to Me
More
Quote:
Originally Posted by flybob

You might be interested to know this;

# cd /tmp
cd /tmp

# pwd
pwd
/data/tmp



# ls -l /tmp
lrwxrwxrwx root root 2011-04-09 14:47 tmp -> /data/tmp


I'll happily help with the script, i know tons of linux and got my Atrix ready to be bricked

That's just a symlinked directory. I won't make a difference if you call either.
Thread Closed Subscribe to Thread

Tags
android atrix ubuntu mod
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes