Skip to content

Instantly share code, notes, and snippets.

@roncli roncli/setup.sh
Last active Mar 18, 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 olproxy
git clone https://github.com/roncli/olproxy.git
# 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 git-lfs
sudo add-apt-repository ppa:git-core/ppa
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs
git lfs install
# 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 olproxy
echo '#!/bin/bash
cd /home/roncli/olproxy
git checkout stable
git stash
git pull
git stash pop
dotnet publish --configuration Release --framework netcoreapp2.2 --runtime ubuntu-x64 --self-contained
cd olproxy/bin/Release/netcoreapp2.2/ubuntu-x64
./olproxy' > olproxy.sh
chmod +x olproxy.sh
# Create script to run Overload
echo '#!/bin/bash
cd /usr/share/Revival/Overload
sudo git pull
cd /home/roncli/GOG\ Games/Overload/game
./Overload.x86_64 -nographics -batchmode -nolog' > overload.sh
chmod +x overload.sh
# Create services
sudo sh -c 'echo "[Unit]
Description=olproxy
After=systemd-user-sessions.service
[Service]
Type=simple
ExecStart=/home/roncli/olproxy.sh
User=roncli
[Install]
WantedBy=multi-user.target" > /etc/systemd/system/olproxy.service'
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 olproxy
sudo systemctl enable overload
echo "Setup complete. Reboot, or use \"sudo systemctl start olproxy overload\" to start the server."
@roncli

This comment has been minimized.

Copy link
Owner Author

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 using https://github.com/arbruijn/olproxy.

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...
  • olproxy will be updated from GitHub every time you start the service or reboot the machine.
  • Map packs will need to be installed separately, they will not update automatically. (Yet.)
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.