diff --git a/README.md b/README.md index aa1ecd8..1c7d6f3 100644 --- a/README.md +++ b/README.md @@ -4,28 +4,17 @@ Universal Chroot environment that can be deployed to most linux distros and with a portable chroot image that can be moved to one host to another. -sword-vim +sword-vim ## Build a Chroot Management System ### Create your chroot directory -Login as root. - -```shell -sudo su - -``` - -Navigate to your /var directory. - ```shell -cd /var -``` - -Create the Pandoras directories. - -``` -git clone git@github.com:estebanways/pandoras.git +cd +git clone git@github.com:estebanways/pandoras.git +sudo chown -R root:root pandoras/ +sudo mv pandoras /var ``` This is going to create the directories: @@ -35,7 +24,7 @@ This is going to create the directories:
`/var/pandoras/process`: The process directory.
`/var/pandoras/environment`: The chroot environment directory that will be mounted. -If you want to have a chroot directory instead of /var/pandoras make sure you edit the Pandoras script to your directory. +If you want to have a chroot directory instead of /var/pandoras make sure you edit the Pandoras scripts to your directory. /var/pandoras can be anything, depends on where you do want to put your chroot images (The directory or partition that have enough free space). For Chrome OS it's best on /home/chronos directory and on Android it's best on /storage or /data directory. @@ -43,6 +32,7 @@ If you want to have a chroot directory instead of /var/pandoras make sure you ed #!/bin/env bash export dir=#your custom directory, or just leave it if you want to use /var/chroot ``` + Keep in mind that the availability and functionality of Bash may vary based on the specific device, Android version, or Chromebook model you are using. ## Install Debootstrap diff --git a/environment/.gitkeep b/environment/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/images/.gitkeep b/images/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/includes/duplicate_box.sh b/includes/duplicate_box.sh index c6d17ae..d5888a4 100644 --- a/includes/duplicate_box.sh +++ b/includes/duplicate_box.sh @@ -32,7 +32,7 @@ # Duplicates chroot duplicate_box() { - + export dir=/var/pandoras/ echo "Your chroot images: diff --git a/images/pandoras.jpg b/pandoras.jpg similarity index 100% rename from images/pandoras.jpg rename to pandoras.jpg diff --git a/pandoras.sh b/pandoras.sh index f5a276a..c17c43a 100755 --- a/pandoras.sh +++ b/pandoras.sh @@ -100,8 +100,6 @@ route_option() { # Path to functions export dir=/var/pandoras/includes - #command="$1 ""$2"; - case "$1" in 'start-box') diff --git a/process/.gitkeep b/process/.gitkeep new file mode 100644 index 0000000..e69de29