Dedicated_Valheim_Server_Script

Easy Valheim Installer to start your own Dedicated Server built on Ubuntu 20.04 LTS


Logo

ZeroBandwidth's Original Easy Valheim Installer

So easy a Viking can do it!
Explore the docs »

View Demo · How to Update your Server . Top 10 Server Issue Fixes . Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. Contact
  7. Acknowledgements

About The Project

Thumbnail

  • Added new EASY to use menu system for new and old users of the script - Enjoy
  • This Menu will also install your Server and do many many other things! Enjoy!
  • How to use: https://github.com/Nimdy/Dedicated_Valheim_Server_Script/wiki/How-to-use-the-Menu-Script
  • Old install process works just fine. (Until Loki Kills it)

I started this to help out the community and I did not think for a moment it would have taken off so quickly. Should you need any help troubleshooting your Valheim Server visit me on Twitch or Discord.

  • My production server is 6 days solid as of 18FEB2021)

  • In game time is 430+ days |* Zero issues, zero crashes, zero cases of corrupted data.

  • If you wish to Tip: https://www.patreon.com/zerobandwidth

  • 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 :smile:
  • 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

Built With

Getting Started

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.

Prerequisites

  • 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
    

*Nerd Stats:

Test results from lab envoriment
* Software: Linux Server disro.
* Hardware: 1CPU 1GB RAM 4GB Storage
* Recommended: 4CPU+ 16GB RAM 256GB Storage
--------------------------------------------
1-3  players 1 CPU 1GB RAM 4GB Storage
2-5  players 2 CPU 4GB    RAM 64GB  Storage
5-7  players 3 CPU 6GB    RAM 100GB Storage
8-10 players 4 CPU 8-16GB RAM 256GB Storage (16GB RAM+ for larger servers)
Network Connection 5 players 10MBps (up/down) Latency 1-20ms

Installation

  • 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
    
  1. Verify GIT and Net Tools is installed =
sudo apt-get install -y git net-tools
  1. Change directory to OPT for installation script =
cd /opt
  1. Download Easy Installer from Github - Nimdy (Zero Bandwidth) =
git clone https://github.com/Nimdy/Dedicated_Valheim_Server_Script.git
  1. Change directory to Dedicated_Valheim_Server_Script =
cd Dedicated_Valheim_Server_Script/
  1. Give the script to execution permissions =
sudo chmod +x build_dedicated_valheim_server.sh
  1. 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!
  1. Execute build_dedicated_valheim_server.sh for installation =
sudo ./build_dedicated_valheim_server.sh
  1. 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)
  1. Allow ports 2456,2457,2458 (TCP/UDP) on your server 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 =

(DO NOT OVER LOOK THIS STEP)

If running in a Cloud Server, please check the WIKI for configuration steps.

  1. Stop Valheim service =
sudo systemctl stop valheimserver.service
  1. Reboot Server for the lawls! (Always good to reboot after installing something) =
sudo reboot
  1. Once your server comes back online wait 1-3 mins and check Valheim service =
sudo systemctl status valheimserver.service
  • Did this help you? Please star it!
  • Do you want to add to this? Please fork it!

Usage

Here is the complete walk through using DigitalOcean Services.

For more examples, please refer to the Documentation

Thumbnail

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingIdea)
  3. Commit your Changes (git commit -m 'Add some AmazingIdea')
  4. Push to the Branch (git push origin feature/AmazingIdea)
  5. Open a Pull Request

Contact

@zerobandwidth - [email protected]

Project Link: https://github.com/Nimdy/Dedicated_Valheim_Server_Script

Acknowledgements