sinik
03/12/2011, 13h31
Merci ca marche nickel^^
#!/bin/sh
screen -dr HLTV -X quit
#!/bin/sh
su user -c 'screen -dr HLTV -X quit'
./steam -command update -game cstrike -dir . -verify_all
#/bin/sh
cd /home/hltv/steam/
export LD_LIBRARY_PATH=/home/hltv/steam/_l:$LD_LIBRARY_PATH
./hltv -port 270##
./start_hltv.sh
Console initialized.
FileSystem initialized.
Network initialized.
ERROR! Network::CreateSocket: WSAEADDRINUSE.
***** FATAL ERROR *****
Proxy::Init: Could not create proxy port 27020.
*** STOPPING SYSTEM ***
ERROR! System::AddModule: couldn't initialize module (null).
Type 'help' for a list of commands.
WARNING! System::RunFrame: system time difference <= 0.
WARNING! System::RunFrame: system time difference <= 0.
WARNING! System::RunFrame: system time difference <= 0.
name "HLTV Evolution Gamerz" hostname "HLTV Evolution Gamerz" offlinetext "Sorry, game is delayed. Please try again later." delay "90.0" maxrate "3500" chatmode "0" serverpassword "************" connect "91.121.123.48:27015" rcon_password "***********" loopcmd 1 60 localmsg "You're watching HLTV. Visit www.team-egz.com" 5 -1 0.85 FFA000FF signoncommands "voice_scale 2; voice_overdrive 16; volume 0.5; echo Voice adjusted for HLTV" adminpassword "************" publicgame "1" maxclients "1200" blockvoice "0" slowmotion "1" exec director.cfg echo hltv.cfg loaded.
maxclients "1200" slowmotion "1" publicgame "1" serverpassword "*******" rcon_password "*********"
hostname "FR www.evolutiongamerz.com TV"
name "FR www.evolutiongamerz.com TV"
offlinetext "FR www.evolutiongamerz.com TV non disponible."
delay 90.0
maxrate 3500
logfile 0
chatmode 1
serverpassword "********"
connect "91.121.123.48:27015"
adminpassword "********"
signoncommands "voice_scale 2// voice_overdrive 16// volume 0.5// echo Voice adjusted for HLTV"
maxclients "255"
slowmotion 0.00
echo hltv.cfg OK.
Error:/home/serveurs/cz/privee/czero/dlls/director_i386.so: cannot open shared object file: No such file or directory
status
--- HLTV Status ---
Online 02:10, FPS 96.0, Version 4379 (Linux)
Local IP 91.121.123.48:27021, Network In 1.0, Out 1.5, Loss 0.00
Local Slots 0, Spectators 0 (max 0), Proxies 0
Total Slots 0, Spectators 0 (max 0), Proxies 1
Connected to Game Server 91.121.123.48:27015, Delay 90
Server Name "[FR] Evolution Gamerz Serveur Privée"
Game Time 01:47, Mod "czero", Map "de_dust2_cz.bsp", Players 1
evaa@ks2014867:/home/serveurs/cz/privee$ ./steam -command update -game valve -verify_all
Checking bootstrapper version ...
Updating Installation
Checking/Installing 'Linux Server Engine' version 40
Checking/Installing 'Half-Life Base Content' version 12
HLDS installation up to date
evaa@ks2014867:/home/serveurs/cz/privee$ ./steam -command update -game cstrike -dir . -verify_all
Checking bootstrapper version ...
Updating Installation
Checking/Installing 'Counter-Strike Base Content' version 25
Checking/Installing 'Linux Server Engine' version 40
Checking/Installing 'Half-Life Base Content' version 12
HLDS installation up to date
evaa@ks2014867:/home/serveurs/cz/privee$ ./hltv
Console initialized.
FileSystem initialized.
Error:libsteam_api_c_linux.so: cannot open shared object file: No such file or directory
Type 'help' for a list of commands.
WARNING! System::RunFrame: system time difference <= 0.
WARNING! System::RunFrame: system time difference <= 0.
quit
./steam -command update -game valve -verify_all
./steam -command update -game cstrike -dir . -verify_all
--- HLTV Status --- Online 01:02, FPS 83.3, Version 3651 (Linux) Local IP 127.0.1.1:27020, Network In 2.4, Out 1.5, Loss 0.00 Local Slots 2, Spectators 0 (max 0), Proxies 0 Total Slots 2, Spectators 0 (max 0), Proxies 1 Connected to Game Server 91.121.28.192:27016, Delay 90 Server Name "FR - WAR Serveur #cocaine" Game Time 15:42:35, Mod "cstrike", Map "de_dust2.bsp", Players 1
hltv:0/0
Spectators 0 (max 0)
status du serveur match # name userid uniqueid frag time ping loss adr # 1 "Cocaine TV" 108 HLTV hltv:0/0 delay:90 01:04 82.231.229.223:27020 1 users
status du serveur hltv --- HLTV Status --- Online 01:32, FPS 83.3, Version 3651 (Linux) Local IP 127.0.1.1:27020, Network In 2.4, Out 1.5, Loss 0.00 Local Slots 0, Spectators 0 (max 0), Proxies 0 Total Slots 0, Spectators 0 (max 0), Proxies 1 Connected to Game Server 91.121.28.192:27016, Delay 90 Server Name "FR - WAR Serveur #cocaine" Game Time 20:23:19, Mod "cstrike", Map "de_dust2.bsp", Players 1
./hltv -ip 82.231.229.223 -port 27020
./hltv
./hltv -ip 192.168.0.2 -port 27020
connect 82.231.229.223:27020 NET Ports: server 27015, client 27005 Server IP address 192.168.0.1:27015 Connecting to 82.231.229.223:27020... HLTV proxy disabled
hltv.cfg hostname "FR - HLTV Serveur #cocaine" name "Cocaine TV" loopcmd 1 15 localmsg "Vous regardez Cocaine TV - Visitez www.team-cocaine.fr" 5 -1 0.85 FFA000FF delay 45 maxclients 5 rate 10000 maxrate 3500 updaterate 20 logfile 0 chatmode 0 autoretry 1 blockvoice 1 publicgame 1 slowmotiom 0.5 exec director.cfg adminpassword "*****" serverpassword "*****" connect "91.121.28.192:27016"
start_hltv.sh #!/bin/sh cd /home/alex/hltv export LD_LIBRARY_PATH=/home/alex/hltv:$LD_LIBRARY_PATH ./hltv -ip 192.168.0.2 -port 27020
#!/bin/bash # Format de date pour le répertoire de destination FTP TIMEFOLDER=`date +%m-%Y` # Répertoire dans lequel se trouve les démos HLTVFOLDER=/home/hltv/steam/cstrike/ # Répertoire de destination - FTP Public FTPFOLDER=/home/ftp/$TIMEFOLDER/ #Format de date (jour de l'execution du script) DATELOG=`date +%d-%m-%Y` echo "************************************************" echo "* *" echo "* Publication des HLTV Play For Fun $DATELOG *" echo "* *" echo "************************************************" echo " " #On se positionne dans le répertoire où se trouvent les démos cd $HLTVFOLDER #On vérifie s'il y a des fichiers COUNT=`ls |wc -l` if [ $COUNT > 0 ] then # Test d'existance du répertoire de destination if [ -d $FTPFOLDER ] then echo "Le répertoire de destination $FTPFOLDER existe déjà." else echo "Le répertoire de destination $FTPFOLDER n'existe pas." mkdir $FTPFOLDER echo "Le répertoire de destination $FTPFOLDER a été créé." echo "-------------------------------------------------------" fi #On fait une boucle qui récupère tous les fichiers dem for file in *.dem do #On teste que le fichier existe bien if [ -f $file ] then #On compresse le fichier au format bz2 bzip2 -z $file echo "Le fichier $file a été compressé sous le nom $file.bz2" fi done echo "--------------------------------------------------" #On fait une boucle qui récupère tous les fichiers bz2 for fileC in *.bz2 do #On teste que le fichier existe bien if [ -f $fileC ] then #On déplace le fichier dans le dossier FTP mv $fileC $FTPFOLDER$fileC echo "Le fichier $fileC a été publié dans le répertoire $FTPFOLDER." fi done else echo "Aucun fichier à traiter." fi
record nom_demo
stoprecording
/home/hltv/steam/cstrike
nom_demo-YYMMDDHHMM-nom_map.dem
adduser hltv
su hltv
cd /home/hltv
mkdir steam
cd steam
wget http://storefront.steampowered.com/download/hldsupdatetool.bin
chmod -cvR a+x hldsupdatetool.bin
./hldsupdatetool.bin
rm -rf ~/.steam
./steam update
./steam -command update -game "valve" -dir .
mkdir cstrike
touch hltv.cfg
touch director.cfg
vi hltv.cfg
delay 90 maxclients 0 rate 10000 maxrate 3500 updaterate 20 logfile 0 chatmode 0 name "Le nom qui apparaîtra dans la liste des joueurs" hostname "Le nom du serveur qui apparaîtra dans HLSW (par exemple)" autoretry 1 blockvoice 1 publicgame 0 slowmotiom 0.00 exec director.cfg adminpassword "mot_de_passe_rcon_du_hltv" serverpassword "mot_de_passe_du_server_sur_lequel_on_connecte_le_hltv_par_défaut" connect "adresse_ip_et_port_sur_lequel_on_connecte_le_hltv_par_défaut"
touch director.cfg
maxclients 0 slowmotion 0.00
./hltv
touch start_hltv.sh
vi start_hltv.sh
#!/bin/sh cd /home/hltv/steam export LD_LIBRARY_PATH=/home/hltv/steam:$LD_LIBRARY_PATH ./hltv
chmod +x start_hltv.sh
./start_hltv.sh
screen -dmS HLTV ./start_hltv.sh
#!/bin/sh cd /home/hltv/steam screen -dmS HLTV ./start_hltv.sh
#!/bin/sh cd /home/hltv/steam su hltv -c 'screen -dmS HLTV ./start_hltv.sh'