Skip to content

Instantly share code, notes, and snippets.

@roncli roncli/setup.sh
Last active Nov 15, 2019

Embed
What would you like to do?
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
# 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_v1_0_1880_24685.sh
./overload_v1_0_1880_24685.sh
# Install olmod
git clone https://github.com/overload-development-community/olmod-stable-binaries
# Get Overload maps
sudo mkdir /usr/share/Revival
sudo git clone https://github.com/roncli/overload-maps.git /usr/share/Revival/Overload
# Create script to run Overload
echo '#!/bin/bash
cd /usr/share/Revival/Overload
sudo git pull
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
# 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

This comment has been minimized.

Copy link
Owner 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, if not you will need to find a way to get the file overload_v1_0_1880_24685.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
You can’t perform that action at this time.