Qubes: Difference between revisions
(→Template VMs: update) |
(update for Qubes 4.2) |
||
(20 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Note: after restoring from a backup make sure to recreate the templates from the base again to save disk space because of copy-on-write. |
|||
== VMs == |
|||
* DD (km-d10-dev) |
|||
* media (km-f32) |
|||
** flatpak: handbrake, kdenlive, picard |
|||
* personal (km-f32) |
|||
** flatpak: Signal, xournalpp, hexchat, runelite, dolphinemu |
|||
* fopf (km-f32) |
|||
* school (km-f32) |
|||
* dev (km-f31-dev) |
|||
* wm-ssh (fedora-32) |
|||
** firewall only allows ssh to bast4002.wikimedia.org |
|||
* gpg (km-f32) |
|||
** no network |
|||
* vault (km-f32-vault) |
|||
** no network |
|||
* vault-gpg (fedora-32) |
|||
** no network |
|||
* sys-riseup-vpn (km-d10-leap) |
|||
** see [[Qubes/riseup-vpn]] setup guide |
|||
== Template VMs == |
== Template VMs == |
||
In my Fedora VMs |
|||
* km-d10-dev: fork: |
|||
⚫ | |||
** devscripts git-buildpackage dput-ng command-not-found gitk git-cola gir1.2-vte-2.91 (reportbug-gtk dep) webext-ublock-origin webext-https-everywhere dh-php php-dev lintian-brush lintian (from backports) dh-buildinfo apache2-dev ack |
|||
* <code>echo "vm.swappiness = 1" | sudo tee systemctl.conf</code> |
|||
* fedora-32: upstream |
|||
** I used this for Qubes 4.0 and 4.1, seeing if I don't need it for 4.2 |
|||
* km-f32: fork: |
|||
** enabled rpmfusion |
|||
** fuse-exfat exfat-utils chromium ffmpeg vlc inkscape pcsc-tools mozilla-privacy-badger hugin filezilla shotwell youtube-dl libreoffice libgnome-keyring tree ack nano mozilla-https-everywhere mozilla-ublock-origin nextcloud-client-nautilus quassel-client mosh mono-core mono-devel mono-locale-extras mediainfo curl transmission-gtk |
|||
* km-f32-dev: |
|||
** enabled codium, pycharm-community |
|||
** quassel-client mozilla-https-everywhere mozilla-ublock-origin python3 python3.5 python3.6 python3.8 python3.9 composer php npm tox fish pipenv git-cola gitk podman nano tree ack jq python3-pyside mosh mozilla-privacy-badger ffmpeg php-apcu ruby bind-utils devscripts poetry twine sqlite pycharm-community codium golang toolbox fpaste openssl-devel g++ vlc sqlite-devel php-gmp chromium redis mariadb-devel colordiff |
|||
* km-f33-vault: (fork of minimal) |
|||
** nano keepassxc qubes-gpg-split pinentry-gtk |
|||
== Config == |
|||
* <code>/etc/qubes-rpc/policy/qubes.InputKeyboard</code> |
|||
** <code>sys-usb dom0 ask,default_target=dom0</code> |
|||
* <code>/etc/qubes-rpc/policy/qubes.InputTablet</code> |
|||
⚫ | |||
* <code>/etc/qubes-rpc/policy/qubes.Gpg</code> |
|||
⚫ | |||
** <code>dev gpg allow</code> |
|||
** <code>personal gpg allow</code> |
|||
* <code>/etc/qubes-rpc/policy/qubes.GpgImportKey</code> |
|||
** <code>DD gpg allow</code> |
|||
** <code>dev gpg allow</code> |
|||
** <code>personal gpg allow</code> |
|||
== dom0 == |
== dom0 == |
||
⚫ | |||
* RPC Policy: Set USB keyboards and mice to ask for being attached to dom0 |
|||
* <s>Follow https://github.com/Qubes-Community/Contents/blob/master/docs/customization/dpi-scaling.md for getting it to work with my 4k display.</s> Went back to a non-4k display. |
|||
* <s>Appearance -> Style -> Adwaita-dark</s> |
|||
* Change global copy/paste to use Win+C and Win+V |
|||
⚫ | |||
⚫ | |||
<pre> |
<pre> |
||
#!/bin/sh |
#!/bin/sh |
||
Line 54: | Line 22: | ||
</pre> |
</pre> |
||
<s>Redshift, following https://www.bryceguinta.me/install-configure-and-autostart-redshift-on-qubes-40.html, except place the config file at <code>~/redshift.conf</code> so it gets included in dom0 backups and use Settings -> Session and Startup to add the autostart entry.</s> |
|||
Clock format: <code>%a %F %r</code> |
|||
== Advanced debugging == |
|||
In the grub bootloader you can press "E" on a menu item to edit both the Linux and Xen command lines before booting. Removing "quiet" from Linux will make the boot process verbose and you can see where you get stuck. |
|||
Boot a Qubes installer USB, select rescue mode. Select option #1, enter your decryption password. Ignore the error which says "You have no Linux partitions...", it's wrong and [https://github.com/QubesOS/qubes-issues/issues/5609 a known issue]. |
|||
If you run e.g. <code>fdisk -l</code>, you should see your disks and VMs. You should be able to mount dom0 with e.g. <code>mkdir /mnt/dom0 && mount /dev/qubes_dom0/root /mnt/dom0</code>. To do stuff in dom0, you might <code>chroot /mnt/dom0.</code> |
|||
If you need <code>/proc</code>, <code>/sys</code>, etc. inside the chroot, see [https://superuser.com/questions/165116/mount-dev-proc-sys-in-a-chroot-environment#417004 this post] for how to mount them. |
|||
Redshift, following https://www.bryceguinta.me/install-configure-and-autostart-redshift-on-qubes-40.html |
Latest revision as of 01:11, 19 May 2024
Note: after restoring from a backup make sure to recreate the templates from the base again to save disk space because of copy-on-write.
Template VMs
In my Fedora VMs
systemctl mask packagekit
echo "vm.swappiness = 1" | sudo tee systemctl.conf
- I used this for Qubes 4.0 and 4.1, seeing if I don't need it for 4.2
dom0
- RPC Policy: Set USB keyboards and mice to ask for being attached to dom0
Follow https://github.com/Qubes-Community/Contents/blob/master/docs/customization/dpi-scaling.md for getting it to work with my 4k display.Went back to a non-4k display.Appearance -> Style -> Adwaita-dark- Change global copy/paste to use Win+C and Win+V
- Clock format:
%a %F %r
Create /usr/local/bin/vault
, mapped to ctrl+shift+x
#!/bin/sh exec qvm-run vault keepassxc
Redshift, following https://www.bryceguinta.me/install-configure-and-autostart-redshift-on-qubes-40.html, except place the config file at
~/redshift.conf
so it gets included in dom0 backups and use Settings -> Session and Startup to add the autostart entry.
Advanced debugging
In the grub bootloader you can press "E" on a menu item to edit both the Linux and Xen command lines before booting. Removing "quiet" from Linux will make the boot process verbose and you can see where you get stuck.
Boot a Qubes installer USB, select rescue mode. Select option #1, enter your decryption password. Ignore the error which says "You have no Linux partitions...", it's wrong and a known issue.
If you run e.g. fdisk -l
, you should see your disks and VMs. You should be able to mount dom0 with e.g. mkdir /mnt/dom0 && mount /dev/qubes_dom0/root /mnt/dom0
. To do stuff in dom0, you might chroot /mnt/dom0.
If you need /proc
, /sys
, etc. inside the chroot, see this post for how to mount them.