Guest User

Untitled

a guest
Feb 11th, 2021
5,118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. _______ _ _______ _________ _______
  2. |\ /|( ___ )( \ |\ /|( ____ \\__ __/( )
  3. | ) ( || ( ) || ( | ) ( || ( \/ ) ( | () () |
  4. | | | || (___) || | | (___) || (__ | | | || || |
  5. ( ( ) )| ___ || | | ___ || __) | | | |(_)| |
  6. \ \_/ / | ( ) || | | ( ) || ( | | | | | |
  7. \ / | ) ( || (____/\| ) ( || (____/\___) (___| ) ( |
  8. \_/ |/ \|(_______/|/ \|(_______/\_______/|/ \|
  9.  
  10. ## Hardware Requirements
  11.  
  12. Need 2 cores / vcores and 2Gb of RAM. I recommend 4Gb.
  13.  
  14. ## Hosting a dedicated Valheim server on linux debian
  15.  
  16. apt-get update -y
  17. apt-get upgrade -y
  18.  
  19. mkdir /opt/steam
  20. mkdir /opt/steam/valheim
  21.  
  22. apt-get install lib32gcc1
  23.  
  24. adduser steam
  25.  
  26. su -ls /bin/bash steam
  27. cd ~
  28.  
  29. wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
  30. tar xf steamcmd_linux.tar.gz
  31.  
  32. ./steamcmd.sh +quit
  33.  
  34. exit
  35.  
  36. ## logged back as root
  37.  
  38. chown steam:steam -Rf /opt/steam
  39.  
  40. ## log back as steam user
  41.  
  42. su -ls /bin/bash steam
  43. cd ~
  44.  
  45. ## Install the server files
  46.  
  47. ./steamcmd.sh +login anonymous +force_install_dir /opt/steam/valheim +app_update 896660 validate +exit
  48.  
  49. exit
  50.  
  51. ## logged back as root
  52.  
  53. nano /etc/systemd/system/valheim.service
  54.  
  55. ###################################################################################
  56. [Unit]
  57. Description=Valheim Dedicated Server
  58.  
  59. [Service]
  60. User=steam
  61. Group=steam
  62. Environment="templdpath=$LD_LIBRARY_PATH"
  63. Environment="LD_LIBRARY_PATH=/opt/steam/valheim/linux64:$LD_LIBRARY_PATH"
  64. Environment="SteamAppId=892970"
  65. ExecStartPre=/home/steam/steamcmd.sh +login anonymous +force_install_dir /opt/steam/valheim +app_update 896660 validate +exit
  66. ExecStart=/opt/steam/valheim/valheim_server.x86_64 -name "TOCHANGE" -port 2456 -world "TOCHANGE" -password "TOCHANGE" -public 1 > /dev/null
  67. Restart=on-failure
  68.  
  69. [Install]
  70. Wants=network-online.target
  71. After=network-online.target
  72. WantedBy=multi-user.target
  73. ###################################################################################
  74.  
  75. systemctl enable valheim.service
  76.  
  77. systemctl daemon-reload
  78.  
  79. service valheim start
  80.  
  81. ###################################################################################
  82.  
  83. ## TO restart & update server
  84.  
  85. service valheim restart
  86.  
  87. ## TO stop server
  88.  
  89. service valheim stop
  90.  
  91. ###################################################################################
  92. Source : https://www.youtube.com/A1RM4X
  93. Video : https://youtu.be/482t7Q6mQAM
  94. ###################################################################################
  95.  
  96. SOFTWARES
  97.  
  98. Debian:
  99. https://www.debian.org/
  100.  
  101. Putty:
  102. https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
Advertisement
Add Comment
Please, Sign In to add comment