Skip to content

Commit e0a6de9

Browse files
committed
Published multiple files
1 parent 8959b29 commit e0a6de9

File tree

9 files changed

+183
-31
lines changed

9 files changed

+183
-31
lines changed

src/site/notes/Laptop/3. Syncthing.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
{"dg-publish":true,"permalink":"/laptop/3-syncthing/","updated":"2025-11-10T14:05:20.069-06:00"}
2+
{"dg-publish":true,"permalink":"/laptop/3-syncthing/","updated":"2025-11-15T10:20:01.591-06:00"}
33
---
44

55
# Discussion
@@ -11,9 +11,15 @@ Please note that this page is only for the initial set-up of Syncthing on the my
1111

1212
# Installation
1313
- I opened "Software Manager" and searched for "Syncthing". Several items popped up, including "Syncthing" and "Syncthing Tray". The problem was that, as I looked at them, the "Tray" package (which puts an icon in the tray for management and informational purposes) is using a "Flatpack" that's over 1GB of download and 3.7GB on the disk! For just the tray. Syncthing itself was only 23MB on the disk. So, I went to the command line and looked for syncthing by typing `sudo apt search syncthing`. And sure enough, there's a package named syncthingtray, that only needs about 204MB. So I went the 'apt' method instead of the "Software Manager" method.
14-
- `sudo install syncthing syncthingtray -y`
14+
- ```bash
15+
sudo apt install syncthing syncthingtray -y
16+
```
1517
- After everything finished installing, the Syncthing icons are under the "Internet" start menu.
1618
- Click on "Start Syncthing"
19+
- To ensure that Syncthing will start at boot, type:
20+
- ```bash
21+
systemctl --user enable syncthing.service
22+
```
1723
- Then click on "Syncthing Web UI"
1824
- The web UI comes up and asks to set a user name and password for the GUI. ~~While I'm the only person using the system, it's still a best practice to enable "[defense in depth](https://en.wikipedia.org/wiki/Defense_in_depth_(computing)", so I set it up.~~
1925
- ~~In the box on the webpage entitled "GUI Authentication", click the "Settings" button at the bottom right~~
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2-
{"dg-publish":true,"permalink":"/laptop/6-password-manager/","updated":"2025-11-07T11:11:42.000-06:00"}
2+
{"dg-publish":true,"permalink":"/laptop/6-password-manager/","updated":"2025-11-15T13:03:31.117-06:00"}
33
---
44

5+
Coming soon
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
{"dg-publish":true,"permalink":"/laptop/8-emby-client/","updated":"2025-11-15T13:03:10.413-06:00"}
3+
---
4+
5+
- Download [Emby client](https://github.com/MediaBrowser/emby-theater-electron/releases/download/3.0.21/emby-theater-deb_3.0.21_amd64.deb)
6+
- ```bash
7+
sudo apt-get update
8+
sudo apt-get install cec-utils libasound2 libatomic1 libc6 libegl1 libgcc-s1 libpulse0 libstdc++6
9+
```
10+
- I got an error about installing libasound2, but I already had sound installed so it worked anyway
11+
- ```bash
12+
sudo dpkg -i ~/Downloads/emby-theater-deb_3.0.21_amd64.deb
13+
```
14+
- Emby Theater now shows up under 'Sound and Video'
Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,51 @@
11
---
2-
{"dg-publish":true,"permalink":"/phone/4-syncthing/","updated":"2025-11-07T08:45:06.000-06:00"}
2+
{"dg-publish":true,"permalink":"/phone/4-syncthing/","updated":"2025-11-15T13:02:48.200-06:00"}
33
---
44

5-
Coming soon
5+
# Discussion
6+
This page depends upon [[Phone/2. VPN\|2. VPN]], because I'm not synchronizing my private data over the public Internet, even with TLS. I prefer defense-in-depth, so I'm putting all of my sync through a Wireguard tunnel.
7+
8+
I'm using [Obtainium](https://github.com/ImranR98/Obtainium) (installed through the GrapheneOS App store) to install other apps when I can. One of them is [syncthing-fork](https://github.com/Catfriend1/syncthing-android).
9+
> [!info] As I'm writing this (2025-11-15), There's been a bit of weirdness in the github repo, so I'm not sure what's going on. I'm going to continue describing what I'm doing with this version of the android client. If the repo goes down permanently I'll change this page.
10+
>
11+
12+
# Initial Set up
13+
- Install the Syncthing app using Obtainium
14+
- Start the app
15+
- You'll see the Introduction page, press the "CONTINUE" button at the bottom right
16+
- Next is the "Storage Permission" page. Touch the "GRANT PERMISSION" button in the middle.
17+
- ~~I'm using [Storage Scopes](https://grapheneos.org/usage#storage-scopes) wherever possible. On this page I'm going to select a default, then I'll add folders for each app I'm syncing later.~~
18+
- ~~Select "Setup Storage Scopes"~~
19+
- ~~Toggle on "Enable Storage Scopes"~~
20+
- ~~Touch the "Add Folder" icon~~
21+
- ~~Touch "Create new folder"~~
22+
- ~~Type in "Sync" and touch "OK"~~
23+
- ~~Touch "Use this folder"~~
24+
- ~~Touch "Allow"~~
25+
- ~~Touch the left arrow button at the top-left of the screen~~
26+
- I tried to use Storage Scopes, but ran into issues with allowing the sync of my Obsidian folders. I ended up having to allow all permissions. I'm sure it's an issue of my knowledge, not either app, so I just need to figure it out.
27+
- Next is the "Location Permission" screen. I'm not allowing that for now, so touch the "CONTINUE" button at the bottom right.
28+
- I'm not sure what notifications it needs to send me, but I'm okay with that. Touch the "GRANT PERMISSION" button, then the "Allow" button.
29+
- I'm kinda paranoid, so I'm not allowing the "Anonymous Usage Reporting. I touch the "NO" button at the bottom of the page.
30+
# Connect to the Pi
31+
- I already had my laptop connected to my Pi via [[Self-Hosting/2. Raspberry Pi Initial Configuration#Enable VNC\|VNC]], so I fired up my TigerVNC Viewer and connected to the Pi. Then in the VNC windows, I opened up Syncthing on the Pi and clicked on the "Actions" drop-down at the top right corner and selected "Show ID". You'll have a QR Code pop up.
32+
- You'll need to open the VNC window anyway, to verify and allow the phone to connect to the Pi later on.
33+
- Then, on the phone, I opened Syncthing.
34+
- At the top of the page, click on the "DEVICES" tab
35+
- At the top right, you'll now see an icon that looks like a computer with a plus on the screen. touch that icon.
36+
- In the "Add Device" page that shows up, on the right you'll see a mini QR-code icon. Touch that icon.
37+
- You'll get a permissions request. I touched "Only this time".
38+
- You may have to touch the QR-code icon again.
39+
- Point the camera at the VNC viewer page with the QR code for the Pi. The Device ID will populate.
40+
- I named the device.
41+
- I went ahead and toggled on "Introducer". This will make it easier for me to configure the phone to accept other shared folders from the Pi when I share them from the laptop to the Pi. For instance, when I later set up either Bitwarden or KeePass.
42+
- I don't do "Auto Accept", because I will probably want to specify where I put the shared folders.
43+
- Click on the check mark at the top right of the page.
44+
- On the Pi VNC windows, in the Syncthing client, you'll now see an alert asking if you want to allow the phone to connect. Click the green "Add Device" button.
45+
- Change the name of the device if you wish, then click the "Save" button.
46+
- On the phone, the Pi device status will now change to "Up to Date".
47+
48+
Now ready to sync my [[Phone/5. Note-taking\|Obsidian Notes]]
49+
50+
Previous: [[Phone/3. Work Profile\|3. Work Profile]]
51+
Next: [[Phone/5. Note-taking\|5. Note-taking]]
Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
---
2-
{"dg-publish":true,"permalink":"/phone/5-note-taking/","updated":"2025-11-07T08:45:08.000-06:00"}
2+
{"dg-publish":true,"permalink":"/phone/5-note-taking/","updated":"2025-11-15T13:02:18.761-06:00"}
33
---
44

5-
Coming soon
5+
# Discussion
6+
Why I'm using Obsidian
7+
8+
# Installation
9+
Document how I installed Obsidian on my phone
10+
11+
# Synchronization
12+
Because my laptop is my primary note-taking platform (I touch-type on the laptop much faster than I can thumb-type on my phone), I [[Laptop/4. Note-taking#Synchronizing\|already sync'd my notes from the laptop to the Pi]]. Now I need to get them from the Pi to the phone. So, we actually start on the Pi.
13+
14+
## On the Pi
15+
- Log into the VNC client for the Pi that we set up earlier.
16+
- Open the Syncthing client
17+
- Click on the "Obsidian" folder share we set up earlier
18+
- Click on the "Edit" button below it.
19+
- Click on the "Sharing" tab
20+
- Under the "Unshared Devices", find the phone you just added in [[Phone/4. Syncthing\|4. Syncthing]].
21+
- Click the checkbox next to it.
22+
- Click the "Save" button.
23+
24+
## On the phone
25+
- You should now see a notification on the phone: "Device 'Pi' wants to share folder 'Obsidian'"
26+
- Click the "Accept" button in the notification
27+
- You can now choose the Directory where you want to put the shared Obsidian folder. Make sure it's a place where Obsidian can get to it.
28+
- Note that Syncthing won't create the folder, only sync the contents. For instance, I'm syncing the folder 'Obsidian' from my laptop to my Pi. When I shared it to the phone, I had to create '/Documents/Obsidian' on the phone and then tell Syncthing to sync the 'Obsidian' folder there. Syncthing then put the ***contents*** of the 'Obsidian' folder (i.e. each of my vaults) into that folder.
29+
- Click on the cog icon to the right of the word "Directory"
30+
- I choose `/storage/emulated/0/Documents`, as that seemed the best place.
31+
- Click on the check icon at the top.
32+
- I change the "File Versioning" at the bottom from "TrashCan" to Simple, and I change Versions to 20. Just in case.
33+
- Click the check mark to save.
34+
35+
Previous: [[Phone/4. Syncthing\|4. Syncthing]]
36+
Next: [[Phone/6. Nextcloud\|6. Nextcloud]]

src/site/notes/Self-Hosting/2. Raspberry Pi Initial Configuration.md

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
{"dg-publish":true,"permalink":"/self-hosting/2-raspberry-pi-initial-configuration/","updated":"2025-11-08T08:34:29.000-06:00"}
2+
{"dg-publish":true,"permalink":"/self-hosting/2-raspberry-pi-initial-configuration/","updated":"2025-11-13T08:18:10.061-06:00"}
33
---
44

55
# Synopsis
@@ -31,24 +31,30 @@ Basically, we're going to use Raspberry Pi Imager to burn a bootable image of Ra
3131

3232
- If you enabled 'ssh' in the Raspberry Pi Imager step above, then all you need is the IP address of your Pi. You can then use [PuTTY](https://www.chiark.greenend.org.uk/~sgtatham/putty/) to log in.
3333
- I set up a DHCP reservation on my firewall/router. You can check for DHCP leases or use some other method, that process is really beyond the scope of this document
34-
- Update everything
35-
- `sudo apt update`
36-
- `sudo apt upgrade -y`
37-
- `sudo reboot`
38-
- `sudo rpi-eeprom-update`
39-
- If the version shown isn't at least May 2024, then type `sudo raspi-config` and select "Advanced Options -> Bootloader Version" to update the eeprom.
40-
- Enable VNC
41-
- `sudo raspi-config`
42-
- Down-arrow twice to `Interface Options` and press the "Enter" key
43-
- Down-arrow twice more to "VNC" and press the "Enter" key again
44-
- Left-arrow to highlight "Yes", then press the "Enter" key again
45-
- Press the "Enter" key again to select "OK"
46-
- Update the Bootloader
47-
- While in `raspi-config`
48-
- Down-arrow to "Advanced Options" and press the "Enter" key
49-
- Down-arrow to "Bootloader Version" and press the "Enter" key
50-
- Select "Latest" and press the "Enter" key
51-
- Press the "ESC" key to go back to the command line
34+
## Update everything
35+
```bash
36+
sudo apt update
37+
sudo apt upgrade -y
38+
sudo reboot
39+
sudo rpi-eeprom-update
40+
```
41+
> [!note]+ eeprom
42+
> If the version shown isn't at least May 2024, then type "sudo raspi-config" and select "Advanced Options -> Bootloader Version" to update the eeprom.
43+
44+
## Enable VNC
45+
`sudo raspi-config`
46+
- Down-arrow twice to `Interface Options` and press the "Enter" key
47+
- Down-arrow twice more to "VNC" and press the "Enter" key again
48+
- Left-arrow to highlight "Yes", then press the "Enter" key again
49+
- Press the "Enter" key again to select "OK"
50+
51+
## Update the Bootloader
52+
- While in `raspi-config`
53+
- Down-arrow to "Advanced Options" and press the "Enter" key
54+
- Down-arrow to "Bootloader Version" and press the "Enter" key
55+
- Select "Latest" and press the "Enter" key
56+
- Press the "ESC" key to go back to the command line
57+
5258
# Burn the Raspberry Pi OS onto the NVME SSD
5359
- "Getting Started" from pimoroni:
5460
- https://learn.pimoroni.com/article/getting-started-with-nvme-base-duo
@@ -73,4 +79,4 @@ Basically, we're going to use Raspberry Pi Imager to burn a bootable image of Ra
7379
- `sudo reboot`
7480

7581
Previous: [[Self-Hosting/1. Raspberry Pi Hardware\|1. Raspberry Pi Hardware]]
76-
Next: [[Self-Hosting/3. Syncthing\|Self-Hosting/3. Syncthing]]
82+
Next: [[Self-Hosting/3. Syncthing\|Self-Hosting/3. Syncthing]]
Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
{"dg-publish":true,"permalink":"/self-hosting/3-syncthing/","updated":"2025-11-09T12:52:59.077-06:00"}
2+
{"dg-publish":true,"permalink":"/self-hosting/3-syncthing/","updated":"2025-11-15T12:59:06.653-06:00"}
33
---
44

55
# Discussion
@@ -8,3 +8,28 @@ I have several systems that I want to synchronize between my phone, my laptop an
88
After looking a a few alternatives, [Syncthing](https://syncthing.net/) (and [syncthing-fork](https://github.com/Catfriend1/syncthing-android) for android) seemed to be the clear winner. It was a bit of a stretch to get my head around how to make it work on all my devices, but the [Getting Started page](https://docs.syncthing.net/intro/getting-started.html#getting-started) helped.
99

1010
Please note that this page is only for the initial set-up of Syncthing on the Raspberry Pi. See also the initial set-ups for my [[Laptop/3. Syncthing\|Laptop]] and [[Phone/4. Syncthing\|Phone]]. I cover the steps to share individual folders in their respective sections, i.e. [[Self-Hosting/4. Note-taking\|Self-hosting/4. Note-taking]] and [[Laptop/4. Note-taking\|Laptop/4. Note-taking]].
11+
12+
# Resources
13+
I used https://pimylifeup.com/raspberry-pi-syncthing/ for much of this section. However, instead of modifying the syncthing config file to allow remote web browsers to change the config, I log into the Pi by [[Self-Hosting/2. Raspberry Pi Initial Configuration#Enable VNC\|Enabling VNC]]
14+
15+
# Installation
16+
***NOTE to self:*** The below is on the Raspberry Pi, not the laptop
17+
```bash
18+
sudo apt update
19+
sudo apt upgrade
20+
sudo apt install apt-transport-https
21+
curl -s https://syncthing.net/release-key.txt | gpg --dearmor | sudo tee /usr/share/keyrings/syncthing-archive-keyring.gpg >/dev/null
22+
echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
23+
sudo apt update
24+
sudo apt install syncthing
25+
sudo systemctl enable syncthing@$USER
26+
sudo systemctl start syncthing@$USER
27+
sudo systemctl status syncthing@$USER
28+
sudo apt install syncthingtray
29+
```
30+
- Go to the raspberry start icon and then Syncthing Tray. Accept the defaults and it should start. Note that the config wizard hangs, you'll have to exit the dialog box.
31+
32+
You're now ready to set up [[Self-Hosting/4. Note-taking#Synchronizing\|synchronizing Obsidian]] with the [[Laptop/4. Note-taking#Synchronizing\|Laptop]]
33+
34+
Previous: [[Self-Hosting/2. Raspberry Pi Initial Configuration\|2. Raspberry Pi Initial Configuration]]
35+
Next: [[Self-Hosting/4. Note-taking\|4. Note-taking]]
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
{"dg-publish":true,"permalink":"/self-hosting/4-note-taking/","updated":"2025-11-15T12:58:38.141-06:00"}
3+
---
4+
5+
# Discussion
6+
I don't take notes on the Raspberry Pi, but I do sync my Obsidian vaults from my laptop and phone to it for backup purposes.
7+
8+
# Synchronizing
9+
***NOTE:*** You have to have finished [[Self-Hosting/3. Syncthing\|Setting up Syncthing]] on the Raspberry Pi to continue this section. Additionally, I set up [[Laptop/3. Syncthing\|Syncthing]] on the laptop first, as it was easier. During this process I'll set up the Pi as an [Syncthing Introducer](https://docs.syncthing.net/users/introducer.html) to make it easier to share the Obsidian vaults between all three devices.
10+
11+
- I'm having trouble with VNC clipboard usage between the Pi's wayvnc server and the laptop's TigerVNC client, so I went oldschool.
12+
- Open an ssh session to the Pi
13+
- type `cat ~/.local/state/syncthing/config.xml | grep 'device id'` and look for the entry with what you named your pi.
14+
- Copy the device id (highlight the text with the mouse, then right-click the highlight and choose "copy")
15+
- Open the Syncthing web client on the laptop.
16+
- At the bottom right, click "Add Remote Device"
17+
- In the "Device ID" section, paste the Pi's device id
18+
- In the "Device Name" section, type the name you use for your Pi
19+
- Click the "Save" button
20+
- Go to [[Laptop/4. Note-taking#Synchronizing\|4. Note-taking#Synchronizing]] and follow those steps.
21+
22+
Previous: [[Self-Hosting/4. Note-taking\|4. Note-taking]]
23+
Next: [[Laptop/5. Nextcloud\|5. Nextcloud]]

src/site/notes/Self-Hosting/5. Nextcloud.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
{"dg-publish":true,"permalink":"/self-hosting/5-nextcloud/","updated":"2025-11-08T08:34:29.000-06:00"}
2+
{"dg-publish":true,"permalink":"/self-hosting/5-nextcloud/","updated":"2025-11-15T12:58:09.862-06:00"}
33
---
44

55
# References
@@ -11,5 +11,5 @@
1111
- https://github.com/nextcloud-snap/nextcloud-snap/wiki/Export-and-Import
1212
- https://help.nextcloud.com/t/nextcloud-snap-how-to-use-nextcloud-export-when-data-is-on-external-drive/146614/2
1313

14-
Previous: [[Self-Hosting/2. Raspberry Pi Initial Configuration\|2. Raspberry Pi Initial Configuration]]
15-
Next: [[Self-Hosting/3. Syncthing\|3. Syncthing]]
14+
Previous: [[Self-Hosting/4. Note-taking\|4. Note-taking]]
15+
Next: [[Self-Hosting/6. Vaultwarden\|6. Vaultwarden]]

0 commit comments

Comments
 (0)