树莓派购买

建议前往淘宝店搜索考前的购买或者树莓派官网购买

piOS的安装

下载raspberrypiOS
下载piOSimager

更换镜像源

修改/etc/apt/sources.list

1
2
3
4
5
6
#deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi

deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi

修改/etc/apt/sources.list.d/raspi.list

1
2
3
4
5
6
#deb http://archive.raspberrypi.org/debian/ buster main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ buster main

deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui

执行命令

1
sudo apt update

下载Minecraft服务端

forge

下载forge
右键复制installer的链接,删去“https://adfoc.us/serve/sitelinks/?id=271228&url=”然后在终端wget 刚才的链接

fabric

fabric使用wget下载安装器安装

安装Minecraft

安装java

1
sudo apt install default-jdk

启动Minecraft

1
java -jar 服务端名称.jar nogui

服务器会停止,然后编辑eula.txt,把false改成true
再次运行服务端