2023-06-14 19:33:40 -07:00
|
|
|
{{- if eq .host.qubes true -}}
|
Update dotfiles/.local/share/chezmoi/dot_local/assets/Betelgeuse.macOS.terminal, dotfiles/.local/share/chezmoi/dot_local/bin/executable_squash-symlink, dotfiles/.local/share/chezmoi/dot_local/bin/executable_run, dotfiles/.local/share/chezmoi/dot_local/bin/executable_ramqube, dotfiles/.local/share/chezmoi/dot_local/bin/executable_quickstart, dotfiles/.local/share/chezmoi/dot_local/bin/executable_provision, dotfiles/.local/share/chezmoi/dot_local/bin/executable_opener, dotfiles/.local/share/chezmoi/dot_local/bin/executable_logg, dotfiles/.local/share/chezmoi/dot_local/bin/executable_ksetwallpaper, dotfiles/.local/share/chezmoi/dot_local/bin/executable_install-terminal-theme, dotfiles/.local/share/chezmoi/dot_local/bin/executable_install-dotfiles, dotfiles/.local/share/chezmoi/dot_local/bin/executable_firefox-profile-import, dotfiles/.local/share/chezmoi/dot_local/bin/executable_chrome-profile-import, dotfiles/.local/share/chezmoi/dot_local/bin/executable_firefox-profile-export, dotfiles/.local/share/chezmoi/dot_local/bin/executable_chrome-profile-export
Deleted dotfiles/.local/bin/dotfile-system-prune
2022-11-22 09:48:25 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Creates a Qube on RAM disk and opens Firefox if the Qube does not already exist.
|
|
|
|
# If the Qube already exists, then running this will delete it.
|
|
|
|
# Source: https://github.com/unman/stuff/blob/main/ramqube.sh
|
|
|
|
# Source: https://github.com/unman/stuff/blob/main/rmram.sh
|
|
|
|
|
|
|
|
if [ -f '/home/user/RQube' ]; then
|
|
|
|
mkdir /home/user/RQube
|
|
|
|
sudo mount -t tmpfs -o size=2G rqube /home/user/RQube/
|
|
|
|
qvm-pool --add rqubepool file -o revisions_to_keep=1,dir_path=/home/user/RQube/
|
|
|
|
qvm-create rqube -P rqubepool -t debian-11 -l purple --property netvm=tor
|
|
|
|
qvm-run rqube firefox-esr
|
|
|
|
else
|
|
|
|
read -p "RAM Qube alredy exists. Press ENTER to delete."
|
|
|
|
qvm-kill rqube
|
|
|
|
qvm-remove -f rqube
|
|
|
|
qvm-pool -r rqubepool
|
|
|
|
sudo umount rqube
|
|
|
|
rm -rf /home/user/RQube
|
|
|
|
sudo rm -rf /var/log/libvirt/libxl/new.log
|
|
|
|
sudo rm -rf /var/log/libvirt/libxl/new.log
|
|
|
|
sudo rm -rf /var/log/qubes/vm-new.log
|
|
|
|
sudo rm -rf /var/log/guid/new.log
|
|
|
|
sudo rm -rf /var/log/qrexec.new.log
|
|
|
|
sudo rm -rf /var/log/pacat.new.log
|
|
|
|
sudo rm -rf /var/log/qubesdb.new.log
|
|
|
|
fi
|
2023-06-14 19:33:40 -07:00
|
|
|
{{ end -}}
|