Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. mkdir -p /usr/local/gcp ; cd /usr/local/gcp; mkdir installs ;
  2. # Download Remote Software
  3. wget http://gamecp.com/get/from/this/mirror/GameCP-Remote-Linux-Version2.tar.gz ;
  4. 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 ;
  5. # Install Service
  6. if [ ! -f /etc/init.d/gamecp ] ; then cp -f gamecp /etc/init.d/gamecp; fi;
  7. if [ -f /sbin/chkconfig ] ; then chkconfig --add gamecp ; chkconfig --level 345 gamecp on ; fi ;
  8. if [ -f /usr/sbin/update-rc.d ] ; then update-rc.d gamecp defaults; update-rc.d gamecp enable; fi ;
  9. # Create Configuration File
  10. if [ -f /usr/local/gcp/gamecp.ini ] ; then rm -f /usr/local/gcp/gamecp.ini; fi;
  11. cat > /usr/local/gcp/gamecp.ini <<DELIM
  12. url=http://cygnex.org/servermanager
  13. serverid=1
  14. passphrase=CrDltksrmx
  15. debug=off
  16. listenport=240
  17. user_group=default
  18. DELIM
  19. # Open Firewall
  20. 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 ;
  21. # Start GameCP Remote
  22. /etc/init.d/gamecp start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement