mirror of
https://git.anonymousland.org/anonymousland/anonymousland.git
synced 2024-10-01 11:49:49 -04:00
2.6 KiB
2.6 KiB
layout | description | title | permalink |
---|---|---|---|
default1 | For QubesOS | Qubes Notes | /Qubes |
A collection of QubesOS-related information.
Table of contents:
->> Template Setup
- -> Debian
- -> Security
- -> Security
- -> Fedora
- -> Upgrading Fedora
Template Setup
Small notes for template setup
Debian
Running in Dom0:
sudo qubes-dom0-update qubes-template-debian-11-minimal
Running inside the template:
sudo apt update
Installing packages
sudo apt install qubes-core-agent-passwordless-root qubes-core-agent-dom0-updates qubes-usb-proxy qubes-gpg-split qubes-core-agent-networking git apt-transport-tor curl -y
Configuring git proxy
git --config global.proxy 127.0.0.1:8002
Debian Security
Installing Kicksecure:
curl --proxy http://127.0.0.1:8082/ --tlsv1.3 --proto =https --max-time 180 --output ~/derivative.asc https://www.kicksecure.com/derivative.asc
sudo cp ~/derivative.asc /usr/share/keyrings/derivative.asc
echo "deb [signed-by=/usr/share/keyrings/derivative.asc] tor+http://deb.w5j6stm77zs6652pgsij4awcjeel3eco7kvipheu6mtr623eyyehj4yd.onion bullseye main contrib non-free" | sudo tee /etc/apt/sources.list.d/derivative.list
Installing LKRG
sudo apt install --no-install-recommends lkrg-dkms linux-headers-amd64
Enabling Hardened Malloc:
sudoedit /etc/ld.so.preload
and add:
/usr/lib/libhardened_malloc.so/libhardened_malloc.so
Fedora
Running in Dom0:
sudo qubes-dom0-update qubes-template-fedora-36-minimal
Running inside the template:
sudo dnf update
Installing packages
sudo dnf install qubes-core-agent-passwordless-root qubes-core-agent-dom0-updates qubes-usb-proxy qubes-gpg-split qubes-core-agent-networking git -y
Configuring git proxy
git --config global.proxy 127.0.0.1:8002
Upgrading Fedora
Running in Dom0:
qvm-clone fedora-35 fedora-36
truncate -s 5GB /var/tmp/template-upgrade-cache.img
qvm-run -a fedora-36 gnome-terminal
dev=$(sudo losetup -f --show /var/tmp/template-upgrade-cache.img)
qvm-block attach fedora-<new> dom0:${dev##*/}
Running inside Fedora-36:
sudo mkfs.ext4 /dev/xvdi
sudo mount /dev/xvdi /mnt/removable
sudo dnf clean all
sudo dnf --releasever=36--setopt=cachedir=/mnt/removable --best --allowerasing distro-sync
Running inside Dom0:
qvm-shutdown fedora-36
sudo losetup -d $dev
rm /var/tmp/template-upgrade-cache.img