SHARE
TWEET

Untitled

a guest Aug 19th, 2019 108 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. First create firewall rule with All Ports allowed on ip range 0.0.0.0/0  and Allow HTTP To all Servers
  2.  
  3. Main Server:  
  4.  
  5. Allow HTTPS
  6.  
  7. First link external IP to cloudflare domains ibdp.ml and mineview.ml
  8.  
  9. sudo apt-get update
  10.  
  11. sudo apt-get install lib32gcc1 lib32stdc++6 coreutils screen tmux socat unzip git wget libsqlite3-dev
  12.  
  13. sudo apt install default-jre
  14.  
  15. sudo apt install ufw
  16.  
  17. sudo apt install nginx
  18.  
  19. sudo ufw allow 'Nginx Full'
  20.  
  21. sudo ufw allow OpenSSH
  22.  
  23. sudo ufw allow 25565  
  24.  
  25. sudo ufw enable  
  26.  
  27. sudo systemctl start nginx
  28.  
  29. sudo nano /etc/nginx/sites-available/ibdp.ml
  30.  
  31. server {
  32.     listen 80;
  33.     server_name ;
  34.     return 444;
  35. }
  36.  
  37. server {
  38.     listen 80 default_server;
  39.     server_name ibdp.ml;
  40.  
  41.     index index.html;
  42.     root /var/www/ibdp.ml;
  43.    
  44.     location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
  45.         expires max;
  46.         log_not_found off;
  47.     }
  48.    
  49.     access_log /var/log/nginx/ibdp.ml-access.log;
  50.     error_log /var/log/nginx/ibdp.ml-error.log;
  51. }
  52.  
  53. server {
  54.     listen 80;
  55.     server_name console.ibdp.ml;
  56.  
  57.     access_log /var/log/nginx/mcmyadmin-access.log;
  58.     error_log /var/log/nginx/mcmyadmin-error.log;
  59.  
  60.     location / {
  61.         proxy_pass http://127.0.0.1:8080/;
  62.         proxy_set_header Host $host;
  63.         proxy_set_header X-Forwarded-For $remote_addr;
  64.     }
  65. }
  66.  
  67. server {
  68.     listen 80;
  69.     server_name console.mineview.ml;
  70.  
  71.     access_log /var/log/nginx/mcmyadmin-access.log;
  72.     error_log /var/log/nginx/mcmyadmin-error.log;
  73.  
  74.     location / {
  75.         proxy_pass http://127.0.0.1:8080/;
  76.         proxy_set_header Host $host;
  77.         proxy_set_header X-Forwarded-For $remote_addr;
  78.     }
  79. }
  80.  
  81. Ctrl-O
  82. Enter
  83. Ctrl X
  84.  
  85. sudo ln -s /etc/nginx/sites-available/ibdp.ml /etc/nginx/sites-enabled/
  86.  
  87. sudo rm -r /etc/nginx/sites-available/default
  88.  
  89. sudo systemctl restart nginx
  90.  
  91. sudo apt-get install python-certbot-nginx -t stretch-backports
  92.  
  93. sudo certbot --nginx
  94.  
  95. sudo su -c "bash <(wget -qO- https://cubecoders.com/getamp.sh)"    
  96.  
  97. 3164206d-e418-4a85-b723-14ff50a903aa
  98.  
  99. sudo su -l AMP
  100.  
  101. ampinstmgr restart ADS01
  102.  
  103.  
  104. Target Server:  
  105.  
  106. sudo apt-get update
  107.  
  108. sudo apt-get install lib32gcc1 lib32stdc++6 coreutils screen tmux socat unzip git wget libsqlite3-dev
  109.  
  110. sudo apt install default-jre
  111.  
  112. sudo su -c "bash <(wget -qO- https://cubecoders.com/getamp.sh)"    
  113.  
  114. 3164206d-e418-4a85-b723-14ff50a903aa
  115.  
  116. sudo su -l AMP
  117.  
  118. ampinstmgr restart ADS01
  119.  
  120.  
  121. Directory Management:
  122.  
  123. Remove Directory:
  124. rm -r (Directory)
  125.  
  126. Remove File:
  127. rm -i (File)
  128.  
  129. Remove Directory and Files inside:
  130. rm -rf (Directory)
  131.  
  132. Show Storage:
  133. df
  134.  
  135. To List Files:
  136. ls -d $PWD/*
  137.  
  138. To Download Etc:
  139. cd /home/AMP/.ampdata/instances/Minecraft02/Minecraft/plugins
  140. wget http://yivesmirror.com/files/paper/Paper-latest.jar
  141.  
  142. Unzip Etc:
  143. unzip ampinstmgr.zip
  144.  
  145.  
  146. ADS Management:
  147.  
  148. Stop ADS:
  149. ampinstmgr StopAllInstances
  150.  
  151. Start ADS:
  152. ampinstmgr startinstance ADS01
  153.  
  154. Restart ADS:
  155. ampinstmgr restart ADS01
  156.  
  157. Updating the AMP instances:
  158. ampinstmgr upgradeall
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top