Skip to content

Instantly share code, notes, and snippets.

@Regenhardt
Last active April 2, 2021 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Regenhardt/f349122c574d9d84ce52628ffd8bcf7d to your computer and use it in GitHub Desktop.
Save Regenhardt/f349122c574d9d84ce52628ffd8bcf7d to your computer and use it in GitHub Desktop.
sudo mkdir /home/steam/Valheim
cd /home/steam/Valheim
sudo /home/steam/steamcmd +login anonymous +force_install_dir /home/steam/Valheim +app_update 896660 validate +exit
sudo wget https://gist.githubusercontent.com/Regenhardt/29498e06af3c41091f53b6f8d7f3e1dc/raw/df2da2e4b6151dcb0ae33df2d2a88a4c329592a5/start_valheim.sh
cd /etc/systemd/system
sudo echo -e "[Unit]\nDescription=Valheim service\nWants=network.target\nAfter=syslog.target network-online.target\n\n[Service]\nType=simple\nRestart=on-failure\nRestartSec=10\nUser=steam\nWorkingDirectory=/home/steam/Valheim\nExecStart=/home/steam/Valheim/start_valheim.sh\n\n[Install]\nWantedBy=multi-user.target" > valheim.service
sudo chmod +x valheim.service
sudo systemctl daemon-reload
sudo systemctl start valheim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment