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.
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
#!/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
man crontab
Warning: 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}"