Skip to content

Instantly share code, notes, and snippets.

@NoteAfterNote
NoteAfterNote / note-after-note-2026-october-9-secure-nfs-stunnel-termux-linux.md
Last active October 9, 2026 05:36
Using stunnel for secure Network File System (NFS) communication between NFS servers and clients: UNFS3 NFS Server unfsd as a native Termux executable on a smartphone running the Android 14 operating system (OS) and GNU/Linux NFS servers running the Fedora Linux operating system

NoteAfterNote-14
Using stunnel for secure Network File System (NFS) communication between NFS servers and clients: UNFS3 NFS Server unfsd as a native Termux executable on a smartphone running the Android 14 operating system (OS) and GNU/Linux NFS servers running the Fedora Linux operating system
Published: October 9, 2026
Link: https://gist.github.com/NoteAfterNote/cbf4bc7c21a6a517146b3d3c12643cba


stunnel: Figure-1 and Figure-2

stunnel documentation -- "The stunnel program is designed to work as TLS encryption wrapper between remote clients and local (inetd-startable) or remote servers. The concept is that having non-TLS aware daemons running on your system you can easily set them up to communicate with clients over secure TLS channels.": https://www.stunnel.org/manual.html , https://www.stunnel.org

"Using stunnel to Encrypt Database Connections" -- "PKS (shared keys)": https://dave.heebner.us/2017/07/09/us

@NoteAfterNote
NoteAfterNote / note-after-note-2026-may-28-pki.md
Last active October 9, 2026 06:04
Public Key Infrastructure (PKI)

NoteAfterNote-13
Public Key Infrastructure (PKI)
Published: May 28, 2026
Link: https://gist.github.com/NoteAfterNote/0892db84c82e4f5107bc35a6931fa5de
Updated: October 9, 2026


"PKI - CA Cross-Cerificate with OpenSSL?" discussion on the openssl-users mailing list, 2004-09-22 (September 22, 2004) - 2004-09-24 (September 24, 2004): https://marc.info/?t=109589086200004&r=1&w=1

@NoteAfterNote
NoteAfterNote / note-after-note-2025-december-01-testing-termux-proot-distro-nfs.md
Last active October 9, 2026 06:08
Testing: Termux, proot-distro, Network File System (NFS)
@NoteAfterNote
NoteAfterNote / note-after-note-2025-april-7-tar-archive-mkfs-ext4-filesystem.md
Last active July 27, 2026 00:51
Using a tar archive with "mkfs.ext4 -d" to populate the ext4 filesystem

NoteAfterNote-11
Using a tar archive with "mkfs.ext4 -d" to populate the ext4 filesystem
Published: April 7, 2025
Link: https://gist.github.com/NoteAfterNote/65a139ce70cbf27c4875aaaee0e779cc


Here's the description for "-d root-directory|tarball" from the mkfs.ext4 man page:

"Copy the contents of the given directory or tarball into the root directory of the file system. Tarball input is only available if mke2fs was compiled with libarchive support enabled and if the libarchive shared library is available at run-time. The special value "-" will read a tarball from standard input."

Termux: Enable Wake-Lock

NoteAfterNote-10
Testing: Termux, vmtest, and QEMU
Published: June 19, 2024
Link: https://gist.github.com/NoteAfterNote/7614b0137ac6959e3bba35df66eaa75a
Updated: November 22, 2024


Observation: vmtest-QEMU-8.0.2 is faster than vmtest-QEMU-8.2.5 on Smartphone-1-Is-Android-10

Solution: qemu-system-x86_64

  • Remove

* -drive if=none,id=vm,format=raw,file=$VM -device virtio-blk-pci,id=vmvirt1,drive=vm

@NoteAfterNote
NoteAfterNote / note-after-note-2024-june-12-smartphone1-to-smartphone2-adb-termux-usbredirect-qemu.md
Last active December 25, 2025 23:58
Smartphone-1 to Smartphone-2: "adb tcpip 5555" using a Linux server, android-tools, Termux, termux-usb, usbredirect, and QEMU

NoteAfterNote-8
Smartphone-1 to Smartphone-2: "adb tcpip 5555" using a Linux server, android-tools, Termux, termux-usb, usbredirect, and QEMU
Published: June 12, 2024
Link: https://gist.github.com/NoteAfterNote/ee883d5fd86c3b8ef0b0b84cac47b4d6
Updated: June 13, 2024


Step 1. Termux: Enable Wake-Lock

Step 2. Setup

a. Read "Android Debug Bridge (adb)": https://developer.android.com/tools/adb

b. Connect Smartphone-2 (Android 11) to Smartphone-1 (Android 10) with a USB cable, Smartphone-2-Is-Android-11 is a USB device; Smartphone-2 connects through an OTG adapter and the OTG adapter is plugged in Smartphone-1

@NoteAfterNote
NoteAfterNote / note-after-note-2024-may-19-termux-usbredirect-qemu.md
Last active December 25, 2025 23:58
Reading and writing a USB drive connected to a Linux server using Termux, termux-usb, usbredirect, and QEMU on a smartphone that is not rooted
@NoteAfterNote
NoteAfterNote / note-after-note-2023-april-16-termux-and-the-ext4-filesystem-part5.md
Last active April 19, 2023 03:34
Termux And The ext4 Filesystem, Part 5 Of 5: Reading And Writing With debugfs, No Root Required

NoteAfterNote-5
Termux And The ext4 Filesystem, Part 5 Of 5: Reading And Writing With debugfs, No Root Required
Published: April 16, 2023
Link: https://gist.github.com/NoteAfterNote/854468164f8513bea764ac1668489f96


Mobile Device Configuration

  • Rooted: No
  • Connected to any network: No
  • Operating system:

neofetch --stdout|grep --color=never --ignore-case 'os:'