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-17-APT-Cacher-NG.md
+50-25Lines changed: 50 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,34 +38,40 @@ APT-Cacher-NG is designed to cache Ubuntu, Debian, and other Linux distributions
38
38
39
39
40
40
## HOW TO DO IT
41
-
-### **Phase 1**
42
-
1. I have proxmox. I like Proxmox. I like LXC's. I like "easy." Paste this script into your **main PVE console.**\
43
-
(*There is an `apt-get install` out there if you want to make an Ubuntu or Debian VM as well.*) I wil be using the Proxmox LXC becasue it is lightweight and easy.
- If you have not heard of Proxmox Helper Scripts, you should look around at them a bit more when you’re done with this! (*A lot of these were created by—and used to be run by **tteck**, if that rings a bell.*)\
Can't get easier than **Copy Pasta**, right? Follow the prompts.
51
41
42
+
-### **Phase 1**
52
43
53
-
2. When that install finishes, you will get something like this.
54
-
```
44
+
**A.** I have proxmox. I like Proxmox. I like LXC's. I like "easy." Paste this script into your **main PVE console.**
45
+
(*There is an `apt-get install` out there if you want to make an Ubuntu or Debian VM as well.*) I will be using the Proxmox LXC because it is lightweight and easy.
46
+
47
+
**B.** If you have not heard of Proxmox Helper Scripts, you should look around at them a bit more when you’re done with this!
48
+
(*A lot of these were created by—and used to be run by **tteck**, if that rings a bell.*)
🚀 Apt-Cacher-NG setup has been successfully initialized!
57
-
💡 Access it using the following URL:
58
-
🌐 http://192.168.1.215:3142/acng-report.html
59
56
60
-
```
61
57
62
-
- Click the link, or type/paste it in a web browser. This is the APT Cache GUI. You won't have anything there yet—so just save it, bookmark it, or note it for later.
63
-
- Also, make sure you have set up a DHCP reservation or a static IP, so the IP doesn't change on you.
58
+
- Can't get easier than **Copy Pasta**, right? Follow the prompts.
59
+
60
+
- When that install finishes, you will get something like this.
61
+
62
+
> 🚀 Apt-Cacher-NG setup has been successfully initialized!
63
+
> 💡 Access it using the following URL:
64
+
> 🌐 http://192.168.1.215:3142/acng-report.html
65
+
66
+
**C.** Click the link, or type/paste it in a web browser. This is the APT Cache GUI. You won't have anything there yet—so just save it, bookmark it, or note it for later.
67
+
68
+
**D.** Also, make sure you have set up a DHCP reservation or a static IP, so the IP doesn't change on you.
69
+
64
70
65
71
66
72
#### THE SERVER IS SET!
67
73
68
-
3. 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’ll explain.
74
+
**E.** 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’ll explain.
69
75
This is the command—paste it on the CLIENT (do a VM or another Linux box; LXCs are a tad different). Replace the IP below with your Server IP.
70
76
- This command tells the Ubuntu VM instance to look to the Server when it runs an update.
- I will add this note here. At one point, I added this command to the `acng.conf.` I don't recall if it is still needed. I think I needed it when I was messing around with Phase 3. `AllowUserPorts: 80 443`
183
189
184
190
**Phase 3**
185
191
- Full disclosure, I quit bothering with this. The trouble of trying to update, and getting an error, and then diving back into `acng.conf` file and adding something, then trying an update again, was more of a pain than I wanted to deal with. Perhaps, you have better luck. Ideally, if you resolve every error, by adding to this, then everything will be great. But just as I thought I had it figured out, I got another error, and said "To heck with it."
186
192
187
193
- The default is: `PassThroughPattern: .*` and that lets everything through.
194
+
188
195
- I suggest `PassThroughPattern: ^(.*):443$` since that lets all HTTPS through.
196
+
189
197
- If you want to get granular and make sure nothing gets through that shouldn’t, uncomment the above and add something like this:\
`PassThroughPattern: ^(changelogs\.ubuntu\.com|download\.docker\.com|developer\.download\.nvidia\.com|apt\.grafana\.com|repos\.influxdata\.com|ppa\.launchpad\.net|p>`\ (maybe I was doing it wrong?)
0 commit comments