Perfect Heist 2

Perfect Heist 2

Not enough ratings
Completely Setup your own Server / Selfhosted
By FirexXD
This concise guide provides step-by-step instructions on how to set up a Perfect Heist 2 server on an Ubuntu system. It covers everything from installing necessary software and tools, like SteamCMD and 32-bit libraries, to configuring the server's settings for optimal performance. Designed for users with a basic understanding of Ubuntu's command line interface, the guide ensures you can have your gaming server up and running in less than an hour. Whether you're a seasoned gamer looking to host your own server or a newbie to server setup, this guide offers clear, straightforward instructions to get you started.
   
Award
Favorite
Favorited
Unfavorite
How to Host a Perfect Heist 2 Server on Ubuntu
**What You Need:**
- Ubuntu 22 running on a VPS or dedicated server
- Installation of 32-bit libraries
- Steam CLI client SteamCMD

#### Step 1: Installing SteamCMD

**Preparations:**
1. Create a new user, suggested username "steam".
```
sudo adduser steam
```
Provide a password for the new user when prompted.

2. Grant sudo privileges to the new user:
```
sudo usermod -aG sudo steam
```

3. Switch to the new user and navigate to their home directory:
```
sudo su steam
cd ~
```

4. Install necessary packages and libraries:
```
sudo add-apt-repository multiverse
sudo apt install software-properties-common
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install lib32gcc-s1 steamcmd libminizip1
```

5. Create a symbolic link to the SteamCMD in the home directory:
```
sudo ln -s /usr/games/steamcmd /home/steam/steamcmd
```

6. Run SteamCMD to update and quit immediately:
```
steamcmd +quit
```

#### Step 2: Downloading the Needed Game Files

1. Create directories for the server files:
```
mkdir -p ~/servers/ph2
cd ~/servers/ph2
```

2. Download game files using SteamCMD:
```
steamcmd +force_install_dir /home/steam/servers/ph2 +login anonymous +app_update 1964150 +quit
```

Optionally, check if the game files were installed correctly:
```
ls -la
```

#### Step 3: Final Steps Before Hosting

1. Create a script to start the server, `start_server.sh`, and open it for editing:
```
nano start_server.sh
```

Include the following in the script:
```
echo "Updating..."
steamcmd +force_install_dir /home/steam/servers/ph2 +login anonymous +app_update 1964150 +quit

echo "Starting..."
cd /home/steam/servers/ph2/PerfectHeist2/Binaries/Linux
./PerfectHeist2Server <MapName> -Port=7777 -QueryPort=27017
```

Replace `<MapName>` with one of the game's map names (e.g., HugeBank, CasinoHeist).

2. Make the script executable:
```
chmod +x start_server.sh
```

3. Run the script to start the server:
```
./start_server.sh
```

To stop the server, use Ctrl+C.

4. Configure the game's settings in the `Game.ini` file inside `./PerfectHeist2/Saved/Config/LinuxServer`.

**Final Notes:**
- Ensure your firewall settings allow UDP traffic on ports 7777, 7778, and 27017.

1 Comments
Sioox | Robin 27 Sep @ 5:18pm 
any chance you add a screen of how it should looks like, after step 2?