Get started by following these instructions on how to install Alma Linux and enable Remote Desktop.

https://tietokettu.net/knowledgebase/1023/Miten-saada-etatyopoyta-hallinta-Alma-Linuxiin.html

After you have done these and logged in to Linux

Open the menu from the bottom left corner and type ''User'' in the search field and press enter, a page opens where you can create a new user ''Add new user'' create a user and set the Account type to Adminstrator.

SZU1SJe.pngBcjIDU8.png

2. Log in with the credentials you just created. (you may have to use VPS off and on again, then just connect on remote desktop again.)

3.Open the Terminal from the menu and check that you are root @ (your own VPS name) at the beginning, but the username you just created @ your own VPS name. In this case niko@niko1

oousPZz.png

4. Let's start by entering the commands below:   note!!!!.(In the lower left corner you can see the green status at which stage the installation is going) the remote connection may also be disconnected, if this happens then restart the vps and connect to the remote desktop again and start the terminal.

CTRL+SHIFT+V = paste commands / right click in terminal and paste

sudo dnf update
sudo dnf upgrade -y

wfCr2Pb.png

5.Install 32bit support for SteamCMD (even if you use 64bit)

sudo dnf install glibc.i686

sudo dnf update

uiE95LI.png

6. Let's install the necessary tools

sudo dnf install gcc libstdc++.i686 wget tar -y

rEQ8Axw.png

7.Let's download SteamCMD and unzip it.

wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz (download)

tar -xvzf steamcmd_linux.tar.gz (extract)

wOUaRvk.png

8.Let's start by launching SteamCMD. Check that you are at the root of ''Steam''!!!

./steamcmd.sh

OXBoMpf.png

9. Let's install the CS2 server

force_install_dir /home/steam/cs2-dedicated

miLrKcq.png

10. Let's log in, (with your credentials and you must have Steam guard on!!!!) https://help.steampowered.com/en/faqs/view/7EFD-3CAE-64D3-1C31

login (your own steam ID) and enter

mgZKYO7.pngenter your password for steam account.

You will then be asked for the Steam Guard code, enter it and enter.

UXp8CEx.png

11. Next, install the CS2 files with the command: (note! This will take a while)

app_update 730 validate

aHEQcj9.png

if Error! 'App 730' then run the command again.

rYnv8Ne.png

After this, the text Success! App 730 fully installed.

sUKAqDw.png

13. Install the new epel repository

sudo dnf install epel-release -y

sudo dnf update

1bI1XH7.png

14.Next we want to go back to the root with the cd command. When you are at the root, enter the commands below to change the folder.
Once you have reached the cd Steam folder, you can check what this folder contains with the ls command.

cd command to the home folder 

and move yourself

Steam/steamapps/common/CSGO/game/bin/linuxsteamrt64 folder. Instructions below 

After this, when you have finished, check with the ls -al command that "cs2" is found here

tkFwwKn.png

15. Let's create a startup script. 

touch start.sh

Check if it is found 

ls - al

XlSsnba.png

D61sHfN.png

16.Open start.sh in a text editor

nano start.sh

0HejRJo.png

After that press CTRL+X

T7t69PL.png

After that Y

SAaoFMr.png

After that Enter

17. Let's make the script valid for startup.

chmod +x start.sh

Now if you type ls -al, start.sh should be green, so you have done the right thing.

ls - al

19eFBqX.png

18. Trying to start the server

./start.sh

rwEFWxp.png

your Terminal may crash at this point, if it does, just restart and start following the instructions here.

19. Let's create a .steam folder in the home folder. You can get here with the cd command

mkdir ~/.steam (create .steam folder)

cd ./steam (go to .steam folder)

Inside this 2 different folders

mkdir -p ~/.steam/sdk32
mkdir -p ~/.steam/sdk64

cbDSTQu.png

Let's create symlinks

ln -s ~/steamcmd/linux64/steamclient.so ~/.steam/sdk64/steamclient.so

ln -s ~/steamcmd/linux32/steamclient.so ~/.steam/sdk32/steamclient.so

Let's check if it works

ls -l ~/.steam/sdk64/steamclient.so
ls -l ~/.steam/sdk32/steamclient.so

O6mYu4A.png

20.Firewall settings are edited either through the terminal or through the Desktop. (Desktop instructions below)

Terminal instructions:

sudo systemctl status firewalld / let's see if it's on

sudo systemctl start firewalld / will start

laU8Y7d.png

sudo firewall-cmd --zone=public --add-port=27017/udp --permanent / Open ports

sudo firewall-cmd --reload / reload

cyHZufw.png

Now the firewall is fine, we can go start the server.

go to the home library with the cd command

USvVRAn.png

Enter ./start.sh

Vsh9y10.png

Server up, congratulations.

b1nRd3W.png

Desktop instructions:

Open the menu and look for ''Firewall''

8CQdfEP.png

Select "Zones" below "public" and "Ports" on the right, open "Ports" if you don't see 27017udp here, press "Add"

sOuJIHb.png

Enter 27017 in port / port range and change "udp" from Protocol and OK

3j3PNjr.png

Now you can open the cs2 Console and type
connect (my vps ip) (your port)
e.g. connect 109.204.237.123:27017

 

How to enable Console?

9VYFbHW.png

How to open CS2 console? Enter the key from which you want the Console to open in the field.

1YrGmM2.png

If you want to start your server more easily by creating a shortcut on your desktop, you can do it this way:

Right-click an empty spot on the desktop "Create new", "Link to application"

QYfjPmc.png

Click on "Change" in the middle, a new page will open where "Add" is shown below, click on it

5BHXCku.png

Search for "console" in the search bar, select it and OK. next, move Konsole to the top so that KWrite is in the middle and Okular is at the bottom. After these, OK

Zi943Ix.pngwdHYEB8.png

Next we open the "Application" page, here "Program" is next to "Browse" find here your start.sh program and click OPEN.

a5ui480.png

N41lqxF.png

When you have done these and you have found the right path to the Program, open "Advanced options", from here enable "Run in terminal" and OK.

oJjd3kP.png

Now there is an application on your desktop that, by clicking, your cs2 server will open just by clicking.

Was this answer helpful? 4 Users Found This Useful (9 Votes)