Home Newest Hot Active Unanswered Views Votes Tags Rank
 
Anderson

Instalar Server de Counter-Strike no Linux (CentOS) - Instale e hospede o seu Server grátis


No site http://www.host1plus.com.br/ você tem 14 dias para aprender a mexer no seu Server

Crie sua conta e pegue um VPS BR grátis por 14 dias

Digite:

cd /home

Crie e entre na pasta steamcmd:

mkdir steamcmd
cd steamcmd

Baixe o SteamCMD:

wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz

Extraia os arquivos:

tar -xvzf steamcmd_linux.tar.gz

Entre no SteamCMD:

./steamcmd.sh

Digite:

login logindesuacontasteam

Digite a senha da sua Steam

Pasta onde vai ficar os arquivos do seu server:

force_install_dir ../server/
app_set_config 90 mod cstrike
app_update 90 validate

Entre na pasta do seu Server:

cd /home/server

Execute o seu Server:

./hlds_run -game cstrike +ip 000.00.000.000 -port 27015 +maxplayers 32 +map de_dust2 -secure -master -zone 8192 -noaff -pingboost 3

Não esqueça de colocar o IP do seu server no +ip 000.00.000.000


Anderson

Use o Bitvise SSH Client (Tunnelier)

Ele vem com um SFTP para vc enviar os seus arquivos e olhar suas pastas

Anderson

Não use o -pingboost 3 se tiver apenas um core

Gluke

Botei Ele On Maais quando eu reiniciei a maquina para dar reload no que tinha botado o sv nao voltou usei esse comando para iniciar ele
./hlds_run -console -game cstrike -ip ip -port 27015 +maxplayers 32 +map de_dust2

Anderson

“Botei Ele On Maais quando eu reiniciei a maquina para dar reload no que tinha botado o sv nao voltou usei esse comando para iniciar ele
./hlds_run -console -game cstrike -ip ip -port 27015 +maxplayers 32 +map de_dust2” Gluke


Seu comando está errado, tem 2 -ip

Anderson

Caso o CentOS seja apenas 64 bit, instale:

yum install glibc.i686 libstdc++.i686
Renatinho

Fiz tudo certo só que o server não inicia e da uns erros ainda

[[email protected] ~]# cd /home/server/
[[email protected] server]# ./hlds_run -game cstrike +ip 189.1.169.193 -port 27015 +maxplayers 32 +map de_dust2 -secure -master -zone 8192 -noaff -pingboost 3
Auto-restarting the server on crash
Console initialized.
Using breakpad crash handler
Setting breakpad minidump AppID = 10
Forcing breakpad minidump interfaces to load
dlopen failed trying to load:
/root/.steam/sdk32/steamclient.so
with error:
/root/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 13:12:29 Aug 29 2013 (6153)
STEAM Auth Server
Server IP address 189.1.169.193:27015
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
dlopen failed trying to load:
/root/.steam/sdk32/steamclient.so
with error:
/root/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
couldn't exec listip.cfg
couldn't exec banned.cfg
Connection to Steam servers successful.
Anderson

“Fiz tudo certo só que o server não inicia e da uns erros ainda” Renatinho


A porta 27015 não está bloqueada no firewall?

Renatinho

Liberei Iniciou Só Que O server Não Ligou
IP: 189.1.169.193:27015

[[email protected] cs1.6-4FUN-MIX]# ./hlds_run -game cstrike +ip 189.1.169.193 -port 27015 +maxplayers 32 +map de_dust2 -secure -master -zone 8192 -noaff -pingboost 3
Auto detecting CPU
Using Pentium II Optimised binary.
Auto-restarting the server on crash
Console initialized.
Using breakpad crash handler
Setting breakpad minidump AppID = 10
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Installing breakpad exception handler for appid(10)/version(5787)
scandir failed:/home/gamefiles/cs1.6-4FUN-MIX/./valve/SAVE
scandir failed:/home/gamefiles/cs1.6-4FUN-MIX/./platform/SAVE
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 11:30:00 Aug 28 2012 (5787)
STEAM Auth Server
Server IP address 189.1.169.193:27015
   Metamod version 1.19p32 Copyright (c) 2001-2006 Will Day
     Patch: Metamod-P (mm-p) v32 Copyright (c) 2004-2007 Jussi Kivilinna
   Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.
   This is free software, and you are welcome to redistribute it
   under certain conditions; type `meta gpl' for details.
   AMX Mod X version 1.8.1.3746 Copyright (c) 2004-2006 AMX Mod X Development Team
   AMX Mod X comes with ABSOLUTELY NO WARRANTY; for details type `amxx gpl'.
   This is free software and you are welcome to redistribute it under
   certain conditions; type 'amxx gpl' for details.
stray key in process_key: item_getiteminfo 63
Version 0.9.356 Linux
[DPROTO]: Loading config './cstrike/dproto.cfg'
[DPROTO]:  LoggingMode = 2
[DPROTO]: Config sucessfully loaded.
[DPROTO]: Done.
scandir failed:/home/gamefiles/cs1.6-4FUN-MIX/./valve/SAVE
scandir failed:/home/gamefiles/cs1.6-4FUN-MIX/./platform/SAVE
L 11/05/2014 - 20:47:33: -------- Mapchange to de_dust2 --------
Orpheu configuration started.
        Parsing mods configuration started.
        Parsing mod file "SvenCoop"
        Parsing mod file "tfc"
        Parsing mod file "valve"
        Parsing mod file "dod"
        Parsing mod file "esf"
        Parsing mod file "ns"
        Parsing mod file "esf_openbeta"
        Parsing mod file "ts"
        Parsing mod file "cstrike"
        Parsing mods configuration ended.
        Parsing libraries configuration started.
                Parsing file "monstermod"
                        Added library monstermod identified by cvar monster_spawn
                Parsing file "podbot"
                        Added library podbot identified by cvar pb_version
        Parsing libraries configuration ended.
        Parsing type aliases started.
                Parsing folder "long"
                Adding alias"long"
                Parsing folder "VectorPointer"
                Adding alias"Vector *"
                Parsing folder "charPointer"
                Adding alias"char *"
                Parsing folder "CBaseEntity"
                Adding alias"CBaseEntity *"
                Parsing folder "CMBaseMonster"
                Adding alias"CMBaseMonster *"
                Parsing folder "CGameRules"
                Adding alias"CGameRules *"
        Parsing type aliases ended.
Orpheu configuration ended.
Orpheu functions search started.
        Parsing functions started.
                Parsing file "SV_ConnectClient" started
                                Searching for name "SV_ConnectClient"... FOUND
                Parsing file "SV_ConnectClient" ended
                Parsing file "Con_Printf" started
                                Argument type "char *" validated
                                Argument type "char *" validated
                                Searching for name "Con_Printf"... FOUND
                Parsing file "Con_Printf" ended
        Parsing functions ended.
Orpheu functions search ended.
Orpheu virtual functions search started.
        Parsing virtual functions started.
        Parsing virtual functions ended.
Orpheu virtual functions search ended.
Orpheu memory structures search started.
        Parsing memory structures started.
        Parsing memory structures ended.
Orpheu memory structures search ended.
[AMXX] Carregado 9 Admins do arquivo
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Executing AMX Mod X Configuration File
Mensagem Rolante sera exibida na frequencia de: 10:00 minutos
"ab_website" is ""
Server logging data to file logs/L1105033.log
L 11/05/2014 - 20:47:39: Log file started (file "logs/L1105033.log") (game "cstrike") (version "48/1.1.2.7/Stdio/5787")
L 11/05/2014 - 20:47:39: Server cvar "sv_contact" = ""
Connection to Steam servers successful.
   VAC secure mode is activated.
L 11/05/2014 - 20:47:40: Log file closed
Server logging data to file logs/L1105034.log
L 11/05/2014 - 20:47:40: Log file started (file "logs/L1105034.log") (game "cstrike") (version "48/1.1.2.7/Stdio/5787")
L 11/05/2014 - 20:47:40: World triggered "Round_Start"
L 11/05/2014 - 20:48:45: Team "CT" triggered "Target_Saved" (CT "1") (T "0")
L 11/05/2014 - 20:48:45: World triggered "Round_End"
L 11/05/2014 - 20:48:47: World triggered "Round_Start"
L 11/05/2014 - 20:49:12: Team "CT" triggered "Target_Saved" (CT "2") (T "0")
L 11/05/2014 - 20:49:12: World triggered "Round_End"
L 11/05/2014 - 20:49:14: World triggered "Round_Start"
L 11/05/2014 - 20:49:40: Team "CT" triggered "Target_Saved" (CT "3") (T "0")
L 11/05/2014 - 20:49:40: World triggered "Round_End"
L 11/05/2014 - 20:49:41: World triggered "Round_Start"
L 11/05/2014 - 20:50:07: Team "CT" triggered "Target_Saved" (CT "4") (T "0")
L 11/05/2014 - 20:50:07: World triggered "Round_End"
L 11/05/2014 - 20:50:09: World triggered "Round_Start"
L 11/05/2014 - 20:50:34: Team "CT" triggered "Target_Saved" (CT "5") (T "0")
L 11/05/2014 - 20:50:34: World triggered "Round_End"
L 11/05/2014 - 20:50:36: World triggered "Round_Start"
L 11/05/2014 - 20:51:02: Team "CT" triggered "Target_Saved" (CT "6") (T "0")
L 11/05/2014 - 20:51:02: World triggered "Round_End"
L 11/05/2014 - 20:51:04: World triggered "Round_Start"
L 11/05/2014 - 20:51:29: Team "CT" triggered "Target_Saved" (CT "7") (T "0")
L 11/05/2014 - 20:51:29: World triggered "Round_End"
L 11/05/2014 - 20:51:31: World triggered "Round_Start"
Anderson

“Liberei Iniciou Só Que O server Não Ligou
IP: 189.1.169.193:27015” Renatinho

Baixou o server usando uma conta steam?

Se fez isso, tenta ligar o server sem addons

Renatinho
[[email protected] 27020]# ./hlds_run -game cstrike +ip 189.1.169.193 -port 27015 +maxplayers 32 +map de_dust2 -secure -master -zone 8192 -noaff -pingboost 3
Auto-restarting the server on crash
Console initialized.
Using breakpad crash handler
Setting breakpad minidump AppID = 10
Forcing breakpad minidump interfaces to load
dlopen failed trying to load:
/root/.steam/sdk32/steamclient.so
with error:
/root/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 13:12:29 Aug 29 2013 (6153)
STEAM Auth Server
WARNING: UDP_OpenSocket: port: 27015  bind: Address already in use
FATAL ERROR (shutting down): Couldn't allocate dedicated server IP port 27015.
Anderson

Está dando um erro de IP ou Porta

O ip é 189.1.169.193 ?

+ip 189.1.169.193 -port 27015

Se for, da uma olha se já não tem um server aberto nessa porta, usando o htop ou top

Renatinho

reinstalei o steamcmd/server e Sim Instalei Pela Minha Conta Steam

Steam>[[email protected] steamcmd]# cd /home/server
[[email protected] server]# ./hlds_run -game cstrike +ip 189.1.169.193 -port 27015 +maxplayers 32 +map de_dust2 -secure -master -zone 8192 -noaff -pingboost 3
Auto-restarting the server on crash
Console initialized.
Using breakpad crash handler
Setting breakpad minidump AppID = 10
Forcing breakpad minidump interfaces to load
dlopen failed trying to load:
/root/.steam/sdk32/steamclient.so
with error:
/root/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 13:12:29 Aug 29 2013 (6153)
STEAM Auth Server
Server IP address 189.1.169.193:27015
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
FATAL ERROR (shutting down): Unable to initialize Steam.
Renatinho

Anderson Acabou De Instalar o Cs na maquina executei o comando só que deu os erros na prints
http://prntscr.com/53r7wb | http://prntscr.com/53qqwh | http://prntscr.com/53qv30

Anderson

Tenta usar isso:

./hlds_run -game cstrike +ip 189.1.169.14 -port 27015 +maxplayers 32 +map de_dust2 -secure -master
Renatinho

Ele Só Não Conecta E aparece na lista de favoritos as portas estão liberadas.

[[email protected] ~]# cd /home/server
[[email protected] server]# ./hlds_run -game cstrike +ip 189.1.169.14 -port 27015 +maxplayers 32 +map de_dust2 -secure -master
Auto-restarting the server on crash
Console initialized.
Using breakpad crash handler
Setting breakpad minidump AppID = 10
Forcing breakpad minidump interfaces to load
dlopen failed trying to load:
/root/.steam/sdk32/steamclient.so
with error:
/root/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 13:12:29 Aug 29 2013 (6153)
STEAM Auth Server
Server IP address 189.1.169.14:27015
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
dlopen failed trying to load:
/root/.steam/sdk32/steamclient.so
with error:
/root/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
couldn't exec listip.cfg
couldn't exec banned.cfg
Connection to Steam servers successful.
   VAC secure mode is activated.
Anderson

Mas apareceu a mensagem de conectado:

Connection to Steam servers successful.

Olha o IP no HLSW

Renatinho

Olhei Não Ta não, no sistema windows os Servers pegava...

Anderson

Tenta desativar o firewall para testes

service iptables stop
Renatinho

Pegou Só Que Quando Do Start No Firewall faço isso http://www.guruqa.com/topic.php?t=7484
do restart no firewall e ligo o server ele fica daquele jeito que aparece

Connection to Steam servers successful.


Só Que não da pra se conectar...

Anderson

“Pegou Só Que Quando Do Start No Firewall faço isso http://www.guruqa.com/topic.php?t=7484
do restart no firewall e ligo o server ele fica daquele jeito que aparece ” Renatinho

vai no arquivo /etc/sysconfig/iptables e vê se tem isso la:

-A INPUT -p udp -m udp --sport 1025:65355 --dport 27015 -j ACCEPT 
Renatinho

Ta Assim...

# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT

Botei O codigo Ficou Assim[Pretendo Abrir Outro Server Na Maquina]

# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
iptables -A INPUT -p udp -m udp --sport 27000:27030 --dport 1025:65355 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
Fernando

Não está baixando a pasta /server quando eu coloco meu login da steam, só baixa todos os arquivos do /server quando eu logo como "anonymous" ou se eu mudar o nome da pasta para /hlds mas quando a pasta /server apareçe no ftp do vps eu coloco o comando cd /home/server mas fala que a pasta não existe.

Fernando

Instalei o steamcmd e coloquei o nome da pasta do server como hlds tudo certo, mas quando vou entrar na pasta do hlds pra ligar o servidor "cd /home/hlds" apareçe o seguinte error: -bash: cd: /home/hlds: No such file or directory

Bieel

Navega pelas pastas:

SteamApps\common\Half-Life\cstrike

Talvez os arquivos do seu server estará nessa pasta

Fernando

Não tem essa pasta no ftp, só tem uma pasta chamada Steam
http://prntscr.com/57t4w5
Mas o server não está nessa pasta, já olhei todas!

Rafael

Olá , poderia me ajudar com este erro ?

[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
FATAL ERROR (shutting down): Unable to initialize Steam.
[code][/code]

Ferconkill

ensina com windows linux e mt ruim

mrC

Olá, poderiam me auxiliar com esse erro ?
http://i58.tinypic.com/5x7ak6.png

Anderson

“Olá, poderiam me auxiliar com esse erro ?
http://i58.tinypic.com/5x7ak6.png” mrC

A imagem está OFF

mrC

“Olá, poderiam me auxiliar com esse erro ?
http://i58.tinypic.com/5x7ak6.png
mrC

A imagem está OFF”


http://prntscr.com/6ghjbb

GuruQA
GuruQA
 
12
 
Anderson

Instalar server de counter-strike 1.6 no Linux

Anderson

Server de Counter-Strike - Configurando Firewall Linux - CentOS

Anderson

Fake admins ataque! Não adicione admins por id sem senha no seu Server

Anderson

Como estão lagando ou derrubando seu server de counter-strike 1.6 com um ataque simples

Anderson

Comandos para vê a lista de banidos do seu Server de Counter-Strike 1.6

Anderson

Server Redirect - Lote o seu Server de Counter-Strike 1.6

Anderson

Como desativar o sXe do seu Server sem da kicks no CS sem sXe

Anderson

Bloquear todas as mensagens do seu server de Counter-Strike 1.6 - AMXX

Anderson

server.cfg para rehlds

Anderson

server.cfg - Config que uso para Servers de Counter-Strike 1.6 usando Cloud com 4MB de link