You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2025-03-16-Obsidian-sync-to-Github.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,11 +25,11 @@ I want to sync my Obsidian notes with GitHub so I could back the data up and als
25
25
## Guide Used (My Revision of the Guide Below)
26
26
-I liked this guide for generating the token. However, the linked guide is ambiguous about the token’s duration, and the video doesn’t set an expiration. “Security is not convenient.” Your call. [Token guide](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) I revised this guide a bit to what is below
27
27
28
-
1. In the upper-right corner of any page on GitHub, click your profile photo, then select Settings.
28
+
1. In the upper-right corner of any page on GitHub, click your profile photo, then select **Settings**.
29
29
2. In the left sidebar, click **Developer settings**.
30
30
3. In the left sidebar, under **Personal access tokens** click **Tokens (classic)**.
31
31
4. Select **Generate new token**, then **click Generate new token (classic)**.
32
-
5. In the "Note" field, give your token a descriptive name.
32
+
5. In the **"Note"** field, give your token a descriptive name.
Copy file name to clipboardExpand all lines: _posts/draft-2025-03-17-APT-Cacher-NG.md
+36-4Lines changed: 36 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,12 +23,44 @@ APT-Cacher-NG is designed to cache Ubuntu, Debian and other Linux distrobutions
23
23
24
24
[ANCHOR LINK TEST](https://vscode.dev/github/TheColetrain/thecoletrain.github.io/blob/main/_posts/draft-2025-03-17-APT-Cacher-NG.md#L24)
25
25
26
-
## Reccomendation. Should you do this on your server?
27
-
> ### Short answer is YES! (if you know you are "doing this" and need a guide, skip over the rest of this section and get to the "How To area".)
26
+
## Reccomendation. Should you do this on your server? (Or rasberry Pie, or whtever)
27
+
### Short answer is YES! (If you know "you are doing this" and need a guide, skip over the rest of this section and get to the "How To area".)
28
28
- I will guide you through a "basic" method, this method will have you set up and running in minutes! Roughly only a few *copy pasta* steps to get APT Casher NG running! The basic method is so easy, even I can do it. So for the time spent to get anything done is a WIN. Amount Cached / Time Spent = Winner Winner Chicken dinner.
29
29
- I will also then advise of the advanced options and "tweeks" if you want to mess with it further. If you want it to be as efficient as possible.
30
-
> ### The long answer is maybe...
30
+
### The long answer is maybe...
31
31
-**Phase 1** If you do the short initial version that I will propose, your cache percentages will not be that significant. (My personal data will be below) i.e. you won't cache everything. The tradeoff is how EASY this first version is. So, you can set up a LXC that caches using scripts and copy/paste in minutes, and if it caches anyting at all... that's a win! The LXC will take very little resources and not that much storage, and you lost little time.... = win.
32
32
-**Phase 2** If you go to the next phase, you can precache a little more, wont take any more CPU or RAM, but it will take a couple Gig's of storage. Not that much harder. Once more copy/paste, and press a GUI button.
33
33
-**Phase 3** Phase three gets a little tricky. This is where you are "going for it" Trying to cache everything under the sun and satisfy all of your obsessive compulsive desires. I tried this level and got sick of it, turned it off. This involves having updates fail, and then going in to the settings and updating them to resolve. Quite honestly, I dont much know what I am doing, perhaps someone with a little knowlege would say *"It's so easy, you dont know what you are talking about,"* and they would be Right!
34
-
> ### This wont cache HTTPS, it will only cache HTTP.
34
+
### This wont cache HTTPS, it will only cache HTTP.
35
+
36
+
37
+
## HOW TO DO IT
38
+
-**Phase 1**
39
+
1. I have proxmox. I like Proxmox. I like LXC's. I like "easy." Paste this script into your main PVE console.
If you have not heard of Proxmox Helper Scripts, you should look around at that some more when you are done with this! (*A lot of these were created by, and Used to be run by *tteck*, if that helps ring a bell.*) [Proxmox Helper Scripts - APT Cacher NG](https://community-scripts.github.io/ProxmoxVE/scripts?id=apt-cacher-ng)*You can trust me, of course, but don't trust every random script on the internet!*
44
+
:-)
45
+
Cant get easier than **Copy Pasta** Right? Follow the prompts.
46
+
47
+
2. When that install finishes, you will get something like this.
48
+
49
+
50
+
🚀 Apt-Cacher-NG setup has been successfully initialized!
51
+
💡 Access it using the following URL:
52
+
🌐 http://192.168.1.215:3142/acng-report.html
53
+
54
+
Click the link, or type/paste in a web browser. This is the Apt Cache GUI. You won't have anything there yet. So just save it or note it for later.
55
+
- Also, make sure you have set up a DHCP reservation, or go in and make a static IP, so the IP doesnt change on you.
56
+
57
+
3. In the console of your newly created LXC, other than the GUI, (above) this will be where you go to update. You wont have to go thereunless you choose Phase 2 & 3.
58
+
**`/etc/apt-cacher-ng/acng.conf`**
59
+
Its just of note. The default config is 'PassThroughPattern: .*' This allows all HTTPS to pass. (No errors, updates just work. I.e. the update will update.)
60
+
61
+
4. The server is set! I told you that was easy. The final step of **Phase 1**, is to update the client. Here is the easy way, and then I will explain.
62
+
This is the command. paste this in the CLIENT.
63
+
```bash
64
+
echo'Acquire::http::Proxy "http://192.168.1.215:3142";'| sudo tee /etc/apt/apt.conf.d/02proxy
65
+
```
66
+
(above) Update the IP, to your server IP (step 2) But that is it. You are done with **Level 1 / Phase 1** You are caching. Run an update on the newly configured client, and then go back to your GUI and see how you did! `http://192.168.1.215:3142/acng-report.html`
0 commit comments