Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
neurobin committed Jun 30, 2016
1 parent 804dd09 commit b482844
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 26 deletions.
48 changes: 28 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,19 +137,29 @@ I call it debcache management!

ChangeLog:
-----------
###version 2.0:

1.You can use short cut in names for path to base iso i.e xubuntu for xubuntu-14.04.1-x64.iso, if there is no other file named "xubuntu" in the same folder. You can even use only x if there is no other file starting with x in the same folder.
###version 2.1.1:

Example:
1. fix `$HOME` and `$LC_ALL` in chroot
2. chroot preparation is done in the same terminal window as chroot.
3. Aaccess control management (xhost)

```
enter base iso path: ~/Downloads/x
```
###version 2.1.0:

As there is only one file that matches x is xubuntu-14.04.1-x64.iso, it will take that file as input automatically.
1. You can change default terminals without applying patch to the source code.
2. It now remembers several project-wise options (delete home directory?, fast compression?, etc..).
3. Options are handled with config files both globally and project-wise.
4. Added show version info (`JLopt -v`)
5. Added show help menu (`JLopt -h`)
6. New script `JLopt` contains several useful functionality.
7. Several potential bug fixes.
8. Docs updated.

2.You can use full path with or without `.iso`.

###version 2.0.6:

1. `xterm` is added as a secondary terminal besides the default `x-terminal-emulator`.
2. Docs updated.

###version 2.0.5:

Expand All @@ -158,21 +168,19 @@ As there is only one file that matches x is xubuntu-14.04.1-x64.iso, it will tak
3. Minor potential bug fixes.
4. Docs updated.

###version 2.0.6:
###version 2.0:

1. `xterm` is added as a secondary terminal besides the default `x-terminal-emulator`.
2. Docs updated.
1.You can use short cut in names for path to base iso i.e xubuntu for xubuntu-14.04.1-x64.iso, if there is no other file named "xubuntu" in the same folder. You can even use only x if there is no other file starting with x in the same folder.

###version 2.1.0:
Example:

1. You can change default terminals without applying patch to the source code.
2. It now remembers several project-wise options (delete home directory?, fast compression?, etc..).
3. Options are handled with config files both globally and project-wise.
4. Added show version info (`JLopt -v`)
5. Added show help menu (`JLopt -h`)
6. New script `JLopt` contains several useful functionality.
7. Several potential bug fixes.
8. Docs updated.
```
enter base iso path: ~/Downloads/x
```

As there is only one file that matches x is xubuntu-14.04.1-x64.iso, it will take that file as input automatically.

2.You can use full path with or without `.iso`.

Tested OS:
---------
Expand Down
17 changes: 11 additions & 6 deletions main/preparechroot
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
#!/bin/bash
mount -t proc none /proc
mount -t sysfs none /sys
mount -t devpts none /dev/pts
echo '*****Preparing chroot...*****'
mount -t proc none /proc && echo '.....mounted /proc'
mount -t sysfs none /sys && echo '.....mounted /sys'
mount -t devpts none /dev/pts && echo '.....mounted /dev/pts'
export HOME=/root
export LC_ALL=C
dbus-uuidgen > /var/lib/dbus/machine-id
dpkg-divert --local --rename --add /sbin/initctl
ln -s /bin/true /sbin/initctl
mkdir /mydir
chmod -R 777 /mydir
mkdir /mydir && echo '.....created a temporary dir: /mydir, you can use this dir to store temporary files. It will be deleted once you exit chroot.'
chmod -R 777 /mydir && echo '.....you can copy/modify anything to /mydir without root permission'
ln -sf /run/resolvconf/resolv.conf /etc/
echo '.....Chroot preparation finished'
echo '*****Chroot preparation finished*****'
echo "
.....This is the chroot terminal
.....Run './help' to get help
"

0 comments on commit b482844

Please sign in to comment.