Installing apt-cacher-ng on Synology Docker

Apt Package Caching using apt-cacher-ng on a Raspberry Pi: https://youtu.be/Vvw-IyiwXGE

Using apt-cacher-ng During an Ubuntu Graphical Install: https://youtu.be/iKfavpv70x4

Ubuntu apt-cacher-ng Package Cache Install and Setup: https://youtu.be/t8kI4YwdvRA

Synology Playlist: https://www.youtube.com/playlist?list=PLErU2HjQZ_ZPL8Yx7FxnY6xKxcMiVWkkJ

Docker Hub Page

https://registry.hub.docker.com/r/sameersbn/apt-cacher-ng/

Notes

Volume:
File/Folder: apt-cacher-ng
Mount path: /var/cache/apt-cacher-ng

Port Settings:
Local Port: 3142
Container Port: 3142
Type: tcp

apt-cacher-ng Web Interface
http://ip_address_of_nas:3142
Configure Client
sudo nano /etc/apt/apt.conf.d/00aptproxy
Acquire::http::Proxy "http://ip_address_of_nas:3142";

Type control-o to save, control-x to exit.

Extract every Nth line from a Text File using Command Line

In this video, I use the command line tool awk to extract every third line from a captions.sbv file. This should work on Mac, Linux and Windows Subsystem for Linux.

Move to Desktop Folder
cd ~/Desktop
View File (hit q to exit)
less captions.sbv
Extract Every Third Line from captions.sbv
awk 'NR % 3 == 2' captions.sbv

‘3’ is for every third line.
‘2’ means start with the 2nd line.

Save Every Third Line to a Text File
awk 'NR % 3 == 2' captions.sbv > captions.txt
Convert Linefeeds to Spaces
awk 'NR % 3 == 2' captions.sbv |tr '\n' ' ' > captions.txt