Valheim Server
-
Valheim Server on the Raspberry Pi
Source: pimylifeup.com or
singleboardbytes.com
-
Install Raspberry Pi OS 64 Bit (headless)
On Raspberry Pi 4 install Pi OS 64 Bit (headless) with Imager
-
box86 emulation software
sudo apt install git build-essential cmake
git clone https://github.com/ptitSeb/box86
or
get the latest “tagged” release
git clone --branch "v0.2.6" https://github.com/ptitSeb/box86
Extra Steps for 64-bit
sudo dpkg --add-architecture armhf
sudo apt update
sudo apt full-upgrade
sudo apt install gcc-arm-linux-gnueabihf libc6:armhf libncurses5:armhf libstdc++6:armhf
x86 Emulator
cd ~/box86
sudo mkdir build
cd build
sudo cmake .. -DRPI4ARM64=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
sudo make -j$(nproc)
takes some minutes
-
Install box86
sudo make install
sudo systemctl restart systemd-binfmt
sudo reboot now
-
Box64
git clone https://github.com/ptitSeb/box64.git
cd ~/box64
mkdir build
cd build
cmake .. -DRPI4ARM64=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j$(nproc)
takes some minutes
sudo make install
sudo systemctl restart systemd-binfmt
sudo reboot now
SteamCMD
mkdir /home/pi/steamcmd
cd /home/pi/steamcmd
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
Test
./steamcmd.sh
quit
Valheim Server
cd /home/pi/steamcmd
./steamcmd.sh +@sSteamCmdForcePlatformType linux +login anonymous +force_install_dir /home/pi/valheim_server +app_update 896660 validate +quit
takes some minutes again
Modify the start server script
sudo nano /home/pi/valheim_server/start_server.sh
find
./valheim_server.x86_64 -name "My server" -port 2456 -world "Dedicated" -password "secret"
replace with
./valheim_server.x86_64 -nographics -batchmode -port 2456 -public 0 -name "My Server Name" -world "MyWorldName" -password "MySecretPassword" -savedir "/home/pi/valheim_data"
Run Server
cd /home/pi/valheim_server/
./start_server.sh
Run as Service
sudo nano /etc/systemd/system/valheim.service
add lines:
[Unit]
Description=Valheim Dedicated Server
Wants=network-online.target
After=network-online.target
[Service]
Environment=SteamAppId=892970
Environment=LD_LIBRARY_PATH=/home/pi/valheim_server/linux64:$LD_LIBRARY_PATH
Type=simple
Restart=on-failure
RestartSec=10
KillSignal=SIGINT
User=pi
Group=pi
WorkingDirectory=/home/pi/valheim_server
ExecStart=/home/pi/valheim_server/valheim_server.x86_64 -nographics -batchmode -port 2456 -public 0 -name "My Server Name" -world "MyWorldName" -password "MySecretPassword" -savedir "/home/pi/valheim_data"
[Install]
WantedBy=multi-user.target
Enable
sudo systemctl enable valheim
Retrieve the status of the service
sudo systemctl status valheim
Port Forwarding
UDP for
2456
2457
2458
Server Update
if Steam updates client, the server has to updated too
-
stop the Valheim dedicated server
sudo systemctl stop valheim
-
update server
/home/pi/steamcmd/steamcmd.sh +@sSteamCmdForcePlatformType linux +login anonymous +force_install_dir /home/pi/valheim_server +app_update 896660 +quit
-
start server again
sudo systemctl start valheim
Server guides
shacknews
Valheim guide
gamesradar
Silver-guide
Werkbank
Wildschweine-zaehmen
Gemütlichkeit
Rüstung
How_to_Defeat_Moder
nebellande