Monday, November 09, 2026

WSL DNS config

Notes for WSL DNS config:
 

$USERPROFILE/.wslconfig

[wsl2]

dnsTunneling=true

networkingMode=nat

autoProxy=true


$ cat -p /etc/resolv.conf

search abc.suffix.com

nameserver 10.10.183.1

nameserver 8.8.8.8


$ cat -p /etc/wsl.conf

[boot]

systemd=true

[network]

generateResolvConf = false

Tuesday, October 21, 2025

Install paramiko on Termux

Preparation steps:

$ apt install build-essential

$ apt install rust

Next 2 steps will prevent the error when pip tries to install pynacl for paramiko

$ apt install clang python libffi openssl libsodium

$SODIUM_INSTALL=system pip install pynacl


Now we can install paramiko using pip

$ pip install paramiko

Monday, August 11, 2025

NodeMCU v0.9 and v1.0 pins

 NodeMCU v0.9


NodeMCU v1.0



Wednesday, July 02, 2025

WSL startup and port forwarding

Create a task to run this batch at the Windows system startup

 wsl_ssh_port_forward.bat

Monday, May 05, 2025

FT232H + Adafruit Blinka + 0.19 inch OLED (SSD1306) on Windows 11

 FT232H + Adafruit Blinka on Windows 11

Windows Ver.24H2, OS Build 26.100.3915
Python 3.10.7

Download Zadig from its page: https://zadig.akeo.ie/

Plug FT232H board to Windows

Open Zadig and reinstall the driver for FT232H, follow the instructions in this page:
https://learn.adafruit.com/circuitpython-on-any-computer-with-ft232h/windows

Make sure selecting the correct device then select "libusbK", then click on "Replace Driver"

  • Driver: FTDIBUS (...)
  • USB ID: 0403 6014


Before & After replace the driver:

  • libusbK USB Devices should appear in the Device Manager


Create python virtual env then activate python virtual env

% mkdir ws_py && cd ws_py
% python -m venv .venv
% .venv\Scripts\activate.bat

Install additional libraries to check if FT232H can be recognized

% pip3 install pyusb
% pip3 install pyftdi

Then try to run this code to show the device information

>>> import usb
>>> import usb.util
>>> dev = usb.core.find(idVendor=0x0403, idProduct=0x6014)
>>> print(dev)


Now we can try to use this with the 0.91 inch OLED SSD1306 by executing the following steps

(.venv) % pip install Pillow
(.venv) % pip install adafruit-circuitpython-ssd1306
(.venv) % pip install adafruit-blinka


(.venv) % git clone https://github.com/adafruit/Adafruit_CircuitPython_SSD1306.git
(.venv) % cd Adafruit_CircuitPython_SSD1306\examples
(.venv) % set BLINKA_FT232H=1 → Always need this ENV when using FT232H(!!!)
(.venv) % python ssd1306_simpletest.py

Now we should see something drawn on the tiny display

Done.