steamCMD function introduction
Occasionally, you can use the Steam client's library-tools on your computer occasionally, but it is necessary to build a special server more conveniently and quickly, or it is inseparable from the use of SteamCMD:
The so-called steamcmd is a command line version of steam, with basic steam api, including account login, email verification, game download and other functions. When installing it, a link library related to the desktop version of Steam will also be written to the disk for use by the game. In other words, games downloaded through steamcmd can run normally. However, steamcmd is not usually used as a game download tool, because the game must have a graphical interface, so since there is a graphical interface, the more convenient desktop version of steam will be used. The correct usage of steamcmd is to download the game server (although some game servers are the game itself), and then run the game server on the server as a game server.
How to use steamCMD
Use the command to set up SteamCMD
Use the following command to install under 64-bit centos
First install the required 32-bit dependencies
yum install glibc.i686 libstdc++.i686
After that, create a new account and name it steam. The reason why you need to create a new account is for security. If you run steamcmd using the root account, you will see a security reminder.
useradd -m steam
After switching to this account, note that the command here is su space-space steam. If you do this, you will immediately go to the ~ directory of the steam account after switching:
su-steam
After that create a folder named steamcmd and enter:
mkdir ~/steamcmd
cd ~/steamcmd
Use wget to download the steamcmd compressed package:
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
Unzip:
tar -xvzf steamcmd_linux.tar.gz
Run it:
cd ~/steamcmd
./steamcmd.sh
When you start steamcmd for the first time, all steamcmd files will be automatically downloaded. Just wait patiently. No need to download again the next time you start it. After steamcmd is started, it will enter the command line interface within the program. Commands can be entered here. Taking installing a game as an example, let's introduce the basic commands of steamcmd.
First we need to log in, for example, we use an anonymous account to log in (anonymous accounts do not require a password):
Login anonymous
After successful login, we specify the game server installation directory, for example, customize it to cs_go in the upper directory folder, please note that as long as the directory is specified by steamcmd under Linux, it will be created immediately. The Windows version of steamcmd will not be created immediately, so under Linux you can use this to confirm whether the command is set correctly and as expected.
force_install_dir ../cs_go/
After that we will start to install the game server. Taking the csgo above as an example, we first need to confirm the app id of this program. We visit the following URL:
https://developer.valvesoftware.com/wiki/Dedicated_Servers_List
This list will display all servers that steamcmd supports downloading. Under the ID column is the app we need. id, for example, we found that the id of csgo is 740, use the following command:
app_update 740
For installation, here are several parameter descriptions. The most commonly used ones are actually the validate parameter. Validate means verification, which is exactly the same function as the verification of local files on the desktop version of Steam. Note that you need to specify the directory before using any app-related commands, otherwise it will be regarded as the current directory. When installing the program for the first time, the effect is the same whether it is validated or not. In principle, if you do not add validate when updating the server, it should all be overwritten once, but I found that it is not. The local files and cloud files will still be verified first and then incrementally downloaded. In other words, I found that it is the same whether there is validate or not. It may be my observation error. I recommend adding the validate parameter to any app_update command. That is, the following command app_update 740 validate
After pressing Enter, the download progress will be continuously prompted. When it reaches 100%, it will return to the steamcmd command line. Enter quit to exit steamcmd.
After that, we can cd ../cs_go to enter the folder where the csgo server is located, and then run the server according to the startup method of the specific server.
For other games, the installation process is the same. It should be noted that some games have special requirements for installation or require the game to be purchased first. Taking Seven Days Kill as an example, in the dedicated In the servers list list, we can see that the notes column next to Seven Days Kill says "game purchase required", which means that this game must be purchased first, and the way to confirm that you have purchased it is to log in with your own steam account instead of an anonymous account when logging in with steamcmd. When you log in with your steam account for the first time, it will be the same as the desktop version of steam. For email verification, you need to enter the verification code sent in your email to log in. Only after logging in can such a game server be downloaded.
The servers downloaded by steamcmd are all genuine servers, that is, the steam account will be verified when the client connects. Therefore, players who connect must have a genuine copy of the game.
Regarding the update of the game server, the update operation process is exactly the same as the installation (in most cases, if the game client is updated, the server must also be updated). I will not go into details here. It is recommended to add the validate parameter.
steamCMD installation steps
1. Download the latest version of steamCMD installation package from Huajun Software Park
2. After downloading, unzip the compressed package into a folder named after this software
3. Open the folder and double-click the "exe" program
4.steamCMD is green software and can be used without installation.
steamCMD update log
1. The details are more outstanding!
2.BUG gone without a trace
Special instructions:
Hello, the software you are about to use is an auxiliary tool and may be intercepted and checked by major anti-virus software. There may be risks in using this software. Please pay attention to avoid it. If you want to continue using it, it is recommended to close various anti-virus software before using it. .
Attached is the software package decompression password: softwaredownload4.com
Huajun editor recommends:
Looking around, there are software similar to this software everywhere on the Internet. If you are not used to this software, you might as well give it a try.Cheerful teaching guide,Baidu enterprise network disk,Kingsoft Netdisk,Micro force synchronization,Dandelion WiFiWait for the software, I hope you like it!
it works
it works
it works