Menu

Ubuntu24_Automated_Script

   

🚀 Ubuntu 24.04 Automated HLDS Deployment Script

   

This guide documents the use of the automated script (hlds-ubuntu24-installer.sh) designed to simplify the initial setup and configuration of a Counter-Strike 1.6 Dedicated Server on **Ubuntu Server 24.04 LTS**.

        

This automated method covers all prerequisite steps, dependency installation, library fixes, and core server downloads (Steps 1 through 4.2 in the manual tutorial), ensuring a seamless deployment.

   
        

1. Requirements

        
           
  • Ubuntu Server 24.04 (fresh installation recommended).
  •        
  • A user with sudo privileges.
  •        
  • Stable internet connection.
  •        
  • At least 2 GB of free disk space.
  •    
   
   

2. Installation and Execution

   

The installer script handles the system dependency setup and server file installation automatically.

   

2.1 Download and Prepare the Script

   

Execute these commands as a sudo user.

   
# Download the installer script
wget "https://raw.githubusercontent.com/comgunner/cs-16-server-ubuntu/refs/heads/main/hlds-ubuntu24-installer.sh"

# Grant execution permissions
sudo chmod +x hlds-ubuntu24-installer.sh
   

2.2 Run the Installer

   

Executing the script will install all 32-bit libraries, download SteamCMD and the server package, and apply compatibility fixes.

   
# Run the automated installer
sudo ./hlds-ubuntu24-installer.sh
        
        Note: The script will prompt for manual input during the SteamCMD validation phase. Follow the on-screen instructions precisely.    
   
        

3. Automated Features Summary

   

The installer performs the following essential tasks:

   
           
  • Installs i386 architecture and all required 32-bit compatibility libraries.
  •        
  • Downloads and extracts the preconfigured HLDS package and SteamCMD.
  •        
  • Applies library fixes (steamclient.so symbolic link and standard library patches).
  •        
  • Performs a manual server test to verify immediate functionality (handle with **Ctrl + C**).
  •        
  • Downloads the official systemd service installer script (but does **not** enable the service yet).
  •    
   
        

4. Optional: Dual Protocol (DProto) Activation

        

To enable support for both Steam and Non-Steam clients (Protocol 47/48), execute the script with the --no-steam flag after the initial setup is complete.

   
sudo ./hlds-ubuntu24-installer.sh --no-steam
        
        Note: This option downloads dproto.cfg and configures the server for dual protocol handling.    
   
   

5. Installing the Persistent System Service (systemd)

   

After the automated script finishes, the service installer is located in the user's home directory. Run this script to create and enable the robust systemd service unit.

   

Execute this as a sudo user.

   
sudo /home/csserver/install_cstrike_service.sh
        
        Service Prompt: The service installer will ask for your Public/LAN IP and the desired game port.    
   

Service Management Commands

   

Use standard systemctl commands to manage the server process:

   
sudo systemctl start cstrike
sudo systemctl stop cstrike
sudo systemctl restart cstrike
sudo systemctl status cstrike
   
   

6. Support and Credits

   

This automated script complements the official SourceForge documentation. For manual steps or troubleshooting details, refer to the main guide.

        

Source Code Repository: https://github.com/comgunner/cs-16-server-ubuntu

   

Official SourceForge Documentation: https://sourceforge.net/p/cs16serverpreconfiguredlinux/wiki/Ubuntu24_HLDS_Install/