diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-09-18 16:37:31 -0300 |
---|---|---|
committer | Silvio Rhatto <user@example.org> | 2014-09-18 16:37:31 -0300 |
commit | 5eaf060a9cb25f809df96bd124173891f8c4b954 (patch) | |
tree | b305a1a93983662dd427647277fb2e53a6359082 | |
download | utils-chroot-5eaf060a9cb25f809df96bd124173891f8c4b954.tar.gz utils-chroot-5eaf060a9cb25f809df96bd124173891f8c4b954.tar.bz2 |
Initial import
-rw-r--r-- | README.md | 0 | ||||
-rw-r--r-- | TODO.md | 0 | ||||
-rwxr-xr-x | chroot-chromium | 20 | ||||
-rwxr-xr-x | chroot-firefox | 20 | ||||
-rwxr-xr-x | skype | 14 |
5 files changed, 54 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/README.md diff --git a/chroot-chromium b/chroot-chromium new file mode 100755 index 0000000..bc7ed38 --- /dev/null +++ b/chroot-chromium @@ -0,0 +1,20 @@ +#!/bin/bash +# +# Chroot wrapper +# + +if [ -z "$1" ]; then + chroot="wheezy" +else + chroot="$1" +fi + +# Load configuration +if [ -e "$HOME/.config/scripts/chroot" ]; then + source $HOME/.config/scripts/chroot +fi + +xhost local:$CHROOT_USER +sudo su $CHROOT_USER -c "schroot -d /home/$CHROOT_USER -c $chroot -p chromium-browser" & +sleep 1 +xhost - diff --git a/chroot-firefox b/chroot-firefox new file mode 100755 index 0000000..5f78555 --- /dev/null +++ b/chroot-firefox @@ -0,0 +1,20 @@ +#!/bin/bash +# +# Chroot wrapper +# + +if [ -z "$1" ]; then + chroot="wheezy" +else + chroot="$1" +fi + +# Load configuration +if [ -e "$HOME/.config/scripts/chroot" ]; then + source $HOME/.config/scripts/chroot +fi + +xhost local:$CHROOT_USER +sudo su $CHROOT_USER -c "schroot -d /home/$CHROOT_USER -c $chroot -p iceweasel" & +sleep 1 +xhost - @@ -0,0 +1,14 @@ +#!/bin/bash +# +# Chroot wrapper +# + +# Load configuration +if [ -e "$HOME/.config/scripts/chroot" ]; then + source $HOME/.config/scripts/chroot +fi + +xhost local:$CHROOT_USER +sudo su $CHROOT_USER -c "schroot -d /home/$CHROOT_USER -c squeeze -p skype" & +sleep 1 +xhost - |