Categories
docker software

Using a macvlan Network in Docker Compose

Edit 2020-10-28: Update docker-compose to v1.27.0+ and you might be able to use IPAM config in a v3 compose file (Link) Docker Compose v3+ does not support IPAM configuration (gateway, ip_range, aux_addresses) of macvlan networks. This network definition used to work in v2, but as v3 targets Docker Swarm use cases, it was removed (NOT […]

Categories
software windows

Open Source HEIC to JPG Conversion

It was harder than expected to find a tool to convert HEIC images to JPEG/JPG images, but per usual, I was able to find an open source tool that did this better than a lot of proprietary solutions. The big gotcha with this operation is that a lot of the conversion tools do NOT copy […]

Categories
Uncategorized

Amcrest to Dahua ipcam mapping

Per this thread some Amcrest cams can utilize the Dahua firmware, which seems to be more likely to get security fixes and updates, and unlocks a few features like (depending on support) available 3rd stream, face detection, IVS, SmartIR & up to 40960 bitrate.https://ipcamtalk.com/threads/how-to-upgrade-amcrest-lorex-to-dahua-firmware-and-get-all-dahua-features.44864 To get your camera’s Alt model number:> http://cam-ip/cgi-bin/magicBox.cgi?action=getSystemInfo Amcrest Dahua IP8M-T2499EW […]

Categories
proxmox

Shrink Proxmox/Qemu Virtual Hard Disk

Before:root@pve01:/mnt/pve/local-media/images/101# qemu-img info vm-101-disk-1.qcow2 image: vm-101-disk-1.qcow2file format: qcow2virtual size: 869 GiB (933081645056 bytes)disk size: 120 GiBcluster_size: 65536Format specific information: compat: 1.1 lazy refcounts: false refcount bits: 16 corrupt: false After:root@pve01:/mnt/pve/local-media/images/101# qemu-img info vm-101-disk-1.qcow2 image: vm-101-disk-1.qcow2file format: qcow2virtual size: 200 GiB (214748364800 bytes)disk size: 120 GiBcluster_size: 65536Format specific information: compat: 1.1 lazy refcounts: false refcount bits: […]

Categories
docker

Cockpit and Traefik

HTTP 500, HTTP 404…etc Cockpit’s web server automatically redirects to port 443 with a self-defined SSL certificate. For my use case, I wanted SSL to terminate at Traefik, so I set the backend to point to http and disabled Cockpit’s SSL redirect. Note: To proxy to my host that’s running traefik and docker, I need […]

Categories
apple

iPhone 4 Dock Disconnecting and Podcasts app on iOS 7.1.2

Down the rabbit hole again trying to revive an old iPhone 4 to pull Podcast duty for the kids. Problem: The charging cable and dock on my Logitech S715i speaker keeps disconnecting. Wiggling the phone around seems to help but it won’t stay charging. Solution: Clean out the charging port. Years of old sticky pocket […]

Categories
Uncategorized

Docker, Traefik, Jellyfin, DLNA

It seems most media servers (Jellyfin, Emby, Plex, UMS…etc) recommend using docker host networking (-net=host) when running within a container so that it can see UDP traffic on port 1900 for DLNA discovery. This is undesirable for a number of reasons, not the least of which is that a reverse proxy (Traefik, perhaps?) running in […]

Categories
docker

Run InfluxDB v2 in Docker with volume mounts

Dockerizing InfluxDB v2 (influxdbv2) By default, the influxdb:2.0.0-alpha docker image uses the following key file locations (per InfluxDBv2 docs), but doesn’t mention setting them in the docker image documentation. –bolt-path Default: ~/.influxdbv2/influxd.boltInfluxDB uses BoltDB to store data including organization and user information, UI data, REST resources, and other key value data. –engine-path Default: ~/.influxdbv2/enginePersistent storage […]

Categories
docker

Traefik entrypoint has no TLS configuration for ACME configuration

Started receiving this error in my traefik docker container logs: Entrypoint \”https\” has no TLS configuration for ACME configuration” when I began redirecting http to https via [entryPoints.http] address = “:80” [entryPoints.http.redirect] entryPoint = “https” This log entry appeared when I had only “https” as a “defaultentrypoint”. Adding http to defaultentrypoints resolved the log entries: […]

Categories
Uncategorized

Capture iPhone network traffic with tcpdump and WireShark

1. Jailbreak iPhone2. Install tcpdump from Cydia (manpage)3. Install OpenSSH from Cydia4. Install WireShark on your local machine (wireshark docs)5. Connect iPhone to same network as local6. WireShark -> SSH Remote Capture7. Remote address: IP of your iPhone8. Remote port: 229. Username: root10. Password: alpine11. Remote Interface: <make this blank>12. Remote Capture Command: 13. Remote […]