Skip to content

Instantly share code, notes, and snippets.

@Cyang39
Last active November 17, 2024 09:20
Show Gist options
  • Save Cyang39/917f59062fc9d57302d94e3fc534fb16 to your computer and use it in GitHub Desktop.
Save Cyang39/917f59062fc9d57302d94e3fc534fb16 to your computer and use it in GitHub Desktop.
Termux PalWorld Server (Run PalWorld Server on android and no root required)

Run PalWorld Server on Android

Step.1 Install FEXDroid

gametra4u/FEXDroid

curl -o install https://raw.githubusercontent.com/gamextra4u/FEXDroid/main/install && chmod +x install && ./install

When login into proot, use ./rootfs to download rootfs for FEX.

Step.2 Create Normoal User

Sever is not allow to run as root, so we create a normal Linux user steam:

useradd -m -s /bin/bash steam

And we copy the rootfs to steam's HOME path (or just use mv if you want to save some space):

cp -rf ~/.fex-emu /home/steam/.fex-emu

Step.3 Install SteamCMD

Install SteamCMD:

mkdir /home/steam/Steam
cd /home/steam/Steam
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -

and update it:

su - steam
cd /home/steam/Steam
FEXBash
./steamcmd.sh

if you see steam>, that means things works ok.

Step 4. Install palworld server

this part you can just follow the official document:

./steamcmd.sh +login anonymous +app_update 2394010 validate +quit

after download success, run it:

cd /home/steam/Steam/steamapps/common/PalServer
./PalServer.sh

you may meet the problem like this:

.steam/sdk64/steamclient.so: cannot open shared object file: No such file or directory

Don't worry, Ctrl+C quit the server, and also follow the offical document:

mkdir -p ~/.steam/sdk64/
cd /home/steam/Steam
./steamcmd.sh +login anonymous +app_update 1007 +quit
cp ~/Steam/steamapps/common/Steamworks\ SDK\ Redist/linux64/steamclient.so ~/.steam/sdk64/

Restart server again ./PalServer.sh, it will works ok.

FAQ:

  1. How can I restart server
    • run proot-distro login ubuntu --user steam -- FEXBash /home/steam/Steam/steamapps/common/PalServer/PalServer.sh in termux
  2. Where is my save files
    • at /home/steam/Steam/steamapps/common/PalServer/Pal/Saved (in proot)
  3. How can I uninstall the server
    • clear termux's data and uninstall it
  4. How can I upgrade the server
    • same as download ./steamcmd.sh +login anonymous +app_update 2394010 validate +quit
  5. How to slove signal 9 error
  6. How is the running experience
    • running great on my SAMSUNG Z Fold 3 (12GB RAM)
@Levk39
Copy link

Levk39 commented Nov 16, 2024

Здравствуйте, это руководство не работает. Во-первых, rootfs не запускается корректно, я загружал из основного руководства. Во-вторых, на шаге 3 во время установки появляются ошибки: ./steamcmd.sh: line 20: ulimit: open files: cannot modify limit: Operation not permitted
./steamcmd.sh: line 37: /home/steam/Steam/linux32/steamcmd: cannot execute: required file not found

Can you fix it

@Cyang39
Copy link
Author

Cyang39 commented Nov 17, 2024

@Levk39

./steamcmd.sh: line 20: ulimit: open files: cannot modify limit: Operation not permitted

Can ignore it, my device also reports this error, but it does not affect program execution.

./steamcmd.sh: line 37: /home/steam/Steam/linux32/steamcmd: cannot execute: required file not found

Try executing the following installation command in FEX Emu:

JustaPenguin/assetto-server-manager#1119 (comment)

@Levk39
Copy link

Levk39 commented Nov 17, 2024

@Cyang39
I can't update packages: ity/main i386 Packages
404 Not Found [IP: 185.125.190.39 80]
Ign:30 http://ports.ubuntu.com/ubuntu-ports mantic-security/universe i386 Packages
Ign:31 http://ports.ubuntu.com/ubuntu-ports mantic-security/multiverse i386 Packages
Fetched 254 kB in 4s (67.7 kB/s)
Reading package lists... Done
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/mantic/main/binary-i386/Packages 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/mantic-updates/main/binary-i386/Packages 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/mantic-security/main/binary-i386/Packages 404 Not Found [IP: 185.125.190.39 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
root@localhost:~#

Also, the rootfs script doesn't want to work at all, it can't download files. also after installation when starting fexdroid Errors are coming:groups: cannot find name for group ID 20364 groups: cannot find name for group ID 50364 . There are also errors when restarting: on the photo
Screenshot_2024-11-17-11-19-52-030_com termux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment