If you're on a vps that is running linux...
Download CS2D
Download the dedicated server
Copy these files on the server, and make sure the dedicated server executable is within the CS2D folder
Create a user account that is not part of sudo
useradd cs2d_sv
passwd [optional password]
Change the owner and permissions
chown -R cs2d_sv:cs2d_sv /home/cs2d_sv/
chmod -R u=rwx /home/cs2d_sv/
Switch user account
su cs2d_sv
[enter password that may have been set]
Run the server
screen /home/cs2d_sv/cs2d_dedicated >> /dev/null 2>&1
Close the server
screen -list
screen -S [screen id] -X quit
If you're on Windows...
Download CS2D
Download the dedicated server
Copy these files on the server, and make sure the dedicated server executable is within the CS2D folder
Run the server
C:\CS2D\cs2d_dedicated.exe
Close the server by pressing CTRL-C