该方法来自Termux&Linux交流群的群主Seraph
1 2 3 4
| root@localhost:~# find /usr/lib /usr/local/lib -name "libtiff.so.*" /usr/lib/aarch64-linux-gnu/libtiff.so.6 /usr/lib/aarch64-linux-gnu/libtiff.so.6.0.1 root@localhost:~# ln -s /usr/lib/aarch64-linux-gnu/libtiff.so.6 /usr/lib/aarch64-linux-gnu/libtiff.so.5
|
以下是termux X11常用命令
1 2 3 4 5 6 7 8 9
| #!/bin/bash export DISPLAY=:0 termux-x11 :0 &>/dev/null & sleep 1 openbox-session & startxfce4 &>/dev/null &
proot-distro login ubuntu --shared-tmp -- sh -c 'export DISPLAY=:0 && qq --no-sandbox'
|
以下是termux VNC常用命令
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| vncserver -kill :1 env|grep DISPLAY
vncserver :1 -localhost no -geometry 1600x720 wait export DISPLAY=:1 xhost + sleep 1
startxfce4 &>/dev/null &
proot-distro login ubuntu --shared-tmp -- sh -c 'export DISPLAY=:1 && qq --no-sandbox' proot-distro login ubuntu --shared-tmp -- sh -c 'export DISPLAY=:1'
apt update && apt upgrade -y
|