Advertisement
metalx1000

Xorg - X11 on Android with Debian Chroot - Notes

Jun 30th, 2014
3,061
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.55 KB | None | 0 0
  1. Kill Android GUI
  2. setprop ctl.stop media & setprop ctl.stop zygote
  3.  
  4. Restart Android GUI
  5. setprop ctl.start media & setprop ctl.start zygote
  6.  
  7. #mount chroot img;cd into folder and other mounts
  8. mount -o loop -t ext4 debian_arm.img deb
  9. cd deb
  10. busybox mount --bind /dev dev
  11. mount -t devpts devpts dev/pts
  12. mount -t proc proc proc
  13. mount -t sysfs sysfs sys
  14. chroot . /bin/bash
  15.  
  16. #and link fb0
  17. ln -s /dev/graphics/fb0 /dev/fb0
  18.  
  19. startx -- vt1 &
  20. #find display
  21. cd /tmp/.X11-unix && for x in X*; do echo ":${x#X}"; done
  22.  
  23. #set display
  24. export DISPLAY=:1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement