Steam cmd ��������� linux

SteamCMD

The Steam Console Client or SteamCMD is a command-line version of the Steam client. Its primary use is to install and update various dedicated servers available on Steam using a command-line interface. It works with games that use the SteamPipe content system. All games have been migrated from the deprecated HLDSUpdateTool to SteamCMD.

Contents

Downloading SteamCMD

Windows

1. Create a folder for SteamCMD.

3. Extract the contents of the zip to the folder.

Linux

Create a user account named steam to run SteamCMD safely, isolating it from the rest of the operating system. Do not run steamcmd while operating as the root user — to do so is a security risk.

1. As the root user, create the steam user:

2. Go into its home folder:

Package from repositories

1. It’s recommended to install the SteamCMD package from your distribution repositories, if available:

2. Link the steamcmd executable:

Docker

If your server is running Docker, you can simply use:

steamcmd.sh location: /home/steam/steamcmd

This image can be used as a base image for Steam-based dedicated servers. Example: https://hub.docker.com/r/cm2network/csgo/

You can find the associated Docker Hub page here: https://hub.docker.com/r/cm2network/steamcmd/

Manually

1. Before you begin, you must first install the dependencies required to run SteamCMD:

2. As the root user, escalate to the steam user:

If you’re not logging in as root and you instead use sudo to perform administration, escalate to the steam user as follows:

3. Create a directory for SteamCMD and switch to it.

4. Download and extract SteamCMD for Linux.

5. Install tmux and/or screen for easy server management

macOS

1. Open Terminal.app and create a directory for SteamCMD.

2. Download and extract SteamCMD for macOS.

Running SteamCMD

On first run, SteamCMD will automatically update and enter you into a Steam> prompt. Type help for more information.

Windows

Open a Command Prompt and start SteamCMD.

Linux/macOS

Open a terminal and start SteamCMD.

If you installed it using the package from repositories:

If you installed it manually:

SteamCMD Login

Anonymous

To download most game servers, you can login anonymously.

With a Steam account

Some servers require you to login with a Steam Account.

Next enter your password.

If Steam Guard is activated on the user account, check your e-mail for a Steam Guard access code and enter it. This is only required the first time you log in (as well as when you delete the files where SteamCMD stores the login information).

You should see a message stating that you have successfully logged in with your account.

Downloading an app

1. Start SteamCMD and log in.

Читайте также:  Как настроить чтобы компьютер не засыпал windows 10

2. Set your app install directory. (Note: use forward slashes for Linux/macOS and backslashes for Windows.)

e.g. a directory named cs_go inside the current directory:

For Windows: force_install_dir c:\cs_go\

3. Install or update the app using the app_update command (supplying a Steam Application ID). Please check here for the dedicated server list: Dedicated server list. To also validate the app, add validate to the command. To download a beta branch, use the -beta option – for example, the HLDS beta branch is named beta and the SrcDS beta branch is named prerelease . Some beta branches are protected by a password; to be able to download from them, also add the -betapassword

HLDS is a special case: the App ID is always 90 and a mod must be chosen first. This is done by setting the app config option mod to the requested value.

Example: Install and validate the Counter Strike: Global Offensive dedicated server: Example: Install and validate HLDS with Team Fortress Classic:

3. Once finished, type quit to properly log off of the Steam servers.

Validate

Validate is a command that will check all the server files to make sure they match the SteamCMD files. This command is useful if you think that files may be missing or corrupted.

It is recommended you use this command only on initial installation and if there are server issues.

Supported Servers

A list of known servers that use SteamCMD to install is available on the Dedicated Servers List page. Note that any extra commands listed need to be executed before the app_update line.

Automating SteamCMD

There are two ways to automate SteamCMD. (Replace steamcmd with ./steamcmd.sh on Linux/macOS.)

Command line

Append the commands to the command line prefixed with plus characters, e.g.:

To install a specific game mod for HL1, such as Counter-Strike: Condition Zero:

For a game that requires logins, like Killing Floor:

Creating a script

1. Put your SteamCMD commands in a text file. (You may add comments which start with // .) Example:

2. Run SteamCMD with the +runscript option, referring to the file you created previously. Example:

Cross-Platform Installation

It is possible to choose the platform for which SteamCMD should download files, even if it isn’t the platform it is currently running on. This is done using the @sSteamCmdForcePlatformType variable. (Yes, those are two «s»es at the beginning of the variable name.) For example, to download the Windows CSGO dedicated server on Linux, you can run the following command:

or use the following script:

The supported values are windows , macos and linux .

Windows Software/Scripts

condenser

condenser is a bootstrapper for installing, configuring, & launching Steam dedicated server apps.

SteamCMD AutoUpdater

Install and automatically update any game server

SteamCMD GUI

This tool allows the user to use SteamCMD on Windows without command lines and/or batch files.

SteamCMD Guardian 1.2

SteamPS

SteamPS is a PowerShell module that can be used to update servers, fetch server information. It also presents a workflow to update game servers.

Linux Scripts

LinuxGSM

LinuxGSM is the command-line tool for quick, simple deployment and management of Linux dedicated game servers.

Features

  • Installer
  • Updater
  • Monitor
  • Alerts
  • Server Details
  • Backups
  • Console

Supported Servers

There are now 100+ different game servers supported and rising. For a full list visit the website.

SteamCMD Guardian 1.2

The following script was tested on Debian Wheezy.

To make this script work, we need a location. Preferably you created a user (e.g. steam) with it’s own home directory (/home/steam) and are logged in as it via SSH, tty or using su.

  1. Make the file. nano updateserver.sh
  2. Paste in the code
  3. Modify the code, add at least 1 game to the DL_SV*= rows.
  4. Close the file with Ctrl + O , followed by ↵ Enter and concluding with Ctrl + X .
  5. Give the file execute rights for the user chmod u+x ./updateserver.sh
  6. Run the file ./updateserver.sh
Читайте также:  Просмотр скрытых пользователей windows

The file will auto-download SteamCMD, update it and install all chosen games (up to 4). Run the file again to update the games.

Known issues

ERROR! Failed to install app ‘xxxxxx’ (No subscription)

If you get the ‘No subscription’ error, the game/server you are trying to download either requires a login or that you have purchased the game. You will therefore have to log in with a Steam username and password – if that doesn’t help, you may need to purchase a copy of the game on Steam first. See Dedicated Servers List.

32-bit libraries on 64-bit Linux systems

Since SteamCMD is a 32-bit binary, 32-bit libraries are required.

The following error may occur:

The resolution depends on your distro:

Debian based distributions (Ubuntu, Mint, etc.)

With Debian 7 «Wheezy» you may encounter this error:

To fix this, do the following:

Red Hat based distributions (RHEL, Fedora, CentOS, etc.)

Arch Linux

Don’t forget to first enable the multilib repository.

Login Failure: No Connection

On linux servers, you may experience a «Login Failure: No Connection» error. This is related to missing iptables rules. You will want something along these lines:

On Windows servers, you may experience «SteamUpdater: Error: Download failed: http error 0» and «SteamUpdater: Error: Steam needs to be online to update. Please confirm your network connection and try again.». This is usually fixed by checking «Automatically detect settings» in IE (Internet Explorer) through the lan settings in the Internet option menu.

  1. Open Internet Explorer (IE).
  2. Click on ToolsInternet Options
  3. Click on the Connections tab
  4. At the bottom, you should see Local Area Network (LAN) Settings.
  5. Check the first box (Automatically detect settings)
  6. Hit OK, and Apply. Try running the SteamCMD again; if it still doesn’t work. try lowering your Internet Security level zone to medium or lower. You can find that in the Security tab in Internet Options.

SteamCMD startup errors

Unable to locate a running instance of Steam

You may get the following error when starting a server with Linux:

Resolve the issue by linking steamclient.so to the

ulimit Linux startup error

Some users may get a ulimit error (no permission/cannot open file) while script is starting up. This error caused by a low setting of the -n parameter (number of file descriptors) of ulimit . SteamCMD uses standard commands inside of the initialization shell script to change the ulimit automatically, but some servers may forbid increasing ulimit values after startup (or beyond a limit set by root ).

This can be fixed by changing the file descriptor number ulimit:

If an error appears (no permission), you will have to log in as root to change the parameter. To check the current setting, type ulimit -a; the system will reply with many rows, you need to find one:

In this case, 1024 is the current value.

root can also modify the limits in the /etc/security/limits.conf file.

In most instances you will simply get a warning message however it will not stop SteamCMD from running.

Читайте также:  Драйвер для принтера epson stylus cx4300 для windows 10

Getting a Linux 64-bit steamclient.so on a Windows Machine

WSL does not play nicely with 32-bit files. If you need the steamclient.so 64-bit file you can simply run the following command:

You will then find the file here:

Only the HLDS engine is downloaded

When trying to download a HL1 mod like TFC, initially it only downloads the engine files of the HLDS, but not the mod. This happens with both the regular version and the beta. You may have to try multiple times until all the required files are downloaded, but once this is done, the files should update correctly next time.

Just deleting the appmanifest files, without downloading replacements from a third party, may work as well! You will get an error at first though, complaining that something went wrong, which is due to the deleted files.

On a side note, for some reason CS is always installed as well.

Источник

How to: Install and Use SteamCMD on Ubuntu Linux

TABLE OF CONTENTS

We love video games, who doesn’t? With SkySilk Cloud, you can host your own game servers for yourself and all of your friends. We’re going to cover using SteamCMD to host Dedicated Servers for games like ARK, Counter-Strike: Global Offensive, Garry’s Mod, and more.

SteamCMD also-known-as the Steam Console Client is a purely command-line version of the Steam Client. Most users utilize this tool to install and update dedicated game servers that use the SteamPipe content delivery system. It ended up replacing the now deprecated HLDSUpdateTool in the end.

Preparation Steps

First off, we’re going to make sure that we set everything up in a secure manner. Let’s do that by creating a separate user so isolate SteamCMD from the rest of our machine. We’re then going to navigate to its home directory. (It’s heavily advised to NOT run SteamCMD as your root user as this is a security risk.)

If you’re using a 64-bit machine run the following commands one by one. These will make sure your system is up to date with the latest packages and dependencies, and add the multiverse repository:

Installation

Now we’re going to link the steamcmd executable file:

We will switch to our new steam user with:

From this user’s home directory, use the following command:

Most people are going to be able to log in anonymously, however, there are some games that require logging into a Steam account that owns the content specifically for that server.

If you do need to use an account, you can use:

When logged in we will need to set an installation directory for our server.

We’re going to use the Killing Floor 2 Dedicated Server files in this example. You can find a list of the other game server IDs → https://developer.valvesoftware.com/wiki/Steam_Application_IDs

This process will take some time depending on which application you chose to install. Once it’s done working you can safely log off of the steam servers by using the quit command:

Conclusion

That’s it. We’ve installed SteamCMD and used it to install our first game server. This was in no way an extensive list of everything that you can achieve using SteamCMD. For those who prefer to use a graphical interface, you may consider installing a Game Server Manager instead. Two examples are LinuxGSM and Pterodactyl Panel.

Источник

Оцените статью