Facebook
From chill, 1 Month ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 154
  1. #!/bin/bash
  2. clear
  3. GREEN='\\033[0;32m'
  4. YELLOW='\\033[1;33m'
  5. RED='\\033[0;31m'
  6. echo "
  7. #######################################################################################
  8. #
  9. #                                  Biralo Gaming
  10. #
  11. #                           Copyright (C) 2022 - 2023, VPSFREE.ES
  12. #
  13. #
  14. #######################################################################################"
  15. echo "Select an option:"
  16. echo "1) LXDE - XRDP"
  17. echo "2) PufferPanel"
  18. echo "3) Install Basic Packages"
  19. echo "4) Install Nodejs"
  20. read option
  21.  
  22. if [ $option -eq 1 ]; then
  23.     clear
  24.     echo -e "${RED}Downloading... Please Wait"
  25.     apt update && apt upgrade -y
  26.     export SUDO_FORCE_REMOVE=yes
  27.     apt remove sudo -y
  28.     apt install lxde -y
  29.     apt install xrdp -y
  30.     echo "lxsession -s LXDE -e LXDE" >> /etc/xrdp/startwm.sh
  31. clear
  32.     echo -e "${GREEN}Downloading and installation completed!"
  33.     echo -e "${YELLOW}Select RDP Port"
  34.     read selectedPort
  35.  
  36.     sed -i "s/port=3389/port=$selectedPort/g" /etc/xrdp/xrdp.ini
  37. clear
  38.     service xrdp restart
  39.     clear
  40.     echo -e "${GREEN}RDP Created And Started on Port $selectedPort"
  41. elif [ $option -eq 2 ]; then
  42.     clear
  43.     echo -e "${RED}Downloading... Please Wait"
  44.     apt update && apt upgrade -y
  45.     export SUDO_FORCE_REMOVE=yes
  46.     apt remove sudo -y
  47.     apt install curl wget git python3 -y
  48.     curl -s https://packagecloud.io/install/repositories/pufferpanel/pufferpanel/script.deb.sh | bash
  49.     apt update && apt upgrade -y
  50.     curl -o /bin/systemctl https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl3.py
  51.     chmod -R 777 /bin/systemctl
  52.     apt install pufferpanel
  53.     clear
  54.     echo -e "${GREEN}PufferPanel installation completed!"
  55.     echo -e "${YELLOW}Enter PufferPanel Port"
  56.     read pufferPanelPort
  57.  
  58.     sed -i "s/\"host\": \"0.0.0.0:8080\"/\"host\": \"0.0.0.0:$pufferPanelPort\"/g" /etc/pufferpanel/config.json
  59.     echo -e "${YELLOW}Enter the username for the admin user:"
  60.     read adminUsername
  61.     echo -e "${YELLOW}Enter the password for the admin user:"
  62.     read adminPassword
  63.     echo -e "${YELLOW}Enter the email for the admin user:"
  64.     read adminEmail
  65.  
  66.     pufferpanel user add --name "$adminUsername" --password "$adminPassword" --email "$adminEmail" --admin
  67.     clear
  68.     echo -e "${GREEN}Admin user $adminUsername added successfully!${NC}"
  69.     systemctl restart pufferpanel
  70.     clear
  71.     echo -e "${GREEN}PufferPanel Created & Started - PORT: ${NC}$pufferPanelPort${GREEN}"
  72. elif [ $option -eq 3 ]; then
  73. clear
  74.     echo -e "${RED}Downloading... Please Wait"
  75.      apt update && apt upgrade -y
  76.      apt install git curl wget sudo lsof iputils-ping -y
  77.      curl -o /bin/systemctl https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl3.py
  78.      chmod -R 777 /bin/systemctl
  79.      clear
  80.     echo -e "${GREEN}Basic Packages Installed!"
  81.     echo -e "${RED}sudo / curl / wget / git / lsof / ping"
  82. elif [ $option -eq 4 ]; then
  83. #!/bin/bash
  84.  
  85. echo "Choose a Node.js version to install:"
  86. echo "1. 12.x"
  87. echo "2. 13.x"
  88. echo "3. 14.x"
  89. echo "4. 15.x"
  90. echo "5. 16.x"
  91. echo "6. 17.x"
  92. echo "7. 18.x"
  93. echo "8. 19.x"
  94. echo "9. 20.x"
  95.  
  96. read -p "Enter your choice (1-9): " choice
  97.  
  98. case $choice in
  99.     1)
  100.         version="12"
  101.         ;;
  102.     2)
  103.         version="13"
  104.         ;;
  105.     3)
  106.         version="14"
  107.         ;;
  108.     4)
  109.         version="15"
  110.         ;;
  111.     5)
  112.         version="16"
  113.         ;;
  114.     6)
  115.         version="17"
  116.         ;;
  117.     7)
  118.         version="18"
  119.         ;;
  120.     8)
  121.         version="19"
  122.         ;;
  123.     9)
  124.         version="20"
  125.         ;;
  126.     *)
  127.         echo "Invalid choice. Exiting."
  128.         exit 1
  129.         ;;
  130. esac
  131. echo -e "${RED}Downloading... Please Wait"
  132. apt remove --purge node* nodejs npm -y
  133. apt update && apt upgrade -y && apt install curl -y
  134. curl -sL "https://deb.nodesource.com/setup_${version}.x" -o /tmp/nodesource_setup.sh
  135. bash /tmp/nodesource_setup.sh
  136. apt update -y
  137. apt install -y nodejs
  138. clear
  139. echo -e "${GREEN}Node.js version $version has been installed."
  140.  
  141. else
  142.     echo -e "${RED}Invalid option selected.${NC}"
  143. fi