Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.95 KB | None | 0 0
  1. root@core ~# history
  2. 1 apt-get update
  3. 2 apt-get -y install screen python-pip rdiff-backup git openjdk-7-jre-headless
  4. 3 pip2 install cherrypy==3.2.3
  5. 4 mkdir -p /usr/games
  6. 5 cd /usr/games
  7. 6 git clone git://github.com/hexparrot/mineos minecraft
  8. 7 cd minecraft
  9. 8 git config core.filemode false
  10. 9 chmod +x server.py mineos_console.py generate-sslcert.sh
  11. 10 ln -s /usr/games/minecraft/mineos_console.py /usr/local/bin/mineos
  12. 11 mkdir -p /usr/games
  13. 12 cd /usr/games
  14. 13 git clone git://github.com/hexparrot/mineos minecraft
  15. 14 cd minecraft
  16. 15 git config core.filemode false
  17. 16 chmod +x server.py mineos_console.py generate-sslcert.sh
  18. 17 ln -s /usr/games/minecraft/mineos_console.py /usr/local/bin/mineos
  19. 18 cd /usr/games/minecraft
  20. 19 cp init/mineos /etc/init.d/
  21. 20 chmod 744 /etc/init.d/mineos
  22. 21 update-rc.d mineos defaults
  23. 22 cp init/minecraft /etc/init.d/
  24. 23 chmod 744 /etc/init.d/minecraft
  25. 24 update-rc.d minecraft defaults
  26. 25 cp mineos.conf /etc/
  27. 26 root
  28. 27 quit
  29. 28 exit
  30. 29 su mv /home/mc/ResonateRise /var/games/minecraft/servers/
  31. 30 su -mv /home/mc/ResonateRise /var/games/minecraft/servers/
  32. 31 mkdir -p /usr/games
  33. 32 cd /usr/games
  34. 33 git clone git://github.com/hexparrot/mineos minecraft
  35. 34 cd minecraft
  36. 35 git config core.filemode false
  37. 36 chmod +x server.py mineos_console.py generate-sslcert.sh
  38. 37 ln -s /usr/games/minecraft/mineos_console.py /usr/local/bin/mineos
  39. 38 cd /usr/games/minecraft
  40. 39 git fetch
  41. 40 git reset --hard origin/master
  42. 41 chmod +x server.py mineos_console.py
  43. 42 cd /usr/games/minecraft
  44. 43 git fetch
  45. 44 git merge origin/master
  46. 45 sudo mv /home/mc/ResonateRise /var/games/minecraft/servers/
  47. 46 -sudo mv /home/mc/ResonateRise /var/games/minecraft/servers/
  48. 47 su
  49. 48 cd /usr/games/minecraft
  50. 49 git fetch
  51. 50 git merge origin/master
  52. 51 supervisorctl restart mineos
  53. 52 quit
  54. 53 exit
  55. 54 wget -O - http://overviewer.org/debian/overviewer.gpg.asc | sudo apt-key add -
  56. 55 wget -O - http://overviewer.org/debian/overviewer.gpg.asc | apt-key add
  57. 56 wget -O - http://overviewer.org/debian/overviewer.gpg.asc
  58. 57 apt-key add
  59. 58 wget -O - http://overviewer.org/debian/overviewer.gpg.asc | sudo apt-key add -
  60. 59 apt-get update
  61. 60 apt-get install minecraft-overviewer
  62. 61 overviewer.py
  63. 62 overviewer.py "world" /var/games/minecraft/servers/ResonantRise /var/games/map
  64. 63 exit
  65. 64 apt-get remove overviewer.org
  66. 65 apt-get remove overviewer.py
  67. 66 server.properties -> query-enable -> true
  68. 67 server.properties -> query-enable -> true.
  69. 68 server.properties -> query-enable
  70. 69 npm install
  71. 70 java -version
  72. 71 echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
  73. 72 echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
  74. 73 apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
  75. 74 apt-get update
  76. 75 apt-get install oracle-java8-installer
  77. 76 java -version
  78. 77 nano /etc/resolv.conf
  79. 78 adduser teamspeak
  80. 79 Y
  81. 80 su teamspeak
  82. 81 root
  83. 82 login
  84. 83 /usr/sbin/userdel teamspeak
  85. 84 iptables -A INPUT -p udp --dport 9987 -j ACCEPT
  86. 85 iptables -A INPUT -p udp --sport 9987 -j ACCEPT
  87. 86 iptables -A INPUT -p tcp --dport 30033 -j ACCEPT
  88. 87 iptables -A INPUT -p tcp --sport 30033 -j ACCEPT
  89. 88 iptables -A INPUT -p tcp --dport 10011 -j ACCEPT
  90. 89 iptables -A INPUT -p tcp --sport 10011 -j ACCEPT
  91. 90 iptables -A INPUT -i lo -j ACCEPT # Since a lot of interprocess-communication goes over the loopback-interface you should allow it to avoid very, very weird and difficult problems
  92. 91 iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT # Accept packets that respond to outgoing requests
  93. 92 iptables -A INPUT -p icmp -j ACCEPT
  94. 93 iptables -A INPUT -p tcp --dport 22 -j ACCEPT
  95. 94 iptables -A INPUT -p udp --dport 9987 -j ACCEPT
  96. 95 iptables -A INPUT -p tcp --dport 30033 -j ACCEPT
  97. 96 iptables -A INPUT -p tcp --dport 10011 -j ACCEPT
  98. 97 iptables -P INPUT DROP # DROP everything else
  99. 98 ip6tables -A INPUT -i lo -j ACCEPT
  100. 99 ip6tables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
  101. 100 ip6tables -A INPUT -p icmpv6 -j ACCEPT
  102. 101 ip6tables -A INPUT -p tcp --dport 22 -j ACCEPT
  103. 102 ip6tables -A INPUT -p udp --dport 9987 -j ACCEPT
  104. 103 ip6tables -A INPUT -p tcp --dport 30033 -j ACCEPT
  105. 104 ip6tables -A INPUT -p tcp --dport 10011 -j ACCEPT
  106. 105 ip6tables -P INPUT DROP
  107. 106 useradd -m -s /bin/bash teamspeak
  108. 107 passwd gguuss
  109. 108 passwd teamspeak
  110. 109 teamspeak ALL=(ALL:ALL) ALL
  111. 110 teamspeak ALL=(ALL) ALL
  112. 111 teamspeak ALL=ALL ALL
  113. 112 teamspeak ALL=ALL
  114. 113 help ALL
  115. 114 info ALL
  116. 115 man -k ALL
  117. 116 root ALL=(ALL)
  118. 117 shopt -s extglob
  119. 118 teamspeak ALL=(ALL:ALL) ALL
  120. 119 logout
  121. 120 #!/bin/sh
  122. 121 ### BEGIN INIT INFO
  123. 122 # Provides: teamspeak
  124. 123 # Required-Start: $local_fs $network
  125. 124 # Required-Stop: $local_fs $network
  126. 125 # Default-Start: 2 3 4 5
  127. 126 # Default-Stop: 0 1 6
  128. 127 # Description: Teamspeak 3 Server
  129. 128 ### END INIT INFO
  130. 129 USER="teamspeak"
  131. 130 DIR="/home/teamspeak/teamspeak3-server_linux-amd64"
  132. 131 ###### Teamspeak 3 server start/stop script ######
  133. 132 case "$1" in start) su $USER -c "$/ts3server_startscript.sh start"; ;; stop) su $USER -c "$/ts3server_startscript.sh stop"; ;; restart) su $USER -c "$/ts3server_startscript.sh resta
  134. rt"; ;; status) su $USER -c "$/ts3server_startscript.sh status"; ;; *) echo "Usage: " >&2; exit 1; ;; esac
  135. 133 sudo chmod 700 /etc/init.d/teamspeak
  136. 134 sudo service teamspeak start
  137. 135 su teamspeak
  138. 136 mv teamspeak3-server_linux-amd64 ts3server
  139. 137 wget http://dl.4players.de/ts/releases/3.0.11/teamspeak3-server_linux-amd64-3.0.11.tar.gz
  140. 138 tar -zxvf teamspeak3-server_linux-amd64-3.0.11.tar.gz
  141. 139 mv teamspeak3-server_linux-amd64 ts3server
  142. 140 rm teamspeak3-server_linux-amd64-3.0.11.tar.gz
  143. 141 cd ts3server
  144. 142 sudo rm - rf /dev/shm
  145. 143 sudo mkdir /dev/shm
  146. 144 sudo mount /dev/shm
  147. 145 sudo mount -t tmpfs tmpfs /dev/shm
  148. 146 ./ts3server_startscript.sh start
  149. 147 ipconfig
  150. 148 ip
  151. 149 ipconfig -a
  152. 150 ifconfig
  153. 151 ifconfig -a
  154. 152 ping 199.36.90.103
  155. 153 ping(10) 199.36.90.103:9987
  156. 154 ping(10) 199.36.90.103 9987
  157. 155 @reboot /home/teamspeak/teamspeak3-server_linux-amd64/ts3server_startscript.sh start
  158. 156 /home/teamspeak/teamspeak3-server_linux-amd64/ts3server_startscript.sh start
  159. 157 /home/teamspeak/teamspeak3-server_linux-amd64/ts3server_startscript.sh restart
  160. 158 sudo -u teamspeak screen -dmS TSS3 ./ts3server_linux_amd64
  161. 159 -u teamspeak screen -dmS TSS3 ./ts3server_linux_amd64
  162. 160 /home/teamspeak/teamspeak3-server_linux-amd64/ts3server_startscript.sh stop
  163. 161 /home/teamspeak/teamspeak3-server_linux-amd64/ts3server_startscript.sh start
  164. 162 /home/teamspeak/teamspeak3-server_linux-amd64/ts3server_startscript.sh restart
  165. 163 mount -t tmpfs tmpfs /dev/shm
  166. 164 /ts3server_startscript.sh status
  167. 165 /home/teamspeak/ts3server_startscript.sh status
  168. 166 tcpdump udp port 9987
  169. 167 netstat -ant | grep LISTEN
  170. 168 netstat -lnp | grep ts3
  171. 169 iptables -I INPUT -p tcp --dport 3919 -j ACCEPT
  172. 170 service iptables restart
  173. 171 service iptables save
  174. 172 help iptable
  175. 173 info iptable
  176. 174 iptables help
  177. 175 itables -h
  178. 176 iptables --help
  179. 177 iptables -list
  180. 178 iptables --list
  181. 179 iptables -I INPUT -p tcp --dport 30033 -j ACCEPT
  182. 180 netstat -ant | grep LISTEN
  183. 181 /bin/bash update_webui.sh /bin/bash reset_webui.sh
  184. 182 cd /usr/games/minecraft git fetch git merge origin/master npm install
  185. 183 git fetch
  186. 184 git merge origin/master
  187. 185 npm install
  188. 186 test
  189. 187 quit
  190. 188 cd /usr/games/minecraft
  191. 189 git fetch
  192. 190 git reset --hard origin/master
  193. 191 rm -rf node_modules
  194. 192 npm install
  195. 193 git reset --hard origin/master chmod +x server.py mineos_console.py
  196. 194 git reset --hard origin/master
  197. 195 git merge origin/master
  198. 196 /bin/bash update_webui.sh
  199. 197 cd /usr/games/minecraft git fetch git merge origin/master npm install
  200. 198 cd /usr/games/minecraft
  201. 199 apt-get remove nodejs nodes-legacy npm
  202. 200 apt-get update
  203. 201 apt-get -y install screen python-pip rdiff-backup git openjdk-7-jre-headless
  204. 202 pip2 install cherrypy==3.2.3
  205. 203 mkdir -p /usr/games
  206. 204 cd /usr/games
  207. 205 git clone git://github.com/hexparrot/mineos minecraft
  208. 206 cd minecraft
  209. 207 git config core.filemode false
  210. 208 chmod +x server.py mineos_console.py generate-sslcert.sh
  211. 209 ln -s /usr/games/minecraft/mineos_console.py /usr/local/bin/mineos
  212. 210 cd /usr/games/minecraft cp init/mineos /etc/init.d/ chmod 744 /etc/init.d/mineos update-rc.d mineos defaults cp init/minecraft /etc/init.d/ chmod 744 /etc/init.d/minecraft update-rc.d
  213. minecraft defaults cp mineos.conf /etc/
  214. 211 ./generate-sslcert.sh
  215. 212 service mineos start
  216. 213 apt-get update apt-get -y install screen python-pip rdiff-backup git openjdk-7-jre-headless
  217. 214 apt-get update
  218. 215 apt-get -y install screen python-pip rdiff-backup git openjdk-7-jre-headless
  219. 216 pip2 install cherrypy==3.2.3
  220. 217 pip install cherrypy==3.2.3
  221. 218 mkdir -p /usr/games cd /usr/games git clone git://github.com/hexparrot/mineos minecraft cd minecraft git config core.filemode false chmod +x server.py mineos_console.py generate-sslce
  222. rt.sh ln -s /usr/games/minecraft/mineos_console.py /usr/local/bin/mineos
  223. 219 mkdir -p /usr/games
  224. 220 cd /usr/games
  225. 221 git clone git://github.com/hexparrot/mineos minecraft
  226. 222 cd minecraft
  227. 223 git config core.filemode false
  228. 224 chmod +x server.py mineos_console.py generate-sslcert.sh
  229. 225 ln -s /usr/games/minecraft/mineos_console.py /usr/local/bin/mineos
  230. 226 service mineos start
  231. 227 supervisorctl start mineos
  232. 228 cd /usr/games/minecraft git fetch git pull npm install
  233. 229 cd /usr/games/minecraft
  234. 230 git reset --hard origin/master
  235. 231 cd /usr/games/minecraft
  236. 232 nodejs webui.js
  237. 233 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement