Skip to content

Commit da4fbf5

Browse files
committed
adding images back with new location
1 parent 600fbd2 commit da4fbf5

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed
File renamed without changes.

_posts/2025-03-17-APT-Cacher-NG.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ tags: [cache, apt cacher ng, linux, debian, ubuntu, linux, proxmox, lxc] # Tag
88
permalink: /APT-Cacher-NG/
99
---
1010

11-
# APT Cacher NG - About IT and Overview
11+
# APT Cacher NG - About and Overview
1212
---
1313

1414

1515

16-
## ## Overview of APT-Cacher-NG
16+
## Overview of APT-Cacher-NG
1717
APT-Cacher-NG is designed to cache Ubuntu, Debian, and other Linux distributions and packages locally. If you have a homelab, you probably have a lot of VM's. When one of your machines updates, those updates are stored here. The next machine that is the same or similar can pull from the cache locally instead of going out to the internet again.
1818

1919
## My Purpose & Goals
@@ -22,7 +22,7 @@ APT-Cacher-NG is designed to cache Ubuntu, Debian, and other Linux distributions
2222
3. We are helping Linux, being a good steward of the internet. If we all do this, that will be less download bandwidth on these distro's. That will allow them to allocate resources elsewhere than handling all the requests.
2323

2424

25-
[ANCHOR LINK TEST - UPDATE OR DELETE](https://vscode.dev/github/TheColetrain/thecoletrain.github.io/blob/main/_posts/draft-2025-03-17-APT-Cacher-NG.md#L59)
25+
[ANCHOR LINK TEST - UPDATE OR DELETE]()
2626

2727
## Recommendation: Should you do this on your server?
2828
### Short answer is YES! (If you already know "you want to do this" and need a guide, skip over the rest of this section and get to the "How To DO IT" area.)
@@ -109,7 +109,7 @@ chmod +x /usr/local/bin/apt-proxy-detect.sh
109109

110110

111111
- ### **Phase 1: Part #2**
112-
- *HOST commands* – I’m calling this Phase 1 second part because I wanted to show how easy Phase 1 can be (above), and this adds a step. I wasn’t lyingthe above works, but I’d move on and add this because it’s pretty easy. APT-Cacher-NG doesn’t work on HTTPS. A lot of your repositories are already HTTP, so that is why the above works. But this converts more of them to HTTP. I’m going to list three commands; you’ll see how similar they are. Adapt these commands to any other folders you want to try. Go ahead and cd on down in there and see what’s going on, if you like. I personally have strung these three together with `&&` and pasted them as one command. The third command will error if that folder doesn't exist—no harm though, and if the folder does exist, well, great, it updates it.
112+
- *HOST commands* – I’m calling this Phase 1 second part because I wanted to show how easy Phase 1 can be (above), and this adds a step. I wasn’t lying, the above works, but I would advise to add this because it’s pretty easy. APT-Cacher-NG doesn’t work on HTTPS. A lot of your repositories are already HTTP, so that is why the above works. But this converts more of them to HTTP. I’m going to list three commands; you’ll see how similar they are. Adapt these commands to any other folders you want to try. Go ahead and cd on down in there and see what’s going on, if you like. I personally have strung these three together with `&&` and pasted them as one command. The third command will error if that folder doesn't exist—no harm though, and if the folder does exist, well, great, it updates it.
113113

114114
```bash
115115
sudo sed -i 's#https://#http://HTTPS///#g' /etc/apt/sources.list.d/*.list
@@ -172,7 +172,9 @@ Remap-proxmox: debrep/dists/pve/*/binary-amd64/Packages* ; http://download.proxm
172172
PrecacheFor: debrep/dists/pve/*/binary-amd64/Packages*
173173
```
174174
2. On the GUI
175-
![alt text](image.png)
175+
![](Images/APT-Cache-NG/guided_precaching.png)
176+
177+
176178

177179
- The two boxs that are checked, are checked by default. Click the `Start Mirroring` button and it will show you what it will cache. (Not actually cache it.)
178180
- When you are ready, check the `download package files` box, and then the `Start Mirroring` and that will actually do it!
@@ -202,7 +204,7 @@ PrecacheFor: debrep/dists/pve/*/binary-amd64/Packages*
202204
# MY DATA
203205
- You can see that I am not getting everything, but it is getting some and it's hassle free now that it is set up.
204206

205-
- [](Images/APT-Cache-NG/Transfer Statistics.png)
207+
- ![](Images/APT-Cache-NG/Transfer Statistics.png)
206208

207209

208210

_tabs/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ order: 5
99

1010

1111

12-
![Cole Edwards](https://github.com/TheColetrain/thecoletrain.github.io/blob/main/Cole%20Headshots/U357818_C_Edwards_v1_0.jpg?raw=true)
12+
![Cole Edwards](Images/Headshots/cole pic (2023_10_17 01_33_49 UTC).jpg)
1313

1414

1515

0 commit comments

Comments
 (0)