Skip to content

Instantly share code, notes, and snippets.

@roncli
Last active October 19, 2021 02:44
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save roncli/602d747ce28a57b801f53f6a29438834 to your computer and use it in GitHub Desktop.
Overload Ubuntu 18.04 Private Server Setup
#!/bin/bash
# Install dotnet core 2.2
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo add-apt-repository universe
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.2
# WARNING: lgogdownloader used to provide the ability to download Overload. However, as of 3.7, it no longer works on Linux, so you will need to find your own way to get GOG's Linux installer into your home directory.
# Clone LGOG Downloader
# git clone https://github.com/Sude-/lgogdownloader.git
# Build LGOG Downloader
# sudo apt-get install build-essential libcurl4-openssl-dev libboost-regex-dev libjsoncpp-dev liboauth-dev librhash-dev libtinyxml2-dev libhtmlcxx-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-date-time-dev libboost-iostreams-dev help2man cmake libssl-dev pkg-config zlib1g-dev
# cd lgogdownloader
# mkdir build
# cd build
# cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
# make
# sudo make install
# Download Overload
# cd ~
# lgogdownloader --login
# lgogdownloader --download-file overload/en3installer0
# Install Overload
chmod +x overload_1_1_1886_38734.sh
./overload_1_1_1886_38734.sh
# Install olmod
git clone https://github.com/overload-development-community/olmod-stable-binaries
# Create script to run Overload
echo '#!/bin/bash
cd /home/roncli/olmod-stable-binaries
git pull
cp ~/olmod-stable-binaries/bin/* ~/GOG\ Games/Overload/game/
chmod +x ~/GOG\ Games/Overload/game/olmod.sh
chmod +x ~/GOG\ Games/Overload/game/olmodserver.sh
chmod +x ~/GOG\ Games/Overload/game/olmodserverinet.sh
cd /home/roncli/GOG\ Games/Overload/game
./olmodserverinet.sh -nolog' > overload.sh
chmod +x overload.sh
# Create services
sudo sh -c 'echo "[Unit]
Description=overload
After=systemd-user-sessions.service
[Service]
Type=simple
ExecStart=/home/roncli/overload.sh
User=roncli
[Install]
WantedBy=multi-user.target" > /etc/systemd/system/overload.service'
# Enable services
sudo systemctl enable overload
echo "Setup complete. Reboot, or use \"sudo systemctl start overload\" to start the server."
@roncli
Copy link
Author

roncli commented Feb 18, 2019

This script allows a server running Ubuntu 18.04 to create an environment suitable for running Overload as a dedicated server.

Notes:

  • This is an attended script, many commands will require input.
  • This assumes you have Overload on GOG, and you will need to find a way to get the file overload_1_1_1886_38734.sh on your machine.
  • Replace roncli with the user you are running as before running. Unless you are roncli...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment