sudo apt-get install sysstat -y
# The first element of the path is a directory where the debian-sa1
# script is located
PATH=/usr/lib/sysstat:/usr/sbin:/usr/sbin:/usr/bin:/sbin:/bin
# Activity reports every 10 minutes everyday
| machine github.com | |
| login technoweenie | |
| password SECRET | |
| machine api.github.com | |
| login technoweenie | |
| password SECRET |
| /dts-v1/; | |
| /plugin/; | |
| #include <dt-bindings/input/input.h> | |
| /{ | |
| compatible = "brcm,bcm2708"; | |
| fragment@0 { | |
| target = <&i2c1>; |
| #!/bin/bash | |
| DEBIAN_FRONTEND="noninteractive" | |
| sudo apt update | |
| # Yocto 4.2.99 | |
| https://docs.yoctoproject.org/ref-manual/system-requirements.html version | |
| sudo apt -yqq install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev python3-subunit mesa-common-dev zstd liblz4-tool file locales | |
| sudo apt -yqq install make python3-pip inkscape texlive-latex-extra | |
| sudo pip3 install sphinx sphinx_rtd_theme pyyaml |
| #!/bin/bash | |
| #Initial wifi interface configuration | |
| ifconfig wlp8s0 up 10.20.30.1 netmask 255.255.255.0 | |
| sleep 2 | |
| ###########Start dnsmasq, modify if required########## | |
| if [ -z "$(ps -e | grep dnsmasq)" ] then | |
| dnsmasq | |
| fi | |
| ########### |
| uci set wireless.radio0.channel=8 | |
| uci set wireless.radio0.htmode=HT40- | |
| uci set wireless.radio0.noscan=1 | |
| uci set wireless.radio0.bursting=1 | |
| uci set wireless.radio0.ff=1 | |
| uci set wireless.radio0.compression=1 | |
| uci set wireless.radio0.xr=1 | |
| uci set wireless.radio0.ar=1 | |
| uci set wireless.radio0.txpower=20 |
| #!/usr/bin/env bash | |
| ### UPDATED SCRIPT AVAILABLE AT https://github.com/oofnikj/openwrt-efi-tools ### | |
| # gen-efi-image.sh [DEST_IMG] [EFI_IMG] [SOURCE_IMG] | |
| # | |
| # Generates an EFI-compatible x86-64 disk image for OpenWrt | |
| # by combining the rootfs and kernel from the latest stable release | |
| # with the EFI image available in snapshot since @a6b7c3e. | |
| # |
| # install and build | |
| sudo apt-get install libgstreamer-plugins-base1.0-dev libgstreamer1.0-0 libgstreamer1.0-dev libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio -y | |
| https://github.com/stb-tester/latency-clock.git | |
| cd latency-clock | |
| make all | |
| export GST_PLUGIN_PATH=/usr/local/lib/ | |
| # shit | |
| sudo mv libgsttimeoverlayparse.so /usr/local/lib/ | |
In experience to get a proper working multiple wan configuration using mwan3 starting from scratch you should:
Important: this works well on OpenWRT 15.05.1, on newer versions there was some breaking changes, for example, the wan ifaces have ipv6 capability and now are named with letters ("wan, wanb... , wanc" instead of "wan, wan2... wan3" so wanb6 means 2nd wan ipv6.): https://github.com/openwrt/packages/blob/master/net/mwan3/files/etc/config/mwan3
The official documentation seems to be very detailed and up to date, I recommend reading those first: https://openwrt.org/docs/guide-user/network/wan/multiwan/mwan3 but I recommend to give a look at my config file below, since my approach for policyes is very nice.
First of all: Activate conntrack, docs says that is important and neccesary to get MWAN3 work properly, and it is needed to reboot:
| # Monitoring on interface eth0 | |
| tcpdump -i eth0 -n port 67 and port 68 |