Skip to content

Instantly share code, notes, and snippets.

View Toomoch's full-sized avatar

Arnau Valls Fusté Toomoch

  • Semidynamics
  • Barcelona
View GitHub Profile
@Toomoch
Toomoch / man-fedora.md
Last active January 27, 2022 18:22
Restore man-pages in a Fedora container image

sudo sed -i '/^[^#]/ s/\(^.*tsflags=nodocs.*$\)/#\1/' /etc/dnf/dnf.conf

sudo dnf install man man-pages

sudo dnf reinstall *

Also we can enable fast-mirror, delta and parallel downloads: echo 'fastestmirror=1' | sudo tee -a /etc/dnf/dnf.conf

echo 'max_parallel_downloads=10' | sudo tee -a /etc/dnf/dnf.conf

@Toomoch
Toomoch / EP06E_openwrt.md
Last active September 10, 2021 17:37
Adding LTE support for the EP06E Quectel module in openwrt-21.02

Packages for qmi: usb-modeswitch kmod-mii kmod-usb-net kmod-usb-wdm kmod-usb-net-qmi-wwan uqmi kmod-usb-serial-option kmod-usb-serial kmod-usb-serial-wwan luci-proto-qmi

Some carriers may need this fix for reconnecting and getting a new IP every day at 5AM (for use in crontab): 0 5 * * * echo -e -n 'AT+CGDCONT=1,"IPV4V6","movistar.es";+CFUN=0;+CFUN=1\r' > /dev/ttyUSB2 && sleep 3 && ifdown LTEWAN && ifup LTEWAN

For mbim support (not recommended, adds latency and there is not LuCI GUI): kmod-usb-net-cdc-mbim umbim