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

34次阅读

共计 2522 个字符,预计需要花费 7 分钟才能阅读完成。

参考: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

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

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
正文完
 0