ZNDS智能电视网 推荐当贝市场

TV应用下载 / 资源分享区

软件下载 | 游戏 | 讨论 | 电视计算器

综合交流 / 评测 / 活动区

交流区 | 测硬件 | 网站活动 | Z币中心

新手入门 / 进阶 / 社区互助

新手 | 你问我答 | 免费刷机救砖 | ROM固件

查看: 121447|回复: 5
上一主题 下一主题
[分享]

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

[复制链接]
跳转到指定楼层
楼主
发表于 2024-5-17 10:51 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式 | 来自上海
海纳思系统以其高效稳定的性能,广泛应用于各类智能设备中。掌握其应用安装、卸载与删除的方法,对于优化系统体验至关重要。下面,我们将为您详细介绍步骤的操作流程。

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

一、安装和卸载

gitee源

  1. wget https://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 https://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.         *)
  48.             echo "无效的选项,请输入1、2或3。"
  49.             main_menu
  50.             ;;
  51.     esac
  52. }

  53. # 安装菜单函数
  54. install_menu() {
  55.     print_in_color $BLUE "欢迎使用hinas-xiaojin安装脚本,脚本均为hinas系统内置提供"
  56.     print_in_color $CYAN "请输入以下选项之一进行操作:"
  57.     print_in_color $RED ""
  58.     print_in_color $RED "0. 返回上级目录"
  59.     print_in_color $RED "all. 安装所有"
  60.     print_in_color $CYAN "1. 安装 FileBrowser"
  61.     print_in_color $CYAN "2. 安装 Nginx"
  62.     print_in_color $CYAN "3. 安装 Samba (smbd)"
  63.     print_in_color $CYAN "4. 安装 Tailscale"
  64.     print_in_color $CYAN "5. 安装 Alist"
  65.     print_in_color $CYAN "6. 安装 Aria2"
  66.     print_in_color $CYAN "7. 安装 Transmission"
  67.     print_in_color $CYAN "8. 安装 页面终端 (ttyd)"
  68.     print_in_color $CYAN "9. 安装 KMS (vlmcsd)"
  69.     print_in_color $CYAN "10. 安装 FRP"
  70.     print_in_color $CYAN "11. 安装 NFS"
  71.     print_in_color $CYAN "12. 安装 FTP (vsftpd)"
  72.     print_in_color $CYAN "13. 安装 易有云 (linkease)"
  73.     print_in_color $CYAN "14. 安装 typecho"
  74.     print_in_color $CYAN "15. 安装 cronweb"
  75.     print_in_color $CYAN "16. 安装 ddns"
  76.     print_in_color $CYAN "17. 安装 h5ai"

  77.     print_in_color $CYAN ""
  78.     print_in_color $PURPLE "以下为docker安装"
  79.     print_in_color $CYAN ""
  80.     print_in_color $CYAN "31. 安装 青龙面板"
  81.     print_in_color $CYAN "32. 安装 v2ray"
  82.     print_in_color $CYAN "33. 安装 wordpress"
  83.     print_in_color $CYAN "34. 安装 mysql"
  84.     print_in_color $CYAN "35. 安装 chatGPT"
  85.     print_in_color $CYAN "36. 安装 系统teslamate"
  86.     print_in_color $CYAN "37. 安装 jellyfin"
  87.     print_in_color $CYAN "38. 安装 casaos"
  88.     print_in_color $CYAN "39. 安装 portainer"
  89.     print_in_color $CYAN "40. 安装 mrdoc"
  90.     print_in_color $CYAN "41. 安装 homebridge"
  91.     print_in_color $CYAN "42. 安装 homeassistant"
  92.     print_in_color $CYAN "43. 安装 kod"
  93.     print_in_color $CYAN "44. 安装 docker"
  94.     print_in_color $CYAN "45. 安装 justlist"
  95.     print_in_color $CYAN "46. 安装 cloudreve"
  96.     read -p "输入选项编号,用空格分隔(例如:1 2 3),或输入 all 安装所有,然后按回车键执行相应操作:" input
  97.     if [[ "${input[0]}" == "all" ]]; then
  98.         # 卸载所有
  99.         print_in_color $YELLOW "开始 安装所有 安装。"
  100.         for i in {1..50}; do
  101.             install_detail $i
  102.         done
  103.         print_in_color $GREEN "所有安装操作已完成。"
  104.     else
  105.         install_detail "${input[@]}"
  106.     fi
  107.     install_menu


  108. }
  109. install_detail() {
  110.     # 根据用户输入执行安装
  111.     local selections=("$@")
  112.     IFS=' ' read -r -a selected_options <<< "$selections"
  113.     for option in "${selected_options[@]}"; do
  114.         case $option in
  115.             0)
  116.                 main_menu
  117.                 ;;
  118.             1)
  119.                 print_in_color $CYAN "开始 FileBrowser 安装..."
  120.                 apt install -y filebrowser-histb
  121.                 print_in_color $CYAN "完成 FileBrowser 安装。"
  122.                 print_in_color $CYAN ""
  123.                 ;;
  124.             2)
  125.                 print_in_color $CYAN "开始 Nginx 安装..."
  126.                 apt install -y nginx-histb
  127.                 print_in_color $CYAN "完成 Nginx 安装。"
  128.                 print_in_color $CYAN ""
  129.                 ;;
  130.             3)
  131.                 print_in_color $CYAN "开始 Samba (smbd) 安装..."
  132.                 apt install -y samba-histb
  133.                 print_in_color $CYAN "完成 Samba (smbd) 安装。"
  134.                 print_in_color $CYAN ""
  135.                 ;;
  136.             4)
  137.                 print_in_color $CYAN "开始 Tailscale 安装..."
  138.                 apt install -y tailscale-histb
  139.                 print_in_color $CYAN "完成 Tailscale 安装。"
  140.                 print_in_color $CYAN ""
  141.                 ;;
  142.             5)
  143.                 print_in_color $CYAN "开始 Alist 安装..."
  144.                 apt install -y alist-histb
  145.                 print_in_color $CYAN "完成 Alist 安装。"
  146.                 print_in_color $CYAN ""
  147.                 ;;
  148.             6)
  149.                 print_in_color $CYAN "开始 Aria2 安装..."
  150.                 apt install -y aria2-histb
  151.                 print_in_color $CYAN "完成 Aria2 安装。"
  152.                 print_in_color $CYAN ""
  153.                 ;;
  154.             7)
  155.                 print_in_color $CYAN "开始 Transmission 安装..."
  156.                 apt install -y transmission-histb
  157.                 print_in_color $CYAN "完成 Transmission 安装。"
  158.                 print_in_color $CYAN ""
  159.                 ;;
  160.             8)
  161.                 print_in_color $CYAN "开始 页面终端 (ttyd) 安装..."
  162.                 apt install -y ttyd-histb
  163.                 print_in_color $CYAN "完成 页面终端 (ttyd) 安装。"
  164.                 print_in_color $CYAN ""
  165.                 ;;
  166.             9)
  167.                 print_in_color $CYAN "开始 KMS (vlmcsd) 安装..."
  168.                 apt install -y vlmcsd-histb
  169.                 print_in_color $CYAN "完成 KMS (vlmcsd) 安装。"
  170.                 print_in_color $CYAN ""
  171.                 ;;
  172.             10)
  173.                 print_in_color $CYAN "开始 FRP 安装..."
  174.                 apt install -y frpc-histb
  175.                 print_in_color $CYAN "完成 FRP 安装。"
  176.                 print_in_color $CYAN ""
  177.                 ;;
  178.             11)
  179.                 print_in_color $CYAN "开始 NFS 安装..."
  180.                 apt install -y nfs-server-histb
  181.                 print_in_color $CYAN "完成 NFS 安装。"
  182.                 print_in_color $CYAN ""
  183.                 ;;
  184.             12)
  185.                 print_in_color $CYAN "开始 FTP (vsftpd) 安装..."
  186.                 apt install -y vsftpd-histb
  187.                 print_in_color $CYAN "完成 FTP (vsftpd) 安装。"
  188.                 print_in_color $CYAN ""
  189.                 ;;
  190.             13)
  191.                 print_in_color $CYAN "开始 易有云 (linkease) 安装..."
  192.                 apt install -y linkease-histb
  193.                 print_in_color $CYAN "完成 易有云 (linkease) 安装。"
  194.                 print_in_color $CYAN ""
  195.                 ;;

  196.             14)
  197.                 print_in_color $CYAN "开始 typecho 安装..."
  198.                 apt install -y typecho-histb
  199.                 print_in_color $CYAN "完成 typecho 安装。"
  200.                 print_in_color $CYAN ""
  201.                 ;;
  202.             15)
  203.                 print_in_color $CYAN "开始 cronweb 安装..."
  204.                 apt install -y cronweb-histb
  205.                 print_in_color $CYAN "完成 cronweb 安装。"
  206.                 print_in_color $CYAN ""
  207.                 ;;
  208.             16)
  209.                 print_in_color $CYAN "开始 ddns 安装..."
  210.                 apt install -y ddns-histb
  211.                 print_in_color $CYAN "完成 ddns 安装。"
  212.                 print_in_color $CYAN ""
  213.                 ;;
  214.             17)
  215.                 print_in_color $CYAN "开始 h5ai 安装..."
  216.                 apt install -y h5ai-histb
  217.                 print_in_color $CYAN "完成 h5ai 安装。"
  218.                 print_in_color $CYAN ""
  219.                 ;;

  220.             31)
  221.                 print_in_color $CYAN "开始 青龙面板 安装..."
  222.                 install-qinglong.sh
  223.                 print_in_color $CYAN "完成 青龙面板 安装。"
  224.                 print_in_color $CYAN ""
  225.                 ;;
  226.             32)
  227.                 print_in_color $CYAN "开始 v2ray 安装..."
  228.                 install-v2ray.sh
  229.                 print_in_color $CYAN "完成 v2ray 安装。"
  230.                 print_in_color $CYAN ""
  231.                 ;;
  232.             33)
  233.                 print_in_color $CYAN "开始 wordpress 安装..."
  234.                 install-wordpress.sh
  235.                 print_in_color $CYAN "完成 wordpress 安装。"
  236.                 print_in_color $CYAN ""
  237.                 ;;
  238.             34)
  239.                 print_in_color $CYAN "开始 mysql 安装..."
  240.                 install-mysql.sh
  241.                 print_in_color $CYAN "完成 mysql 安装。"
  242.                 print_in_color $CYAN ""
  243.                 ;;
  244.             35)
  245.                 print_in_color $CYAN "开始 chatgpt 安装..."
  246.                 install-chatgpt.sh
  247.                 print_in_color $CYAN "完成 chatgpt 安装。"
  248.                 print_in_color $CYAN ""
  249.                 ;;
  250.             36)
  251.                 print_in_color $CYAN "开始 teslamate 安装..."
  252.                 install-teslamate1.sh  
  253.                 print_in_color $CYAN "完成 teslamate 安装。"
  254.                 print_in_color $CYAN ""
  255.                 ;;
  256.             37)
  257.                 print_in_color $CYAN "开始 jellyfin 安装..."
  258.                 install-jellyfin.sh
  259.                 print_in_color $CYAN "完成 jellyfin 安装。"
  260.                 print_in_color $CYAN ""
  261.                 ;;
  262.             38)
  263.                 print_in_color $CYAN "开始 casaos 安装..."
  264.                 install-casaos.sh
  265.                 print_in_color $CYAN "完成 casaos 安装。"
  266.                 print_in_color $CYAN ""
  267.                 ;;
  268.             39)
  269.                 print_in_color $CYAN "开始 portainer 安装..."
  270.                 install-portainer.sh
  271.                 print_in_color $CYAN "完成 portainer 安装。"
  272.                 print_in_color $CYAN ""
  273.                 ;;
  274.             40)
  275.                 print_in_color $CYAN "开始 mrdoc 安装..."
  276.                 install-mrdoc.sh
  277.                 print_in_color $CYAN "完成 mrdoc 安装。"
  278.                 print_in_color $CYAN ""
  279.                 ;;
  280.             41)
  281.                 print_in_color $CYAN "开始 homebridge 安装..."
  282.                 install-homebridge.sh
  283.                 print_in_color $CYAN "完成 homebridge 安装。"
  284.                 print_in_color $CYAN ""
  285.                 ;;
  286.             42)
  287.                 print_in_color $CYAN "开始 homeassistant 安装..."
  288.                 install-homeassistant.sh
  289.                 print_in_color $CYAN "完成 homeassistant 安装。"
  290.                 print_in_color $CYAN ""
  291.                 ;;
  292.             43)
  293.                 print_in_color $CYAN "开始 kod 安装..."
  294.                 install-kod.sh
  295.                 print_in_color $CYAN "完成 kod 安装。"
  296.                 print_in_color $CYAN ""
  297.                 ;;
  298.             44)
  299.                 print_in_color $CYAN "开始 docker 安装..."
  300.                 install-docker.sh
  301.                 print_in_color $CYAN "完成 docker 安装。"
  302.                 print_in_color $CYAN ""
  303.                 ;;
  304.             45)
  305.                 print_in_color $CYAN "开始 justlist 安装..."
  306.                 install-justlist.sh
  307.                 print_in_color $CYAN "完成 justlist 安装。"
  308.                 print_in_color $CYAN ""
  309.                 ;;
  310.             46)
  311.                 print_in_color $CYAN "开始 cloudreve 安装..."
  312.                 install-cloudreve.sh
  313.                 print_in_color $CYAN "完成 cloudreve 安装。"
  314.                 print_in_color $CYAN ""
  315.                 ;;
  316.             *)
  317.                 print_in_color $CYAN "无效的选项 $option。"
  318.                 ;;
  319.         esac
  320.     done
  321. }

  322. # 卸载菜单函数
  323. uninstall_menu() {
  324.     print_in_color $BLUE "欢迎使用hinas-xiaojin卸载脚本"
  325.     print_in_color $YELLOW "请输入以下选项之一进行操作:"
  326.     print_in_color $RED ""
  327.     print_in_color $RED "0. 返回上级目录"
  328.     print_in_color $RED "all. 卸载所有"
  329.     print_in_color $YELLOW "1. 卸载 PHP"
  330.     print_in_color $YELLOW "2. 卸载 Nginx"
  331.     print_in_color $YELLOW "3. 卸载 Samba (smbd)"
  332.     print_in_color $YELLOW "4. 卸载 Tailscale"
  333.     print_in_color $YELLOW "5. 卸载 Alist"
  334.     print_in_color $YELLOW "6. 卸载 Aria2"
  335.     print_in_color $YELLOW "7. 卸载 Transmission"
  336.     print_in_color $YELLOW "8. 卸载 页面终端 (ttyd)"
  337.     print_in_color $YELLOW "9. 卸载 KMS (vlmcsd)"
  338.     print_in_color $YELLOW "10. 卸载 FRP"
  339.     print_in_color $YELLOW "11. 卸载 NFS"
  340.     print_in_color $YELLOW "12. 卸载 FTP (vsftpd)"
  341.     print_in_color $YELLOW "13. 卸载 易有云 (linkease)"
  342.     print_in_color $YELLOW "14. 卸载 FileBrowser"
  343.     print_in_color $YELLOW "15. 卸载 typecho"
  344.     print_in_color $YELLOW "16. 卸载 cronweb"
  345.     print_in_color $YELLOW "17. 卸载 ddns"
  346.     print_in_color $YELLOW "18. 卸载 h5ai"
  347.     print_in_color $YELLOW "19. 卸载 cloudreve "
  348.     print_in_color $YELLOW ""
  349.     print_in_color $PURPLE "以下为docker卸载"
  350.     print_in_color $YELLOW ""
  351.     print_in_color $YELLOW "31. 卸载 青龙面板"
  352.     print_in_color $YELLOW "32. 卸载 v2ray"
  353.     print_in_color $YELLOW "33. 卸载 wordpress"
  354.     print_in_color $YELLOW "34. 卸载 photoalbum"
  355.     print_in_color $YELLOW "35. 卸载 mysql"
  356.     print_in_color $YELLOW "36. 卸载 chatgpt"
  357.     print_in_color $YELLOW "37. 卸载 系统teslamate"
  358.     print_in_color $YELLOW "38. 卸载 jellyfin"
  359.     print_in_color $YELLOW "39. 卸载 casaos"
  360.     print_in_color $YELLOW "40. 卸载 portainer"
  361.     print_in_color $YELLOW "41. 卸载 mrdoc"
  362.     print_in_color $YELLOW "42. 卸载 homebridge"
  363.     print_in_color $YELLOW "43. 卸载 homeassistant"
  364.     print_in_color $YELLOW "44. 卸载 gitweb"
  365.     print_in_color $YELLOW "45. 卸载 kod"
  366.     print_in_color $YELLOW "46. 卸载 docker"
  367.     read -p "输入选项编号,用空格分隔(例如:1 2 3),或输入 all 卸载所有,然后按回车键执行相应操作:" input
  368.     # 根据用户输入执行卸载

  369.     if [[ "${input[0]}" == "all" ]]; then
  370.         # 卸载所有
  371.         print_in_color $YELLOW "开始 卸载所有 卸载。"
  372.         for i in {1..50}; do
  373.             uninstall_detail $i
  374.         done
  375.         print_in_color $GREEN "所有卸载操作已完成。"
  376.     else
  377.         uninstall_detail "${input[@]}"
  378.     fi
  379.     uninstall_menu
  380. }

  381. uninstall_detail(){

  382.     local selections=("$@")
  383.     IFS=' ' read -r -a selected_options <<< "$selections"
  384.     for option in "${selected_options[@]}"; do
  385.         case $option in
  386.             0)
  387.                 main_menu
  388.                 ;;
  389.             all)
  390.                 # 卸载所有
  391.                 print_in_color $YELLOW "开始 卸载所有 卸载..."
  392.                 for i in {1..30}; do
  393.                     uninstall_menu $i
  394.                 done
  395.                 print_in_color $YELLOW "所有卸载操作已完成。"
  396.                 print_in_color $YELLOW ""
  397.                 continue=false
  398.                 ;;
  399.             1)  uninstall_cmds+=("卸载 PHP")
  400.                 # 卸载 PHP
  401.                 print_in_color $YELLOW "开始 PHP 卸载..."
  402.                 systemctl stop php*
  403.                 apt-get autoremove php7* -y
  404.                 apt purge -y php*
  405.                 find /etc -name "php" | xargs rm -rf
  406.                 find /run -name "php" | xargs rm -rf
  407.                 print_in_color $YELLOW "完成 PHP 卸载。"
  408.                 print_in_color $YELLOW ""
  409.                 ;;
  410.             2)  uninstall_cmds+=("卸载 Nginx")
  411.                 # 卸载 Nginx
  412.                 print_in_color $YELLOW "开始 Nginx 卸载..."
  413.                 systemctl stop nginx*
  414.                 apt purge -y nginx-histb
  415.                 apt-get --purge remove nginx -y
  416.                 apt-get --purge remove nginx-common -y
  417.                 apt-get --purge remove nginx-core -y
  418.                 rm -rf /var/www
  419.                 rm -rf /etc/first_init.d/web.sh
  420.                 rm -rf /usr/share/bak/gitweb
  421.                 rm -rf /bin/install-gitweb.sh
  422.                 print_in_color $YELLOW "完成 Nginx 卸载。"
  423.                 print_in_color $YELLOW ""
  424.                 ;;
  425.             3)  uninstall_cmds+=("卸载 Samba (smbd)")
  426.                 # 卸载 Samba (smbd)
  427.                 print_in_color $YELLOW "开始 Samba (smbd) 卸载..."
  428.                 systemctl stop smbd*
  429.                 apt-get remove --purge samba -y
  430.                 apt purge -y samba-histb
  431.                 apt purge -y samba-common
  432.                 apt purge -y samba-dsdb-modules
  433.                 apt purge -y samba-vfs-modules
  434.                 find /etc -name "samba" | xargs rm -rf
  435.                 find /var -name "samba" | xargs rm -rf
  436.                 find /run -name "samba" | xargs rm -rf
  437.                 rm -rf /usr/share/samba
  438.                 print_in_color $YELLOW "完成 Samba (smbd) 卸载。"
  439.                 print_in_color $YELLOW ""
  440.                 ;;
  441.             4)  uninstall_cmds+=("卸载 Tailscale")
  442.                 # 卸载 Tailscale
  443.                 print_in_color $YELLOW "开始 Tailscale 卸载..."
  444.                 systemctl stop tailscale*
  445.                 apt purge -y tailscale-hist
  446.                 rm -rf /opt/tailscale
  447.                 find / -name "tailscale*" | xargs rm -rf
  448.                 print_in_color $YELLOW "完成 Tailscale 卸载。"
  449.                 print_in_color $YELLOW ""
  450.                 ;;
  451.             5)  uninstall_cmds+=("卸载 Alist")
  452.                 # 卸载 Alist
  453.                 print_in_color $YELLOW "开始 Alist 卸载..."
  454.                 systemctl stop alist*
  455.                 apt purge -y alist-histb
  456.                 rm -rf /opt/alist
  457.                 find /etc -name "alist.service" | xargs rm -rf
  458.                 print_in_color $YELLOW "完成 Alist 卸载。"
  459.                 print_in_color $YELLOW ""
  460.                 ;;
  461.             6)  uninstall_cmds+=("卸载 Aria2")
  462.                 # 卸载 Aria2
  463.                 print_in_color $YELLOW "开始 Aria2 卸载..."
  464.                 systemctl stop aria*
  465.                 apt purge -y aria2-histb
  466.                 rm -rf /usr/bin/aria2c
  467.                 rm -rf /usr/local/aria2
  468.                 find /etc -name "aria2c.service" | xargs rm -rf
  469.                 print_in_color $YELLOW "完成 Aria2 卸载。"
  470.                 print_in_color $YELLOW ""
  471.                 ;;
  472.             7)  uninstall_cmds+=("卸载 Transmission")
  473.                 # 卸载 Transmission
  474.                 print_in_color $YELLOW "开始 Transmission 卸载..."
  475.                 systemctl stop transmission*
  476.                 apt-get --purge remove transmission-* -y
  477.                 apt purge -y transmission-histb
  478.                 apt purge -y transmission-common
  479.                 rm -rf /usr/share/transmission
  480.                 print_in_color $YELLOW "完成 Transmission 卸载。"
  481.                 print_in_color $YELLOW ""
  482.                 ;;
  483.             8)  uninstall_cmds+=("卸载 页面终端 (ttyd)")
  484.                 # 卸载 页面终端 (ttyd)
  485.                 print_in_color $YELLOW "开始 页面终端 (ttyd) 卸载..."
  486.                 systemctl stop ttyd.service
  487.                 apt purge -y ttyd-histb
  488.                 rm -rf /usr/bin/ttyd
  489.                 find /etc -name "ttyd.service" | xargs rm -rf
  490.                 print_in_color $YELLOW "完成 页面终端 (ttyd) 卸载。"
  491.                 print_in_color $YELLOW ""
  492.                 ;;
  493.             9)  uninstall_cmds+=("卸载 KMS (vlmcsd)")
  494.                 # 卸载 KMS (vlmcsd)
  495.                 print_in_color $YELLOW "开始 KMS (vlmcsd) 卸载..."
  496.                 systemctl stop vlmcsd
  497.                 apt purge -y vlmcsd-histb
  498.                 rm -rf /usr/bin/vlmcsd
  499.                 find /etc -name "vlmcsd*" | xargs rm -rf
  500.                 print_in_color $YELLOW "完成 KMS (vlmcsd) 卸载。"
  501.                 print_in_color $YELLOW ""
  502.                 ;;
  503.             10)  uninstall_cmds+=("卸载 FRP")
  504.                 # 卸载 FRP
  505.                 print_in_color $YELLOW "开始 FRP 卸载..."
  506.                 systemctl stop frpc.service
  507.                 apt purge -y frpc-histb
  508.                 rm -rf /etc/first_init.d/frpc.sh
  509.                 rm -rf /etc/frp
  510.                 rm -rf /usr/bin/frpc
  511.                 rm -rf /etc/systemd/system/frpc.service
  512.                 print_in_color $YELLOW "完成 FRP 卸载。"
  513.                 print_in_color $YELLOW ""
  514.                 ;;
  515.             11)  uninstall_cmds+=("卸载 NFS")
  516.                 # 卸载 NFS
  517.                 print_in_color $YELLOW "开始 NFS 卸载..."
  518.                 apt purge -y nfs-server-histb
  519.                 apt-get --purge remove nfs-* -y
  520.                 print_in_color $YELLOW "完成 NFS 卸载。"
  521.                 ;;
  522.             12)  uninstall_cmds+=("卸载 FTP (vsftpd)")
  523.                 # 卸载 FTP (vsftpd)
  524.                 print_in_color $YELLOW "开始 FTP (vsftpd) 卸载..."
  525.                 systemctl stop vsftpd
  526.                 apt-get --purge remove vsftpd -y
  527.                 apt purge -y vsftpd-histb
  528.                 apt purge -y vsftpd
  529.                 find /run -name "vsftpd" | xargs rm -rf
  530.                 print_in_color $YELLOW "完成 FTP (vsftpd) 卸载。"
  531.                 print_in_color $YELLOW ""
  532.                 ;;
  533.             13)  uninstall_cmds+=("卸载 易有云 (linkease)")
  534.                 # 卸载 易有云 (linkease)
  535.                 print_in_color $YELLOW "开始 易有云 (linkease) 卸载..."
  536.                 sudo systemctl stop linkease.service
  537.                 apt purge -y linkease-histb
  538.                 apt remove linkease
  539.                 sudo rm /usr/local/bin/linkease
  540.                 sudo rm -rf /usr/local/linkease
  541.                 print_in_color $YELLOW "完成 易有云 (linkease) 卸载。"
  542.                 print_in_color $YELLOW ""
  543.                 ;;
  544.             14)  uninstall_cmds+=("卸载 FileBrowser")
  545.                 # 卸载 FileBrowser
  546.                 print_in_color $YELLOW "开始 FileBrowser 卸载..."
  547.                 sudo systemctl stop filebrowser
  548.                 sudo systemctl disable filebrowser.service
  549.                 apt purge -y filebrowser-histb
  550.                 sudo find / -type f -name "*filebrowser*" ! -name "*.deb" ! -name "*.rpm" -exec rm -f {} \; 2>/dev/null
  551.                 sudo find / -type f -name "*filebrowser*" ! -name "*.deb" ! -name "*.rpm" -exec rm -rf {} \; 2>/dev/null
  552.                 sudo rm -rf /opt/filebrowser
  553.                 print_in_color $YELLOW "完成 FileBrowser 卸载。"
  554.                 print_in_color $YELLOW ""
  555.                 ;;


  556.             15)  uninstall_cmds+=("卸载 typecho")
  557.                 # 卸载 FileBrowser
  558.                 print_in_color $YELLOW "开始 typecho 卸载..."
  559.                 sudo systemctl stop typecho               
  560.                 apt purge -y typecho-histb
  561.                 print_in_color $YELLOW "完成 typecho 卸载。"
  562.                 print_in_color $YELLOW ""
  563.                 ;;
  564.             16)  uninstall_cmds+=("卸载 cronweb")
  565.                 # 卸载 FileBrowser
  566.                 print_in_color $YELLOW "开始 cronweb 卸载..."
  567.                 sudo systemctl stop cronweb               
  568.                 apt purge -y cronweb-histb
  569.                 print_in_color $YELLOW "完成 cronweb 卸载。"
  570.                 print_in_color $YELLOW ""
  571.                 ;;
  572.             17)  uninstall_cmds+=("卸载 ddns")
  573.                 # 卸载 FileBrowser
  574.                 print_in_color $YELLOW "开始 ddns 卸载..."
  575.                 sudo systemctl stop ddns               
  576.                 apt purge -y ddns-histb
  577.                 print_in_color $YELLOW "完成 ddns 卸载。"
  578.                 print_in_color $YELLOW ""
  579.                 ;;

  580.             18)  uninstall_cmds+=("卸载 h5ai")
  581.                 # 卸载 FileBrowser
  582.                 print_in_color $YELLOW "开始 h5ai 卸载..."
  583.                 sudo systemctl stop h5ai               
  584.                 apt purge -y h5ai-histb
  585.                 print_in_color $YELLOW "完成 h5ai 卸载。"
  586.                 print_in_color $YELLOW ""
  587.                 ;;
  588.             19)  uninstall_cmds+=("卸载 cloudreve")
  589.                 # 卸载 cloudreve
  590.                 print_in_color $YELLOW "开始 cloudreve 卸载..."
  591.                 uninstall-cloudreve.sh
  592.                 print_in_color $YELLOW "完成 cloudreve 卸载。"
  593.                 print_in_color $YELLOW ""
  594.                 ;;


  595.             31)  uninstall_cmds+=("卸载 青龙面板")
  596.                 # 卸载 青龙面板
  597.                 print_in_color $YELLOW "开始 青龙面板 卸载..."
  598.                 hinas-clear qinglong
  599.                 print_in_color $YELLOW "完成 青龙面板 卸载。"
  600.                 print_in_color $YELLOW ""
  601.                 ;;
  602.             32)  uninstall_cmds+=("卸载 v2ray")
  603.                 # 卸载 v2ray
  604.                 print_in_color $YELLOW "开始 v2ray 卸载..."
  605.                 hinas-clear v2ray
  606.                 print_in_color $YELLOW "完成 v2ray 卸载。"
  607.                 print_in_color $YELLOW ""
  608.                 ;;
  609.             33)  uninstall_cmds+=("卸载 wordpress")
  610.                 # 卸载 wordpress
  611.                 print_in_color $YELLOW "开始 wordpress 卸载..."
  612.                 hinas-clear wordpress
  613.                 print_in_color $YELLOW "完成 wordpress 卸载。"
  614.                 print_in_color $YELLOW ""
  615.                 ;;
  616.             34)  uninstall_cmds+=("卸载 photoalbum")
  617.                 # 卸载 photoalbum
  618.                 print_in_color $YELLOW "开始 photoalbum 卸载..."
  619.                 hinas-clear photoalbum
  620.                 print_in_color $YELLOW "完成 photoalbum 卸载。"
  621.                 print_in_color $YELLOW ""
  622.                 ;;
  623.             35)  uninstall_cmds+=("卸载 mysql")
  624.                 # 卸载 mysql
  625.                 print_in_color $YELLOW "开始 mysql 卸载..."
  626.                 hinas-clear mysql
  627.                 print_in_color $YELLOW "完成 mysql 卸载。"
  628.                 print_in_color $YELLOW ""
  629.                 ;;
  630.             36)  uninstall_cmds+=("卸载 chatgpt")
  631.                 # 卸载 chatgpt
  632.                 print_in_color $YELLOW "开始 chatgpt 卸载..."
  633.                 hinas-clear chatgpt
  634.                 print_in_color $YELLOW "完成 chatgpt 卸载。"
  635.                 print_in_color $YELLOW ""
  636.                 ;;
  637.             37)  uninstall_cmds+=("卸载 系统teslamate")
  638.                 # 卸载 系统teslamate
  639.                 print_in_color $YELLOW "开始 系统teslamate 卸载..."
  640.                 hinas-clear teslamate
  641.                 print_in_color $YELLOW "完成 系统teslamate 卸载。"
  642.                 print_in_color $YELLOW ""
  643.                 ;;
  644.             38)  uninstall_cmds+=("卸载 jellyfin")
  645.                 # 卸载 jellyfin
  646.                 print_in_color $YELLOW "开始 jellyfin 卸载..."
  647.                 hinas-clear jellyfin
  648.                 print_in_color $YELLOW "完成 jellyfin 卸载。"
  649.                 print_in_color $YELLOW ""
  650.                 ;;
  651.             39)  uninstall_cmds+=("卸载 casaos")
  652.                 # 卸载 casaos
  653.                 print_in_color $YELLOW "开始 casaos 卸载..."
  654.                 hinas-clear casaos
  655.                 print_in_color $YELLOW "完成 casaos 卸载。"
  656.                 print_in_color $YELLOW ""
  657.                 ;;
  658.             40)  uninstall_cmds+=("卸载 portainer")
  659.                 # 卸载 portainer
  660.                 print_in_color $YELLOW "开始 portainer 卸载..."
  661.                 hinas-clear portainer
  662.                 print_in_color $YELLOW "完成 portainer 卸载。"
  663.                 print_in_color $YELLOW ""
  664.                 ;;
  665.             41)  uninstall_cmds+=("卸载 mrdoc")
  666.                 # 卸载 mrdoc
  667.                 print_in_color $YELLOW "开始 mrdoc 卸载..."
  668.                 hinas-clear mrdoc
  669.                 print_in_color $YELLOW "完成 mrdoc 卸载。"
  670.                 print_in_color $YELLOW ""
  671.                 ;;
  672.             42)  uninstall_cmds+=("卸载 homebridge")
  673.                 # 卸载 青龙面板
  674.                 print_in_color $YELLOW "开始 homebridge 卸载..."
  675.                 hinas-clear homebridge
  676.                 print_in_color $YELLOW "完成 homebridge 卸载。"
  677.                 print_in_color $YELLOW ""
  678.                 ;;
  679.             43)  uninstall_cmds+=("卸载 homeassistant")
  680.                 # 卸载 homeassistant
  681.                 print_in_color $YELLOW "开始 homeassistant 卸载..."
  682.                 hinas-clear homeassistant
  683.                 print_in_color $YELLOW "完成 homeassistant 卸载。"
  684.                 print_in_color $YELLOW ""
  685.                 ;;
  686.             44)  uninstall_cmds+=("卸载 gitweb")
  687.                 # 卸载 gitweb
  688.                 print_in_color $YELLOW "开始 gitweb 卸载..."
  689.                 hinas-clear gitweb
  690.                 print_in_color $YELLOW "完成 gitweb 卸载。"
  691.                 print_in_color $YELLOW ""
  692.                 ;;
  693.             45)  uninstall_cmds+=("卸载 kod")
  694.                 # 卸载 kod
  695.                 print_in_color $YELLOW "开始 kod 卸载..."
  696.                 hinas-clear kod
  697.                 print_in_color $YELLOW "完成 kod 卸载。"
  698.                 print_in_color $YELLOW ""
  699.                 ;;
  700.             46)  uninstall_cmds+=("卸载 docker")
  701.                 # 卸载 docker
  702.                 print_in_color $YELLOW "开始 docker 卸载..."
  703.                 hinas-clear docker
  704.                 print_in_color $YELLOW "完成 docker 卸载。"
  705.                 print_in_color $YELLOW ""
  706.                 ;;
  707.             *)
  708.                 print_in_color $YELLOW "无效的选项 $option。"
  709.                 ;;
  710.         esac
  711.     done
  712. }

  713. # 运行主菜单
  714. main_menu
复制代码



相关阅读:
怎么用机顶盒做监控录像机 用盒子当NVR视频监控录像机方法
兆能ZN90怎么刷机 重庆/四川兆能ZN90安卓9.0的线刷包及教程
移动机顶盒怎么刷网络机顶盒 中国移动盒子刷Ubuntu系统


评分

参与人数 1金币 +1 收起 理由
tsvico + 1 精品文章

查看全部评分


上一篇:怎么用机顶盒做监控录像机 用盒子当NVR视频监控录像机方法
下一篇:华为悦盒怎么刷NAS 华为盒子EC6108V9C刷轻型NAS系统(海纳思)
沙发
发表于 2024-5-17 10:52 | 只看该作者 | 来自广东
感谢楼主分享,前来学习一下
回复 支持 反对

使用道具 举报

板凳
发表于 2024-5-17 19:54 来自ZNDS手机版 | 只看该作者 | 来自广东
谢谢分享了
回复 支持 反对

使用道具 举报

地板
发表于 2024-9-22 11:25 来自ZNDS手机版 | 只看该作者 | 来自湖北
大老photoalbum怎么部署,有缷载没部署
回复 支持 反对

使用道具 举报

5#
发表于 2024-10-5 20:19 | 只看该作者 | 来自广东
谢谢分享
回复 支持 反对

使用道具 举报

6#
发表于 2024-11-25 20:11 | 只看该作者 | 来自上海
谢谢分享
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|新帖|标签|软件|Sitemap|ZNDS智能电视网 ( 苏ICP备2023012627号 )

网络信息服务信用承诺书 | 增值电信业务经营许可证:苏B2-20221768 丨 苏公网安备 32011402011373号

GMT+8, 2025-4-25 12:50 , Processed in 0.098230 second(s), 15 queries , Redis On.

Powered by Discuz!

监督举报:report#znds.com (请将#替换为@)

© 2007-2025 ZNDS.Com

快速回复 返回顶部 返回列表