dljsjr / Dedicated_Valheim_Server_Script

Easy Valheim Dedicated Server Ubuntu Linux installer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Logo

Zero's Easy Valheim Installer

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

View Demo · 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

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.

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

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

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) =
sudo 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. User prompt for agreement of STEAM LICENSE AGREEMENT =
Select Ok
Select I Agree
Press Enter
  1. 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.
  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

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/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Contact

Your Name - @zerobandwidth - mrzerobandwidth@gmail.com

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

Acknowledgements

About

Easy Valheim Dedicated Server Ubuntu Linux installer


Languages

Language:Shell 100.0%