vidfom commited on
Commit
9612bbb
·
verified ·
1 Parent(s): 485c6b9

Upload folder using huggingface_hub

Browse files
Files changed (7) hide show
  1. .gitattributes +2 -0
  2. LICENSE +21 -0
  3. README.md +49 -0
  4. noninteractive.sh +86 -0
  5. proot-aarch64 +3 -0
  6. proot-x86_64 +3 -0
  7. root.sh +84 -0
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ proot-aarch64 filter=lfs diff=lfs merge=lfs -text
37
+ proot-x86_64 filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2024 foxytouxxx
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Foxytoux Installer
2
+
3
+ ## Overview
4
+
5
+ This shell script is designed to automate the installation of Foxytoux, a lightweight Ubuntu environment using Proot.
6
+
7
+ ## Prerequisites
8
+
9
+ - Bash shell environment
10
+ - Internet connectivity
11
+ - Wget installed
12
+ - Supported CPU architecture: x86_64 (amd64) or aarch64 (arm64)
13
+
14
+ ## Installation
15
+
16
+ 1. Clone the repository:
17
+
18
+ ```sh
19
+ git clone https://github.com/foxytouxxx/freeroot.git
20
+ cd freeroot
21
+ ```
22
+
23
+ 2. Run the installer script:
24
+
25
+ ```sh
26
+ ./root.sh
27
+ ```
28
+ or
29
+ ```sh
30
+ bash root.sh
31
+ ```
32
+
33
+ ## Supported Architectures
34
+
35
+ - x86_64 (amd64)
36
+ - aarch64 (arm64)
37
+
38
+ ## License
39
+
40
+ This Foxytoux Installer script is released under the [MIT License](LICENSE).
41
+
42
+ ## Credits
43
+
44
+ Foxytoux Installer is developed and maintained by RecodeStudios.Cloud.
45
+ This installer has been made possible thanks to [dxomg](https://github.com/dxomg) for his proot code
46
+
47
+ ---
48
+
49
+ **Note:** This script is intended for educational and experimental purposes. Use it responsibly and at your own risk.
noninteractive.sh ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ ROOTFS_DIR=$(pwd)
4
+ export PATH=$PATH:~/.local/usr/bin
5
+ max_retries=50
6
+ timeout=1
7
+ ARCH=$(uname -m)
8
+
9
+ if [ "$ARCH" = "x86_64" ]; then
10
+ ARCH_ALT=amd64
11
+ elif [ "$ARCH" = "aarch64" ]; then
12
+ ARCH_ALT=arm64
13
+ else
14
+ printf "Unsupported CPU architecture: ${ARCH}"
15
+ exit 1
16
+ fi
17
+
18
+ if [ ! -e $ROOTFS_DIR/.installed ]; then
19
+ echo "#######################################################################################"
20
+ echo "#"
21
+ echo "# Foxytoux INSTALLER"
22
+ echo "#"
23
+ echo "# Copyright (C) 2024, RecodeStudios.Cloud"
24
+ echo "#"
25
+ echo "#"
26
+ echo "#######################################################################################"
27
+
28
+ install_ubuntu=YES
29
+ fi
30
+
31
+ case $install_ubuntu in
32
+ [yY][eE][sS])
33
+ wget --tries=$max_retries --timeout=$timeout --no-hsts -O /tmp/rootfs.tar.gz \
34
+ "http://cdimage.ubuntu.com/ubuntu-base/releases/20.04/release/ubuntu-base-20.04.4-base-${ARCH_ALT}.tar.gz"
35
+ tar -xf /tmp/rootfs.tar.gz -C $ROOTFS_DIR
36
+ ;;
37
+ *)
38
+ echo "Skipping Ubuntu installation."
39
+ ;;
40
+ esac
41
+
42
+ if [ ! -e $ROOTFS_DIR/.installed ]; then
43
+ mkdir $ROOTFS_DIR/usr/local/bin -p
44
+ wget --tries=$max_retries --timeout=$timeout --no-hsts -O $ROOTFS_DIR/usr/local/bin/proot "https://raw.githubusercontent.com/foxytouxxx/freeroot/main/proot-${ARCH}"
45
+
46
+ while [ ! -s "$ROOTFS_DIR/usr/local/bin/proot" ]; do
47
+ rm $ROOTFS_DIR/usr/local/bin/proot -rf
48
+ wget --tries=$max_retries --timeout=$timeout --no-hsts -O $ROOTFS_DIR/usr/local/bin/proot "https://raw.githubusercontent.com/foxytouxxx/freeroot/main/proot-${ARCH}"
49
+
50
+ if [ -s "$ROOTFS_DIR/usr/local/bin/proot" ]; then
51
+ chmod 755 $ROOTFS_DIR/usr/local/bin/proot
52
+ break
53
+ fi
54
+
55
+ chmod 755 $ROOTFS_DIR/usr/local/bin/proot
56
+ sleep 1
57
+ done
58
+
59
+ chmod 755 $ROOTFS_DIR/usr/local/bin/proot
60
+ fi
61
+
62
+ if [ ! -e $ROOTFS_DIR/.installed ]; then
63
+ printf "nameserver 1.1.1.1\nnameserver 1.0.0.1" > ${ROOTFS_DIR}/etc/resolv.conf
64
+ rm -rf /tmp/rootfs.tar.xz /tmp/sbin
65
+ touch $ROOTFS_DIR/.installed
66
+ fi
67
+
68
+ CYAN='\e[0;36m'
69
+ WHITE='\e[0;37m'
70
+
71
+ RESET_COLOR='\e[0m'
72
+
73
+ display_gg() {
74
+ echo -e "${WHITE}___________________________________________________${RESET_COLOR}"
75
+ echo -e ""
76
+ echo -e " ${CYAN}-----> Mission Completed ! <----${RESET_COLOR}"
77
+ echo -e ""
78
+ echo -e "${WHITE}___________________________________________________${RESET_COLOR}"
79
+ }
80
+
81
+ clear
82
+ display_gg
83
+
84
+ $ROOTFS_DIR/usr/local/bin/proot \
85
+ --rootfs="${ROOTFS_DIR}" \
86
+ -0 -w "/root" -b /dev -b /sys -b /proc -b /etc/resolv.conf --kill-on-exit
proot-aarch64 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa10b1a7818c2f5b1dcb5834450570c368c9ecf66d31521509621b95c4538a45
3
+ size 1479432
proot-x86_64 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1eb20cb201e6df08d707023efb000623ff7c10d6574839d7bb42d0adba6b4da
3
+ size 1901440
root.sh ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ ROOTFS_DIR=$(pwd)
4
+ export PATH=$PATH:~/.local/usr/bin
5
+ max_retries=50
6
+ timeout=1
7
+ ARCH=$(uname -m)
8
+
9
+ if [ "$ARCH" = "x86_64" ]; then
10
+ ARCH_ALT=amd64
11
+ elif [ "$ARCH" = "aarch64" ]; then
12
+ ARCH_ALT=arm64
13
+ else
14
+ printf "Unsupported CPU architecture: ${ARCH}"
15
+ exit 1
16
+ fi
17
+
18
+ if [ ! -e $ROOTFS_DIR/.installed ]; then
19
+ echo "#######################################################################################"
20
+ echo "#"
21
+ echo "# Foxytoux INSTALLER"
22
+ echo "#"
23
+ echo "# Copyright (C) 2024, RecodeStudios.Cloud"
24
+ echo "#"
25
+ echo "#"
26
+ echo "#######################################################################################"
27
+
28
+ read -p "Do you want to install Ubuntu? (YES/no): " install_ubuntu
29
+ fi
30
+
31
+ case $install_ubuntu in
32
+ [yY][eE][sS])
33
+ wget --tries=$max_retries --timeout=$timeout --no-hsts -O /tmp/rootfs.tar.gz \
34
+ "http://cdimage.ubuntu.com/ubuntu-base/releases/20.04/release/ubuntu-base-20.04.4-base-${ARCH_ALT}.tar.gz"
35
+ tar -xf /tmp/rootfs.tar.gz -C $ROOTFS_DIR
36
+ ;;
37
+ *)
38
+ echo "Skipping Ubuntu installation."
39
+ ;;
40
+ esac
41
+
42
+ if [ ! -e $ROOTFS_DIR/.installed ]; then
43
+ mkdir $ROOTFS_DIR/usr/local/bin -p
44
+ wget --tries=$max_retries --timeout=$timeout --no-hsts -O $ROOTFS_DIR/usr/local/bin/proot "https://raw.githubusercontent.com/foxytouxxx/freeroot/main/proot-${ARCH}"
45
+
46
+ while [ ! -s "$ROOTFS_DIR/usr/local/bin/proot" ]; do
47
+ rm $ROOTFS_DIR/usr/local/bin/proot -rf
48
+ wget --tries=$max_retries --timeout=$timeout --no-hsts -O $ROOTFS_DIR/usr/local/bin/proot "https://raw.githubusercontent.com/foxytouxxx/freeroot/main/proot-${ARCH}"
49
+
50
+ if [ -s "$ROOTFS_DIR/usr/local/bin/proot" ]; then
51
+ chmod 755 $ROOTFS_DIR/usr/local/bin/proot
52
+ break
53
+ fi
54
+
55
+ chmod 755 $ROOTFS_DIR/usr/local/bin/proot
56
+ sleep 1
57
+ done
58
+
59
+ chmod 755 $ROOTFS_DIR/usr/local/bin/proot
60
+ fi
61
+
62
+ if [ ! -e $ROOTFS_DIR/.installed ]; then
63
+ printf "nameserver 1.1.1.1\nnameserver 1.0.0.1" > ${ROOTFS_DIR}/etc/resolv.conf
64
+ rm -rf /tmp/rootfs.tar.xz /tmp/sbin
65
+ touch $ROOTFS_DIR/.installed
66
+ fi
67
+
68
+ CYAN='\e[0;36m'
69
+ WHITE='\e[0;37m'
70
+
71
+ RESET_COLOR='\e[0m'
72
+
73
+ display_gg() {
74
+ echo -e "${WHITE}___________________________________________________${RESET_COLOR}"
75
+ echo -e ""
76
+ echo -e " ${CYAN}-----> Mission Completed ! <----${RESET_COLOR}"
77
+ }
78
+
79
+ clear
80
+ display_gg
81
+
82
+ $ROOTFS_DIR/usr/local/bin/proot \
83
+ --rootfs="${ROOTFS_DIR}" \
84
+ -0 -w "/root" -b /dev -b /sys -b /proc -b /etc/resolv.conf --kill-on-exit