2022-12-10 17:09:35 -08:00
|
|
|
# Additional Setup
|
|
|
|
|
2023-01-19 15:35:55 -08:00
|
|
|
The following documents Void setup that wasn't automated with ansible.
|
2022-12-10 17:09:35 -08:00
|
|
|
|
2023-01-03 21:33:20 -08:00
|
|
|
## Radicale and vdirsyncer for contacts/calendar
|
2022-12-10 17:09:35 -08:00
|
|
|
|
2023-01-03 21:33:20 -08:00
|
|
|
[Radicale](https://radicale.org/v3.html) is hosted on my home server to provide
|
|
|
|
DAV synced calendars and contacts. [Vdirsyncer](https://github.com/pimutils/vdirsyncer)
|
|
|
|
allows for the files to be synced to the linux filesystem for desktop usage
|
|
|
|
with [khard](https://github.com/lucc/khard) and [khal](https://github.com/pimutils/khal).
|
|
|
|
The config files are auto-populated by chezmoi with credentials from bitwarden
|
|
|
|
run the following commands to setup vdirsyncer files:
|
2022-12-10 17:09:35 -08:00
|
|
|
|
2023-01-03 21:33:20 -08:00
|
|
|
```bash
|
|
|
|
vdirsyncer -c ~/.config/vdirsyncer/config_calendar discover
|
|
|
|
vdirsyncer -c ~/.config/vdirsyncer/config_contacts discover
|
|
|
|
```
|
|
|
|
|
|
|
|
Files can be later synced with the following commands:
|
2022-12-10 17:09:35 -08:00
|
|
|
|
|
|
|
```bash
|
2023-01-03 21:33:20 -08:00
|
|
|
vdirsyncer -c ~/.config/vdirsyncer/config_calendar sync
|
|
|
|
vdirsyncer -c ~/.config/vdirsyncer/config_contacts sync
|
2022-12-10 17:09:35 -08:00
|
|
|
```
|
|
|
|
|
2023-01-03 21:33:20 -08:00
|
|
|
## Wireguard Client
|
|
|
|
|
|
|
|
Wireguard is nice for a home vpn and [pivpn](https://pivpn.io/) makes it easy.
|
|
|
|
|
2023-01-24 15:35:22 -08:00
|
|
|
1. Create client on server and copy resulting `.conf` file to local machine
|
|
|
|
2. Import to networkmanager with:
|
|
|
|
```bash
|
|
|
|
nmcli connection import type wireguard file <conf file from pivpn>
|
|
|
|
```
|
|
|
|
3. Turn on/off from nm-applet
|
2022-12-10 17:09:35 -08:00
|
|
|
|
2023-01-03 21:33:20 -08:00
|
|
|
## BTRFS back-ups with btrbk
|
2022-12-10 17:09:35 -08:00
|
|
|
|
2023-01-03 21:33:20 -08:00
|
|
|
[btrbk](https://github.com/digint/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.
|
2022-12-10 17:09:35 -08:00
|
|
|
|
|
|
|
```bash
|
2023-01-03 21:33:20 -08:00
|
|
|
sudo btrbk -c ~/.config/btrbk/home_btrbk.conf -v run # snapshot /home/<user>
|
|
|
|
sudo btrbk -c ~/.config/btrbk/root_btrbk.conf -v run # snapshot /
|
2022-12-10 17:09:35 -08:00
|
|
|
```
|
|
|
|
|
2023-01-03 21:33:20 -08:00
|
|
|
SSH keypair is used for password-less root ssh for remote back-up. See
|
|
|
|
[ssh setup](https://github.com/digint/btrbk#setting-up-ssh) from the btrbk
|
|
|
|
readme.
|
2022-12-17 13:01:44 -08:00
|
|
|
|
2023-01-03 21:33:20 -08:00
|
|
|
anacron is used for daily backups. Copy `home_backup.sh` from the config folder
|
|
|
|
to `/etc/cron.daily`.
|
2022-12-17 13:01:44 -08:00
|
|
|
|
2023-01-01 01:29:08 -08:00
|
|
|
## Mount network drives
|
2022-12-10 17:09:35 -08:00
|
|
|
|
2023-01-03 21:33:20 -08:00
|
|
|
I find fstab messing about more troubule than it is worth. Mount network drives
|
|
|
|
when needed with the following command:
|
2022-12-10 17:09:35 -08:00
|
|
|
|
2023-01-03 21:33:20 -08:00
|
|
|
```bash
|
|
|
|
linux-mount-<network drive name>
|
|
|
|
```
|
2022-12-10 17:09:35 -08:00
|
|
|
|
2023-01-19 15:35:54 -08:00
|
|
|
## Taskopen for taskwarrior
|
|
|
|
|
|
|
|
[taskopen](https://github.com/jschlatow/taskopeni) is easier to install
|
|
|
|
manually at this point since it isn't packaged and uses nim. Might get this
|
|
|
|
automated in the future.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
curl https://nim-lang.org/choosenim/init.sh -sSf | sh # install nim
|
|
|
|
git clone https://github.com/jschlatow/taskopen.git
|
|
|
|
cd taskopen
|
|
|
|
make PREFIX=/usr
|
|
|
|
sudo make PREFIX=/usr install
|
|
|
|
```
|
|
|
|
|
2023-01-03 21:33:20 -08:00
|
|
|
## 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.
|
2023-01-24 15:35:22 -08:00
|
|
|
- `keys` - contains ssh keys for git remotes (~/.ssh/keys)
|
2023-01-03 21:33:20 -08:00
|
|
|
|
|
|
|
## Lxappearance
|
|
|
|
|
|
|
|
My GTK theme is pulled down by chezmoi, but isn't active by default. This can
|
|
|
|
be fixed with the lxappearance gui.
|
2023-01-19 15:35:55 -08:00
|
|
|
|
2023-01-24 15:35:22 -08:00
|
|
|
## nb notebooks
|
2023-01-19 15:35:55 -08:00
|
|
|
|
2023-01-24 15:35:22 -08:00
|
|
|
Remote nb notebooks are added with the following command:
|
2023-01-19 15:35:55 -08:00
|
|
|
|
|
|
|
```bash
|
2023-01-24 15:35:22 -08:00
|
|
|
nb notebooks add <notebook name> https://github.com/starr-dusT/nb <branch>
|
2023-01-19 15:35:55 -08:00
|
|
|
```
|