First of all, my advice is to get yourself a 64-bit distribution. It will not limit RAM usage and many server packages can only be installed on 64-bit machines. If an application is 64-bit then it can only use 64-bit shared libraries, there is no backwards compatibility (in case you run Windows, you can run 32-bit applications on 64-bit machines).
CS2D dedicated server is 32-bit application (unfortunately), so if you have 64-bit distribution, you'll need to install 32-bit libraries first. Skip this step if your distribution is 32-bit.
1
apt-get install ia32-libs
Now let's get CS2D server. Navigate to a folder of your choice (let it be /home directory). Assuming you're in the root of your server.
1
2
2
cd home mkdir cs2d-ds
If you can connect to your server through SFTP protocol, skip this step. Just download CS2D itself and CS2D dedicated server for Linux, unzip both archives, and move everything to /cs2d-ds folder you've just created. I like everything being clean, so I would also delete batch files and Windows executables from the folder, only leaving Linux executable.
If you can only connect through SSH protocol, then we'll get a CS2D server only using terminal.
Server will not run properly if permissions are not set correctly. Depending on your server configuration you can either set permissions to 777 or 775.
1
chmod cs2d_dedicated 777
1
chmod -R 777 *
Finally, you can run your CS2D server. Sometimes you have to mark your server as executable - but that's very rare and highly unneeded.
1
chmod cs2d_dedicated +x
1
./cs2d_dedicated
1
./home/cs2d-ds/cs2d_dedicated
1
nohup /home/cs2d-ds/cs2d_dedicated
CS2D dedicated server supports some commandline parameters.
1
nohup /home/cs2d-ds/cs2d_dedicated -name NAMESERV -port 1337 -rcon passwd
edited 3×, last 24.11.12 04:04:07 pm