安卓Termux用Ubuntu安装Miao-Yunzai(最后编辑于2023.8.13)
第一步先下载Termux:
链接:https://f-droid.org/packages/com.termux/
安装好后打开


接着输入
sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-main stable main@' $PREFIX/etc/apt/sources.list
(运行完此段再运行下一段)
apt update && apt upgrade
(把官方源替换为 TUNA 镜像源)


俩段执行完后接着输入执行
pkg install proot git python -y
执行完输入
git clone https://gitee.com/Le-niao/termux-install-linux.git
运行完接着
cd termux-install-linux
(转到安装目录)
输入
python termux-linux-install.py
安装Ubuntu


等待安装完成
输入
cd ~/Termux-Linux/Ubuntu
转到Ubuntu目录再输入
./start-ubuntu.sh
启动Ubuntu,接着输入
apt update
之后输入
apt install curl -y
安装curl
安装完成接着执行
curl -sL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y nodejs
(一行一行执行)
接着
apt-get install redis -y
redis-server --daemonize yes
然后
apt install chromium-browser -y
安装浏览器
apt install -y --force-yes --no-install-recommends fonts-wqy-microhei
安装中文字体
接着
apt install git -y
安装git

然后克隆yunzai项目
git clone --depth=1 https://gitee.com/yoimiya-kokomi/Miao-Yunzai.git
安装好后转到yunzai目录
cd Miao-Yunzai
然后安装喵喵插件
git clone --depth=1https://gitee.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/
最后输入
npm install pnpm -g
安装pnpm
然后
pnpm install -P
(这里请耐心等待完成)
安装依赖
执行完成后即可输入
node app
启动yunzai


之后启动Termux输入
cd ~/Termux-Linux/Ubuntu
./start-ubuntu.sh
redis-server --save 900 1 --save 300 10 --daemonize yes
cd Miao-Yunzai
node app
即可直接启动yunzai

即可直接启动yunzai
注意Termux要保持运行,不然机器人也会掉线
插件安装什么的,下次再写好了🌚🌚