Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _______ _ _______ _________ _______
- |\ /|( ___ )( \ |\ /|( ____ \\__ __/( )
- | ) ( || ( ) || ( | ) ( || ( \/ ) ( | () () |
- | | | || (___) || | | (___) || (__ | | | || || |
- ( ( ) )| ___ || | | ___ || __) | | | |(_)| |
- \ \_/ / | ( ) || | | ( ) || ( | | | | | |
- \ / | ) ( || (____/\| ) ( || (____/\___) (___| ) ( |
- \_/ |/ \|(_______/|/ \|(_______/\_______/|/ \|
- ## Hardware Requirements
- Need 2 cores / vcores and 2Gb of RAM. I recommend 4Gb.
- ## Hosting a dedicated Valheim server on linux debian
- apt-get update -y
- apt-get upgrade -y
- mkdir /opt/steam
- mkdir /opt/steam/valheim
- apt-get install lib32gcc1
- adduser steam
- su -ls /bin/bash steam
- cd ~
- wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
- tar xf steamcmd_linux.tar.gz
- ./steamcmd.sh +quit
- exit
- ## logged back as root
- chown steam:steam -Rf /opt/steam
- ## log back as steam user
- su -ls /bin/bash steam
- cd ~
- ## Install the server files
- ./steamcmd.sh +login anonymous +force_install_dir /opt/steam/valheim +app_update 896660 validate +exit
- exit
- ## logged back as root
- nano /etc/systemd/system/valheim.service
- ###################################################################################
- [Unit]
- Description=Valheim Dedicated Server
- [Service]
- User=steam
- Group=steam
- Environment="templdpath=$LD_LIBRARY_PATH"
- Environment="LD_LIBRARY_PATH=/opt/steam/valheim/linux64:$LD_LIBRARY_PATH"
- Environment="SteamAppId=892970"
- ExecStartPre=/home/steam/steamcmd.sh +login anonymous +force_install_dir /opt/steam/valheim +app_update 896660 validate +exit
- ExecStart=/opt/steam/valheim/valheim_server.x86_64 -name "TOCHANGE" -port 2456 -world "TOCHANGE" -password "TOCHANGE" -public 1 > /dev/null
- Restart=on-failure
- [Install]
- Wants=network-online.target
- After=network-online.target
- WantedBy=multi-user.target
- ###################################################################################
- systemctl enable valheim.service
- systemctl daemon-reload
- service valheim start
- ###################################################################################
- ## TO restart & update server
- service valheim restart
- ## TO stop server
- service valheim stop
- ###################################################################################
- Source : https://www.youtube.com/A1RM4X
- Video : https://youtu.be/482t7Q6mQAM
- ###################################################################################
- SOFTWARES
- Debian:
- https://www.debian.org/
- Putty:
- https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
Advertisement
Add Comment
Please, Sign In to add comment