Setting up a Counter-Strike: Global Offensive server using SteamCMD

32/64 bit Debian/Ubuntu Linux procedure

First thing you need to do, login here with your Steam account and generate a 'Game Server Login Token' (gslt). Use App ID 730.

When using 64 bit Debian/Ubuntu begin with step 1. When using 32 bit Debian/Ubuntu start with step 4.

1.  sudo add-apt-repository multiverse
2.  sudo apt install software-properties-common
3.  sudo dpkg --add-architecture i386
4.  sudo apt update
5.  sudo apt install lib32z1 lib32gcc-s1 lib32stdc++6 libstdc++6:i386 libsdl2-2.0-0:i386 libcurl4-gnutls-dev:i386 libc6-i386 net-tools wget xz-utils unzip zip gdb mlocate screen steamcmd
6.  steamcmd

Some warnings might show up during the installation process:

	- ln: failed to create symbolic link '/home/user/.steam/root': No such file or directory
	- ln: failed to create symbolic link '/home/user/.steam/steam': No such file or directory
	- ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
	- Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
	- dlmopen libSDL3.so.0 failed: libSDL3.so.0: cannot open shared object file: No such file or directory

These warnings have no further meaning and can be ignored for now.

7.  Steam> force_install_dir /home/username/csgo		<- change the username to yours!
8.  Steam> login anonymous

	Connecting anonymously to Steam Public...OK
	Waiting for client config...OK
	Waiting for user info...OK

9.  Steam> app_update 740

	- Downloading all files might take a while, wait till you'll see the following:
	Success! App '740' fully installed.

10. Steam> app_update 740 validate

	- Validating all files might take a while, wait till you'll see the following:
	Success! App '740' fully installed.

11. Steam> quit

12. mkdir -p .steam/sdk32 && cd ~/.steam/sdk32/ && ln -s ~/.local/share/Steam/steamcmd/linux32/steamclient.so ~/.steam/sdk32/steamclient.so && cd ~/
13. mkdir -p .steam/sdk64 && cd ~/.steam/sdk64/ && ln -s ~/.local/share/Steam/steamcmd/linux64/steamclient.so ~/.steam/sdk64/steamclient.so && cd ~/.steam
14. ln -s ~/Steam/ root && ln -s ~/Steam/ steam && cd ~/csgo/bin
15. mv libgcc_s.so.1 libgcc_s.so.1.bak && cd ~/csgo

16. vi steam_appid.txt
17. Add '730' into the txt file without the apostrophes.
18. chmod 775 steam_appid.txt
19. screen
20. ./srcds_run -game csgo -usercon +game_mode 1 +game_type 0 +map de_dust2 +sv_setsteamaccount <gslt>
21. After a few seconds and some stuff in your console you should see the following:

	Connection to Steam servers successful.
	VAC secure mode is activated.

22. The server is running, you can check this bij typing 'status', you should see the following:

	hostname: Counter-Strike: Global Offensive
	version : 1.38.7.9/13879 1569/8853 secure  [G:1:9438415]
	udp/ip  : 127.0.1.1:27015  (public ip: 127.0.1.1)
	os      :  Linux
	type    :  community dedicated
	map     : de_dust2
	players : 0 humans, 0 bots (20/0 max) (hibernating)

	# userid name uniqueid connected ping loss state rate adr
	#end

23. CTRL a + d (detached)
24. Done! You now have a fully functional Counter-Strike: Global Offensive server running without mods/scripts.
25. Click here for "tweaking" your server with small adjustments and make it your own!



In case you made a boo-boo

In case you made mistakes and would like to start over or for whatsoever reason want to delete everything, I have a nice
and quick solution for that.

1.  cd
2.  vi remove_csgo
3.  sudo rm -rf csgo/ .local/ .steam/ Steam/ .config/ .cache/ .lesshst .wget-hsts && sudo apt-get remove steamcmd --purge && sudo updatedb && sudo apt autoremove && sudo locate steam
4.  chmod 755 remove_csgo

        - You can now execute the file over and over again:

5.  ./remove_csgo

All installed files and folders are now removed and you can start over from scratch 😓