Network-Reinstall-System-Modify.sh 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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 V3.0.1 2020/09/10 \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 CentOS8/Debian10/Ubuntu20 \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/Network-Reinstall-System-Modify \033[0m"
  25. echo "---------------------------------------------------------------------------------------------------------------------"
  26. echo " Default password: cxthhhhh.com"
  27. echo "---------------------------------------------------------------------------------------------------------------------"
  28. echo -e "\n"
  29. sleep 8s
  30. if [ $1 = '-UI_Options' ]
  31. then
  32. echo -e "\033[33m You have chosen to Start the Graphical Interface Options \033[0m"
  33. echo -e "\n"
  34. sleep 1s
  35. wget --no-check-certificate -qO UI_Options.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/UI_Options.sh' && bash UI_Options.sh
  36. fi
  37. if [ $1 = '-CXT_Bare-metal_System_Deployment_Platform' ]
  38. then
  39. echo -e "\033[33m You have chosen to install the latest CXT_Bare-metal_System_Deployment_Platform \033[0m"
  40. echo -e "\n"
  41. sleep 5s
  42. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -dd 'https://odc.cxthhhhh.com/SyStem/Bare-metal_System_Deployment_Platform/CXT_Bare-metal_System_Deployment_Platform.vhd.gz'
  43. fi
  44. if [ $1 = '-CentOS_8' ]
  45. then
  46. echo -e "\033[33m You have chosen to install the latest CentOS_8 \033[0m"
  47. echo -e "\n"
  48. sleep 5s
  49. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -dd 'https://odc.cxthhhhh.com/SyStem/CentOS/CentOS_8.X_NetInstallation.vhd.gz'
  50. fi
  51. if [ $1 = '-CentOS_7' ]
  52. then
  53. echo -e "\033[33m You have chosen to install the latest CentOS_7 \033[0m"
  54. echo -e "\n"
  55. sleep 5s
  56. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -dd 'https://odc.cxthhhhh.com/SyStem/CentOS/CentOS_7.X_NetInstallation_Final.vhd.gz'
  57. fi
  58. if [ $1 = '-Debian_10' ]
  59. then
  60. echo -e "\033[33m You have chosen to install the latest Debian_10 \033[0m"
  61. echo -e "\n"
  62. sleep 5s
  63. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -d 10 -v 64 -a
  64. fi
  65. if [ $1 = '-Debian_9' ]
  66. then
  67. echo -e "\033[33m You have chosen to install the latest Debian_9 \033[0m"
  68. echo -e "\n"
  69. sleep 5s
  70. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -d 9 -v 64 -a
  71. fi
  72. if [ $1 = '-Ubuntu_20.04' ]
  73. then
  74. echo -e "\033[33m You have chosen to install the latest Ubuntu_20.04 \033[0m"
  75. echo -e "\n"
  76. sleep 5s
  77. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -u 20.04 -v 64 -a
  78. fi
  79. if [ $1 = '-Ubuntu_18.04' ]
  80. then
  81. echo -e "\033[33m You have chosen to install the latest Ubuntu_18.04 \033[0m"
  82. echo -e "\n"
  83. sleep 5s
  84. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -u 18.04 -v 64 -a
  85. fi
  86. if [ $1 = '-Ubuntu_16.04' ]
  87. then
  88. echo -e "\033[33m You have chosen to install the latest Ubuntu_16.04 \033[0m"
  89. echo -e "\n"
  90. sleep 5s
  91. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -u 16.04 -v 64 -a
  92. fi
  93. if [ $1 = '-Windows_Server_2019' ]
  94. then
  95. echo -e "\033[33m You have chosen to install the latest Windows_Server_2019 \033[0m"
  96. echo -e "\n"
  97. sleep 5s
  98. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -dd 'https://odc.cxthhhhh.com/SyStem/Windows_DD_Disk/Disk_Windows_Server_2019_DataCenter_CN.vhd.gz'
  99. fi
  100. if [ $1 = '-Windows_Server_2016' ]
  101. then
  102. echo -e "\033[33m You have chosen to install the latest Windows_Server_2016 \033[0m"
  103. echo -e "\n"
  104. sleep 5s
  105. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -dd 'https://odc.cxthhhhh.com/SyStem/Windows_DD_Disk/Disk_Windows_Server_2016_DataCenter_CN.vhd.gz'
  106. fi
  107. if [ $1 = '-Windows_Server_2012R2' ]
  108. then
  109. echo -e "\033[33m You have chosen to install the latest Windows_Server_2012R2 \033[0m"
  110. echo -e "\n"
  111. sleep 5s
  112. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -dd 'https://odc.cxthhhhh.com/SyStem/Windows_DD_Disk/Disk_Windows_Server_2012R2_DataCenter_CN.vhd.gz'
  113. fi
  114. if [ $1 = '-DD' ]
  115. then
  116. echo -e "\033[33m You have chosen to install the DD package provided by you \033[0m"
  117. echo -e "\n"
  118. sleep 5s
  119. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -dd $2
  120. fi
  121. if [ $1 = '-CentOS_6' ]
  122. then
  123. echo -e "\033[33m You have chosen to install the latest CentOS_6 \033[0m"
  124. echo -e "\n"
  125. sleep 5s
  126. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -c 6.10 -v 64 -a
  127. fi
  128. if [ $1 = '-Debian_8' ]
  129. then
  130. echo -e "\033[33m You have chosen to install the latest Debian_8 \033[0m"
  131. echo -e "\n"
  132. sleep 5s
  133. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -d 8 -v 64 -a
  134. fi
  135. if [ $1 = '-Debian_7' ]
  136. then
  137. echo -e "\033[33m You have chosen to install the latest Debian_7 \033[0m"
  138. echo -e "\033[41;30m !!! Installing the old system will lead to security risks !!! \033[0m"
  139. echo -e "\n"
  140. sleep 8s
  141. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -d 7 -v 64 -a
  142. fi
  143. if [ $1 = '-Ubuntu_14.04' ]
  144. then
  145. echo -e "\033[33m You have chosen to install the latest Ubuntu_14.04 \033[0m"
  146. echo -e "\033[41;30m !!! Installing the old system will lead to security risks !!! \033[0m"
  147. echo -e "\n"
  148. sleep 8s
  149. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -u 14.04 -v 64 -a
  150. fi
  151. if [ $1 = '-Windows_10_Lite' ]
  152. then
  153. echo -e "\033[33m You have chosen to install the latest Windows_10_Lite \033[0m"
  154. echo -e "\n"
  155. sleep 5s
  156. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -dd 'https://odc.cxthhhhh.com/SyStem/Windows_DD_Disk/Disk_Windows_10_x64_Lite_by_CXT.vhd.gz'
  157. fi
  158. if [ $1 = '-Windows_Server_2008R2' ]
  159. then
  160. echo -e "\033[33m You have chosen to install the latest Windows_Server_2008R2 \033[0m"
  161. echo -e "\033[41;30m !!! Installing the old system will lead to security risks !!! \033[0m"
  162. echo -e "\n"
  163. sleep 8s
  164. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -dd 'https://odc.cxthhhhh.com/SyStem/Windows_DD_Disk/Disk_Windows_Server_2008R2_DataCenter_CN.vhd.gz'
  165. fi
  166. if [ $1 = '-Windows_7_Vienna' ]
  167. then
  168. echo -e "\033[33m You have chosen to install the latest Windows_7_Vienna \033[0m"
  169. echo -e "\033[41;30m !!! Installing the old system will lead to security risks !!! \033[0m"
  170. echo -e "\n"
  171. sleep 8s
  172. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -dd 'https://odc.cxthhhhh.com/SyStem/Windows_DD_Disk/Disk_Windows_7_Vienna_Ultimate_CN.vhd.gz'
  173. fi
  174. if [ $1 = '-Windows_Server_2003' ]
  175. then
  176. echo -e "\033[33m You have chosen to install the latest Windows_Server_2003 \033[0m"
  177. echo -e "\033[41;30m !!! Installing the old system will lead to security risks !!! \033[0m"
  178. echo -e "\n"
  179. sleep 8s
  180. wget --no-check-certificate -qO Core_Install.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/CoreShell/Core_Install_2020.sh' && bash Core_Install.sh -dd 'https://odc.cxthhhhh.com/SyStem/Windows_DD_Disk/Disk_Windows_Server_2003_DataCenter_CN.vhd.gz'
  181. fi
  182. echo "---------------------------------------------------------------------------------------------------------------------"
  183. echo -e "\033[35m Start Installation \033[0m"
  184. echo -e "\033[32m Start Installation \033[0m"
  185. echo "---------------------------------------------------------------------------------------------------------------------"
  186. echo -e "\n"
  187. exit