Last active
December 2, 2017 22:11
-
-
Save andreichenchik/7a9734727208e5e06809bac705c1fe39 to your computer and use it in GitHub Desktop.
Qubes OS: Firefox Quantum
This file contains 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 | |
# Script URL https://goo.gl/WZULMH | |
#set -x | |
qvm-start stretch | |
read -d '' sid <<-EOF | |
deb http://ftp.us.debian.org/debian/ sid main | |
deb-src http://ftp.us.debian.org/debian/ sid main | |
EOF | |
qvm-run -a -p -u root stretch "echo '$sid' > /etc/apt/sources.list.d/debian-sid.list" | |
read -d '' pinning <<-EOF | |
Package: * | |
Pin: release a=stable | |
Pin-Priority: 1000 | |
Package: * | |
Pin: release a=unstable | |
Pin-Priority: 2 | |
Package: firefox | |
Pin: release a=unstable | |
Pin-Priority: 1001 | |
Package: libfontconfig1 | |
Pin: release a=unstable | |
Pin-Priority: 1001 | |
Package: fontconfig-config | |
Pin: release a=unstable | |
Pin-Priority: 1001 | |
Package: libnss3 | |
Pin: release a=unstable | |
Pin-Priority: 1001 | |
EOF | |
qvm-run -a -p -u root stretch "echo '$pinning' > /etc/apt/preferences" | |
qvm-run -a -p -u root stretch "apt-get update && apt-get install -y -t sid firefox" | |
qvm-shutdown --wait stretch | |
qvm-trim-template stretch | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment