安装termux,安装ubuntu,安装java启动mc服务器 教程
下载txt
https://wws.lanzouy.com/iqyZ609bfnqf
密码:1000w
#安装termux,不知道去哪下就去github搜
#换源
termux-change-repo
#进去之后第1个页面应该是会让你选择储存库,以前的视频有好多个,现在好像只剩一个了把他们都打上钩然后按ok
#tsinghua#是北京清华大学
#BFSU#是北京外国语大学
#两个选一个然后按OK就行
#刷新系统的软件源,执行完下面的命令后proot-distro可以help
pkg install proot-distro
#y/n就是问你要不要继续
#安装ubuntu系统,命令末尾可以加系统版本号,不管他就是最新的
proot-distro imstall ubuntu
#装完了之后下面有一行绿色的命令
proot-distro login ubuntu
#这是进入系统的命令,这个时候你可以不急着进去,你可以创建一个脚本,下一次进入的时候只需要sh执行一下就行
#如果不需要可以去90行
#root用户# 你可以访问
/data/data/com.termux/files/home/
在里面新建一个文件,名字越简单越好,如a
打开文件,在里面输入上面进入系统的命令,保存后你就可以执行 sh a 进入系统
#非root用户36行/55行,推荐方法2#
#方法1 安装vim
apt install vim
#如果失败的话就执行下面的命令然后再来一次
pkg install
#如果你不确定有没有弄到什么奇怪的东西我推荐你exit一下,把软件退出再进去
#新建一个文件 [a]
mkdir a
#创建完成后vi编辑文件
vi a
#怎么编辑文件自行搜索(
#方法2 使用↓命令,这将会让软件申请访问储存权限然后使用[剪切/复制]命令
termux-setup-storage
#目录在
cd /sdcard
#官方链接
https://wiki.termux.com/wiki/FAQ
#有关片段
How can I access device storage with Termux
Main Article: Internal and external storage
You need to grant a Storage access permission to application. We recommend to do that through command
termux-setup-storage
It will ask for permission and once it was granted, it will setup a symlinks in directory ~/storage to standard directories like DCIM, Download, etc.
Storage (shared) is usually accessible through:
/storage/emulated/0
/storage/self/primary
$HOME/storage/shared
External storage is restricted by Android OS. You can read files but cannot write them, except ones located in Termux private directory accessible through $HOME/storage/external-1. Termux cannot have write access to external storage like file manager applications do.
If you are on Android 11 and storage suddenly has become inaccessible, then revoke permission from Android settings and grant again
###############################
#进入ubuntu
#注意!如果你前面装了vi,那么ubuntu里面也会有#
#更新一下软件源
pkg install
#安装java(18也可以改成别的版本,8-18都能装,别的不清楚)
apt install openjdk-18-jdk
#(可选)如果你要使用neofetch查看系统状态可以安装
apt install neofetch
#进入ubuntu后默认地址在
/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/root/
#注意!!!!!!!编辑服务器有关的文件夹,如剪切存档,请注意权限问题
如果你想获取root权限就直接执行一下
sh
然后你就可以获得权限了
#清空当前屏幕的内容
clear