安裝termux,安裝ubuntu,安裝java啟動mc服務(wù)器 教程
下載txt
https://wws.lanzouy.com/iqyZ609bfnqf
密碼:1000w
#安裝termux,不知道去哪下就去github搜
#換源
termux-change-repo
#進(jìn)去之后第1個頁面應(yīng)該是會讓你選擇儲存庫,以前的視頻有好多個,現(xiàn)在好像只剩一個了把他們都打上鉤然后按ok
#tsinghua#是北京清華大學(xué)
#BFSU#是北京外國語大學(xué)
#兩個選一個然后按OK就行
#刷新系統(tǒng)的軟件源,執(zhí)行完下面的命令后proot-distro可以help
pkg install proot-distro
#y/n就是問你要不要繼續(xù)
#安裝ubuntu系統(tǒng),命令末尾可以加系統(tǒng)版本號,不管他就是最新的
proot-distro imstall ubuntu
#裝完了之后下面有一行綠色的命令
proot-distro login ubuntu
#這是進(jìn)入系統(tǒng)的命令,這個時候你可以不急著進(jìn)去,你可以創(chuàng)建一個腳本,下一次進(jìn)入的時候只需要sh執(zhí)行一下就行
#如果不需要可以去90行
#root用戶# 你可以訪問
/data/data/com.termux/files/home/
在里面新建一個文件,名字越簡單越好,如a
打開文件,在里面輸入上面進(jìn)入系統(tǒng)的命令,保存后你就可以執(zhí)行 ?sh a ?進(jìn)入系統(tǒng)
#非root用戶36行/55行,推薦方法2#
#方法1 安裝vim
apt install vim
#如果失敗的話就執(zhí)行下面的命令然后再來一次
pkg install
#如果你不確定有沒有弄到什么奇怪的東西我推薦你exit一下,把軟件退出再進(jìn)去
#新建一個文件 [a]
mkdir a
#創(chuàng)建完成后vi編輯文件
vi a
#怎么編輯文件自行搜索(
#方法2 ?使用↓命令,這將會讓軟件申請訪問儲存權(quán)限然后使用[剪切/復(fù)制]命令
termux-setup-storage
#目錄在
cd /sdcard?
#官方鏈接
https://wiki.termux.com/wiki/FAQ
#有關(guān)片段
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
###############################
#進(jìn)入ubuntu
#注意!如果你前面裝了vi,那么ubuntu里面也會有#
#更新一下軟件源
pkg install
#安裝java(18也可以改成別的版本,8-18都能裝,別的不清楚)
apt install openjdk-18-jdk
#(可選)如果你要使用neofetch查看系統(tǒng)狀態(tài)可以安裝
apt install neofetch
#進(jìn)入ubuntu后默認(rèn)地址在
/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/root/
#注意?。。。。。?!編輯服務(wù)器有關(guān)的文件夾,如剪切存檔,請注意權(quán)限問題
如果你想獲取root權(quán)限就直接執(zhí)行一下
sh
然后你就可以獲得權(quán)限了
#清空當(dāng)前屏幕的內(nèi)容
clear