To get started, install Ubuntu by following these instructions

https://tietokettu.net/knowledgebase/1021/Miten-saada-etatyopoyta-hallinta-Ubuntu-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.

GQYtN4X.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

68tFafb.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 apt update
sudo apt upgrade -y

N2jynzL.png

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

sudo dpkg --add-architecture i386
sudo apt update

6BEztek.png

6. Let's install the necessary tools

sudo apt install lib32gcc-s1 lib32stdc++6 wget tar -y

hUQqBEC.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)

5z91XWf.png

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

cd steamcmd
./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 and enter.

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

Tämän jälkeen pitäisi tulla teksti Success! App 730 fully installed.

sUKAqDw.png

12.Let's enable SteamCMD (Press ESC and accept with ENTER) use arrow keys to move

d8P8AhR.png
F9cWLS4.png

13. Let's install a new repository

sudo add-apt-repository multiverse; sudo dpkg --add-architecture i386; sudo apt update
W1ABc5I.png

14. Log in to your steam credentials again if you have accidentally logged out / restarted Terminal.

cd command back to home library.
steamcmd
login (steam (your login name))
your password and possibly a steam guard code
and finally quit to get back.

zrURIgg.png

15. After this, we check if the .steam or Steam file is found
You have to be at the root, you can get here with the cd command

ls -al

zXc831p.png

16.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.

dJkoZDD.png

17. When you have entered the ls -al command in this folder, you should see a screen like this, here you want to see if ''cs2'' is the very first in the list

DdbHTrS.png

18.Let's create a startup script

4su9aCD.png

After the ls -al command, the same list as earlier should open, but start.sh should appear at the bottom

flxLNvT.png

19.Open the startup script. Enter the command below and press enter, after this a separate text editor will open.

mJu53eE.png

20. Let's make an easy dust2 server, if you want to edit more like this: https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers

0HejRJo.png

After that press CTRL+X

T7t69PL.png

After this, Y

SAaoFMr.png

After that, ENTER
21. Let's make the script bootable

O1Amoni.png

22. Let's try to start the server.

yJnV6bt.png

You will get an error that the server cannot be started yet.

dyhwmQs.png

23. If your terminal has not frozen, then go back to the home folder with the cd command, if it has frozen, restart the terminal.
24. Next, we create symlinks.
cd ~/.steam
rm -f sdk64
ln -s ~/.steam/steam/steamcmd/linux64 ~/.steam/sdk64
ls -l ~/.steam/sdk64

e1ocRGO.png

Let's do the same for linux32 as well
ln -s ~/.steam/steam/steamcmd/linux32 ~/.steam/sdk32
ls -l ~/.steam/sdk32

WUglIDL.png

Let's check that we have done them successfully.
cd
cd .steam
ls - al

W2db1Zc.png

25.Start server

t33NZ7N.png

Type ./start.sh and enter

rJv2WhO.png

Now the server should be on but not yet working. You can shut down the server by typing quit.

GQkfAnS.png

26.Firewall settings (you can do it either through the terminal or through the user interface

Instructions via the terminal:


sudo -su (then asks for the user's password)
ufw status

ACwGXHN.png

allow new ports
ufw allow 27017
ufw allow 27017/udp
ufw status (should look like this)

cCMHcQz.png

When everything is done 'exit' you get back to your own user.

Instructions via the user interface:

In the menu, find 'firewall' and open it

GJn7Mjm.png

Next, the Firewall settings will open. Press 'Add rule'

NGkG3GR.png

Turn on the Advanced setting and 'Policy Allow', 'Destination to port 27017' and create.

Make another one similar but only change 'Protocol' to UDP and create

AkfwCfi.pnggaRkg1S.png

Y2JWe4L.png

 

By typing ./start.sh you start the server.

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 (8 Votes)