README
Issue
The gluetun
container doesn't work correctly with multiple networks attached.
This is an example of a working and broken config with only minor differences.
The gluetun
container doesn't work correctly with multiple networks attached.
This is an example of a working and broken config with only minor differences.
The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
The example below creates a TCP server listening on a stream (i.e. SOCK_STREAM
) socket. A similar approach can be followed to
create a UDP server on a datagram (i.e. SOCK_DGRAM
) socket. See man systemd.socket
for details.
Create an simple echo server at ~/tmp/foo/serve.py
.
Use systemd-nspawn
on Arch Linux with debootstrap:
sudo debootstrap --include=systemd-container --components=main,universe jammy ubuntu22.04-rk3568 http://archive.ubuntu.com/ubuntu/
Scan for access points (run multiple times for more complete scan):
# connmanctl scan wifi
Scan completed for wifi
#!/bin/sh | |
# Following command will reorder 32 bit words from little endian to big endian | |
# | |
# This is needed on TI81xx platforms to convert a standard LE bootloader/SPL/MLO | |
# to a byte ordering the works via SPI flash | |
arm-none-linux-gnueabi-objcopy -Ibinary --reverse-bytes=4 MLO MLO.spi | |
# Output: | |
# $ hexdump -C MLO | head -n2 |
7-zip doesn't preserve the Linux/Unix owner/group of files and possibly other details. Use tar instead because it's designed to preserve these things, then just 7zip the tar archive.
tar cf - --exclude=\*.o -v directory | 7z a -si -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on directory.tar.7z
pi@rpi0 ~ $ sudo apt-get purge wolfram-engine | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following packages will be REMOVED: | |
wolfram-engine* | |
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. | |
After this operation, 454 MB disk space will be freed. | |
Do you want to continue [Y/n]? y | |
(Reading database ... 77272 files and directories currently installed.) |
#!/usr/sbin/nft -f | |
# | |
# Can't block DHCP like a normal service beacuse it use raw sockets and bypasses nftables filter chains. Instead use and ingress chain. | |
# | |
flush table netdev filter | |
table netdev filter { | |
# Earliest filtering chain | |
chain ingress { | |
type filter hook ingress device wan0 priority -500; |
#!/usr/bin/env python | |
""" | |
This python script opens two serial ports, specified with arguments 1 and 2 | |
on the command line. It forwards data between the two serial ports as if it's | |
just a wire. | |
Usage: ./serial-loopback.py /dev/ttyUSB0 /dev/ttyUSB1 | |
""" | |
import sys |