Get CS2D Linux
Get the windows client zip archive
Extract both to the same folder
Start server
I'm newbie in Linux, what is the cmd for start the server?
Thanks.
Servers
How open the CS2D server on Ubuntu?
How open the CS2D server on Ubuntu?
1

Rocik has written
VaiN has written
sudo apt-get install screen
screen -dmS sv_name /path/to/cs2d/directory/cs2d_dedicated
screen -list
screen kill sv_name
screen kill pid
man screen
VaiN: ;
sheeL: It is best that you learn to actually use Linux than just copy and paste bits and pieces from websites. Screen is a utility used to access several virtual terminals with a single TTY. It happenstances to be useful in this case, RTFM is a good idea. Learn to use the 'man' command and all your problems will disappear. #!/usr/bin/env bash
PIDFILE="$HOME/tmp/cs2d_dedicated.pid"
if [ -e "${PIDFILE}" ] && (ps -u $USER -f | grep "[ ]$(cat ${PIDFILE})[ ]"); then
echo "Already running."
exit 99
fi
$HOME/cs2d/cs2d_dedicated & > $HOME/tmp/cs2d_dedicated.log &
echo $! > "${PIDFILE}"
chmod 644 "${PIDFILE}"
* * * * * /home/cs2duser/cs2d/cs2d_starter
_Yank has written
ohaz: @
VaiN: @
_Yank:
man crontab
ohaz: your code is getting for me a warningWarning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
#!/usr/bin/env bash
PIDFILE=/home/CS2D/cs2d_dedicated.pid"
if [ -e "${PIDFILE}" ] && (ps -u $USER -f | grep "[ ]$(cat ${PIDFILE})[ ]"); then
echo "Servidor online."
exit 99
fi
/home/CS2D/cs2d_dedicated & > /home/CS2D/cs2d_dedicated.log &
echo $! > "${PIDFILE}"
chmod 644 "${PIDFILE}"
1
