I was wondering whether it was possible to share downloaded Arch Linux packages in my home network, so that not every of my 5 hosts downloads from the mirrors. Advantages: saves bandwidth, no package duplicates, faster "download" of packages which are already the package cache to the client. (Note that pacman will actually not download packages which are already in the package cache).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Interface] | |
Address = 1.2.3.5/32 | |
PrivateKey = zyx= | |
#DNS = | |
PreUp = /usr/local/bin/wstunnel -v --udp --udpTimeoutSec -1 -L 127.0.0.1:12345:127.0.0.1:12345 wss://public.ip.of.server & | |
PostDown = pkill wstunnel | |
[Peer] | |
EndPoint = 127.0.0.1:12345 | |
PublicKey = xyz= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Interface] | |
Address = 1.2.3.4/24 | |
ListenPort = 12345 | |
PrivateKey = xyz= | |
PostUp = iptables -A INPUT -i eth0 -p tcp --dport 443 -j ACCEPT | |
PostUp = iptables -A OUTPUT -o eth0 -p tcp --sport 443 -j ACCEPT | |
PostUp = iptables -A INPUT -i wg-wss -j ACCEPT | |
PostUp = iptables -A OUTPUT -o wg-wss -j ACCEPT | |
PostUp = /usr/local/bin/wstunnel --server wss://public.ip.of.server -r 127.0.0.1:12345 & | |
PostDown = iptables -D INPUT -i eth0 -p tcp --dport 443 -j ACCEPT |
Install Wayland in Ubuntu: https://askubuntu.com/questions/832509/how-to-install-wayland-on-ubuntu-16-04-lts
Start X applications in a container: https://blog.simos.info/how-to-run-graphics-accelerated-gui-apps-in-lxd-containers-on-your-ubuntu-desktop/
Wayland in container: https://unix.stackexchange.com/questions/330366/how-can-i-run-a-graphical-application-in-a-container-under-wayland/359244#359244