So easy a Viking can do it!
Explore the docs »
View Demo
·
Top 10 Server Issue Fixes
.
Report Bug
·
Request Feature
Table of Contents
I started this to help out the community and I did not think for a moment it would have taken off so quickly. If this script did help you get your Valheim server running, please star and share this with others! Should you need any help troubleshooting your Valheim Server visit me on Twitch or Discord.
- Twitch Channel: https://www.twitch.tv/zerobandwidth
- Discord for Tech Support https://discord.gg/ejgQUfc
Using my DigitalOcean Referral Link:
- Unsure you want a dedicated server?
- Using my code gives you 100USD credit for 60 days on DigitalOcean 😄
- This is a great way to test your Valheim server without a commitment!
- I pay for the 40USD a month 4CPU and 8GB RAM Droplet Server
- My Referral Link https://m.do.co/c/9d2217a2725c
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
- Cloud Hosting or Virtualization Service
Digital Ocean (Highly Recommended) AWS Azure Google Cloud Platform
- Ubuntu Install
Ubuntu 18.06 LTS 64bit and Ubuntu 20.04 LTS (tested 10 FEB 2021)
- Putty 64bit for Windows User
https://www.chiark.greenend.org.uk/~sgtatham/putty/
- WinSCP 64bit for Windows User
https://winscp.net/eng/download.php
- SSH into your newly Created VM
From your home computer, connect to your Ubuntu VM via SSH Using putty or another terminal is recommended If you can connect via Putty/Terminal, then you have setup firewall rules correctly
- Verify GIT and Net Tools is installed =
sudo apt-get install -y git net-tools
- Change directory to OPT for installation script =
cd /opt
- Download Easy Installer from Github - Nimdy (Zero Bandwidth) =
sudo git clone https://github.com/Nimdy/Dedicated_Valheim_Server_Script.git
- Change directory to Dedicated_Valheim_Server_Script =
cd Dedicated_Valheim_Server_Script/
- Give the script to execution permissions =
sudo chmod +x build_dedicated_valheim_server.sh
- Edit the build_dedicated_valheim_server.sh file and fill with your choice of information =
sudo vi build_dedicated_valheim_server.sh
# There are 4 things you need to change!
# NOTE: Minimum password length is 5 characters
# NOTE: Unique password and server name is REQUIRED
# NOTE: NO $ ' " in the passwords - you will break the script
userpassword='"user_password"' <---password for the new Linux User it creates
password='"passw0rd"' <---password for the Valheim Server Access
displayname='"server display name"' <---Public display name for server
worldname='"111111111"' <---local inside world name
#Save the file
(press ESC and save/exit by entering)
:wq!
- Execute build_dedicated_valheim_server.sh for installation =
sudo ./build_dedicated_valheim_server.sh
- User prompt for select new version of /boot/grub/menu.lst promotx2 or DHCP - Keep local versions =
Select keep the local version currently installed or No (default)
- User prompt for agreement of STEAM LICENSE AGREEMENT =
Select Ok
Select I Agree
Press Enter
- Allow ports 2456,2457,2458 (TCP/UDP) on your server (DO NOT OVER LOOK THIS STEP) This might take you a while, if you never done it before. Don't worry, members in my discord and myself can help troubleshoot later = If running in a Cloud Server, please check the WIKI for configuration steps.
- Stop Valheim service =
sudo systemctl stop valheimserver.service
- Reboot Server for the lawls! (Always good to reboot after installing something) =
sudo reboot
- Once your server comes back online wait 1-3 mins and check Valheim service =
sudo systemctl status valheimserver.service
Here is the complete walk through using DigitalOcean Services.
For more examples, please refer to the Documentation
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Your Name - @zerobandwidth - [email protected]
Project Link: https://github.com/Nimdy/Dedicated_Valheim_Server_Script