├── P5Hv1BCK.txt └── replit-mainshell /P5Hv1BCK.txt: -------------------------------------------------------------------------------- 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 144 | -------------------------------------------------------------------------------- /replit-mainshell: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ROOTFS_DIR=/home/runner 4 | export PATH=$PATH:~/.local/usr/bin 5 | 6 | max_retries=50 7 | timeout=1 8 | 9 | ARCH=$(uname -m) 10 | case $ARCH in 11 | x86_64) ARCH_ALT=amd64 ;; 12 | aarch64) ARCH_ALT=arm64 ;; 13 | *) 14 | echo "Unsupported CPU architecture: $ARCH" 15 | exit 1 16 | ;; 17 | esac 18 | 19 | if [ ! -e $ROOTFS_DIR/.installed ]; then 20 | echo "Choose OS:" 21 | echo "0) Debian" 22 | echo "1) Ubuntu (RDP Support)" 23 | echo "2) Alpine" 24 | read -p "Enter OS (0-2): " input 25 | 26 | case $input in 27 | 0) 28 | wget --tries=$max_retries --timeout=$timeout --no-hsts -O /tmp/rootfs.tar.xz \ 29 | "https://github.com/termux/proot-distro/releases/download/v3.10.0/debian-${ARCH}-pd-v3.10.0.tar.xz" 30 | apt download xz-utils 31 | deb_file=$(find $ROOTFS_DIR -name "*.deb" -type f) 32 | dpkg -x $deb_file ~/.local/ 33 | rm "$deb_file" 34 | tar -xJf /tmp/rootfs.tar.xz -C $ROOTFS_DIR 35 | ;; 36 | 1) 37 | wget --tries=$max_retries --timeout=$timeout --no-hsts -O /tmp/rootfs.tar.gz \ 38 | "http://cdimage.ubuntu.com/ubuntu-base/releases/20.04/release/ubuntu-base-20.04.4-base-${ARCH_ALT}.tar.gz" 39 | tar -xf /tmp/rootfs.tar.gz -C $ROOTFS_DIR 40 | ;; 41 | 2) 42 | wget --tries=$max_retries --timeout=$timeout --no-hsts -O /tmp/rootfs.tar.gz \ 43 | "https://dl-cdn.alpinelinux.org/alpine/v3.18/releases/x86_64/alpine-minirootfs-3.18.3-${ARCH}.tar.gz" 44 | tar -xf /tmp/rootfs.tar.gz -C $ROOTFS_DIR 45 | ;; 46 | *) 47 | echo "Invalid selection. Exiting." 48 | exit 1 49 | ;; 50 | esac 51 | fi 52 | 53 | if [ ! -e $ROOTFS_DIR/.installed ]; then 54 | mkdir -p $ROOTFS_DIR/usr/local/bin 55 | wget --tries=$max_retries --timeout=$timeout --no-hsts -O $ROOTFS_DIR/usr/local/bin/proot "https://raw.githubusercontent.com/dxomg/vpsfreepterovm/main/proot-${ARCH}" 56 | 57 | while [ ! -s "$ROOTFS_DIR/usr/local/bin/proot" ]; do 58 | rm $ROOTFS_DIR/usr/local/bin/proot -rf 59 | wget --tries=$max_retries --timeout=$timeout --no-hsts -O $ROOTFS_DIR/usr/local/bin/proot "https://raw.githubusercontent.com/dxomg/vpsfreepterovm/main/proot-${ARCH}" 60 | 61 | if [ -s "$ROOTFS_DIR/usr/local/bin/proot" ]; then 62 | chmod 755 $ROOTFS_DIR/usr/local/bin/proot 63 | break 64 | fi 65 | 66 | chmod 755 $ROOTFS_DIR/usr/local/bin/proot 67 | sleep 1 68 | done 69 | 70 | chmod 755 $ROOTFS_DIR/usr/local/bin/proot 71 | 72 | printf "nameserver 1.1.1.1\nnameserver 1.0.0.1" > ${ROOTFS_DIR}/etc/resolv.conf 73 | rm -rf /tmp/rootfs.tar.xz /tmp/sbin 74 | touch $ROOTFS_DIR/.installed 75 | fi 76 | 77 | clear 78 | echo "Foxytoux Sub" 79 | echo "------------------------" 80 | 81 | $ROOTFS_DIR/usr/local/bin/proot \ 82 | --rootfs="${ROOTFS_DIR}" \ 83 | -0 -w "/root" -b /dev -b /sys -b /proc -b /etc/resolv.conf --kill-on-exit 84 | --------------------------------------------------------------------------------