Skip to content

Commit

Permalink
Reorganize directories
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanways committed Dec 14, 2023
1 parent 8e7b500 commit e1de807
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 20 deletions.
24 changes: 7 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<img alt="sword-vim" src="./images/pandoras.jpg?raw=true" width="500" height="320" />
<img alt="sword-vim" src="./pandoras.jpg?raw=true" width="500" height="320" />

## 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 [email protected]:estebanways/pandoras.git
cd
git clone [email protected]:estebanways/pandoras.git
sudo chown -R root:root pandoras/
sudo mv pandoras /var
```

This is going to create the directories:
Expand All @@ -35,14 +24,15 @@ This is going to create the directories:
<br />`/var/pandoras/process`: The process directory.
<br />`/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.

```shell
#!/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
Expand Down
Empty file added environment/.gitkeep
Empty file.
Empty file added images/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion includes/duplicate_box.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

# Duplicates chroot
duplicate_box() {

export dir=/var/pandoras/

echo "Your chroot images:
Expand Down
File renamed without changes
2 changes: 0 additions & 2 deletions pandoras.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ route_option() {
# Path to functions
export dir=/var/pandoras/includes

#command="$1 ""$2";

case "$1" in

'start-box')
Expand Down
Empty file added process/.gitkeep
Empty file.

0 comments on commit e1de807

Please sign in to comment.