xrdp
1. Installare xrdp sulla macchina Linux
2. Installare l'applicazione “AccessToGo Remote Desktop/RDP” sul tablet ( https://play.google.com/store/apps/details?id=com.ericom.accesstogobyericom&hl=it). Nota: nell'applicazione bisogna modificare le impostazioni e attivare “Usare la scansione dei codici della tastiera”.
3. Eventuale: installare un windows manager leggero (es. fluxbox o blackbox) e creare il file .xsession nella propria home directory; nel file inserire il comando per lanciare il window manager scelto
Root
#!/bin/bash echo -n "Abilita Debug USB (Impostazioni -> Opzioni Sviluppatore -> Debug USB" echo -n "Abilita Debug USB (Impostazioni -> Sicurezza -> Origini sconosciute" read -p "Enter per continuare" adb push debugfs /data/local/ adb push su /data/local/ adb push debugfsinput /data/local/ adb shell mv /data/local/tmp /data/local/tmp.bak adb shell ln -s /dev/block/mmcblk0p1 /data/local/tmp adb reboot adb wait-for-device read -p "Enter per continuare" adb shell chmod 777 /data/local/debugfs adb shell "/data/local/debugfs -w /dev/block/mmcblk0p1 < /data/local/debugfsinput" adb shell rm /data/local/tmp adb shell mv /data/local/tmp.bak /data/local/tmp adb shell rm /data/local/su adb shell rm /data/local/debugfs adb shell rm /data/local/debugfsinput adb reboot adb wait-for-device read -p "Enter per continuare" adb install Superuser.apk
Required files are: adb tool from Android SDK and root300t.zip
Adapted from http://forum.xda-developers.com/showthread.php?t=1706588
Ubuntu image
#!/bin/sh sudo debootstrap --foreign --arch=armhf precise precise dd if=/dev/zero of=precise.img bs=1M count=0 seek=2000 sudo mkfs.ext2 -F precise.img mkdir precisetemp sudo mount -t ext2 precise.img precisetemp cd precisetemp sudo cp -r ../precise/* . cd .. sudo umount precisetemp/ tar czf precise.tar.gz precise.img rmdir precisetemp echo "Now push image with adb push precise.img /sdcard/precise.img" echo "Then run" echo "PATH=/bin:/sbin:/usr/bin:/usr/sbin:\$PATH chroot /data/local/mnt debootstrap/debootstrap --second-stage"
Boot
#!/system/bin/sh # TF300T Tablet Linux Boot Script # Date: 20 Aug 2012 # Author: Amos Brocco <amos.brocco@supsi.ch> # Version: 1.0 # inspired by http://forum.xda-developers.com/showthread.php?t=1585009 LOOPDEV=/dev/block/loop255 ROOTIMG=/sdcard/ubuntu.img ROOTMNT=/data/local/mnt function unmountAll() { for pid in `lsof | grep $ROOTMNT | sed -e's/ / /g' | cut -d' ' -f2`; do kill -9 $pid >/dev/null 2>&1; done sleep 5 umount $ROOTMNT/root/cfg 2> /dev/null umount $ROOTMNT/sdcard 2> /dev/null umount $ROOTMNT/dev/pts 2> /dev/null umount $ROOTMNT/proc 2> /dev/null umount $ROOTMNT/sys 2> /dev/null umount $ROOTMNT 2> /dev/null } function onError() { if [ $? -ne 0 ]; then echo "$1...Errore"; exit 1; else echo "$1...OK" fi } echo "Avvio..." echo -n "Pre-Pulizia..." unmountAll echo "OK" if [ ! -b $LOOPDEV ]; then mknod $LOOPDEV b 7 255; fi onError "Creazione device a blocchi" losetup $LOOPDEV $ROOTIMG onError "Setup periferica loop" mount -t ext2 $LOOPDEV $ROOTMNT onError "Montaggio immagine" mount -t devpts devpts $ROOTMNT/dev/pts onError "Montaggio devpts" mount -t proc proc $ROOTMNT/proc onError "Montaggio proc" mount -t sysfs sysfs $ROOTMNT/sys onError "Montaggio sys" if [ ! -d $ROOTMNT/sdcard ]; then mkdir $ROOTMNT/sdcard; fi mount -o bind /sdcard $ROOTMNT/sdcard onError "Montaggio sdcard" sysctl -w net.ipv4.ip_forward=1 &> /dev/null onError "Forwarding della rete" mount -o bind $(dirname $ROOTIMG) $ROOTMNT/root/cfg onError "Montaggio cfg" #PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PATH chroot $ROOTMNT /bin/bash ## /root/init.sh ubuntu.img chroot $ROOTMNT /root/init.sh ubuntu.img #chroot $ROOTMNT debootstrap/debootstrap --second-stage echo -n "Pulizia..." unmountAll if [ -b $LOOPDEV ]; then losetup -d $LOOPDEV 2> /dev/null; fi if [ -f $LOOPDEV ]; then rm $LOOPDEV 2> /dev/null; fi echo "OK"