aboutsummaryrefslogtreecommitdiffstats
path: root/chroot
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-06-24 13:22:52 +0000
committerterminaldweller <thabogre@gmail.com>2022-06-24 13:22:52 +0000
commit33678beddf20b33c1f107a4282a59931fed4b47d (patch)
tree29b7a55ba481117f1fc12bec7bd0f22817ffd5ca /chroot
parentupdates (diff)
downloadscripts-33678beddf20b33c1f107a4282a59931fed4b47d.tar.gz
scripts-33678beddf20b33c1f107a4282a59931fed4b47d.zip
updates
Diffstat (limited to 'chroot')
-rwxr-xr-xchroot/arch.sh12
-rwxr-xr-xchroot/steam_wrapper6
2 files changed, 18 insertions, 0 deletions
diff --git a/chroot/arch.sh b/chroot/arch.sh
new file mode 100755
index 0000000..43e8879
--- /dev/null
+++ b/chroot/arch.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+CHROOT_DIR=/home/devi/chroots/arch
+# sudo mount -t proc proc $CHROOT_DIR/proc/
+# sudo mount -t sysfs sys $CHROOT_DIR/sys/
+
+# sudo mount -o bind /tmp $CHROOT_DIR/tmp/
+# sudo mount -o bind /dev $CHROOT_DIR/dev/
+
+# sudo mount -t devpts none "$CHROOT_DIR/dev/pts" -o ptmxmode=0666,newinstance
+# sudo mount -t auto /dev/dri "$CHROOT_DIR/dev/dri"
+sudo xchroot $CHROOT_DIR
diff --git a/chroot/steam_wrapper b/chroot/steam_wrapper
new file mode 100755
index 0000000..2354c3b
--- /dev/null
+++ b/chroot/steam_wrapper
@@ -0,0 +1,6 @@
+#!/bin/sh
+# host needs to have xhost enabled,i.e.:
+# xhost +
+# enable anyone to use pulseaudio over tcp:
+# load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.1.0/24 auth-anonymous=1
+env DISPLAY=:0.0 PULSE_SERVER=127.0.0.1 steam