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
# How to install the superlight mirage-firewall for Qubes OS by using saltstack | |
# Tested on Qubes v4.1 and mirage v0.8.4 | |
# No integrity checks are performed. Latest release version of mirage is downloaded and installed into dom0 | |
# After the install, you have to switch your AppVMs to use the mirage firewall vm created by this script | |
# inspired by: https://github.com/one7two99/my-qubes/tree/master/mirage-firewall | |
# inspired by: https://github.com/one7two99/my-qubes/tree/master/mirage-firewall | |
{% set DownloadVMTemplate = "fedora-38" %} |
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
#!/bin/sh | |
set -e | |
front=$(xprop -notype -root _NET_ACTIVE_WINDOW | awk '{if (match($0,"^_NET_ACTIVE_WINDOW: window id # (0x[0-9a-f]*), 0x0$",m)){print m[1];} exit 0;}' ) | |
test -n "$front" | |
vm=$(xprop -id "$front" -notype _QUBES_VMNAME | awk '{if (match($0,"^_QUBES_VMNAME = \"([^\"]*)\"$",m)){print m[1];} exit 0;}') | |
if [ -n "$vm" ]; then |
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 perl | |
use strict; | |
use warnings; | |
sub open_file_manager { | |
my $vm = shift; | |
exec {'qvm-run'} ('qvm-run', '--', $vm, 'exec nautilus --new-window --no-desktop </dev/null >/dev/null') or die "qvm-run exec failed\n"; | |
} |
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 perl | |
use strict; | |
use warnings; | |
sub dom0_term { | |
(exec 'xfce4-terminal') or (exec 'xterm') or die "dom0 terminal exec failed\n"; | |
} | |
sub domU_term { |