View Single Post
asdfxD
Veteran Member
Join Date: Apr 2011
Old 10-24-2021 , 13:37   Re: is that possible to run rcon command directly from linux server where i run steam
Reply With Quote #2

on ubuntu:

apt-get install screen

start your srcds instance in screen with:

screen -AmdS csgoserver ./srcds_run -game csgo -net_port_try 1 +sv_setsteamaccount 111 -authkey 000 -usercon +host_workshop_map 999

than your can type in putty:

screen -r csgoserver

to hide/detach the screen window use ctrl + A + D

or use a start.sh script:

#!/bin/bash
# stop server
screen -r csgoserver -X quit
echo
## start the server
cd /home/gameserver/csgoserver
screen -AmdS csgoserver ./srcds_run -game csgo -net_port_try 1 +sv_setsteamaccount 111 -authkey 000 -usercon +host_workshop_map 999

Last edited by asdfxD; 10-24-2021 at 13:50.
asdfxD is offline