Last active
April 2, 2021 15:47
-
-
Save Regenhardt/f349122c574d9d84ce52628ffd8bcf7d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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