Last active
July 14, 2016 18:16
-
-
Save rhizoome/e4e8b45824a5c3a706901c986c0c3ae8 to your computer and use it in GitHub Desktop.
Using schroot to run qutebrowser on debian sid in jessie
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You can start qutebrowser without sudo or entering a password | |
# as root | |
apt-get install schroot | |
mkdir /srv/chroot/sid | |
debootstrap sid /srv/chrrot/sid | |
cp -r /etc/schroot/desktop /etc/schroot/merge | |
# edit /etc/schroot/merge/fstab | |
# edit /etc/schroot/schroot.conf | |
# create /usr/local/bin/qb | |
schroot -c sid | |
apt-get install python3-lxml python-tox python3-pyqt5 python3-pyqt5.qtwebkit python3-sip python3-jinja2 python3-pygments python3-yaml python3-pip | |
pip3 install qutebrowser | |
# as user | |
qb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fstab: static file system information for chroots. | |
# Note that the mount point will be prefixed by the chroot path | |
# (CHROOT_PATH) | |
# | |
# <file system> <mount point> <type> <options> <dump> <pass> | |
/proc /proc none rw,bind 0 0 | |
/sys /sys none rw,bind 0 0 | |
/dev /dev none rw,bind 0 0 | |
/dev/pts /dev/pts none rw,bind 0 0 | |
/home /home none rw,bind 0 0 | |
/tmp /tmp none rw,bind 0 0 | |
# If you use gdm3, uncomment this line to allow Xauth to work | |
#/var/run/gdm3 /var/run/gdm3 none rw,bind 0 0 | |
# For PulseAudio and other desktop-related things | |
/var/lib/dbus /var/lib/dbus none rw,bind 0 0 | |
# It may be desirable to have access to /run, especially if you wish | |
# to run additional services in the chroot. However, note that this | |
# may potentially cause undesirable behaviour on upgrades, such as | |
# killing services on the host. | |
/run /run none rw,bind 0 0 | |
/run/lock /run/lock none rw,bind 0 0 | |
/dev/shm /dev/shm none rw,bind 0 0 | |
/run/shm /run/shm none rw,bind 0 0 | |
/run/user/1000 /run/user/1000 none rw,bind 0 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
SESSION=$(schroot --begin-session -c sid) | |
schroot --run-session -c "$SESSION" -- qutebrowser "$@" | |
schroot --end-session -c "$SESSION" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[sid-main] | |
description=For qutebrowser and other programs | |
aliases=sid | |
type=directory | |
directory=/srv/chroot/sid | |
users=ganwell | |
root-groups=root | |
profile=merge | |
personality=linux | |
preserve-environment=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment