dotfiles/additional-setup.md

2.9 KiB

Additional Setup

The following documents Arch setup that wasn't automated with ansible.

Radicale and vdirsyncer for contacts/calendar

Radicale is hosted on my home server to provide DAV synced calendars and contacts. Vdirsyncer allows for the files to be synced to the linux filesystem for desktop usage with khard and khal. The config files are auto-populated by chezmoi with credentials from bitwarden run the following commands to setup vdirsyncer files:

vdirsyncer -c ~/.config/vdirsyncer/config_calendar discover 
vdirsyncer -c ~/.config/vdirsyncer/config_contacts discover 

Files can be later synced with the following commands:

vdirsyncer -c ~/.config/vdirsyncer/config_calendar sync
vdirsyncer -c ~/.config/vdirsyncer/config_contacts sync

Wireguard Client

Wireguard is nice for a home vpn and pivpn makes it easy.

  1. Create client on server and copy resulting .conf file to /etc/wireguard
  2. Start/stop vpn with wg-quick

BTRFS back-ups with btrbk

btrbk is used to create snapshots of the root and user volumes. User volumes are backed-up to my home server (Torus), but root is only stored locally.

sudo btrbk -c ~/.config/btrbk/home_btrbk.conf -v run # snapshot /home/<user> 
sudo btrbk -c ~/.config/btrbk/root_btrbk.conf -v run # snapshot / 

SSH keypair is used for password-less root ssh for remote back-up. See ssh setup from the btrbk readme.

anacron is used for daily backups. Copy home_backup.sh from the config folder to /etc/cron.daily.

Mount network drives

I find fstab messing about more troubule than it is worth. Mount network drives when needed with the following command:

linux-mount-<network drive name>

Syncthing

Syncthing is used to sync folders between various computers and android. The ansible script should setup and run the service, but shares must be setup via the web gui. Currently four shares exists:

  • .warrior - .task and .timewarrior folders to sync taskwarrior tasks. These two folders are symlinked to the home folder where taskwarrior/timewarrior expects them.
  • warrior - contains text files associated with taskwarrior (mostly from taskopen).
  • phone photos - personal photos synched from android.
  • phone screenshots - personal screenshots synced from android.
  • keys - contains ssh keys for git remotes (~/.ssh/keys)

Lxappearance

My GTK theme is pulled down by chezmoi, but isn't active by default. This can be fixed with the lxappearance gui.

nb notebooks

Remote nb notebooks are added with the following command:

nb notebooks add <notebook name> https://github.com/starr-dusT/nb <branch>