Qubes-Community-Content/docs/user-setups/taradiddles/README.md

203 lines
5.6 KiB
Markdown
Raw Normal View History

2018-05-07 08:36:42 -04:00
User setup / @taradiddles
=========================
Hardware
--------
Lenovo Thinkpad T450s
TemplateVMs and VMs
-------------------
(see the [TemplateVMs customization](#templatevms-customization) section for how to configure the templateVMs)
2018-05-07 08:36:42 -04:00
### TemplateVM 'fedora-minimal' ###
Custom minimal template for:
2018-05-07 08:39:41 -04:00
- VM 'sys-firewall'
- VM 'sys-net'
- VM 'vault': not networked; used for keepassxc (password manager) and [split gpg](https://www.qubes-os.org/doc/split-gpg/)
2018-05-07 08:36:42 -04:00
### TemplateVM 'fedora-medium ###
Custom default template with libreoffice, thunderbird, ...
2018-05-07 08:39:41 -04:00
2018-05-07 08:56:17 -04:00
- VM 'work': firewalled, ssh to known hosts and to mail server; used for emails/office work, storing non confidential documents, and terminals (with [tmux](https://en.wikipedia.org/wiki/Tmux)).
2018-05-07 08:39:41 -04:00
- VM 'banking': firewalled, only a few IPs allowed; used only for e-banking
- VM 'halftrusted': used only for e-shopping
- VM 'private': not networked; used for opening and storing private documents
2018-05-07 08:36:42 -04:00
### TemplateVM 'fedora-heavy' ###
Larger custom template with programs from non-fedora repos (multimedia, non free, ...)
2018-05-07 08:39:41 -04:00
2018-09-26 12:35:31 -04:00
- VM 'untrusted': firewalled, only a few IPs allowed (eg. nextcloud server, ...); used for opening multimedia files, and content that is thought to be OK. See [this comment](https://github.com/Qubes-Community/Contents/issues/21#issuecomment-385189481) for the rationale behind keeping this VM without full Internet access.
2018-05-07 08:39:41 -04:00
- VM 'sys-usb': firewalled, only 1 IP allowed (playing music from a NAS to a USB soundcard).
- dispVM 'dispBrowser': doc / WIP; used for casual browsing. Using with a customized firefox profile with privacy extensions and a custom `user.js` file (adapted from [here](https://github.com/pyllyukko/user.js)).
2018-09-26 12:35:31 -04:00
- dispVMs: used for opening content downloaded from unknown/dodgy sources as well as browsing sites that won't work with the restricted firefox profile of 'dispBrowser'.
2018-05-07 08:36:42 -04:00
2018-09-26 12:35:31 -04:00
### Other VMs ###
- a few Windows 7 VMs without network for CAD/3D drawing, programing controllers with a Windows-only toolkit, ... ;
- a StandaloneVM based on fedora with third-party drivers installed for a networked printer. Firewalled to allow only the network printer's IP.
2018-05-07 08:36:42 -04:00
DOM0 customization
------------------
### Xterm ###
Open xterm instead of xfce4-terminal: in `/etc/xdg/xfce4/helpers.rc`, set
~~~
TerminalEmulator=xterm
~~~
Xresources for xterm are in `$HOME/.Xresources`
### Power management ###
See https://github.com/taradiddles/qubes-os/tree/master/powermgnt
(not clear how much it helps with battery usage - never had the time to do proper testing; shouldn't hurt though).
### Productivity tweaks ###
Define application shortcuts with Qubes Menu -> System Tools -> Keyboard -> Application Shortcuts; for instance:
2018-05-07 08:47:11 -04:00
- ctrl-alt C: open a calculator in VM untrusted ; shortcut: `qvm-run -q -a untrusted galculator`
2018-05-07 08:52:53 -04:00
- ctrl-alt X: open a popup windows to open xterm in a given VM (script [here](https://github.com/taradiddles/qubes-os/blob/master/popup-appmenu-r4), screenshot [there](https://github.com/taradiddles/qubes-os/blob/master/popup-appmenu.screenshot.jpg)). Shortcut: `popup-appmenu xterm`.
2018-05-07 08:36:42 -04:00
- ctrl-alt F: ditto, but with firefox
2018-05-07 08:47:11 -04:00
- ctrl-alt K: open keepassxc in VM vault; shortcut: `qvm-run -q -a vault keepassxc`
2018-05-07 08:36:42 -04:00
VMs customization
-----------------
2018-05-07 08:42:52 -04:00
sys-net: since nm-applet isn't started by default in all VMs (see section below), start it with a .desktop file in `$HOME/.config/autostart` (note: can't use `rc.local` because Xorg isn't started yet when `rc.local` runs).
2018-05-07 08:36:42 -04:00
TemplateVMs customization
-------------------------
### fedora-minimal ###
Installed ITL's fedora-26-minimal rpm + installed the following rpms:
~~~
qubes-core-agent-passwordless-root
qubes-core-agent-networking
qubes-core-agent-network-manager
qubes-core-agent-dom0-updates
qubes-usb-proxy
network-manager-applet
polkit
less
pciutils
psmisc
NetworkManager-wifi
dejavu-sans-fonts
dejavu-sans-mono-fonts
tcpdump
telnet
wireless-tools
iwl7260-firmware
keepassxc pwgen
sharutils
rsync
qubes-gpg-split
qubes-core-agent-nautilus
bzip2
2018-09-26 12:35:31 -04:00
encfs
openssl
2018-05-07 08:36:42 -04:00
~~~
Fixes/tweaks:
- `/usr/lib/qubes-tweak`:
2018-05-07 08:56:17 -04:00
- `fix-xdg`: remove autostart stuff in `/etc/xdg/autostart`; this will prevent for instance nm-applet from starting in all VMs while it's only required in sys-net.
2018-05-07 08:36:42 -04:00
- `setxkbmap.desktop`: multiple keyboard layouts (see [this doc](https://github.com/Qubes-Community/Contents/blob/master/docs/localization/keyboard-multiple-layouts.md)).
- `solarized.vim2`, `vimrc.add.colors`: configure vim to use the [solarized](http://ethanschoonover.com/solarized) color scheme.
- `Xresources` and `xresources.desktop`: load Xresources at boot (can't simply use `/etc/X11/xresources` because `xinit` runs `xrdb -merge` without the preprocessor, which breaks the solarized color scheme definitions.
2018-05-07 08:56:17 -04:00
- `/etc/profile.d/interactive-commands.sh`: ask before deleting/overwriting files with rm/cp/mv
2018-05-07 08:36:42 -04:00
### fedora-medium ###
2018-05-07 08:52:53 -04:00
Cloned fedora-minimal above and installed the following rpms:
2018-05-07 08:36:42 -04:00
~~~
tigervnc
firefox
thunderbird
tmux
proxychains
nfs-utils
gimp
libreoffice-calc libreoffice-writer libreoffice-draw libreoffice-impress
units
fuse-sshfs
p7zip
perl-Image-ExifTool
qpdf
vim-enhanced
man
glibc-langpack-en
nfs-utils
eog
evince
thunderbird-qubes
qubes-img-converter
qubes-pdf-converter
git
thunderbird-enigmail
~~~
Fixes:
~~~
set LANG=en_US.UTF-8 in /etc/locale.conf
~~~
### fedora-heavy ###
2018-05-07 08:52:53 -04:00
Cloned fedora-medium above.
2018-05-07 08:36:42 -04:00
Installed the following repos:
- Google Chrome
- rpmfusion-free
2018-05-07 09:03:46 -04:00
- rpmfusion-nonfree
2018-05-07 08:36:42 -04:00
And installed the following rpms:
~~~
calibre
nextcloud-client
ufraw
viking
java-1.8.0-openjdk
mc
google-chrome-stable
gphoto2
gvfs-mtp
gvfs-gphoto2
gvfs-fuse
simple-mtpfs
qubes-vm-recommended
whois
bind-utils
galculator
fuse-exfat
unrar
ffmpeg
mplayer
2018-05-07 08:36:42 -04:00
qgis-python
~~~