How to install Fast-DL (Fast Download) for CSS v34 Linux Server

Vertigo

⍥𝖜𝖞𝖊𝖗
Staff member
Administrator
Fast-DL also known as Fast-Download makes server files download faster when new players/clients join the server. In this tutorial, I will explain how we can enable fast download on the server.

First step is to install a web server on your linux vps or machine. Web server is another server, where we can store or host files which can be accessed or downloaded directly using your server IP or domain. You can also host a website on this web server. There are mainly 2 popular web servers - Apache2 and NginX. You can use any one but for this tutorial, I will use Apache2.

Step 1: Install Apache2 Web Server


- Login to your linux vps using putty.
- Run below commands to install Apache2.
Bash:
# Debian/Ubuntu
apt update
apt install apache2

# RHEL/CentOS
yum update
yum install httpd
The above command should install apache2 on your linux vps. In most of the machines, apache2 is started automatically after installation. If not, you can use below commands to start, stop or check the status of apache2.

To check if apache2 is running or not use one of the below commands
Bash:
# Debian/Ubuntu
systemctl status apache2
# or
service apache2 status

# RHEL/CentOS
systemctl status httpd
# or
service httpd status
To start apache2 service, use one of the below commands
Bash:
# Debian/Ubuntu
systemctl start apache2
# or
service apache2 start

# RHEL/CentOS
systemctl start httpd
# or
service httpd start
To stop apache2 service, use one of the below commands
Bash:
# Debian/Ubuntu
systemctl stop apache2
# or
service apache2 stop

# RHEL/CentOS
systemctl stop httpd
#or
service httpd stop

Step 2: Check or Verify the Installation of Apache2 Web Server

- First check if apache2 is running or not.
Bash:
# Debian/Ubuntu
systemctl status apache2
# or
service apache2 status

# RHEL/CentOS
systemctl status httpd
# or
service httpd status
You should be able to see below output.
261
262
If you see Active (running), that means our apache2 web server is Up & Running.

- Now let's verify if we can access the web server from browser. For this open any browser, and type below URL in URL bar of the browser.
http://your-server-ip/
For example, if your server or vps IP is 34.34.25.255 then the url will be You should see default apache2 web page. See screenshot below,
263 264
265
If you are unable to see the above default web pages. That means, port 80 is not open in your VPS firewall settings. Open or forward TCP port 80 in your VPS firewall settings. It's better to open a port using VPS firewall rules on your VPS Provider web site/console. However you can also do this using commands,
Bash:
## Debian/Ubuntu
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
apt install iptables-persistent
# or
ufw allow 80/tcp

## RHEL/CentOS
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
yum install iptables-persistent
# or
firewall-cmd ––permanent ––add-port=80/tcp
firewall-cmd ––reload

Step 3: Compress and Copy/Upload Files To Apache2 Web Server

Assuming you have successfully completed above steps. You can now upload counter strike files to your web server. We are going to first compress the files and then copy or upload to the web server.

- Install bzip2. bzip2 is file compression tool. Counter strike supports .bz2 files, so we need this tool.
Bash:
# Debian/Ubuntu
apt update
apt install bzip2

# RHEL/CentOS
yum update
yum install bzip2
- Let's suppose you have your counter strike server in /home/css/server folder. Copy the files from your counter strike folder to apache2 web server folder, which is /var/www/html/. Copy only the files which are downloaded when a player or client joins the server.
Example: maps, custom server sounds, custom server player or weapon skins, custom materials and models for effects etc
Bash:
# Create cstrike folder in apache web server folder
mkdir /var/www/html/cstrike
# Copy the downloadable file to the var/www/html/cstrike folder
# Assuming your css server is in /home/css/server/ folder. If not, use your folder path
cp -R /home/css/server/cstrike/maps/ /var/www/html/cstrike/
# The above command will copy all the maps, do the same for other folder or files you want to copy. Remove -R option in case of a file.
- Compress the files.
Bash:
# Go to /var/www/html/cstrike/maps/ folder.
cd /var/www/html/cstrike/maps/
# Compress a file
bzip2 de_dust2.bsp
# Compress multiple files at once, specify as many as you want
bzip2 de_dust2.bsp $2000$.bsp awp_lego_2.bsp
# Compress all files in a folder at once
for file in *; do echo "Compressing $file..."; bzip2 $file; echo "Compressed $file to bz2."; done
# See the file list
ls
Note: You can also use a windows based tool to compress your server files and upload them using WinSCP or FileZilla. Download the tool attached to this post and drag and drop files on bzip2.exe to compress. Then upload them to /var/www/html/cstrike/ folder.

- After compressing and uploading all the required files, run below command,
Bash:
chmod -R 777 /var/www/html/cstrike/

Step 4: Enable Fast-DL in your Game Server

Final step is to enable the fast download in your game server settings by pointing the game server download URL to the web server URL. To do this follow below steps,

- Go to your game server cstrike/cfg folder.
- Open server.cfg file in notepad.
- Add the following line to server.cfg
Example said:
sv_downloadurl "http://34.34.25.255/cstrike/"
- Restart or your server or change the map.

That's all !!! Now when you connect to server. The files will download faster. If you have any question or queries, ask below. Enjoy !!
 

Attachments

Last edited:
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock