[MOD] Full Ubuntu on the Atrix (now fully automated: 4.1.26/4.1.52)

Status
Not open for further replies.

dicksteele

Inactive Recognized Contributor
Sep 4, 2010
3,808
2,741
253
California
No, it's actually chmod 6755 since it's setting u+s. What's a bug in there (and I'm about to upload a fixed version) is that /tmp/psneuter actually kills the connection immediately, so it can never return "PASS". I added in a user check afterward instead.
Cool. I try again after you upload..

EDIT: Downloaded and running. Creating filesystem now. Dupping /osh. Looking good.

Killer script.

I am way rusty at this. Makes me want to get fired as manager and go back to tech.

EDIT #2. Worked perfectly. Now for package installs. Great work !!!!
 
Last edited:

SS2006

Senior Member
Aug 23, 2008
1,641
105
0
London, Ontario
just to make sure i understand
this replaces webtop (if so that was my dream)
meaning when docked we havefull access to ubuntu with a mouse and keyboard (we can install chrome and whatever etc...and itll save our work state?
or is it replacing the actual android OS, or allowing one to use ubuntu over it.

do u have ne pics or videos
great work man :)
 

Sogarth

Retired Recognized Developer
Jan 14, 2006
503
361
0
just to make sure i understand
this replaces webtop (if so that was my dream)
meaning when docked we havefull access to ubuntu with a mouse and keyboard (we can install chrome and whatever etc...and itll save our work state?
or is it replacing the actual android OS, or allowing one to use ubuntu over it.

do u have ne pics or videos
great work man :)
See, that's the thing. There's not an entirely clear answer to that, because the webtop is running a locked-down Ubuntu. I'm just getting rid of the "locked-down" part of it. Mind you, one of the things I do intend on checking out is how chromium (the open-source version? base? of Chrome browser) is, among other things.

So, because it essentially is the webtop environment, it saves your work state in the same way that the webtop environment does. It's not able to save state between device reboots, however (again, the same restrictions as the webtop environment).

Sogarth:
Once you get the fully automated script that gets this bad boy running. I will donate big to you
You have my word on that
You know the funny thing? I'm one of those strange (and it seems increasingly diminishing in numbers) people on xda-dev who's not into donations. I'm doing it because I want to (since the Linux running on the Atrix was the primary reason I picked it up and I intended on making it mine from the start), and I'm being nice enough to help other people who want to do the same. :D That, and unlike the hardware folks, I don't plan on going through a dozen devices a year, so I don't need help to pay for that (rather expensive) habit. :p
 
  • Like
Reactions: G-Man. and tonman23

meta96

Senior Member
May 20, 2010
64
1
0
just to make it more clear

just to make sure i understand
this replaces webtop (if so that was my dream)
meaning when docked we havefull access to ubuntu with a mouse and keyboard (we can install chrome and whatever etc...and itll save our work state?
or is it replacing the actual android OS, or allowing one to use ubuntu over it.

do u have ne pics or videos
great work man :)
motorola atrix is still running android
motorola atrix webtop-environment is running ubuntu > but now in a new more open version

good job! no, it is an awesome job! :)
 

shawnbuck

Retired Recognized Developer
Feb 23, 2011
200
88
0
NY
Sogarth, have you had any luck in finding the right version kernel sources? I found Tegra & Tegra 2 sources on Nvidia's git repos, but only starting with 2.6.33-rc8 and up.
 

tonman23

Member
Oct 30, 2010
48
1
0
hmm i attempted to run the 0.7.1 batch file and it started doing its thing, next the i know the command prompt was gone and nothing was different when i hooked it into my tv.

I ran the batch file again and this is what i get if I say yes to resetting the file system:

Checking device state...
Obtaining temporary root access...
Waiting for root access to kick in...
A filesystem file already exists. Reset it? [n] y
Mounting the filesystem...
-------------------------------------
EXECUTION FAILED
Unable to mount the filesystem file.
-------------------------------------


this is what I get if I say no to resetting but yes to deleting it:

Checking device state...
Obtaining temporary root access...
Waiting for root access to kick in...
A filesystem file already exists. Reset it? [n] n
A filesystem file already exists. Delete it? [n] y
Deleting the filesystem file...
Checking free space...
Creating a filesystem file (this may take a while)...
Formatting the filesystem...
--------------------------------------
EXECUTION FAILED
Unable to format the filesystem file.
--------------------------------------


Any ideas?
 

blaxer

Member
Sep 17, 2007
34
3
0
Sogarth, you are the man in a major way. My Atrix is now as useful as I had envisioned it could be. Please let me know where to donate.
 

Sogarth

Retired Recognized Developer
Jan 14, 2006
503
361
0
hmm i attempted to run the 0.7.1 batch file and it started doing its thing, next the i know the command prompt was gone and nothing was different when i hooked it into my tv.

I ran the batch file again and this is what i get if I say yes to resetting the file system:

Checking device state...
Obtaining temporary root access...
Waiting for root access to kick in...
A filesystem file already exists. Reset it? [n] y
Mounting the filesystem...
-------------------------------------
EXECUTION FAILED
Unable to mount the filesystem file.
-------------------------------------


this is what I get if I say no to resetting but yes to deleting it:

Checking device state...
Obtaining temporary root access...
Waiting for root access to kick in...
A filesystem file already exists. Reset it? [n] n
A filesystem file already exists. Delete it? [n] y
Deleting the filesystem file...
Checking free space...
Creating a filesystem file (this may take a while)...
Formatting the filesystem...
--------------------------------------
EXECUTION FAILED
Unable to format the filesystem file.
--------------------------------------


Any ideas?
Hmm... I'm at work right now, so it's a bit tricky trying to get you a good response. Can you try the manual steps in post #4 up until it pulls rsync? That would include the losetup, mkfs, and mount steps. That should pinpoint where the problem is. Thanks!

Also, please note that this is not the same as the Webtop Via HDMI Without a Dock change, so this won't change what happens when you hook up your device to a television (although it should be able to live side-by-side with that modification).
 
Last edited:

tonman23

Member
Oct 30, 2010
48
1
0
Hmm... I'm at work right now, so it's a bit tricky trying to get you a good response. Can you try the manual steps in post #3 up until it pulls rsync? That would include the losetup, mkfs, and mount steps. That should pinpoint where the problem is. Thanks!

Also, please note that this is not the same as the Webtop Via HDMI Without a Dock change, so this won't change what happens when you hook up your device to a television (although it should be able to live side-by-side with that modification).
alright so I'm getting the following:

# /bin/dd if=/dev/zero of=/data/ubuntu.disk bs=1024 count=1048576
/bin/dd if=/dev/zero of=/data/ubuntu.disk bs=1024 count=1048576
1048576+0 records in
1048576+0 records out
# /sbin/losetup /dev/block/loop7 /data/ubuntu.disk
/sbin/losetup /dev/block/loop7 /data/ubuntu.disk
losetup: /dev/block/loop7: device is busy
 

Sogarth

Retired Recognized Developer
Jan 14, 2006
503
361
0
alright so I'm getting the following:

# /bin/dd if=/dev/zero of=/data/ubuntu.disk bs=1024 count=1048576
/bin/dd if=/dev/zero of=/data/ubuntu.disk bs=1024 count=1048576
1048576+0 records in
1048576+0 records out
# /sbin/losetup /dev/block/loop7 /data/ubuntu.disk
/sbin/losetup /dev/block/loop7 /data/ubuntu.disk
losetup: /dev/block/loop7: device is busy
Okay. This shouldn't be too hard to handle. Two more things, then - what gets returned when you run these two commands?
  • /sbin/losetup /dev/block/loop7
  • cat /proc/mounts
 

tonman23

Member
Oct 30, 2010
48
1
0
Okay. This shouldn't be too hard to handle. Two more things, then - what gets returned when you run these two commands?
  • /sbin/losetup /dev/block/loop7
  • cat /proc/mounts
# /sbin/losetup /dev/block/loop7
/sbin/losetup /dev/block/loop7
/dev/block/loop7: [b312]:26 (c220b83ae2fef0c024d6aaaedc1372dd)
# cat /proc/mounts
cat /proc/mounts
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mmcblk0p12 /system ext3 rw,relatime,data=ordered 0 0
/dev/block/mmcblk0p16 /data ext3 rw,nosuid,nodev,relatime,errors=continue,data=o
rdered 0 0
/dev/block/mmcblk0p15 /cache ext3 rw,nosuid,nodev,relatime,errors=continue,data=
ordered 0 0
/dev/block/mmcblk0p3 /pds ext2 rw,nosuid,noexec,relatime 0 0
/dev/block/mmcblk0p13 /osh ext3 rw,relatime,errors=continue,data=ordered 0 0
tmpfs /osh/lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0
varrun /osh/var/run tmpfs rw,nosuid,relatime,mode=755 0 0
varlock /osh/var/lock tmpfs rw,nosuid,nodev,noexec,relatime 0 0
securityfs /sys/kernel/security securityfs rw,relatime 0 0
/dev/block/mmcblk0p17 /preinstall ext3 ro,noatime,nodiratime,data=ordered 0 0
/dev/block/vold/179:18 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,
uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharse
t=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:18 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,rela
time,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,ioc
harset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
/dev/block/vold/179:33 /mnt/sdcard-ext vfat rw,dirsync,nosuid,nodev,noexec,relat
ime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,ioch
arset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-0 /mnt/asec/mobi.mgeek.TunnyBrowser-1 vfat ro,dirsync,nosuid,nodev
,noexec,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859
-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-1 /mnt/asec/com.wyse.pocketcloudfree-1 vfat ro,dirsync,nosuid,node
v,noexec,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso885
9-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-2 /mnt/asec/com.speedsoftware.rootexplorer-1 vfat ro,dirsync,nosui
d,nodev,noexec,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=
iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-3 /mnt/asec/com.devuni.flashlight-1 vfat ro,dirsync,nosuid,nodev,n
oexec,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1
,shortname=mixed,utf8,errors=remount-ro 0 0
/proc /osh/proc proc rw,relatime 0 0
/dev/block/dm-4 /mnt/asec/com.speedsoftware.sqleditor-1 vfat ro,dirsync,nosuid,n
odev,noexec,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso
8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-5 /mnt/asec/com.eamobile.nfsshift_na_wf-1 vfat ro,dirsync,nosuid,n
odev,noexec,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso
8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-6 /mnt/asec/xcxin.filexpert-1 vfat ro,dirsync,nosuid,nodev,noexec,
relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,short
name=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-7 /mnt/asec/com.madfingergames.SamuraiII-1 vfat ro,dirsync,nosuid,
nodev,noexec,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=is
o8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-8 /mnt/asec/com.com2us.HB3D-1 vfat ro,dirsync,nosuid,nodev,noexec,
relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,short
name=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-9 /mnt/asec/com.dgo.VitalPlayer-1 vfat ro,dirsync,nosuid,nodev,noe
xec,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,s
hortname=mixed,utf8,errors=remount-ro 0 0
 

Sogarth

Retired Recognized Developer
Jan 14, 2006
503
361
0
# /sbin/losetup /dev/block/loop7
/sbin/losetup /dev/block/loop7
/dev/block/loop7: [b312]:26 (c220b83ae2fef0c024d6aaaedc1372dd)
# cat /proc/mounts
cat /proc/mounts
... <snip> ...
... Wow. I didn't actually expect that anything would ever be using the 8th loopback device, which is why I picked that one as a static device. You're on AT&T, correct?

If you're willing to try an experiment, run /sbin/losetup from /dev/block/loop7 through to loop0 (reverse order) and find one where it's not attached to a device. At that point, edit ubuntu.bat and replace /dev/block/loop7 with the one you found. Caveats: the worst case should be that X won't start and adbd won't be available due to /osh not being mounted properly, but that's not likely and you can work around that by having an application like Android Terminal Emulator installed.

You could also run through the rest of the commands by hand, just picking a different loopback device than /dev/block/loop7 once you find one that's free, too.
 

Sogarth

Retired Recognized Developer
Jan 14, 2006
503
361
0

tonman23

Member
Oct 30, 2010
48
1
0
... Wow. I didn't actually expect that anything would ever be using the 8th loopback device, which is why I picked that one as a static device. You're on AT&T, correct?

If you're willing to try an experiment, run /sbin/losetup from /dev/block/loop7 through to loop0 (reverse order) and find one where it's not attached to a device. At that point, edit ubuntu.bat and replace /dev/block/loop7 with the one you found. Caveats: the worst case should be that X won't start and adbd won't be available due to /osh not being mounted properly, but that's not likely and you can work around that by having an application like Android Terminal Emulator installed.

You could also run through the rest of the commands by hand, just picking a different loopback device than /dev/block/loop7 once you find one that's free, too.
I am on AT&T. I will run this and report back.
 

tonman23

Member
Oct 30, 2010
48
1
0
... Wow. I didn't actually expect that anything would ever be using the 8th loopback device, which is why I picked that one as a static device. You're on AT&T, correct?

If you're willing to try an experiment, run /sbin/losetup from /dev/block/loop7 through to loop0 (reverse order) and find one where it's not attached to a device. At that point, edit ubuntu.bat and replace /dev/block/loop7 with the one you found. Caveats: the worst case should be that X won't start and adbd won't be available due to /osh not being mounted properly, but that's not likely and you can work around that by having an application like Android Terminal Emulator installed.

You could also run through the rest of the commands by hand, just picking a different loopback device than /dev/block/loop7 once you find one that's free, too.
I can't find a free loopback device?

# /sbin/losetup /dev/block/loop7
/sbin/losetup /dev/block/loop7
/dev/block/loop7: [b312]:26 (c220b83ae2fef0c024d6aaaedc1372dd)
# /sbin/losetup /dev/block/loop6
/sbin/losetup /dev/block/loop6
/dev/block/loop6: [b312]:22 (f282eaf309aab3c58a4812ab76812126)
# /sbin/losetup /dev/block/loop5
/sbin/losetup /dev/block/loop5
/dev/block/loop5: [b312]:25 (d6ff19a29138895404662d7dff7bfd7a)
# /sbin/losetup /dev/block/loop4
/sbin/losetup /dev/block/loop4
/dev/block/loop4: [b312]:28 (c563c01fe809a053d5801c99e55ac8cf)
# /sbin/losetup /dev/block/loop3
/sbin/losetup /dev/block/loop3
/dev/block/loop3: [b312]:29 (f9672f198e589a02c9d738b01516be84)
# /sbin/losetup /dev/block/loop2
/sbin/losetup /dev/block/loop2
/dev/block/loop2: [b312]:27 (7b437dd3fc4c166018ac49cc9006a01d)
# /sbin/losetup /dev/block/loop1
/sbin/losetup /dev/block/loop1
/dev/block/loop1: [b312]:23 (088ffe4aba111a31f89de6ddb1eb1be2)
# /sbin/losetup /dev/block/loop0
/sbin/losetup /dev/block/loop0
/dev/block/loop0: [b312]:30 (b21057058a9b2e446ee1175dd53b2c67)
 
Status
Not open for further replies.