全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1445|回复: 6
打印 上一主题 下一主题

[经验] 分享个 Oracle arm 搭建 幻兽帕鲁 服务端 教程

[复制链接]
跳转到指定楼层
1#
发表于 2024-1-24 15:41:28 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 5700pgf 于 2024-1-24 15:44 编辑

参考:https://github.com/TeriyakiGod/steamcmd-docker-arm64
文末有 Dockerfile 内容,或参考: https://github.com/TeriyakiGod/steamcmd-docker-arm64/blob/main/Dockerfile

随意路径新建并进入目录steamcmd,此处为家目录:
mkdir ~/steamcmd
cd ~/steamcmd

创建 Dockerfile 并将后面的 Dockerfile 内容贴进去,保存:
vi Dockerfile

编译:
docker build -t steamcmd-arm64 .

编译好后创建容器,端口可自行修改,连入后会自动更新,更新完输入 quit 退出:
docker run  --name steamcmd -p 8211:8211/udp -p 27015:27015/udp -it steamcmd-arm64
quit

再次启动容器:
docker start steamcmd

进入容器:
docker exec -it steamcmd /bin/bash

容器内执行:
FEXBash ./steamcmd.sh

STEAM命令行下执行:
login anonymous
app_update 2394010 validate
app_update 1007
quit

容器内执行:
mkdir -pv /home/steam/.steam/sdk64
ln -sv /home/steam/Steam/steamapps/common/Steamworks\ SDK\ Redist/linux64/steamclient.so /home/steam/.steam/sdk64/steamclient.so

启动帕鲁服务端并送到后台执行:
setsid FEXBash ./steamapps/common/PalServer/PalServer.sh




Dockerfile 内容:

  1. # Use the official Ubuntu 22.04 as the base image
  2. FROM ubuntu:22.04

  3. # Set environment variables to avoid interactive prompts
  4. ENV DEBIAN_FRONTEND=noninteractive

  5. # Install necessary dependencies
  6. RUN apt-get update && \
  7.     apt-get install -y \
  8.     git \
  9.     cmake \
  10.     ninja-build \
  11.     pkg-config \
  12.     ccache \
  13.     clang \
  14.     llvm \
  15.     lld \
  16.     binfmt-support \
  17.     libsdl2-dev \
  18.     libepoxy-dev \
  19.     libssl-dev \
  20.     python-setuptools \
  21.     g++-x86-64-linux-gnu \
  22.     nasm \
  23.     python3-clang \
  24.     libstdc++-10-dev-i386-cross \
  25.     libstdc++-10-dev-amd64-cross \
  26.     libstdc++-10-dev-arm64-cross \
  27.     squashfs-tools \
  28.     squashfuse \
  29.     libc-bin \
  30.     expect \
  31.     curl \
  32.     sudo \
  33.     fuse

  34. # Create a new user and set their home directory
  35. RUN useradd -m -s /bin/bash fex

  36. RUN usermod -aG sudo fex

  37. RUN echo "fex ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/fex

  38. USER fex

  39. WORKDIR /home/fex

  40. # Clone the FEX repository and build it
  41. RUN git clone --recurse-submodules https://github.com/FEX-Emu/FEX.git && \
  42.     cd FEX && \
  43.     mkdir Build && \
  44.     cd Build && \
  45.     CC=clang CXX=clang++ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DUSE_LINKER=lld -DENABLE_LTO=True -DBUILD_TESTS=False -DENABLE_ASSERTIONS=False -G Ninja .. && \
  46.     ninja

  47. WORKDIR /home/fex/FEX/Build

  48. RUN sudo ninja install && \
  49.     sudo ninja binfmt_misc_32 && \
  50.     sudo ninja binfmt_misc_64

  51. RUN sudo useradd -m -s /bin/bash steam

  52. RUN sudo apt install wget

  53. USER root

  54. RUN echo 'root:steamcmd' | chpasswd

  55. USER steam

  56. WORKDIR /home/steam/.fex-emu/RootFS/

  57. # Set up rootfs

  58. RUN wget -O Ubuntu_22_04.tar.gz https://www.dropbox.com/scl/fi/16mhn3jrwvzapdw50gt20/Ubuntu_22_04.tar.gz?rlkey=4m256iahwtcijkpzcv8abn7nf

  59. RUN tar xzf Ubuntu_22_04.tar.gz

  60. RUN rm ./Ubuntu_22_04.tar.gz

  61. WORKDIR /home/steam/.fex-emu

  62. RUN echo '{"Config":{"RootFS":"Ubuntu_22_04"}}' > ./Config.json

  63. WORKDIR /home/steam/Steam

  64. # Download and run SteamCMD
  65. RUN curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -

  66. ENTRYPOINT FEXBash ./steamcmd.sh
复制代码
2#
发表于 2024-1-25 01:01:49 | 只看该作者
这是用的x86的模拟器?速度咋样
3#
发表于 2024-1-25 09:12:46 | 只看该作者
感谢,周末去试试
4#
 楼主| 发表于 2024-1-25 09:39:20 | 只看该作者
shamemore 发表于 2024-1-25 01:01
这是用的x86的模拟器?速度咋样


必需要模拟,因为服务端的程序是X86的,无法直接在ARM上运行,服务器在韩国,我电信的网,延迟200多一点,玩了几十分钟,感觉延迟的影响不大,就是线路质量不好,不丢包的话我觉得是没问题的,今天打算把端口映射到香港的服务器上,减少延迟,增加稳定性。
5#
 楼主| 发表于 2024-1-25 09:41:27 | 只看该作者
cscool 发表于 2024-1-25 09:12
感谢,周末去试试

有人发了编译好的镜像,你直接拉镜像就行,不需要像我这个,从头编译
6#
发表于 2024-1-25 13:17:18 | 只看该作者
5700pgf 发表于 2024-1-25 09:41
有人发了编译好的镜像,你直接拉镜像就行,不需要像我这个,从头编译

哪里啊没找到,求一键脚本
7#
发表于 2024-1-25 13:21:31 来自手机 | 只看该作者
# curl -fsSL https://get.docker.com | bash git clone https://github.com/yumusb/palworld-server-docker-arm.git cd palworld-server-docker-arm docker compose up -d
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-4 07:16 , Processed in 0.062017 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表