FORUMS
Remove All Ads from XDA

[APP] Linux-on-Android project (Complete Linux Installer)

2,889 posts
Thanks Meter: 1,815
 
Post Reply Email Thread
8th June 2012, 03:30 AM |#501  
Senior Member
Flag Redlands
Thanks Meter: 10
 
More
http://thomaspolasek.blogspot.ca/201...yboard_16.html

can we do something similar, but getting the touchscreen to work. all of this without VNC?
 
 
8th June 2012, 04:21 AM |#502  
smallba's Avatar
Senior Member
Flag Orange County, NY
Thanks Meter: 89
 
Donate to Me
More
Took some time to download and extract but i finally got Ubuntu 12(Full) up and running on my internal SD where it handles quite well. Tried the external first but the read/write was to slow to handle the image.




Sent from my eVO 4G LTEusing XDA Premium HD app
8th June 2012, 02:30 PM |#503  
Junior Member
Thanks Meter: 0
 
More
Smile
Ubuntu12 seems to run OK on my HP touchpad under CM9
8th June 2012, 07:08 PM |#504  
Member
Thanks Meter: 25
 
More
I tried installing ubuntu 12 full on my samsung galaxy s3 (rooted) with this app and did every step, but did not work. It seemed that the kernel did not support loop. Then i tried servel different kernels but still same error no loop. Then member68 said that he had ubuntu working on his samsung galaxy s3, rooted, omega 3.0
So i installed the latest rom omega 4.0 and still no loop with orginal script but with latest script i got this :
"ubuntu.sh[23]: cut: not found Error: This script requires root! Type: su 1|app_127@android:/sdcard/ubuntu # su app_127@android:/mnt/sdcard/ubuntu # sh ubuntu.sh ubuntu.sh[23]: cut: not found Error: This script requires root! Type: su 1|app_127@android:/mnt/sdcard/ubuntu #"

I am really getting agritated.... What the hell am i doing wrong? Only thing i can think of is that member68 got it working with omega 3 because maybe omega 3 has a kernel with loop and omega 4 does not, anyone?

Really appreciate all help!

Edit:

I edited the script and deleted the root part of the script.

Now i get this:

app_127@android:/ $ export PATH=/data/local/bin:$PATH
app_127@android:/ $ su
app_127@android:/ # cd /sdcard/ubuntu
app_127@android:/sdcard/ubuntu # sh ubuntu.sh
ubuntu.sh[25]: dirname: not found
Checking loop device... MISSING
Creating loop device... ubuntu.sh[110]: /data/data/com.zpwebsites.ubuntuinstall/files/busybox: cannot execute - Permission denied
FAILED
Error: Unable to create loop device!
1|app_127@android:/sdcard/ubuntu #
8th June 2012, 07:12 PM |#505  
Senior Member
Flag Dublin
Thanks Meter: 78
 
More
Quote:
Originally Posted by tiborr

I tried installing ubuntu 12 full on my samsung galaxy s3 (rooted) with this app and did every step, but did not work. It seemed that the kernel did not support loop. Then i tried servel different kernels but still same error no loop. Then member68 said that he had ubuntu working on his samsung galaxy s3, rooted, omega 3.0
So i installed the latest rom omega 4.0 and still no loop with orginal script but with latest script i got this :
"ubuntu.sh[23]: cut: not found Error: This script requires root! Type: su 1|app_127@android:/sdcard/ubuntu # su app_127@android:/mnt/sdcard/ubuntu # sh ubuntu.sh ubuntu.sh[23]: cut: not found Error: This script requires root! Type: su 1|app_127@android:/mnt/sdcard/ubuntu #"

I am really getting agritated.... What the hell am i doing wrong? Only thing i can think of is that member68 got it working with omega 3 because maybe omega 3 has a kernel with loop and omega 4 does not, anyone?

Really appreciate all help!


You need to install busybox by the look of it. Search market.
The Following User Says Thank You to barryflanagan For This Useful Post: [ View ] Gift barryflanagan Ad-Free
8th June 2012, 07:13 PM |#506  
RomWiz's Avatar
Recognized Themer
Flag Helsingborg
Thanks Meter: 1,204
 
Donate to Me
More
Does this work on LG Optimus black?

Skickat från min GT-I9300 via tapatalk 2
8th June 2012, 07:51 PM |#507  
Member
Thanks Meter: 25
 
More
Already have busybox but i will try other one..

Edit:

Aftet installing busybox again.
I now get the following:

app_127@android:/ $ export PATH=/data/local/bin:$PATH
app_127@android:/ $ su
app_127@android:/ # cd /sdcard/ubuntu
app_127@android:/sdcard/ubuntu # sh ubuntu.sh
Validating image checksum... ubuntu.sh[98]: /data/data/com.zpwebsites.ubuntuinstall/files/busybox: cannot execute - Permission denied
FAILED!
Error: Checksum failed! The image is corrupted!
1|app_127@android:/sdcard/ubuntu #
8th June 2012, 08:04 PM |#508  
Senior Member
Flag Dublin
Thanks Meter: 78
 
More
Quote:
Originally Posted by tiborr

Already have busybox but i will try other one..

Actually it looks like the Linux on Android app is pushing it's own busybox these days and it is maybe a bit broken. How many busybox binaries is enough on a phone? My answer would be one
8th June 2012, 08:16 PM |#509  
Member
Thanks Meter: 25
 
More
So now what? ;p
8th June 2012, 08:22 PM |#510  
Senior Member
Flag Dublin
Thanks Meter: 78
 
More
Quote:
Originally Posted by tiborr

So now what? ;p

I haven't seen the recent ubuntu.sh scripts, but I would see if you can change references to /some/weird/location/busybox (sorry, don't know the full path they are using) to just busybox so the script uses your other busybox install
8th June 2012, 09:34 PM |#511  
Member
Thanks Meter: 25
 
More
Quote:
Originally Posted by barryflanagan

I haven't seen the recent ubuntu.sh scripts, but I would see if you can change references to /some/weird/location/busybox (sorry, don't know the full path they are using) to just busybox so the script uses your other busybox install

I do not know how...

But this is in the script:

###########################################
# Ubuntu boot script V7 for Android #
# Built by Zachary Powell (zacthespack) #
# and Martin Møller (Tuxling) #
# Thanks to: #
# Johan (sciurius) #
# Marshall Levin #
# and to everyone at XDA! #
###########################################

###########################################
# This is a function we use to stop the #
# script in case of errors #
###########################################
error_exit() {
echo "Error: $1"
exit 1
}

###########################################
# Check for root #
###########################################
perm=$(id|cut -b 5)
if [ "$perm" != "0" ];then error_exit "This script requires root! Type: su"; fi
#mount -o remount,rw /dev/block/mmcblk0p5 /system

###########################################
# Set up variables #
###########################################
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 -n "Validating image checksum... "
busybox 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

###########################################
# 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... "
busybox 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

busybox losetup /dev/block/loop255 $imgfile
if [ $? -ne 0 ];then error_exit "Unable to attach image to loop device! (Image = $imgfile)"; fi

busybox mount -t ext2 /dev/block/loop255 $mnt
if [ $? -ne 0 ];then error_exit "Unable to mount the loop device!"; fi

# Verify the image was actually mounted by checking if $mnt/root folder is found
#if [ -d $mnt/root ]; then
# echo "Image mounted"
#else
# echo "Unable to mount image!"
# exit 1
#fi

###########################################
# Mount all required partitions #
###########################################
busybox mount -t devpts devpts $mnt/dev/pts
if [ $? -ne 0 ];then error_exit "Unable to mount $mnt/dev/pts!"; fi
busybox mount -t proc proc $mnt/proc
if [ $? -ne 0 ];then error_exit "Unable to mount $mnt/proc!"; fi
busybox mount -t sysfs sysfs $mnt/sys
if [ $? -ne 0 ];then error_exit "Unable to mount $mnt/sys!"; fi
busybox mount -o bind /sdcard $mnt/sdcard
if [ $? -ne 0 ];then error_exit "Unable to bind $mnt/sdcard!"; fi

###########################################
# Checks if you have a external sdcard #
# and mounts it if you do #
###########################################
if [ -d /sdcard/external_sd ]; then
busybox mount -o bind /sdcard/external_sd $mnt/external_sd
fi
if [ -d /Removable/MicroSD ]; then
busybox 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
busybox mount -o bind /storage $mnt/external_sd
fi

###########################################
# Sets up network forwarding #
###########################################
busybox sysctl -w net.ipv4.ip_forward=1
if [ $? -ne 0 ];then error_exit "Unable to forward network!"; fi
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
echo "Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:"
ifconfig eth0
echo " "

###########################################
# Chroot into ubuntu #
###########################################
busybox chroot $mnt /root/init.sh
if [ $? -ne 0 ];then error_exit "Unable to chroot into linux!"; fi

###########################################
# Shut down ubuntu #
###########################################
echo "Shutting down Ubuntu ARM"
for pid in `lsof | grep $mnt | sed -e's/ / /g' | cut -d' ' -f2`; do kill -9 $pid >/dev/null 2>&1; done
sleep 5
umount $mnt/sdcard
umount $mnt/external_sd
umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt
losetup -d /dev/block/loop255
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes