手机安装termux,安装OpenSSL设置登录启动sshd,安装nps启动 并安装anLinux在并安装Ubuntu
换源 termux-change-repo
获得手机存储权限termux-setup-storage
pkg install openssh -y
pkg install vim curl wget tree net-tools -y
vi /data/data/com.termux/files/usr/etc/termux-login.sh
##
## This script is sourced by /data/data/com.termux/files/usr/bin/login before executing shell.
##
if pgrep sshd > /dev/null
then
echo 'sshd is stared!'
else
sshd
echo 'start sshd!'
fi
if pgrep nps > ~/npslog.log
then
echo 'nps is stared!'
else
nohup nps >> ~/npslog.log 2>&1 &
echo 'start nps!'
fi
chmod u+x
使用anLinux安装Ubuntu安装Ubuntu桌面
完成后调整vnc分辨率
root@localhost:/usr/local/bin# cat vncserver-start
export USER=root
export HOME=/root
vncserver -geometry 1920x1080 -depth 24 -name remote-desktop :1
自启动如需使用服务管理需要安装 pkg install termux-services -y
详情请看
https://blog.csdn.net/YiBYiH/article/details/127294017
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 在鹅厂做java开发是什么体验
· 百万级群聊的设计实践
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战
· 永远不要相信用户的输入:从 SQL 注入攻防看输入验证的重要性
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析