@yangxuan
2017-10-20T09:40:50.000000Z
字数 3322
阅读 5990
debian
android
pixel
yangxuan8282@gmail.com
I'm doing this on an old android tablet: malata zpad t8 (it is pretty same as viewsonic gtablet), which stock rom is 2.2, I will install debian + raspbian PIXEL desktop on it.
most command run as
root
we will use Debian Kit to install debian jessie
Download this http://sven-ola.commando.de/repo/debian-kit-1-6-testing.shar on android, e.g. : download to /mnt/sdcard/Download
then open terminal emulator, type:
su
this tablet can be rooted by z4root
then type:
sh /mnt/sdcard/Download/debian-kit-1-6-testing.shar
after installation:
deb
now you are in debian
sed -i 's/sven-ola.dyndns.org/sven-ola.commando.de/g' /etc/apt/sources.list.d/sven-ola.list
apt update && apt upgrade
apt install -y screen htop sudo openssh-server
after install
openssh-server
you can typedeb s
to start ssh server, then ssh into your android tablet on other devices, just copy&&paste the command below should enough
change mirrors to raspbian:
sed -i 's/^/#/g' /etc/apt/sources.list.d/sources.list
mv /etc/apt/sources.list.d/sources.list /etc/apt/sources.list.d/sources.list.orig
echo "deb http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi" | tee -a /etc/apt/sources.list.d/sources.list
echo "deb http://archive.raspberrypi.org/debian/ jessie main ui" | tee -a /etc/apt/sources.list.d/raspi.list
apt-key adv --keyserver keyserver.ubuntu.com --recv 82B129927FA3303E &&
apt-key adv --keyserver keyserver.ubuntu.com --recv 9165938D90FDDD2E
apt update &&
apt upgrade -y
apt install -y raspberrypi-ui-mods
apt install -y andromize
if got issues like: dpkg return error code
when try to install andromize
, fix with:
groupadd --system --gid 1004 input_new
and reinstall the packages, now command like curl
, wget
or git
will works
how to fix it: according to this pages, issues like
dpkg return error code
during post-installation can be debug with:
dpkg --configure -D 777 andromize
and it will tell you why post-installation failed, like group 1004 does not exist or user 1004 is not unique, so just add group or delete former user which take uid 1004
adduser pi
adduser pi sudo
bash -c 'echo "pi ALL=NOPASSWD: ALL" | (EDITOR="tee -a" visudo)'
apt-get install -y tightvncserver
su pi
vncserver
now the vnc server should running on 5901 port
check vncserver port with :
sudo netstat -lnp | grep vnc
(optional, with this we can view x11 on web browser)
steal from dataplicity document: https://docs.dataplicity.com/v1.0/docs/make-a-remote-graphical-interface-for-your-pi
apt install -y git websockify
git clone https://github.com/novnc/noVNC
if you got hostname can't resolve issues, just directly download it on android and copy it to your home dir
cd noVNC &&
./utils/launch.sh --vnc 127.0.0.1:5901 --listen 80
if you got this issues:
No module named pkg_resources
, then you can fix it with:
apt-get install --reinstall python-pkg-resources
then you can access the PIXEL desktop which running on your android tablet use
vnc viewer: TABLET_IP:5901
or
web browser: TABLET_IP
if you want to delete Debian installation:
su
deb u
/data/local/deb/uninstall
then delete debian.img
if you want more disk space, you can install Debian to sdcard:
su
check sdcard device numbers(something like /dev/block/vold/179:33
):
cat /proc/mounts
to check disk info:
df
install:
sh /mnt/sdcard/Download/debian-kit-1-6-testing.shar
after unpacked input nothing and press ENTER to abort, we need to install debian manually
/data/local/deb/mk-debian -a armhf -d jessie -i /dev/block/vold/179:33 -h
before next step, eject the sdcard if it's auto-mounted, and umount it:
umount /data/local/mnt
/data/local/deb/mk-debian -a armhf -d jessie -i /dev/block/vold/179:33
then you can install PIXEL desktop and tightvncserver