Skip to content

Instantly share code, notes, and snippets.

Build the Image

Simple steps to use with https://firmware-selector.openwrt.org to generate an OpenWrt image for Raspberrypi with Wifi enabled and network over usb (g_ether).

Packages:

# USB Gadget over USB-C
kmod-usb-gadget kmod-usb-gadget-eth kmod-usb-dwc2

# Expand root filesystem to whole sdcard
parted losetup resize2fs
@hkfuertes
hkfuertes / openwrt_tailscale_updated.md
Last active January 25, 2025 15:18
Guide to install latest version of tailscale on OpenWRT

Prerequisites

Tailscale is a heavy program, you most likely need to configure ex_root to be able to install it.

https://openwrt.org/docs/guide-user/additional-software/extroot_configuration

Installation

  VERSION=1.2.3 # Version as of Nov 6 2024
  wget -O luci-app-tailscale.ipk https://github.com/asvow/luci-app-tailscale/releases/download/v${VERSION}/luci-app-tailscale_${VERSION}_all.ipk
  opkg update
 opkg install ./luci-app-tailscale.ipk

Simple steps to use with https://firmware-selector.openwrt.org/ to generate an OpenWrt image for Raspberrypi with Wifi enabled and network over usb (zeros, 4 and 3a).

Packages:

... kmod-usb-gadget kmod-usb-gadget-eth kmod-usb-dwc2 parted losetup resize2fs

uci-defaults:

# Change to not default network

How to setup an LXC container with docker and amule in Proxmox

Proxmox

First we need to install the Alpine LXC, the easiest way is to use Proxmox Helper scripts: https://tteck.github.io/Proxmox/

bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/alpine.sh)"

I would install in "advance" mode and be generous with the resources (4 cores, 2G ram, 8GB disk)

How to setup an LXC container with docker and calibre/web in Proxmox

Proxmox

First we need to install the Alpine LXC, the easiest way is to use Proxmox Helper scripts: https://tteck.github.io/Proxmox/

bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/alpine.sh)"

I would install in "advance" mode and be generous with the resources (4 cores, 2G ram, 8GB disk)

@hkfuertes
hkfuertes / proxmox_alpine_lxc_ollama_igpu.md
Last active January 13, 2025 18:14
Alpine LXC Container with iGPU Ollama Server on Proxmox

How to setup an LXC container with AMD iGPU (Ryzen 7 5800H) passthrougth for Ollama in Proxmox

Proxmox

First we need to install the Alpine LXC, the easiest way is to use Proxmox Helper scripts: https://tteck.github.io/Proxmox/

bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/alpine.sh)"

I would install in "advance" mode and be generous with the resources (8-16 cores, 16G ram, 128GB disk)

@hkfuertes
hkfuertes / install_and_use_scrcpy_sheldon.md
Last active July 4, 2023 10:47
TWRP + SCRCPY Fire Stick TV Configuration for local development

Install SCRCPY

It is important that the version is 2.x as it allows for video/audio codecs. Visit SCRCPY github repo for more info, but the steps are the following:

  • First, you need to install the required packages:

    # for Debian/Ubuntu
    sudo apt install ffmpeg libsdl2-2.0-0 adb wget \
                   gcc git pkg-config meson ninja-build libsdl2-dev \
                   libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev \

libswresample-dev libusb-1.0-0 libusb-1.0-0-dev

@hkfuertes
hkfuertes / TWRP Enable ADB with Keys.md
Last active December 5, 2024 20:50 — forked from varhub/Android - Enable ADB from recovery.md
TWRP Enable ADB with Keys

TWRP Enable ADB with Keys

To enable adb debuging from recovery (TWRP):

adb shell

# Data related changes
twrp mount data
mkdir /data/property
echo -n 'mtp,adb' > /data/property/persist.sys.usb.config