2018-06-18 21:46:35 +02:00
|
|
|
* fschl dotfiles
|
|
|
|
|
|
|
|
Things that make my linux life more comfortable, portable and secure.
|
|
|
|
For debian, or debian-based distros. using i3wm.org on the desktop.
|
|
|
|
|
|
|
|
** Questions this repos tries to answer
|
|
|
|
|
|
|
|
- How long does it take for you to set up a machine?
|
|
|
|
- Do you have backups?
|
|
|
|
- Are you using a password manager?
|
|
|
|
- How do you transport your secrets?
|
|
|
|
- Can you get things done without *your* computer?
|
|
|
|
- Rescue+Recover friends laptops/computers
|
|
|
|
- panic-ops using a friends laptop
|
|
|
|
|
2021-11-04 23:42:24 +01:00
|
|
|
*** Firefox/Thunderbird customization
|
|
|
|
|
2022-04-02 09:56:50 +02:00
|
|
|
- goto ~.mozilla/firefox/<user-profile>/~
|
2021-11-04 23:42:24 +01:00
|
|
|
- ~mkdir chrome/ && cp ~/dotfiles/userChrome.css ./chrome/~
|
|
|
|
- open Firefox: ~about:config~ and set
|
|
|
|
~toolkit.legacyUserProfileCustomizations.stylesheets~ to *true*
|
|
|
|
|
2018-06-18 21:46:35 +02:00
|
|
|
*** Security
|
|
|
|
|
2022-04-02 09:56:50 +02:00
|
|
|
**** SSH Hardening
|
2018-06-18 21:46:35 +02:00
|
|
|
|
|
|
|
- https://blog.g3rt.nl/upgrade-your-ssh-keys.html
|
|
|
|
- https://stribika.github.io/2015/01/04/secure-secure-shell.html
|
|
|
|
- https://wiki.mozilla.org/Security/Guidelines/OpenSSH#OpenSSH_client
|
2022-04-02 09:56:50 +02:00
|
|
|
- see ~/etc/ssh/ssh_config~ and ~.ssh/config~
|
2018-06-18 21:46:35 +02:00
|
|
|
|
2022-04-02 09:56:50 +02:00
|
|
|
**** SSH key generation
|
2018-06-18 21:46:35 +02:00
|
|
|
|
|
|
|
#+BEGIN_SRC bash
|
2022-04-02 09:56:50 +02:00
|
|
|
# ED25519 keys are favored over RSA keys when backward compatibility ''is not required''.
|
|
|
|
# This is only compatible with OpenSSH 6.5+ and fixed-size (256 bytes).
|
|
|
|
$ ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519_host_$(date +%Y-%m-%d) -C "Key to HOST for user-xyz"
|
|
|
|
|
|
|
|
# Fallback for really old systems (why do you still have those??)
|
|
|
|
# RSA keys are favored over ECDSA keys when backward compatibility ''is required'',
|
|
|
|
# thus, newly generated keys are always either ED25519 or RSA (NOT ECDSA or DSA).
|
|
|
|
$ ssh-keygen -t rsa -b 8192 -f ~/.ssh/id_rsa_host_$(date +%Y-%m-%d) -C "Key to HOST for user-xyz"
|
2018-06-18 21:46:35 +02:00
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
**** GnuPG
|
|
|
|
|
|
|
|
- https://wiki.mozilla.org/Security/Key_Management
|
|
|
|
- https://keyring.debian.org/creating-key.html
|
|
|
|
- https://wiki.debian.org/Subkeys
|
|
|
|
|
2022-04-02 09:56:50 +02:00
|
|
|
~~/.gnupg/gpg.conf~:
|
2018-06-18 21:46:35 +02:00
|
|
|
|
|
|
|
#+BEGIN_SRC bash
|
|
|
|
personal-digest-preferences SHA512 SHA384
|
|
|
|
cert-digest-algo SHA256
|
|
|
|
default-preference-list SHA512 SHA384 AES256 ZLIB BZIP2 ZIP Uncompressed
|
|
|
|
keyid-format 0xlong
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
**** Managing logins & passphrases
|
|
|
|
|
2021-09-19 00:34:34 +02:00
|
|
|
- use a secure, cross-platform, *cloudless* password manager, e.g keepassXC
|
2018-06-18 21:46:35 +02:00
|
|
|
|
|
|
|
**** Backup Secure Keys
|
|
|
|
|
2018-11-12 11:48:41 +01:00
|
|
|
- get 2 USB thumb drives
|
2018-06-18 21:46:35 +02:00
|
|
|
- on each, create 2 partitions (ext4, you will never use them on any windows device anyway)
|
|
|
|
- https://wiki.archlinux.org/index.php/Dm-crypt/Device_Encryption
|
|
|
|
|
2018-11-12 11:48:41 +01:00
|
|
|
Nowadays it's mere chance to find a USB thumb drive with less than 4GB storage.
|
|
|
|
Though, you want a dedicated drive to transport your password database, ssh keys and GPG keys.
|
|
|
|
Those don't require more than a couple MB. So what to do with the remaining space?
|
2018-06-18 21:46:35 +02:00
|
|
|
|
|
|
|
Scenarios:
|
|
|
|
|
|
|
|
- You visit friends, only have your keys with you and you have to check your mails, assist a colleague
|
2018-11-12 11:48:41 +01:00
|
|
|
in some network/ops emergency or just securely look up some confidential information.
|
|
|
|
- A family member calls: their HDD just died and you are asked to quickly help out on recovery.
|
2018-06-18 21:46:35 +02:00
|
|
|
|
|
|
|
Boot into a safe environment, having all your credentials available in a secure manner.
|
|
|
|
Have a bootable forensics toolbox around to quickly get going in a familiar setup.
|
|
|
|
|
|
|
|
Solution: multi-boot!
|
|
|
|
|
2022-04-02 09:56:50 +02:00
|
|
|
**** Thumb Drive Setup
|
2018-11-23 18:26:40 +01:00
|
|
|
|
|
|
|
3 partitions: boot+isos, luks encrypted, unencrypted partition for non-sensitive data
|
|
|
|
|
2021-10-30 10:08:36 +02:00
|
|
|
** TODO [0/5]
|
2018-06-18 21:46:35 +02:00
|
|
|
|
|
|
|
- [ ] explain setup, ideas, practises
|
|
|
|
- [ ] add HOWTO
|
2021-10-30 10:08:36 +02:00
|
|
|
- [ ] Check new bootable USB solution: https://ventoy.net/en/index.html
|
2018-11-23 18:26:40 +01:00
|
|
|
- [ ] move to ansible for easier modularization of setup
|
2022-04-02 09:56:50 +02:00
|
|
|
- [ ] OR: give GUIX a shot
|
2022-03-11 16:51:43 +01:00
|
|
|
|
|
|
|
** Moving to Arch
|
|
|
|
|
|
|
|
- official repository setup: https://wiki.archlinux.org/title/Official_repositories#multilib
|
2022-04-02 09:56:50 +02:00
|
|
|
- ~multiplib~ is required for wine
|
2022-03-11 16:51:43 +01:00
|
|
|
- Sound troubleshooting: https://wiki.archlinux.org/title/Advanced_Linux_Sound_Architecture/Troubleshooting#HDMI
|
2022-04-02 09:56:50 +02:00
|
|
|
- Skype, VSCode: use ~yay~
|