├── Installer ├── debian.sh ├── parrot.sh └── ubuntu.sh ├── README.md ├── install.sh ├── status.sh └── uninstall.sh /Installer/debian.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g="\033[0;32m" 3 | r="\033[1;31m" 4 | n="\033[0m" 5 | 6 | folder=".debian-fs" 7 | binds=".debian-binds" 8 | tarball="debian-rootfs.tar.xz" 9 | exe="debian.sh" 10 | 11 | if [ -f "/data/data/com.termux/files/usr/bin/proot" ]; then 12 | printf "${n}" 13 | else 14 | printf "${n}" 15 | pkg install proot -y 16 | fi 17 | 18 | if [ -f "/data/data/com.termux/files/usr/bin/wget" ]; then 19 | printf "${n}" 20 | else 21 | printf "${n}" 22 | pkg install wget -y 23 | fi 24 | 25 | if [ -f "/data/data/com.termux/files/usr/bin/tar" ]; then 26 | printf "${n}" 27 | else 28 | printf "${n}" 29 | pkg install tar -y 30 | fi 31 | 32 | if [ -d "$folder" ]; then 33 | first=1 34 | echo -e "${g}Skip downloading${n}" 35 | fi 36 | 37 | if [ "$first" != 1 ]; then 38 | if [ ! -f $tarball ]; then 39 | printf "Downloading Rootfs" 40 | case `dpkg --print-architecture` in 41 | aarch64) 42 | archurl="arm64" ; size="75MB" ;; 43 | arm) 44 | archurl="armhf" ; size="74MB" ;; 45 | amd64) 46 | archurl="amd64" ; size="80MB" ;; 47 | x86_64) 48 | archurl="amd64" ; size="80MB" ;; 49 | i*86) 50 | archurl="i386" ; size="81MB" ;; 51 | x86) 52 | archurl="i386" ; size="81MB" ;; 53 | *) 54 | echo -e "${r}Unknown architecture!${n}"; exit 1 ;; 55 | esac 56 | printf " (${size})..." 57 | wget -q -O $tarball "https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Debian/$archurl/debian-rootfs-$archurl.tar.xz" 58 | printf " ${g}Done\n${n}" 59 | fi 60 | mkdir "$folder" 61 | cd "$folder" 62 | printf "Decompressing Rootfs..." 63 | proot --link2symlink tar -xJf ${HOME}/${tarball}||: 64 | printf " ${g}Done\n${n}" 65 | cd "$HOME" 66 | fi 67 | 68 | mkdir $binds 69 | 70 | printf "Making launcher..." 71 | cat > $exe <<- EOM 72 | #!/bin/bash 73 | cd \$(dirname \$0) 74 | ## unset LD_PRELOAD in case termux-exec is installed 75 | unset LD_PRELOAD 76 | command="proot" 77 | command+=" --link2symlink" 78 | command+=" -0" 79 | command+=" -r $HOME/$folder" 80 | if [ -n "\$(ls -A $HOME/$binds)" ]; then 81 | for f in $HOME/$binds/*; do 82 | . \$f 83 | done 84 | fi 85 | command+=" -b /dev" 86 | command+=" -b /proc" 87 | command+=" -b $HOME/$folder/root:/dev/shm" 88 | ## uncomment the following line to have access to the home directory of termux 89 | #command+=" -b $HOME:/root" 90 | ## uncomment the following line to mount /sdcard directly to / 91 | #command+=" -b /sdcard" 92 | command+=" -w /root" 93 | command+=" /usr/bin/env -i" 94 | command+=" HOME=/root" 95 | command+=" PATH=/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/games:/usr/local/games" 96 | command+=" TERM=\$TERM" 97 | command+=" LANG=C.UTF-8" 98 | command+=" /bin/bash --login" 99 | com="\$@" 100 | if [ -z "\$1" ]; then 101 | exec \$command 102 | else 103 | \$command -c "\$com" 104 | fi 105 | EOM 106 | termux-fix-shebang $exe 107 | chmod +x $exe 108 | mv $exe /data/data/com.termux/files/usr/bin/debian 109 | printf " ${g}Done\n${n}" 110 | 111 | printf "Removing cache..." 112 | rm $tarball 113 | printf " ${g}Done\n${n}" 114 | 115 | echo -e "Run it with the command: ${g}debian${n}" 116 | -------------------------------------------------------------------------------- /Installer/parrot.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g="\033[0;32m" 3 | r="\033[1;31m" 4 | n="\033[0m" 5 | 6 | folder=".parrot-fs" 7 | binds=".parrot-binds" 8 | tarball="parrot-rootfs.tar.xz" 9 | exe="parrot.sh" 10 | 11 | if [ -f "/data/data/com.termux/files/usr/bin/proot" ]; then 12 | printf "${n}" 13 | else 14 | printf "${n}" 15 | pkg install proot -y 16 | fi 17 | 18 | if [ -f "/data/data/com.termux/files/usr/bin/wget" ]; then 19 | printf "${n}" 20 | else 21 | printf "${n}" 22 | pkg install wget -y 23 | fi 24 | 25 | if [ -f "/data/data/com.termux/files/usr/bin/tar" ]; then 26 | printf "${n}" 27 | else 28 | printf "${n}" 29 | pkg install tar -y 30 | fi 31 | 32 | if [ -d "$folder" ]; then 33 | first=1 34 | echo -e "${g}Skip downloading${n}" 35 | fi 36 | 37 | if [ "$first" != 1 ]; then 38 | if [ ! -f $tarball ]; then 39 | printf "Downloading Rootfs" 40 | case `dpkg --print-architecture` in 41 | aarch64) 42 | archurl="arm64" ; size="79MB" ;; 43 | arm) 44 | archurl="armhf" ; size="78MB" ;; 45 | amd64) 46 | archurl="amd64" ; size="84MB" ;; 47 | x86_64) 48 | archurl="amd64" ; size="84MB" ;; 49 | i*86) 50 | archurl="i386" ; size="85MB" ;; 51 | x86) 52 | archurl="i386" ; size="85MB" ;; 53 | *) 54 | echo -e "${r}Unknown architecture!${n}"; exit 1 ;; 55 | esac 56 | printf " (${size})..." 57 | wget -q -O $tarball "https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Parrot/$archurl/parrot-rootfs-$archurl.tar.xz" 58 | printf " ${g}Done\n${n}" 59 | fi 60 | mkdir "$folder" 61 | cd "$folder" 62 | printf "Decompressing Rootfs..." 63 | proot --link2symlink tar -xJf ${HOME}/${tarball}||: 64 | printf " ${g}Done\n${n}" 65 | cd "$HOME" 66 | fi 67 | 68 | mkdir $binds 69 | 70 | printf "Making launcher..." 71 | cat > $exe <<- EOM 72 | #!/bin/bash 73 | cd \$(dirname \$0) 74 | ## unset LD_PRELOAD in case termux-exec is installed 75 | unset LD_PRELOAD 76 | command="proot" 77 | command+=" --link2symlink" 78 | command+=" -0" 79 | command+=" -r $HOME/$folder" 80 | if [ -n "\$(ls -A $HOME/$binds)" ]; then 81 | for f in $HOME/$binds/*; do 82 | . \$f 83 | done 84 | fi 85 | command+=" -b /dev" 86 | command+=" -b /proc" 87 | command+=" -b $HOME/$folder/root:/dev/shm" 88 | ## uncomment the following line to have access to the home directory of termux 89 | #command+=" -b $HOME:/root" 90 | ## uncomment the following line to mount /sdcard directly to / 91 | #command+=" -b /sdcard" 92 | command+=" -w /root" 93 | command+=" /usr/bin/env -i" 94 | command+=" HOME=/root" 95 | command+=" PATH=/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/games:/usr/local/games" 96 | command+=" TERM=\$TERM" 97 | command+=" LANG=C.UTF-8" 98 | command+=" /bin/bash --login" 99 | com="\$@" 100 | if [ -z "\$1" ]; then 101 | exec \$command 102 | else 103 | \$command -c "\$com" 104 | fi 105 | EOM 106 | termux-fix-shebang $exe 107 | chmod +x $exe 108 | mv $exe /data/data/com.termux/files/usr/bin/parrot 109 | printf " ${g}Done\n${n}" 110 | 111 | printf "Removing cache..." 112 | rm $tarball 113 | printf " ${g}Done\n${n}" 114 | 115 | echo -e "Run it with the command: ${g}parrot${n}" 116 | -------------------------------------------------------------------------------- /Installer/ubuntu.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g="\033[0;32m" 3 | r="\033[1;31m" 4 | n="\033[0m" 5 | 6 | folder=".ubuntu-fs" 7 | binds=".ubuntu-binds" 8 | tarball="ubuntu-rootfs.tar.gz" 9 | exe="ubuntu.sh" 10 | 11 | if [ -f "/data/data/com.termux/files/usr/bin/proot" ]; then 12 | printf "${n}" 13 | else 14 | printf "${n}" 15 | pkg install proot -y 16 | fi 17 | 18 | if [ -f "/data/data/com.termux/files/usr/bin/wget" ]; then 19 | printf "${n}" 20 | else 21 | printf "${n}" 22 | pkg install wget -y 23 | fi 24 | 25 | if [ -f "/data/data/com.termux/files/usr/bin/tar" ]; then 26 | printf "${n}" 27 | else 28 | printf "${n}" 29 | pkg install tar -y 30 | fi 31 | 32 | if [ -d "$folder" ]; then 33 | first=1 34 | echo -e "${g}Skip downloading${n}" 35 | fi 36 | 37 | if [ "$first" != 1 ]; then 38 | if [ ! -f $tarball ]; then 39 | printf "Downloading Rootfs" 40 | case `dpkg --print-architecture` in 41 | aarch64) 42 | archurl="arm64" ; size="25MB" ;; 43 | arm) 44 | archurl="armhf" ; size="22MB" ;; 45 | amd64) 46 | archurl="amd64" ; size="26MB" ;; 47 | x86_64) 48 | archurl="amd64" ; size="26MB" ;; 49 | *) 50 | echo -e "${r}Unknown architecture!${n}"; exit 1 ;; 51 | esac 52 | printf " (${size})..." 53 | wget -q -O $tarball "https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu20/focal-$archurl.tar.gz" 54 | printf " ${g}Done\n${n}" 55 | fi 56 | mkdir "$folder" 57 | cd "$folder" 58 | printf "Decompressing Rootfs..." 59 | proot --link2symlink tar -xf ${HOME}/${tarball} --exclude=dev||: 60 | printf " ${g}Done\n${n}" 61 | cd "$HOME" 62 | fi 63 | 64 | mkdir $binds 65 | mkdir -p $folder/proc/fakethings 66 | 67 | if [ ! -f "${HOME}/${folder}/proc/fakethings/stat" ]; then 68 | cat <<- EOF > "${HOME}/${folder}/proc/fakethings/stat" 69 | cpu 5502487 1417100 4379831 62829678 354709 539972 363929 0 0 0 70 | cpu0 611411 171363 667442 7404799 61301 253898 205544 0 0 0 71 | cpu1 660993 192673 571402 7853047 39647 49434 29179 0 0 0 72 | cpu2 666965 186509 576296 7853110 39012 48973 26407 0 0 0 73 | cpu3 657630 183343 573805 7863627 38895 48768 26636 0 0 0 74 | cpu4 620516 161440 594973 7899146 39438 47605 26467 0 0 0 75 | cpu5 610849 155665 594684 7912479 40258 46870 26044 0 0 0 76 | cpu6 857685 92294 387182 8096756 46609 22110 12364 0 0 0 77 | cpu7 816434 273809 414043 7946709 49546 22311 11284 0 0 0 78 | intr 601715486 0 0 0 0 70612466 0 2949552 0 93228 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12862684 625329 10382717 16209 55315 8510 0 0 0 0 11 11 13 270 192 40694 95 7 0 0 0 36850 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 286 6378 0 0 0 54 0 3239423 2575191 82725 0 0 127 0 0 0 1791277 850609 20 9076504 0 301 0 0 0 0 0 3834621 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 806645 0 0 0 0 0 7243 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2445850 52 1783 0 0 5091520 0 0 0 3 0 0 0 0 0 5475 0 198001 0 2 42 1289224 0 2 202483 4 0 8390 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3563336 4202122 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 1 0 1 0 17948 0 0 612 0 0 0 0 2103 0 0 20 0 0 0 0 0 0 0 0 0 0 0 0 0 10 0 0 0 0 0 0 0 11 11 12 0 12 0 52 752 0 0 0 0 0 0 0 743 0 14 0 0 12 0 0 1863 229 0 464 0 0 0 0 0 0 8588 97 7236426 92766 622 31 0 0 0 18 4 4 0 5 0 0 116013 7 0 0 752406 79 | ctxt 826091808 80 | btime 1611513513 81 | processes 288493 82 | procs_running 1 83 | procs_blocked 0 84 | softirq 175407567 14659158 51739474 28359 5901272 8879590 0 11988166 46104015 0 36107533 85 | EOF 86 | fi 87 | 88 | if [ ! -f "${HOME}/${folder}/proc/fakethings/version" ]; then 89 | cat <<- EOF > "${HOME}/${folder}/proc/fakethings/version" 90 | Linux version 5.4.0 (ubuntu@linxandro) (gcc version 4.9.x (LinxAndro /proc/version)) #1 SMP PREEMPT Wed Jun 23 08:20:53 +07 2021 91 | EOF 92 | fi 93 | 94 | if [ ! -f "${HOME}/${folder}/proc/fakethings/vmstat" ]; then 95 | cat <<- EOF > "${HOME}/${folder}/proc/fakethings/vmstat" 96 | nr_free_pages 15717 97 | nr_zone_inactive_anon 87325 98 | nr_zone_active_anon 259521 99 | nr_zone_inactive_file 95508 100 | nr_zone_active_file 57839 101 | nr_zone_unevictable 58867 102 | nr_zone_write_pending 0 103 | nr_mlock 58867 104 | nr_page_table_pages 24569 105 | nr_kernel_stack 49552 106 | nr_bounce 0 107 | nr_zspages 80896 108 | nr_free_cma 0 109 | nr_inactive_anon 87325 110 | nr_active_anon 259521 111 | nr_inactive_file 95508 112 | nr_active_file 57839 113 | nr_unevictable 58867 114 | nr_slab_reclaimable 17709 115 | nr_slab_unreclaimable 47418 116 | nr_isolated_anon 0 117 | nr_isolated_file 0 118 | workingset_refault 33002180 119 | workingset_activate 5498395 120 | workingset_restore 2354202 121 | workingset_nodereclaim 140006 122 | nr_anon_pages 344014 123 | nr_mapped 193745 124 | nr_file_pages 218441 125 | nr_dirty 0 126 | nr_writeback 0 127 | nr_writeback_temp 0 128 | nr_shmem 1880 129 | nr_shmem_hugepages 0 130 | nr_shmem_pmdmapped 0 131 | nr_anon_transparent_hugepages 0 132 | nr_unstable 0 133 | nr_vmscan_write 8904094 134 | nr_vmscan_immediate_reclaim 139732 135 | nr_dirtied 8470080 136 | nr_written 16835370 137 | nr_indirectly_reclaimable 8273152 138 | nr_unreclaimable_pages 130861 139 | nr_dirty_threshold 31217 140 | nr_dirty_background_threshold 15589 141 | pgpgin 198399484 142 | pgpgout 31742368 143 | pgpgoutclean 45542744 144 | pswpin 3843200 145 | pswpout 8903884 146 | pgalloc_dma 192884869 147 | pgalloc_normal 190990320 148 | pgalloc_movable 0 149 | allocstall_dma 0 150 | allocstall_normal 3197 151 | allocstall_movable 1493 152 | pgskip_dma 0 153 | pgskip_normal 0 154 | pgskip_movable 0 155 | pgfree 384653565 156 | pgactivate 34249517 157 | pgdeactivate 44271435 158 | pglazyfree 192 159 | pgfault 46133667 160 | pgmajfault 5568301 161 | pglazyfreed 0 162 | pgrefill 55909145 163 | pgsteal_kswapd 58467386 164 | pgsteal_direct 255950 165 | pgscan_kswapd 86628315 166 | pgscan_direct 415889 167 | pgscan_direct_throttle 0 168 | pginodesteal 18 169 | slabs_scanned 31242197 170 | kswapd_inodesteal 1238474 171 | kswapd_low_wmark_hit_quickly 11637 172 | kswapd_high_wmark_hit_quickly 5411 173 | pageoutrun 32167 174 | pgrotated 213328 175 | drop_pagecache 0 176 | drop_slab 0 177 | oom_kill 0 178 | pgmigrate_success 729722 179 | pgmigrate_fail 450 180 | compact_migrate_scanned 43510584 181 | compact_free_scanned 248175096 182 | compact_isolated 1494774 183 | compact_stall 6 184 | compact_fail 3 185 | compact_success 3 186 | compact_daemon_wake 9438 187 | compact_daemon_migrate_scanned 43502436 188 | compact_daemon_free_scanned 248107303 189 | unevictable_pgs_culled 66418 190 | unevictable_pgs_scanned 0 191 | unevictable_pgs_rescued 8484 192 | unevictable_pgs_mlocked 78830 193 | unevictable_pgs_munlocked 8508 194 | unevictable_pgs_cleared 11455 195 | unevictable_pgs_stranded 11455 196 | swap_ra 0 197 | swap_ra_hit 7 198 | speculative_pgfault 221449963 199 | EOF 200 | fi 201 | 202 | printf "Making launcher..." 203 | cat > $exe <<- EOM 204 | #!/bin/bash 205 | cd \$(dirname \$0) 206 | ## unset LD_PRELOAD in case termux-exec is installed 207 | unset LD_PRELOAD 208 | command="proot" 209 | command+=" --kill-on-exit" 210 | command+=" --link2symlink" 211 | command+=" -0" 212 | command+=" -r $HOME/$folder" 213 | if [ -n "\$(ls -A $HOME/$binds)" ]; then 214 | for f in $HOME/$binds/*; do 215 | . \$f 216 | done 217 | fi 218 | command+=" -b /dev" 219 | command+=" -b /proc" 220 | command+=" -b /sys" 221 | command+=" -b /data" 222 | command+=" -b $HOME/$folder/root:/dev/shm" 223 | command+=" -b /proc/self/fd/2:/dev/stderr" 224 | command+=" -b /proc/self/fd/1:/dev/stdout" 225 | command+=" -b /proc/self/fd/0:/dev/stdin" 226 | command+=" -b /dev/urandom:/dev/random" 227 | command+=" -b /proc/self/fd:/dev/fd" 228 | command+=" -b $HOME/$folder/proc/fakethings/stat:/proc/stat" 229 | command+=" -b $HOME/$folder/proc/fakethings/vmstat:/proc/vmstat" 230 | command+=" -b $HOME/$folder/proc/fakethings/version:/proc/version" 231 | ## uncomment the following line to have access to the home directory of termux 232 | #command+=" -b $HOME:/root" 233 | ## uncomment the following line to mount /sdcard directly to / 234 | #command+=" -b /sdcard" 235 | command+=" -w /root" 236 | command+=" /usr/bin/env -i" 237 | command+=" MOZ_FAKE_NO_SANDBOX=1" 238 | command+=" HOME=/root" 239 | command+=" PATH=/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/games:/usr/local/games" 240 | command+=" TERM=\$TERM" 241 | command+=" LANG=C.UTF-8" 242 | command+=" /bin/bash --login" 243 | com="\$@" 244 | if [ -z "\$1" ]; then 245 | exec \$command 246 | else 247 | \$command -c "\$com" 248 | fi 249 | EOM 250 | termux-fix-shebang $exe 251 | chmod +x $exe 252 | mv $exe /data/data/com.termux/files/usr/bin/ubuntu 253 | 254 | wget -q -O $folder/root/.profile.1 "https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/.profile" 255 | cat $folder/root/.profile.1 >> $folder/root/.profile 256 | rm $folder/root/.profile.1 257 | chmod +x $folder/root/.profile 258 | touch $folder/root/.hushlogin 259 | echo "127.0.0.1 localhost localhost" > $folder/etc/hosts 260 | echo "nameserver 1.1.1.1" > $folder/etc/resolv.conf 261 | chmod +x $folder/etc/resolv.conf 262 | printf " ${g}Done\n${n}" 263 | 264 | printf "Removing cache..." 265 | rm $tarball 266 | printf " ${g}Done\n${n}" 267 | 268 | echo -e "Run it with the command: ${g}ubuntu${n}" 269 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # First installation 2 | - pkg install curl 3 | # Install 4 | ``` 5 | bash <(curl -s https://raw.githubusercontent.com/LinxAndro/Install-Linux/master/install.sh) 6 | ``` 7 | # Uninstall 8 | ``` 9 | bash <(curl -s https://raw.githubusercontent.com/LinxAndro/Install-Linux/master/uninstall.sh) 10 | ``` 11 | # Check status 12 | ``` 13 | bash <(curl -s https://raw.githubusercontent.com/LinxAndro/Install-Linux/master/status.sh) 14 | ``` 15 | # Available OS 16 | - Debian 10 (Buster) 17 | - Ubuntu 20.04 (Focal) 18 | - Parrot 4.7 19 | -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | n="\033[0m" 3 | 4 | if [ -f "/data/data/com.termux/files/usr/bin/curl" ] 5 | then 6 | printf "${n}" 7 | else 8 | printf "${n}" 9 | pkg install curl -y 10 | fi 11 | 12 | Menu(){ 13 | clear 14 | echo -e "[1] Debian" 15 | echo -e "[2] Ubuntu" 16 | echo -e "[3] Parrot" 17 | echo -e "[x] Cancel" 18 | } 19 | 20 | Install(){ 21 | Menu 22 | read -p $'\n[ Select OS ] > ' select 23 | if [ $select == 1 ] 24 | then 25 | echo; bash <(curl -s https://raw.githubusercontent.com/LinxAndro/Install-Linux/master/Installer/debian.sh) 26 | 27 | elif [ $select == 2 ] 28 | then 29 | echo; bash <(curl -s https://raw.githubusercontent.com/LinxAndro/Install-Linux/master/Installer/ubuntu.sh) 30 | 31 | elif [ $select == 3 ] 32 | then 33 | echo; bash <(curl -s https://raw.githubusercontent.com/LinxAndro/Install-Linux/master/Installer/parrot.sh) 34 | 35 | elif [ $select == x ] 36 | then 37 | exit 1 38 | 39 | else 40 | Install 41 | 42 | fi 43 | } 44 | 45 | Install 46 | -------------------------------------------------------------------------------- /status.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g="\033[0;32m" 3 | r="\033[1;31m" 4 | n="\033[0m" 5 | 6 | debian="/data/data/com.termux/files/usr/bin/debian" 7 | ubuntu="/data/data/com.termux/files/usr/bin/ubuntu" 8 | parrot="/data/data/com.termux/files/usr/bin/parrot" 9 | 10 | if [ -f "$debian" ] 11 | then 12 | check=1 13 | echo -e "${n}Debian: ${g}installed${n}" 14 | fi 15 | 16 | if [ -f "$ubuntu" ] 17 | then 18 | check=1 19 | echo -e "${n}Ubuntu: ${g}installed${n}" 20 | fi 21 | 22 | if [ -f "$parrot" ] 23 | then 24 | check=1 25 | echo -e "${n}Parrot: ${g}installed${n}" 26 | fi 27 | 28 | if [ "$check" != 1 ] 29 | then 30 | echo -e "${r}Nothing is installed!${n}" 31 | fi 32 | -------------------------------------------------------------------------------- /uninstall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g="\033[0;32m" 3 | r="\033[1;31m" 4 | n="\033[0m" 5 | 6 | Detect(){ 7 | if [ -f "$exe" ] 8 | then 9 | printf "\nUninstalling..." 10 | else 11 | echo -e "\n${os}: ${r}not installed${n}" 12 | exit 1 13 | fi 14 | } 15 | 16 | Menu(){ 17 | clear 18 | printf "${n}" 19 | echo "[1] Debian" 20 | echo "[2] Ubuntu" 21 | echo "[3] Parrot" 22 | echo "[x] Cancel" 23 | } 24 | 25 | Uninstall(){ 26 | Menu 27 | read -p $'\n[ Select OS ] > ' select 28 | if [ $select == 1 ] 29 | then 30 | exe="/data/data/com.termux/files/usr/bin/debian" 31 | os="Debian" 32 | Detect 33 | rm -rf $exe .debian-fs .debian-binds 34 | printf " ${g}Done\n${n}" 35 | 36 | elif [ $select == 2 ] 37 | then 38 | exe="/data/data/com.termux/files/usr/bin/ubuntu" 39 | os="Ubuntu" 40 | Detect 41 | rm -rf $exe .ubuntu-fs .ubuntu-binds 42 | printf " ${g}Done\n${n}" 43 | 44 | elif [ $select == 3 ] 45 | then 46 | exe="/data/data/com.termux/files/usr/bin/parrot" 47 | os="Parrot" 48 | Detect 49 | rm -rf $exe .parrot-fs .parrot-binds 50 | printf " ${g}Done\n${n}" 51 | 52 | elif [ $select == x ] 53 | then 54 | exit 1 55 | 56 | else 57 | Uninstall 58 | 59 | fi 60 | } 61 | 62 | Uninstall 63 | --------------------------------------------------------------------------------