android

安卓

May 15, 2018
android

将安卓手机用于开发 # Termux # 类似于WIN端的Subsystem——其实更像Ubuntu下的虚拟终端。 不过这东西功能强大,除了将安卓里的Linux发挥出来。还有Termux API来调用手机的底层接口。 XFCE4 # 步骤: 安装Termux 执行pkg update 执行pkg install git && git clone https://github.com/Yisus7u7/termux-desktop-xfce.git 执行cd termux-desktop-xfce && bash boostrap.sh 当然,3&4步可以合并为一句curl -sLf https://raw.githubusercontent.com/Yisus7u7/termux-desktop-xfce/main/boostrap.sh | bash VNC # 默认VNC只能通过localhost:1来连接,局域网不能访问。想用大屏来看就不是很方便。 # 先执行`vncserver`使用本机的`VNC Viewer`看看效果,主要是需要先设置一下密码 vncserver # 现在还无法通过局域网连接 # 去设置 cd ~/.vnc/ vim config # 打开最后一行注释 # 重新运行 vncserver -kill :1 vncserver 配置文件一览 # 将config文件最后一行的注释打开,即可 ## Supported server options to pass to vncserver upon invocation can be listed ## in this file. ...