View Single Post
debernardis's Avatar
Posts: 2,142 | Thanked: 2,054 times | Joined on Dec 2006 @ Sicily
#4074
Originally Posted by mscion View Post
Very impressive! How about a candid shot of someone making a phone call with the Tab near their ear! Just Kidding...

Actually, I see you've had success putting Debian on the Tab. I'd like to try to do the same but on something like the SGH I927 when it comes out. Are there wikis with detailed instructions on doing such on Samsung devices. Do you need root to do thiis? It seems like ppl are generally having success rooting Galaxy. Is this so?
Thanks.

You definitely need root. For a guidance to prepare the image, see:
http://www.mayrhofer.eu.org/debian-on-android

My start script is:
Code:
 export kit=/sdcard
export mnt=/data/local/mnt
export TERM=linux
export HOME=/root

export USER=root

export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH

busybox clear

busybox mkdir -p $mnt

#busybox mount -o loop,noatime $kit/debian.img $mnt

busybox mount -t ext2 /dev/block/mmcblk1p2 $mnt



busybox mount -t devpts devpts $mnt/dev/pts
busybox mount -t proc proc $mnt/proc
busybox mount -t sysfs sysfs $mnt/sys

busybox mkdir -p $mnt/mnt
busybox mkdir -p $mnt/mnt/sdcard $mnt/mnt/system
busybox mkdir -p $mnt/mnt/data $mnt/mnt/dev

busybox mount -o bind /sdcard $mnt/mnt/sdcard
busybox mount -o bind /system $mnt/mnt/system
busybox mount -o bind /data $mnt/mnt/data
busybox mount -o bind /dev $mnt/mnt/dev
busybox mount -t tmpfs tmpfs $mnt/tmp -o noatime,mode=1777

busybox chroot $mnt /bin/bash&&/usr/bin/lxde

#After exit command is executed clear it all up
echo " "

echo "Shutting down Debian........"

umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt/mnt/sdcard
umount $mnt/mnt/system
umount $mnt/mnt/data
umount $mnt/mnt/dev
umount $mnt/tmp
umount $mnt
(Don't remind were I took it).

This way, you run Debian as root. I'd like to run as user, but unfortunately I'm also way too lazy; one day I'll take Qole's Easy Debian scripts and take the needed code from there.
__________________
Ernesto de Bernardis

 

The Following 6 Users Say Thank You to debernardis For This Useful Post: