HINAS海思纳思系统傻瓜式安装、卸载应用

海纳思系统以其高效稳定的性能,广泛应用于各类智能设备中。掌握其应用安装、卸载与删除的方法,对于优化系统体验至关重要。下面,我们将为您详细介绍步骤的操作流程。

安装的软件均来自于hinas系统内置,如果下载链接失效,可以复制后面的脚本到自己服务器上去执行

一、安装和卸载

gitee源

  1. wget //gitee.com/xjxjin/hinas/raw/master/hinas_install_uninstall.zip #下载脚本
  2. unzip hinas_install_uninstall.zip
  3. chmod +x hinas_install_uninstall.sh # 添加可执行权限
  4. ./hinas_install_uninstall.sh # 执行脚本

github 源,有条件的可以试试

  1. wget //github.com/xjxjin/scripts/raw/main/hinas/hinas_install_uninstall.sh #下载脚本
  2. chmod +x hinas_install_uninstall.sh # 添加可执行权限
  3. ./hinas_install_uninstall.sh # 执行脚本

1.一级目录

手把手教你海纳斯hinas安装、卸载、删除应用方法

2.安装目录

手把手教你海纳斯hinas安装、卸载、删除应用方法

3.卸载目录

手把手教你海纳斯hinas安装、卸载、删除应用方法

二、脚本详情

  1. vi hinas_install_uninstall.sh

  1. #!/bin/bash
  2. #黑色: 30m
  3. #红色: 31m
  4. #绿色: 32m
  5. #黄色: 33m
  6. #蓝色: 34m
  7. #紫色: 35m
  8. #青色: 36m
  9. #白色: 37m
  10. # 定义颜色代码
  11. RED=”\033[31m”
  12. GREEN=”\033[32m”
  13. YELLOW=”\033[33m”
  14. BLUE=”\033[34m”
  15. PURPLE=”\033[35m”
  16. CYAN=”\033[36m”
  17. NC=”\033[0m” # 无颜色
  18. # 使用颜色输出的函数
  19. print_in_color() {
  20. local color=$1
  21. local text=$2
  22. echo -e “${color}$text${NC}”
  23. }
  24. # 主菜单函数
  25. main_menu() {
  26. print_in_color $PURPLE “请选择操作:”
  27. print_in_color $CYAN “1. 安装软件”
  28. print_in_color $YELLOW “2. 卸载软件”
  29. print_in_color $RED “3. 退出脚本”
  30. read -p “请输入选项序号:” choice
  31. case $choice in
  32.  1)
  33.  install_menu
  34.  ;;
  35.  2)
  36.  uninstall_menu
  37.  ;;
  38.  3)
  39.  echo “退出脚本。”
  40.  exit 0
  41.  ;;
  42.  0)
  43.  echo “退出脚本。”
  44.  exit 0
  45.  ;;
  46.  *)
  47.  echo “无效的选项,请输入1、2或3。”
  48.  main_menu
  49.  ;;
  50. esac
  51. }
  52. # 安装菜单函数
  53. install_menu() {
  54. print_in_color $BLUE “欢迎使用hinas-xiaojin安装脚本,脚本均为hinas系统内置提供”
  55. print_in_color $CYAN “请输入以下选项之一进行操作:”
  56. print_in_color $RED “”
  57. print_in_color $RED “0. 返回上级目录”
  58. print_in_color $RED “all. 安装所有”
  59. print_in_color $CYAN “1. 安装 FileBrowser”
  60. print_in_color $CYAN “2. 安装 Nginx”
  61. print_in_color $CYAN “3. 安装 Samba (smbd)”
  62. print_in_color $CYAN “4. 安装 Tailscale”
  63. print_in_color $CYAN “5. 安装 Alist”
  64. print_in_color $CYAN “6. 安装 Aria2”
  65. print_in_color $CYAN “7. 安装 Transmission”
  66. print_in_color $CYAN “8. 安装 页面终端 (ttyd)”
  67. print_in_color $CYAN “9. 安装 KMS (vlmcsd)”
  68. print_in_color $CYAN “10. 安装 FRP”
  69. print_in_color $CYAN “11. 安装 NFS”
  70. print_in_color $CYAN “12. 安装 FTP (vsftpd)”
  71. print_in_color $CYAN “13. 安装 易有云 (linkease)”
  72. print_in_color $CYAN “14. 安装 typecho”
  73. print_in_color $CYAN “15. 安装 cronweb”
  74. print_in_color $CYAN “16. 安装 ddns”
  75. print_in_color $CYAN “17. 安装 h5ai”
  76. print_in_color $CYAN “”
  77. print_in_color $PURPLE “以下为docker安装”
  78. print_in_color $CYAN “”
  79. print_in_color $CYAN “31. 安装 青龙面板”
  80. print_in_color $CYAN “32. 安装 v2ray”
  81. print_in_color $CYAN “33. 安装 wordpress”
  82. print_in_color $CYAN “34. 安装 mysql”
  83. print_in_color $CYAN “35. 安装 chatgpt”
  84. print_in_color $CYAN “36. 安装 系统teslamate”
  85. print_in_color $CYAN “37. 安装 jellyfin”
  86. print_in_color $CYAN “38. 安装 casaos”
  87. print_in_color $CYAN “39. 安装 portainer”
  88. print_in_color $CYAN “40. 安装 mrdoc”
  89. print_in_color $CYAN “41. 安装 homebridge”
  90. print_in_color $CYAN “42. 安装 homeassistant”
  91. print_in_color $CYAN “43. 安装 kod”
  92. print_in_color $CYAN “44. 安装 docker”
  93. print_in_color $CYAN “45. 安装 justlist”
  94. print_in_color $CYAN “46. 安装 cloudreve”
  95. read -p “输入选项编号,用空格分隔(例如:1 2 3),或输入 all 安装所有,然后按回车键执行相应操作:” input
  96. if [[ “${input[0]}” == “all” ]]; then
  97.  # 卸载所有
  98.  print_in_color $YELLOW “开始 安装所有 安装。”
  99.  for i in {1..50}; do
  100.  install_detail $i
  101.  done
  102.  print_in_color $GREEN “所有安装操作已完成。”
  103. else
  104.  install_detail “${input[@]}”
  105. fi
  106. install_menu
  107. }
  108. install_detail() {
  109. # 根据用户输入执行安装
  110. local selections=(“$@”)
  111. IFS=’ ‘ read -r -a selected_options <<< “$selections”
  112. for option in “${selected_options[@]}”; do
  113.  case $option in
  114.  0)
  115. main_menu
  116. ;;
  117.  1)
  118. print_in_color $CYAN “开始 FileBrowser 安装…”
  119. apt install -y filebrowser-histb
  120. print_in_color $CYAN “完成 FileBrowser 安装。”
  121. print_in_color $CYAN “”
  122. ;;
  123.  2)
  124. print_in_color $CYAN “开始 Nginx 安装…”
  125. apt install -y nginx-histb
  126. print_in_color $CYAN “完成 Nginx 安装。”
  127. print_in_color $CYAN “”
  128. ;;
  129.  3)
  130. print_in_color $CYAN “开始 Samba (smbd) 安装…”
  131. apt install -y samba-histb
  132. print_in_color $CYAN “完成 Samba (smbd) 安装。”
  133. print_in_color $CYAN “”
  134. ;;
  135.  4)
  136. print_in_color $CYAN “开始 Tailscale 安装…”
  137. apt install -y tailscale-histb
  138. print_in_color $CYAN “完成 Tailscale 安装。”
  139. print_in_color $CYAN “”
  140. ;;
  141.  5)
  142. print_in_color $CYAN “开始 Alist 安装…”
  143. apt install -y alist-histb
  144. print_in_color $CYAN “完成 Alist 安装。”
  145. print_in_color $CYAN “”
  146. ;;
  147.  6)
  148. print_in_color $CYAN “开始 Aria2 安装…”
  149. apt install -y aria2-histb
  150. print_in_color $CYAN “完成 Aria2 安装。”
  151. print_in_color $CYAN “”
  152. ;;
  153.  7)
  154. print_in_color $CYAN “开始 Transmission 安装…”
  155. apt install -y transmission-histb
  156. print_in_color $CYAN “完成 Transmission 安装。”
  157. print_in_color $CYAN “”
  158. ;;
  159.  8)
  160. print_in_color $CYAN “开始 页面终端 (ttyd) 安装…”
  161. apt install -y ttyd-histb
  162. print_in_color $CYAN “完成 页面终端 (ttyd) 安装。”
  163. print_in_color $CYAN “”
  164. ;;
  165.  9)
  166. print_in_color $CYAN “开始 KMS (vlmcsd) 安装…”
  167. apt install -y vlmcsd-histb
  168. print_in_color $CYAN “完成 KMS (vlmcsd) 安装。”
  169. print_in_color $CYAN “”
  170. ;;
  171.  10)
  172. print_in_color $CYAN “开始 FRP 安装…”
  173. apt install -y frpc-histb
  174. print_in_color $CYAN “完成 FRP 安装。”
  175. print_in_color $CYAN “”
  176. ;;
  177.  11)
  178. print_in_color $CYAN “开始 NFS 安装…”
  179. apt install -y nfs-server-histb
  180. print_in_color $CYAN “完成 NFS 安装。”
  181. print_in_color $CYAN “”
  182. ;;
  183.  12)
  184. print_in_color $CYAN “开始 FTP (vsftpd) 安装…”
  185. apt install -y vsftpd-histb
  186. print_in_color $CYAN “完成 FTP (vsftpd) 安装。”
  187. print_in_color $CYAN “”
  188. ;;
  189.  13)
  190. print_in_color $CYAN “开始 易有云 (linkease) 安装…”
  191. apt install -y linkease-histb
  192. print_in_color $CYAN “完成 易有云 (linkease) 安装。”
  193. print_in_color $CYAN “”
  194. ;;
  195.  14)
  196. print_in_color $CYAN “开始 typecho 安装…”
  197. apt install -y typecho-histb
  198. print_in_color $CYAN “完成 typecho 安装。”
  199. print_in_color $CYAN “”
  200. ;;
  201.  15)
  202. print_in_color $CYAN “开始 cronweb 安装…”
  203. apt install -y cronweb-histb
  204. print_in_color $CYAN “完成 cronweb 安装。”
  205. print_in_color $CYAN “”
  206. ;;
  207.  16)
  208. print_in_color $CYAN “开始 ddns 安装…”
  209. apt install -y ddns-histb
  210. print_in_color $CYAN “完成 ddns 安装。”
  211. print_in_color $CYAN “”
  212. ;;
  213.  17)
  214. print_in_color $CYAN “开始 h5ai 安装…”
  215. apt install -y h5ai-histb
  216. print_in_color $CYAN “完成 h5ai 安装。”
  217. print_in_color $CYAN “”
  218. ;;
  219.  31)
  220. print_in_color $CYAN “开始 青龙面板 安装…”
  221. install-qinglong.sh
  222. print_in_color $CYAN “完成 青龙面板 安装。”
  223. print_in_color $CYAN “”
  224. ;;
  225.  32)
  226. print_in_color $CYAN “开始 v2ray 安装…”
  227. install-v2ray.sh
  228. print_in_color $CYAN “完成 v2ray 安装。”
  229. print_in_color $CYAN “”
  230. ;;
  231.  33)
  232. print_in_color $CYAN “开始 wordpress 安装…”
  233. install-wordpress.sh
  234. print_in_color $CYAN “完成 wordpress 安装。”
  235. print_in_color $CYAN “”
  236. ;;
  237.  34)
  238. print_in_color $CYAN “开始 mysql 安装…”
  239. install-mysql.sh
  240. print_in_color $CYAN “完成 mysql 安装。”
  241. print_in_color $CYAN “”
  242. ;;
  243.  35)
  244. print_in_color $CYAN “开始 chatgpt 安装…”
  245. install-chatgpt.sh
  246. print_in_color $CYAN “完成 chatgpt 安装。”
  247. print_in_color $CYAN “”
  248. ;;
  249.  36)
  250. print_in_color $CYAN “开始 teslamate 安装…”
  251. install-teslamate1.sh
  252. print_in_color $CYAN “完成 teslamate 安装。”
  253. print_in_color $CYAN “”
  254. ;;
  255.  37)
  256. print_in_color $CYAN “开始 jellyfin 安装…”
  257. install-jellyfin.sh
  258. print_in_color $CYAN “完成 jellyfin 安装。”
  259. print_in_color $CYAN “”
  260. ;;
  261.  38)
  262. print_in_color $CYAN “开始 casaos 安装…”
  263. install-casaos.sh
  264. print_in_color $CYAN “完成 casaos 安装。”
  265. print_in_color $CYAN “”
  266. ;;
  267.  39)
  268. print_in_color $CYAN “开始 portainer 安装…”
  269. install-portainer.sh
  270. print_in_color $CYAN “完成 portainer 安装。”
  271. print_in_color $CYAN “”
  272. ;;
  273.  40)
  274. print_in_color $CYAN “开始 mrdoc 安装…”
  275. install-mrdoc.sh
  276. print_in_color $CYAN “完成 mrdoc 安装。”
  277. print_in_color $CYAN “”
  278. ;;
  279.  41)
  280. print_in_color $CYAN “开始 homebridge 安装…”
  281. install-homebridge.sh
  282. print_in_color $CYAN “完成 homebridge 安装。”
  283. print_in_color $CYAN “”
  284. ;;
  285.  42)
  286. print_in_color $CYAN “开始 homeassistant 安装…”
  287. install-homeassistant.sh
  288. print_in_color $CYAN “完成 homeassistant 安装。”
  289. print_in_color $CYAN “”
  290. ;;
  291.  43)
  292. print_in_color $CYAN “开始 kod 安装…”
  293. install-kod.sh
  294. print_in_color $CYAN “完成 kod 安装。”
  295. print_in_color $CYAN “”
  296. ;;
  297.  44)
  298. print_in_color $CYAN “开始 docker 安装…”
  299. install-docker.sh
  300. print_in_color $CYAN “完成 docker 安装。”
  301. print_in_color $CYAN “”
  302. ;;
  303.  45)
  304. print_in_color $CYAN “开始 justlist 安装…”
  305. install-justlist.sh
  306. print_in_color $CYAN “完成 justlist 安装。”
  307. print_in_color $CYAN “”
  308. ;;
  309.  46)
  310. print_in_color $CYAN “开始 cloudreve 安装…”
  311. install-cloudreve.sh
  312. print_in_color $CYAN “完成 cloudreve 安装。”
  313. print_in_color $CYAN “”
  314. ;;
  315.  *)
  316. print_in_color $CYAN “无效的选项 $option。”
  317. ;;
  318.  esac
  319. done
  320. }
  321. # 卸载菜单函数
  322. uninstall_menu() {
  323. print_in_color $BLUE “欢迎使用hinas-xiaojin卸载脚本”
  324. print_in_color $YELLOW “请输入以下选项之一进行操作:”
  325. print_in_color $RED “”
  326. print_in_color $RED “0. 返回上级目录”
  327. print_in_color $RED “all. 卸载所有”
  328. print_in_color $YELLOW “1. 卸载 PHP”
  329. print_in_color $YELLOW “2. 卸载 Nginx”
  330. print_in_color $YELLOW “3. 卸载 Samba (smbd)”
  331. print_in_color $YELLOW “4. 卸载 Tailscale”
  332. print_in_color $YELLOW “5. 卸载 Alist”
  333. print_in_color $YELLOW “6. 卸载 Aria2”
  334. print_in_color $YELLOW “7. 卸载 Transmission”
  335. print_in_color $YELLOW “8. 卸载 页面终端 (ttyd)”
  336. print_in_color $YELLOW “9. 卸载 KMS (vlmcsd)”
  337. print_in_color $YELLOW “10. 卸载 FRP”
  338. print_in_color $YELLOW “11. 卸载 NFS”
  339. print_in_color $YELLOW “12. 卸载 FTP (vsftpd)”
  340. print_in_color $YELLOW “13. 卸载 易有云 (linkease)”
  341. print_in_color $YELLOW “14. 卸载 FileBrowser”
  342. print_in_color $YELLOW “15. 卸载 typecho”
  343. print_in_color $YELLOW “16. 卸载 cronweb”
  344. print_in_color $YELLOW “17. 卸载 ddns”
  345. print_in_color $YELLOW “18. 卸载 h5ai”
  346. print_in_color $YELLOW “19. 卸载 cloudreve “
  347. print_in_color $YELLOW “”
  348. print_in_color $PURPLE “以下为docker卸载”
  349. print_in_color $YELLOW “”
  350. print_in_color $YELLOW “31. 卸载 青龙面板”
  351. print_in_color $YELLOW “32. 卸载 v2ray”
  352. print_in_color $YELLOW “33. 卸载 wordpress”
  353. print_in_color $YELLOW “34. 卸载 photoalbum”
  354. print_in_color $YELLOW “35. 卸载 mysql”
  355. print_in_color $YELLOW “36. 卸载 chatgpt”
  356. print_in_color $YELLOW “37. 卸载 系统teslamate”
  357. print_in_color $YELLOW “38. 卸载 jellyfin”
  358. print_in_color $YELLOW “39. 卸载 casaos”
  359. print_in_color $YELLOW “40. 卸载 portainer”
  360. print_in_color $YELLOW “41. 卸载 mrdoc”
  361. print_in_color $YELLOW “42. 卸载 homebridge”
  362. print_in_color $YELLOW “43. 卸载 homeassistant”
  363. print_in_color $YELLOW “44. 卸载 gitweb”
  364. print_in_color $YELLOW “45. 卸载 kod”
  365. print_in_color $YELLOW “46. 卸载 docker”
  366. read -p “输入选项编号,用空格分隔(例如:1 2 3),或输入 all 卸载所有,然后按回车键执行相应操作:” input
  367. # 根据用户输入执行卸载
  368. if [[ “${input[0]}” == “all” ]]; then
  369.  # 卸载所有
  370.  print_in_color $YELLOW “开始 卸载所有 卸载。”
  371.  for i in {1..50}; do
  372.  uninstall_detail $i
  373.  done
  374.  print_in_color $GREEN “所有卸载操作已完成。”
  375. else
  376.  uninstall_detail “${input[@]}”
  377. fi
  378. uninstall_menu
  379. }
  380. uninstall_detail(){
  381. local selections=(“$@”)
  382. IFS=’ ‘ read -r -a selected_options <<< “$selections”
  383. for option in “${selected_options[@]}”; do
  384.  case $option in
  385.  0)
  386. main_menu
  387. ;;
  388.  all)
  389. # 卸载所有
  390. print_in_color $YELLOW “开始 卸载所有 卸载…”
  391. for i in {1..30}; do
  392.  uninstall_menu $i
  393. done
  394. print_in_color $YELLOW “所有卸载操作已完成。”
  395. print_in_color $YELLOW “”
  396. continue=false
  397. ;;
  398.  1) uninstall_cmds+=(“卸载 PHP”)
  399. # 卸载 PHP
  400. print_in_color $YELLOW “开始 PHP 卸载…”
  401. systemctl stop php*
  402. apt-get autoremove php7* -y
  403. apt purge -y php*
  404. find /etc -name “php” | xargs rm -rf
  405. find /run -name “php” | xargs rm -rf
  406. print_in_color $YELLOW “完成 PHP 卸载。”
  407. print_in_color $YELLOW “”
  408. ;;
  409.  2) uninstall_cmds+=(“卸载 Nginx”)
  410. # 卸载 Nginx
  411. print_in_color $YELLOW “开始 Nginx 卸载…”
  412. systemctl stop nginx*
  413. apt purge -y nginx-histb
  414. apt-get –purge remove nginx -y
  415. apt-get –purge remove nginx-common -y
  416. apt-get –purge remove nginx-core -y
  417. rm -rf /var/www
  418. rm -rf /etc/first_init.d/web.sh
  419. rm -rf /usr/share/bak/gitweb
  420. rm -rf /bin/install-gitweb.sh
  421. print_in_color $YELLOW “完成 Nginx 卸载。”
  422. print_in_color $YELLOW “”
  423. ;;
  424.  3) uninstall_cmds+=(“卸载 Samba (smbd)”)
  425. # 卸载 Samba (smbd)
  426. print_in_color $YELLOW “开始 Samba (smbd) 卸载…”
  427. systemctl stop smbd*
  428. apt-get remove –purge samba -y
  429. apt purge -y samba-histb
  430. apt purge -y samba-common
  431. apt purge -y samba-dsdb-modules
  432. apt purge -y samba-vfs-modules
  433. find /etc -name “samba” | xargs rm -rf
  434. find /var -name “samba” | xargs rm -rf
  435. find /run -name “samba” | xargs rm -rf
  436. rm -rf /usr/share/samba
  437. print_in_color $YELLOW “完成 Samba (smbd) 卸载。”
  438. print_in_color $YELLOW “”
  439. ;;
  440.  4) uninstall_cmds+=(“卸载 Tailscale”)
  441. # 卸载 Tailscale
  442. print_in_color $YELLOW “开始 Tailscale 卸载…”
  443. systemctl stop tailscale*
  444. apt purge -y tailscale-hist
  445. rm -rf /opt/tailscale
  446. find / -name “tailscale*” | xargs rm -rf
  447. print_in_color $YELLOW “完成 Tailscale 卸载。”
  448. print_in_color $YELLOW “”
  449. ;;
  450.  5) uninstall_cmds+=(“卸载 Alist”)
  451. # 卸载 Alist
  452. print_in_color $YELLOW “开始 Alist 卸载…”
  453. systemctl stop alist*
  454. apt purge -y alist-histb
  455. rm -rf /opt/alist
  456. find /etc -name “alist.service” | xargs rm -rf
  457. print_in_color $YELLOW “完成 Alist 卸载。”
  458. print_in_color $YELLOW “”
  459. ;;
  460.  6) uninstall_cmds+=(“卸载 Aria2”)
  461. # 卸载 Aria2
  462. print_in_color $YELLOW “开始 Aria2 卸载…”
  463. systemctl stop aria*
  464. apt purge -y aria2-histb
  465. rm -rf /usr/bin/aria2c
  466. rm -rf /usr/local/aria2
  467. find /etc -name “aria2c.service” | xargs rm -rf
  468. print_in_color $YELLOW “完成 Aria2 卸载。”
  469. print_in_color $YELLOW “”
  470. ;;
  471.  7) uninstall_cmds+=(“卸载 Transmission”)
  472. # 卸载 Transmission
  473. print_in_color $YELLOW “开始 Transmission 卸载…”
  474. systemctl stop transmission*
  475. apt-get –purge remove transmission-* -y
  476. apt purge -y transmission-histb
  477. apt purge -y transmission-common
  478. rm -rf /usr/share/transmission
  479. print_in_color $YELLOW “完成 Transmission 卸载。”
  480. print_in_color $YELLOW “”
  481. ;;
  482.  8) uninstall_cmds+=(“卸载 页面终端 (ttyd)”)
  483. # 卸载 页面终端 (ttyd)
  484. print_in_color $YELLOW “开始 页面终端 (ttyd) 卸载…”
  485. systemctl stop ttyd.service
  486. apt purge -y ttyd-histb
  487. rm -rf /usr/bin/ttyd
  488. find /etc -name “ttyd.service” | xargs rm -rf
  489. print_in_color $YELLOW “完成 页面终端 (ttyd) 卸载。”
  490. print_in_color $YELLOW “”
  491. ;;
  492.  9) uninstall_cmds+=(“卸载 KMS (vlmcsd)”)
  493. # 卸载 KMS (vlmcsd)
  494. print_in_color $YELLOW “开始 KMS (vlmcsd) 卸载…”
  495. systemctl stop vlmcsd
  496. apt purge -y vlmcsd-histb
  497. rm -rf /usr/bin/vlmcsd
  498. find /etc -name “vlmcsd*” | xargs rm -rf
  499. print_in_color $YELLOW “完成 KMS (vlmcsd) 卸载。”
  500. print_in_color $YELLOW “”
  501. ;;
  502.  10) uninstall_cmds+=(“卸载 FRP”)
  503. # 卸载 FRP
  504. print_in_color $YELLOW “开始 FRP 卸载…”
  505. systemctl stop frpc.service
  506. apt purge -y frpc-histb
  507. rm -rf /etc/first_init.d/frpc.sh
  508. rm -rf /etc/frp
  509. rm -rf /usr/bin/frpc
  510. rm -rf /etc/systemd/system/frpc.service
  511. print_in_color $YELLOW “完成 FRP 卸载。”
  512. print_in_color $YELLOW “”
  513. ;;
  514.  11) uninstall_cmds+=(“卸载 NFS”)
  515. # 卸载 NFS
  516. print_in_color $YELLOW “开始 NFS 卸载…”
  517. apt purge -y nfs-server-histb
  518. apt-get –purge remove nfs-* -y
  519. print_in_color $YELLOW “完成 NFS 卸载。”
  520. ;;
  521.  12) uninstall_cmds+=(“卸载 FTP (vsftpd)”)
  522. # 卸载 FTP (vsftpd)
  523. print_in_color $YELLOW “开始 FTP (vsftpd) 卸载…”
  524. systemctl stop vsftpd
  525. apt-get –purge remove vsftpd -y
  526. apt purge -y vsftpd-histb
  527. apt purge -y vsftpd
  528. find /run -name “vsftpd” | xargs rm -rf
  529. print_in_color $YELLOW “完成 FTP (vsftpd) 卸载。”
  530. print_in_color $YELLOW “”
  531. ;;
  532.  13) uninstall_cmds+=(“卸载 易有云 (linkease)”)
  533. # 卸载 易有云 (linkease)
  534. print_in_color $YELLOW “开始 易有云 (linkease) 卸载…”
  535. sudo systemctl stop linkease.service
  536. apt purge -y linkease-histb
  537. apt remove linkease
  538. sudo rm /usr/local/bin/linkease
  539. sudo rm -rf /usr/local/linkease
  540. print_in_color $YELLOW “完成 易有云 (linkease) 卸载。”
  541. print_in_color $YELLOW “”
  542. ;;
  543.  14) uninstall_cmds+=(“卸载 FileBrowser”)
  544. # 卸载 FileBrowser
  545. print_in_color $YELLOW “开始 FileBrowser 卸载…”
  546. sudo systemctl stop filebrowser
  547. sudo systemctl disable filebrowser.service
  548. apt purge -y filebrowser-histb
  549. sudo find / -type f -name “*filebrowser*” ! -name “*.deb” ! -name “*.rpm” -exec rm -f {} \; 2>/dev/null
  550. sudo find / -type f -name “*filebrowser*” ! -name “*.deb” ! -name “*.rpm” -exec rm -rf {} \; 2>/dev/null
  551. sudo rm -rf /opt/filebrowser
  552. print_in_color $YELLOW “完成 FileBrowser 卸载。”
  553. print_in_color $YELLOW “”
  554. ;;
  555.  15) uninstall_cmds+=(“卸载 typecho”)
  556. # 卸载 FileBrowser
  557. print_in_color $YELLOW “开始 typecho 卸载…”
  558. sudo systemctl stop typecho
  559. apt purge -y typecho-histb
  560. print_in_color $YELLOW “完成 typecho 卸载。”
  561. print_in_color $YELLOW “”
  562. ;;
  563.  16) uninstall_cmds+=(“卸载 cronweb”)
  564. # 卸载 FileBrowser
  565. print_in_color $YELLOW “开始 cronweb 卸载…”
  566. sudo systemctl stop cronweb
  567. apt purge -y cronweb-histb
  568. print_in_color $YELLOW “完成 cronweb 卸载。”
  569. print_in_color $YELLOW “”
  570. ;;
  571.  17) uninstall_cmds+=(“卸载 ddns”)
  572. # 卸载 FileBrowser
  573. print_in_color $YELLOW “开始 ddns 卸载…”
  574. sudo systemctl stop ddns
  575. apt purge -y ddns-histb
  576. print_in_color $YELLOW “完成 ddns 卸载。”
  577. print_in_color $YELLOW “”
  578. ;;
  579.  18) uninstall_cmds+=(“卸载 h5ai”)
  580. # 卸载 FileBrowser
  581. print_in_color $YELLOW “开始 h5ai 卸载…”
  582. sudo systemctl stop h5ai
  583. apt purge -y h5ai-histb
  584. print_in_color $YELLOW “完成 h5ai 卸载。”
  585. print_in_color $YELLOW “”
  586. ;;
  587.  19) uninstall_cmds+=(“卸载 cloudreve”)
  588. # 卸载 cloudreve
  589. print_in_color $YELLOW “开始 cloudreve 卸载…”
  590. uninstall-cloudreve.sh
  591. print_in_color $YELLOW “完成 cloudreve 卸载。”
  592. print_in_color $YELLOW “”
  593. ;;
  594.  31) uninstall_cmds+=(“卸载 青龙面板”)
  595. # 卸载 青龙面板
  596. print_in_color $YELLOW “开始 青龙面板 卸载…”
  597. hinas-clear qinglong
  598. print_in_color $YELLOW “完成 青龙面板 卸载。”
  599. print_in_color $YELLOW “”
  600. ;;
  601.  32) uninstall_cmds+=(“卸载 v2ray”)
  602. # 卸载 v2ray
  603. print_in_color $YELLOW “开始 v2ray 卸载…”
  604. hinas-clear v2ray
  605. print_in_color $YELLOW “完成 v2ray 卸载。”
  606. print_in_color $YELLOW “”
  607. ;;
  608.  33) uninstall_cmds+=(“卸载 wordpress”)
  609. # 卸载 wordpress
  610. print_in_color $YELLOW “开始 wordpress 卸载…”
  611. hinas-clear wordpress
  612. print_in_color $YELLOW “完成 wordpress 卸载。”
  613. print_in_color $YELLOW “”
  614. ;;
  615.  34) uninstall_cmds+=(“卸载 photoalbum”)
  616. # 卸载 photoalbum
  617. print_in_color $YELLOW “开始 photoalbum 卸载…”
  618. hinas-clear photoalbum
  619. print_in_color $YELLOW “完成 photoalbum 卸载。”
  620. print_in_color $YELLOW “”
  621. ;;
  622.  35) uninstall_cmds+=(“卸载 mysql”)
  623. # 卸载 mysql
  624. print_in_color $YELLOW “开始 mysql 卸载…”
  625. hinas-clear mysql
  626. print_in_color $YELLOW “完成 mysql 卸载。”
  627. print_in_color $YELLOW “”
  628. ;;
  629.  36) uninstall_cmds+=(“卸载 chatgpt”)
  630. # 卸载 chatgpt
  631. print_in_color $YELLOW “开始 chatgpt 卸载…”
  632. hinas-clear chatgpt
  633. print_in_color $YELLOW “完成 chatgpt 卸载。”
  634. print_in_color $YELLOW “”
  635. ;;
  636.  37) uninstall_cmds+=(“卸载 系统teslamate”)
  637. # 卸载 系统teslamate
  638. print_in_color $YELLOW “开始 系统teslamate 卸载…”
  639. hinas-clear teslamate
  640. print_in_color $YELLOW “完成 系统teslamate 卸载。”
  641. print_in_color $YELLOW “”
  642. ;;
  643.  38) uninstall_cmds+=(“卸载 jellyfin”)
  644. # 卸载 jellyfin
  645. print_in_color $YELLOW “开始 jellyfin 卸载…”
  646. hinas-clear jellyfin
  647. print_in_color $YELLOW “完成 jellyfin 卸载。”
  648. print_in_color $YELLOW “”
  649. ;;
  650.  39) uninstall_cmds+=(“卸载 casaos”)
  651. # 卸载 casaos
  652. print_in_color $YELLOW “开始 casaos 卸载…”
  653. hinas-clear casaos
  654. print_in_color $YELLOW “完成 casaos 卸载。”
  655. print_in_color $YELLOW “”
  656. ;;
  657.  40) uninstall_cmds+=(“卸载 portainer”)
  658. # 卸载 portainer
  659. print_in_color $YELLOW “开始 portainer 卸载…”
  660. hinas-clear portainer
  661. print_in_color $YELLOW “完成 portainer 卸载。”
  662. print_in_color $YELLOW “”
  663. ;;
  664.  41) uninstall_cmds+=(“卸载 mrdoc”)
  665. # 卸载 mrdoc
  666. print_in_color $YELLOW “开始 mrdoc 卸载…”
  667. hinas-clear mrdoc
  668. print_in_color $YELLOW “完成 mrdoc 卸载。”
  669. print_in_color $YELLOW “”
  670. ;;
  671.  42) uninstall_cmds+=(“卸载 homebridge”)
  672. # 卸载 青龙面板
  673. print_in_color $YELLOW “开始 homebridge 卸载…”
  674. hinas-clear homebridge
  675. print_in_color $YELLOW “完成 homebridge 卸载。”
  676. print_in_color $YELLOW “”
  677. ;;
  678.  43) uninstall_cmds+=(“卸载 homeassistant”)
  679. # 卸载 homeassistant
  680. print_in_color $YELLOW “开始 homeassistant 卸载…”
  681. hinas-clear homeassistant
  682. print_in_color $YELLOW “完成 homeassistant 卸载。”
  683. print_in_color $YELLOW “”
  684. ;;
  685.  44) uninstall_cmds+=(“卸载 gitweb”)
  686. # 卸载 gitweb
  687. print_in_color $YELLOW “开始 gitweb 卸载…”
  688. hinas-clear gitweb
  689. print_in_color $YELLOW “完成 gitweb 卸载。”
  690. print_in_color $YELLOW “”
  691. ;;
  692.  45) uninstall_cmds+=(“卸载 kod”)
  693. # 卸载 kod
  694. print_in_color $YELLOW “开始 kod 卸载…”
  695. hinas-clear kod
  696. print_in_color $YELLOW “完成 kod 卸载。”
  697. print_in_color $YELLOW “”
  698. ;;
  699.  46) uninstall_cmds+=(“卸载 docker”)
  700. # 卸载 docker
  701. print_in_color $YELLOW “开始 docker 卸载…”
  702. hinas-clear docker
  703. print_in_color $YELLOW “完成 docker 卸载。”
  704. print_in_color $YELLOW “”
  705. ;;
  706.  *)
  707. print_in_color $YELLOW “无效的选项 $option。”
  708. ;;
  709.  esac
  710. done
  711. }
  712. # 运行主菜单
  713. main_menu

来源://www.znds.com/tv-1248903-1-1.html