Network-Reinstall-System-Modify.sh 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. #!/bin/bash
  2. ## License: GPL
  3. ## This is the magically modified version of the one-click reload script.
  4. ## It can reinstall CentOS, Debian, Ubuntu and other Linux systems (continuously added) over the network in one click.
  5. ## It can reinstall Windwos 2003, 7, 2008R2, 2012R2, 2016, 2019 and other Windows systems (continuously added) via the network in one click.
  6. ## Support GRUB or GRUB2 for installing a clean minimal system.
  7. ## Technical support is provided by the CXT (CXTHHHHH.com). (based on the original version of Vicer)
  8. ## Magic Modify version author:
  9. ## Default root password: cxthhhhh.com
  10. ## WebSite: https://www.cxthhhhh.com
  11. ## Written By CXT (CXTHHHHH.com)
  12. ## Original version author:
  13. ## Blog: https://moeclub.org
  14. ## Written By Vicer (MoeClub.org)
  15. echo -e "\n\n\n"
  16. clear
  17. echo -e "\n"
  18. echo "---------------------------------------------------------------------------------------------------------------------"
  19. echo -e "\033[33m Network-Reinstall-System-Modify Tools V2.1.0 2019/06/26 \033[0m"
  20. echo -e "\033[33m [Magic Modify] Reinstall the system (any Windows / Linux) requires only network and one click \033[0m"
  21. echo -e "\033[33m System requirements: Any Linux system with GRUB or GRUB2, recommended CentOS7/Debian9/Ubuntu18.04 \033[0m"
  22. echo -e "\n"
  23. echo -e "\033[33m [Original] One-click Network Reinstall System - Magic Modify version (For Linux/Windows) \033[0m"
  24. echo -e "\033[33m https://www.cxthhhhh.com/linux/2018/11/27/original-one-click-network-reinstall-system-magic-modify-version-for-linux-windows-en.html \033[0m"
  25. echo "---------------------------------------------------------------------------------------------------------------------"
  26. echo -e "\n"
  27. sleep 5s
  28. if [ $1 = '-CentOS_7' ]
  29. then
  30. echo -e "\033[33m You have chosen to install the latest CentOS_7 \033[0m"
  31. echo -e "\n"
  32. sleep 2s
  33. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -dd 'https://odc.mirrors.getcdn.net/Operating-System_VvuH8KEgcrS0HtzN/CentOS/CentOS_7.X_NetInstallation.vhd.gz'
  34. fi
  35. if [ $1 = '-CentOS_6' ]
  36. then
  37. echo -e "\033[33m You have chosen to install the latest CentOS_6 \033[0m"
  38. echo -e "\n"
  39. sleep 2s
  40. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -c 6.10 -v 64 -a
  41. fi
  42. if [ $1 = '-Debian_9' ]
  43. then
  44. echo -e "\033[33m You have chosen to install the latest Debian_9 \033[0m"
  45. echo -e "\n"
  46. sleep 2s
  47. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -d 9 -v 64 -a
  48. fi
  49. if [ $1 = '-Debian_8' ]
  50. then
  51. echo -e "\033[33m You have chosen to install the latest Debian_8 \033[0m"
  52. echo -e "\n"
  53. sleep 2s
  54. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -d 8 -v 64 -a
  55. fi
  56. if [ $1 = '-Debian_7' ]
  57. then
  58. echo -e "\033[33m You have chosen to install the latest Debian_7 \033[0m"
  59. echo -e "\n"
  60. sleep 2s
  61. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -d 7 -v 64 -a
  62. fi
  63. if [ $1 = '-Ubuntu_18.04' ]
  64. then
  65. echo -e "\033[33m You have chosen to install the latest Ubuntu_18.04 \033[0m"
  66. echo -e "\n"
  67. sleep 2s
  68. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -u 18.04 -v 64 -a
  69. fi
  70. if [ $1 = '-Ubuntu_16.04' ]
  71. then
  72. echo -e "\033[33m You have chosen to install the latest Ubuntu_16.04 \033[0m"
  73. echo -e "\n"
  74. sleep 2s
  75. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -u 16.04 -v 64 -a
  76. fi
  77. if [ $1 = '-Ubuntu_14.04' ]
  78. then
  79. echo -e "\033[33m You have chosen to install the latest Ubuntu_14.04 \033[0m"
  80. echo -e "\n"
  81. sleep 2s
  82. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -u 14.04 -v 64 -a
  83. fi
  84. if [ $1 = '-Windows_Server_2019' ]
  85. then
  86. echo -e "\033[33m You have chosen to install the latest Windows_Server_2019 \033[0m"
  87. echo -e "\n"
  88. sleep 2s
  89. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -dd 'https://odc.mirrors.getcdn.net/Operating-System_VvuH8KEgcrS0HtzN/Windows/Disk_Windows_DD/Disk_Windows_Server_2019_DataCenter_CN.vhd.gz'
  90. fi
  91. if [ $1 = '-Windows_Server_2016' ]
  92. then
  93. echo -e "\033[33m You have chosen to install the latest Windows_Server_2016 \033[0m"
  94. echo -e "\n"
  95. sleep 2s
  96. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -dd 'https://odc.mirrors.getcdn.net/Operating-System_VvuH8KEgcrS0HtzN/Windows/Disk_Windows_DD/Disk_Windows_Server_2016_DataCenter_CN.vhd.gz'
  97. fi
  98. if [ $1 = '-Windows_Server_2012R2' ]
  99. then
  100. echo -e "\033[33m You have chosen to install the latest Windows_Server_2012R2 \033[0m"
  101. echo -e "\n"
  102. sleep 2s
  103. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -dd 'https://odc.mirrors.getcdn.net/Operating-System_VvuH8KEgcrS0HtzN/Windows/Disk_Windows_DD/Disk_Windows_Server_2012R2_DataCenter_CN.vhd.gz'
  104. fi
  105. if [ $1 = '-Windows_Server_2008R2' ]
  106. then
  107. echo -e "\033[33m You have chosen to install the latest Windows_Server_2008R2 \033[0m"
  108. echo -e "\n"
  109. sleep 2s
  110. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -dd 'https://odc.mirrors.getcdn.net/Operating-System_VvuH8KEgcrS0HtzN/Windows/Disk_Windows_DD/Disk_Windows_Server_2008R2_DataCenter_CN.vhd.gz'
  111. fi
  112. if [ $1 = '-Windows_7_Vienna' ]
  113. then
  114. echo -e "\033[33m You have chosen to install the latest Windows_7_Vienna \033[0m"
  115. echo -e "\n"
  116. sleep 2s
  117. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -dd 'https://odc.mirrors.getcdn.net/Operating-System_VvuH8KEgcrS0HtzN/Windows/Disk_Windows_DD/Disk_Windows_7_Vienna_Ultimate_CN.vhd.gz'
  118. fi
  119. if [ $1 = '-Windows_Server_2003' ]
  120. then
  121. echo -e "\033[33m You have chosen to install the latest Windows_Server_2003 \033[0m"
  122. echo -e "\n"
  123. sleep 2s
  124. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -dd 'https://odc.mirrors.getcdn.net/Operating-System_VvuH8KEgcrS0HtzN/Windows/Disk_Windows_DD/Disk_Windows_Server_2003_DataCenter_CN.vhd.gz'
  125. fi
  126. if [ $1 = '-CXT_Bare-metal_System_Deployment_Platform' ]
  127. then
  128. echo -e "\033[33m You have chosen to install the latest CXT_Bare-metal_System_Deployment_Platform \033[0m"
  129. echo -e "\n"
  130. sleep 2s
  131. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -dd 'https://odc.mirrors.getcdn.net/Operating-System_VvuH8KEgcrS0HtzN/CXT-System/CXT_Bare-metal_System_Deployment_Platform.vhd.gz'
  132. fi
  133. if [ $1 = '-DD' ]
  134. then
  135. echo -e "\033[33m You have chosen to install the DD package provided by you \033[0m"
  136. echo -e "\n"
  137. sleep 2s
  138. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/CoreShell/Core_Install.sh' && bash Core_Install.sh -dd $2
  139. fi
  140. echo "---------------------------------------------------------------------------------------------------------------------"
  141. echo -e "\033[35m Start Installation \033[0m"
  142. echo -e "\033[32m Start Installation \033[0m"
  143. echo "---------------------------------------------------------------------------------------------------------------------"
  144. echo -e "\n"
  145. exit