imjustakid
11-23-2006, 10:17 AM
Introduction
What do we need to make a Counter-Strike 1.6 Linux Server?
- a computer having linux installed and direct acces or ssh access
- root privileges
- internet connection (at least 100kB/s speed - metro and extern) optic fiber.
- 1-2 GB disc space
- wget, screen and a text editor (pico, nano, vi or mcedit)
Downloading files
Make a new working directory first:
mkdir /usr/hlds
cd /usr/hlds
Then download the following files:
- HldsUpdateTool
wget http://www.steampowered.com/download/hldsupdatetool.bin
- NoSteamAuthEngines
wget http://www.cstrike.ro/cstrike_files/engine.v15.tgz
- AdminMod + MetaMod
wget http://ovh.dl.sourceforge.net/sourceforge/halflifeadmin/halflife-admin-2.50.60-linux.tar.gz
- StatsMe
wget http://ovh.dl.sourceforge.net/sourceforge/statsme/statsme-2.8.3-cstrike.zip
-----------------------------------------------------------------------
Server Installation
server.cfg configuration
In /usr/hlds/cstrike directory we have a server.cfg file which we are opening with pico, nano, mcedit, vi or another Linux text editor
Replace the rows and write the cvars from here.
AdminMod Installation
Extract the AdminMod anywhere on your Hard Drive.
Follow theese steps to install and configure the AdminMod
Add/Remove admins
Open users.ini using pico, nano, mcedit or vi text editors. Write down the names and passwords of admins, followed by server access level. Let's say that we want to create a maximum level admin called John and password john1234. Write the following line in users.ini file:
John:john1234:131071
For custom access levels go to http://www.adminmod.org/help/online/Admin_Mod_Reference/Access_Levels_and_Respective_Admin_Commands.htm and select the desired commands you want the admin to be able to have access. Then press "calculate access right" and write the resulted number in user.ini file after the admin name and password. Just like the John example, but replace the 131071 with the new number. Each admin/password/level must be on different lines.
Starting the server
Change directory to /usr/hlds and do:
./hlds_run -game cstrike +ip ip.de.internet +sv_lan 1 -nomaster +maxplayers 18 +map de_dust2
In order to start the server on screen use the following command:
screen -A -m -d -S hlds ./hlds_run -game cstrike +ip ip.de.internet +sv_lan 1 -nomaster +maxplayers 18 +map de_dust2
This command starts the server in background. In order to attach us again to it, write:
screen -r hlds
In order to send it to background again, hold pressed the ctrl button and press A letter from the keyboard and after that press D key.
If you want the server to start on every Linux server boot, you must add the following lines in /etc/rc.local file:
cd /usr/hlds
screen -A -m -d -S hlds ./hlds_run -game cstrike +ip ip.de.internet +sv_lan 1
-nomaster +maxplayers 18 +map de_dust2
Admin_who plugin
Anyone who's on the server can use the admin_who command, which will show the server connected admins as follows:
Moderators
- maximum access admins (admin_rcon admin_exec * etc)
Administrators
- all commands access, except admin_rcon, admin_exec * etc
Helpers
- all access except admin_rcon and admin_ban
Slots
- reserved name and/or reserved slot
Download and copy this plugin to cstrike/addons/adminmod/scripts/ and then add the following line to cstrike/addons/adminmod/config/plugins.ini:
addons/adminmod/scripts/admin_who.amx
What do we need to make a Counter-Strike 1.6 Linux Server?
- a computer having linux installed and direct acces or ssh access
- root privileges
- internet connection (at least 100kB/s speed - metro and extern) optic fiber.
- 1-2 GB disc space
- wget, screen and a text editor (pico, nano, vi or mcedit)
Downloading files
Make a new working directory first:
mkdir /usr/hlds
cd /usr/hlds
Then download the following files:
- HldsUpdateTool
wget http://www.steampowered.com/download/hldsupdatetool.bin
- NoSteamAuthEngines
wget http://www.cstrike.ro/cstrike_files/engine.v15.tgz
- AdminMod + MetaMod
wget http://ovh.dl.sourceforge.net/sourceforge/halflifeadmin/halflife-admin-2.50.60-linux.tar.gz
- StatsMe
wget http://ovh.dl.sourceforge.net/sourceforge/statsme/statsme-2.8.3-cstrike.zip
-----------------------------------------------------------------------
Server Installation
server.cfg configuration
In /usr/hlds/cstrike directory we have a server.cfg file which we are opening with pico, nano, mcedit, vi or another Linux text editor
Replace the rows and write the cvars from here.
AdminMod Installation
Extract the AdminMod anywhere on your Hard Drive.
Follow theese steps to install and configure the AdminMod
Add/Remove admins
Open users.ini using pico, nano, mcedit or vi text editors. Write down the names and passwords of admins, followed by server access level. Let's say that we want to create a maximum level admin called John and password john1234. Write the following line in users.ini file:
John:john1234:131071
For custom access levels go to http://www.adminmod.org/help/online/Admin_Mod_Reference/Access_Levels_and_Respective_Admin_Commands.htm and select the desired commands you want the admin to be able to have access. Then press "calculate access right" and write the resulted number in user.ini file after the admin name and password. Just like the John example, but replace the 131071 with the new number. Each admin/password/level must be on different lines.
Starting the server
Change directory to /usr/hlds and do:
./hlds_run -game cstrike +ip ip.de.internet +sv_lan 1 -nomaster +maxplayers 18 +map de_dust2
In order to start the server on screen use the following command:
screen -A -m -d -S hlds ./hlds_run -game cstrike +ip ip.de.internet +sv_lan 1 -nomaster +maxplayers 18 +map de_dust2
This command starts the server in background. In order to attach us again to it, write:
screen -r hlds
In order to send it to background again, hold pressed the ctrl button and press A letter from the keyboard and after that press D key.
If you want the server to start on every Linux server boot, you must add the following lines in /etc/rc.local file:
cd /usr/hlds
screen -A -m -d -S hlds ./hlds_run -game cstrike +ip ip.de.internet +sv_lan 1
-nomaster +maxplayers 18 +map de_dust2
Admin_who plugin
Anyone who's on the server can use the admin_who command, which will show the server connected admins as follows:
Moderators
- maximum access admins (admin_rcon admin_exec * etc)
Administrators
- all commands access, except admin_rcon, admin_exec * etc
Helpers
- all access except admin_rcon and admin_ban
Slots
- reserved name and/or reserved slot
Download and copy this plugin to cstrike/addons/adminmod/scripts/ and then add the following line to cstrike/addons/adminmod/config/plugins.ini:
addons/adminmod/scripts/admin_who.amx