O roteador Askey RTF3507VW-N1 fornecido pela Vivo tem vários problemas:
- Existe um cache interno de DNS (usando o
dnsmasq?) bugado: ao fazer a mesma requisição DNS duas vezes seguidas, a primeira resposta vem correta, porém na seguinte temos:
O roteador Askey RTF3507VW-N1 fornecido pela Vivo tem vários problemas:
dnsmasq?) bugado:
ao fazer a mesma requisição DNS duas vezes seguidas, a primeira resposta
vem correta, porém na seguinte temos:
| FROM scratch | |
| LABEL "version=0.1" | |
| FROM dorowu/ubuntu-desktop-lxde-vnc | |
| RUN apt-get update && apt-get install -y git \ | |
| git mplayer python3 python3-dev python3.8-tk python3-pip libblas-dev libatlas-base-dev \ | |
| liblapack-dev at-spi2-core libopencv-dev python-imaging-tk libffi-dev libssl-dev socat ntp \ | |
| libxml2-dev libxslt-dev imagemagick ffmpeg cmake unzip \ | |
| --no-install-recommends |
| This is a very much WIP - | |
| From a default RMS install – | |
| Open a terminal | |
| $: ‘sudo pip3 install virtualenv-clone’ | |
| $: virtualenv-clone vRMS <new env-name> | |
| Note: the new env directory must reside at the same directory level as your base RMS install, e.g. |
| php -v | |
| pecl version | |
| sudo apt-get install php7.4-dev -y | |
| sudo apt-get install php-pear | |
| sudo apt-get -y install gcc make autoconf libc-dev pkg-config -y | |
| sudo pecl channel-update pecl.php.net | |
| sudo apt-get -y install libmcrypt-dev | |
| sudo pecl install mcrypt-1.0.3 # 7.4 | |
| # php 7.4 |
| Copy and save both install.sh and opencv4_install.sh to your home directory ~/ | |
| make them executable - | |
| chmod +x *.sh | |
| You may wish to edit the opencv4_install.sh to reflect any additional components you may wish to configure e.g. GPU options. | |
| As-is this should work ok if you have an Intel Iris enabled CPU, if you use Nvidia you'll have to google for specific instructions. | |
| Also you can optimise the number of threads used for the compilation by adjusting the line - | |
| make -j4 | |
| to - |
| ACHANNELS 1 | |
| # SCU-17 PCM CODEM device: check with `aplay -l` | |
| ADEVICE plughw:1,0 | |
| # This serial device name is for SCU-17. Use `if01-port0` for the PTT control of the data port with RTS. | |
| PTT /dev/serial/by-id/usb-Silicon_Labs_CP2105_Dual_USB_to_UART_Bridge_Controller_devicename-if01-port0 RTS | |
| CHANNEL 0 | |
| MYCALL yourcall-SSID |
| # This is a simple example of how to run a basic service inside a container with Podman | |
| # Podman | |
| ## Pull the Docker image | |
| podman pull docker.io/redis | |
| ## Run the container as you would do with Docker | |
| podman run -d --name redis_server -p 6379:6379 redis | |
| # But Podman facilitate some extra ways: |
| # Install K3S | |
| curl -sfL https://get.k3s.io | sh - | |
| # Copy k3s config | |
| mkdir $HOME/.kube | |
| sudo cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config | |
| sudo chmod 644 $HOME/.kube/config | |
| # Check K3S | |
| kubectl get pods -n kube-system |
| # µPing (MicroPing) for MicroPython | |
| # copyright (c) 2018 Shawwwn <[email protected]> | |
| # License: MIT | |
| # Internet Checksum Algorithm | |
| # Author: Olav Morken | |
| # https://github.com/olavmrk/python-ping/blob/master/ping.py | |
| # @data: bytes | |
| def checksum(data): | |
| if len(data) & 0x1: # Odd number of bytes |