oldschool counter-strike, old school counter-strike, oldschool cs, retro-cs, retro counter-strike, langames.net, hl downgrader, classic cs, setup counterstrike beta, betas
beta counter-strike, counter-strike beta, counter-strike beta 6, setup counter-strike beta 6.1, counter-strike betas, cs beta, cs betas, beta 5.2, beta 3.1, beta 1.1, cs, counter-strike beta 5.2, counter-strike beta 3.1 setup half-life linux server, setup counter-strike linux server, half-life 1016, half-life 3016, dedicated server, valve, won2, hlds Playing Counter-Strike Beta 6.1
 SERVER SIDE COMMANDS
#aliases for server administration
/etc/bash.bashrc
alias games="cd /usr/local/games"
alias stats="cd /usr/local/games/scripts/hlstats"
alias hl="cd /usr/local/games/halflife/hlds_l"
alias cs="cd /usr/local/games/halflife/hlds_l/cstrk61"
alias ap="cd /etc/apache2"
alias aprs="/etc/init.d/apache2 restart"
alias web="cd /var/www"
alias up="cd ../"
alias up2="cd ../../"
alias up3="cd ../../../"
alias up4="cd ../../../../"
alias dc="cd -"
alias bashrc="nano /etc/bash.bashrc"
alias top1="top -d 1"
alias wget="wget --no-check-certificate"

function mkdircd () { mkdir -p "$@" && eval cd "\"\$$#\""; }
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'

#common server settings
/usr/local/games/halflife/hlds_l/cstrk61/server.cfg
mp_friendlyfire 1
mp_autokick 0
mp_autoteambalance 0
mp_limitteams 0
mp_c4timer 45
rcon_password password
log on

#apt repositories
cat /etc/issue
deb http://archive.debian.org/debian/ squeeze main non-free contrib
deb http://ftp.uk.debian.org/debian/ wheezy main
deb-src http://ftp.uk.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

#prep for stats installation
apt-get install mysql-server
apt-get install php5
apt-get install apache2
apt-get install phpmyadmin

#manually configure network
sudo nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 89.207.128.252 89.207.130.252
sudo /etc/init.d/networking restart

#install ssh and configure
sudo apt-get install openssh-server
sudo systemctl status ssh
sudo service ssh status
nano /etc/ssh/sshd_config
PermitRootLogin yes
grep Port /etc/ssh/sshd_config
sudo lsof -i -n -P | grep LISTEN
sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT
sudo iptables-save > ~/iptables.txt

#create new map archive
tar -zcf maps.tar.gz /maps/
tar -zxvf maps.tar.gz

#enable sftp replace line 2 with 3
/etc/ssh/sshd_config
Subsystem sftp /usr/lib/openssh/sftp-server
Subsystem sftp internal-sftp
/etc/init.d/ssh restart

#install map archive
rsync -avh --progress 
/usr/local/games/halflife/maps/cstrk61/ 
/usr/local/games/halflife/hlds_l/cstrk61/

#enable run-time 32-bit support
apt-get install libc6-i386
apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 zlib1g:i386

 © 2015