]> gitweb.fluxo.info Git - utils-chroot.git/commitdiff
Initial import
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 18 Sep 2014 19:37:31 +0000 (16:37 -0300)
committerSilvio Rhatto <user@example.org>
Thu, 18 Sep 2014 19:37:31 +0000 (16:37 -0300)
README.md [new file with mode: 0644]
TODO.md [new file with mode: 0644]
chroot-chromium [new file with mode: 0755]
chroot-firefox [new file with mode: 0755]
skype [new file with mode: 0755]

diff --git a/README.md b/README.md
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/TODO.md b/TODO.md
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/chroot-chromium b/chroot-chromium
new file mode 100755 (executable)
index 0000000..bc7ed38
--- /dev/null
@@ -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 (executable)
index 0000000..5f78555
--- /dev/null
@@ -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 -
diff --git a/skype b/skype
new file mode 100755 (executable)
index 0000000..7a7d045
--- /dev/null
+++ b/skype
@@ -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 -