Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mkdir -p /usr/local/gcp ; cd /usr/local/gcp; mkdir installs ;
- # Download Remote Software
- wget http://gamecp.com/get/from/this/mirror/GameCP-Remote-Linux-Version2.tar.gz ;
- tar zxvf GameCP-Remote-Linux-Version2.tar.gz ; rm -f GameCP-Remote-Linux-Version2.tar.gz ;chmod +x ./gamecp bin32/gamecp_i386 bin64/gamecp_x64 ;
- # Install Service
- if [ ! -f /etc/init.d/gamecp ] ; then cp -f gamecp /etc/init.d/gamecp; fi;
- if [ -f /sbin/chkconfig ] ; then chkconfig --add gamecp ; chkconfig --level 345 gamecp on ; fi ;
- if [ -f /usr/sbin/update-rc.d ] ; then update-rc.d gamecp defaults; update-rc.d gamecp enable; fi ;
- # Create Configuration File
- if [ -f /usr/local/gcp/gamecp.ini ] ; then rm -f /usr/local/gcp/gamecp.ini; fi;
- cat > /usr/local/gcp/gamecp.ini <<DELIM
- url=http://cygnex.org/servermanager
- serverid=1
- passphrase=CrDltksrmx
- debug=off
- listenport=240
- user_group=default
- DELIM
- # Open Firewall
- if [ -f /sbin/iptables ] ; then iptables -I INPUT -p tcp --dport 240 -j ACCEPT; iptables -I INPUT -p udp --dport 240 -j ACCEPT; iptables-save; fi ;
- # Start GameCP Remote
- /etc/init.d/gamecp start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement