Linux Setup Guide

This guide is written to help Linux beginners successfully download BattleNetPrefill on their Lancache caching server.

Installing Prerequisites

Prior to installing BattleNetPrefill we will need to make sure that curl, jq, and unzip are already installed on our system. Depending on your machine's configuration, this software may or may not already be installed. Regardless, the following steps will ensure that everything needed is successfully installed.

Note

These steps assume that you are using Ubuntu/Debian. Depending on which Linux distro you are using, you may have to use slightly different commands.

To run the following commands, open up a new terminal session, and enter the following:

# Makes sure that the latest app versions will be installed
apt-get update

# Installs the required software
apt-get install curl jq unzip wget -y

Warning

You may run into a "Could not open lock file" error when running apt-get install, and will need to prefix the command with sudo

Once the install command has finished successfully, we can move on to installing BattleNetPrefill.

Installing BattleNetPrefill

We will be using a script to assist with installing BattleNetPrefill for the first time. This will be helpful as it will save us from running several manual steps.

To begin, open up a new terminal session. We will want to create a new directory to install BattleNetPrefill into. For example, to create the directory and to move into it, run

mkdir BattleNetPrefill
cd BattleNetPrefill/

After running the above commands successfully, you should see similar output in your terminal :


We can now move on to downloading the install script from the repo, and running it to install BattleNetPrefill

# Downloads the install script
curl -o update.sh --location "https://raw.githubusercontent.com/tpill90/battlenet-lancache-prefill/master/scripts/update.sh"

# Allows the install script to be executed
chmod +x update.sh

# Does the install!
./update.sh

# Allows BattleNetPrefill to be executed
chmod +x ./BattleNetPrefill

If everything worked as expected, you should see output similar to below


BattleNetPrefill is now installed on your machine! You can now run it with ./BattleNetPrefill

Next Steps

If you are new to BattleNetPrefill and would like an introductory tutorial, see the Getting Started guide.

Answers to common issues and questions can be found at Frequently Asked Questions.