时光2020

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  117 随笔 :: 0 文章 :: 9 评论 :: 17万 阅读

手机安装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

posted on   时光2020  阅读(133)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 在鹅厂做java开发是什么体验
· 百万级群聊的设计实践
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战
· 永远不要相信用户的输入:从 SQL 注入攻防看输入验证的重要性
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
点击右上角即可分享
微信分享提示