Skip to content

Instantly share code, notes, and snippets.

View JucaRei's full-sized avatar
:electron:
Focusing

JucaRei

:electron:
Focusing
View GitHub Profile
@JucaRei
JucaRei / OpenWRT.Armbian.OPZ
Created July 3, 2025 01:21 — forked from praveenbm5/OpenWRT.Armbian.OPZ
OpenWRT on Orange Pi Zero using Armbian uBoot and Kernel
Guide:
1. Install Armbian_5.24.161216_Orangepizero_Ubuntu_xenial_3.4.113.img onto a uSD card using Win32DiskImager or Ubuntu Disk Image Writer
2. (Optional) Mount the uSD in Ubuntu Laptop and expand the partition using GParted.
3. Delete everything from uSD except /boot, /lib/modules and /lib/firmware.
4. Mount openwrt-15.05.1-sunxi-root.ext4 on Ubuntu using loopback interface on /mnt/openwrt
@JucaRei
JucaRei / openwrt_add_guest.sh
Created July 3, 2025 01:08 — forked from fbraz3/openwrt_add_guest.sh
[OpenWRT] Bash Script to Create a Fully Isolated Guest Network with Bandwidth Control
#!/bin/sh
#
# FOR USE IN OPENWRT
# This script creates a guest network fully isolated from the main one.
# Tested on a Xiaomi AX3000T router; should work on any OpenWRT-powered router.
#
# Ensure the Wi-Fi interfaces retain their default names (radio0 and radio1).
#
# Info about OpenWRT support on AX3000T:
@JucaRei
JucaRei / docker.md
Created April 19, 2025 05:35 — forked from FreddieOliveira/docker.md
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@JucaRei
JucaRei / install_debian_with_debootstrap_howto.md
Created April 8, 2025 14:28 — forked from varqox/install_debian_with_debootstrap_howto.md
Instructions how to install Debian using debootstrap
@JucaRei
JucaRei / linux-full-desktop-container.md
Created April 4, 2025 19:33 — forked from morrolinux/linux-full-desktop-container.md
Run a full linux desktop in a container

In the following gist I'm going to guide you through the process of installing and booting an entire linux distribution with full desktop environment just like you would have with a classical VM, but with much better performance and much worse isolation :)

The reason why I did this was mainly because it's cool, but also to test new distros with decent graphics performance without actually booting them on my PC.

If you "try this at home" just keep in mind a container is not as secure as a VM, and some of the option we're going to explore will weaken container isolation from "a bit risky" to "totally unsafe" depending on what you choose.

Also, we're going to use systemd-nspawn for containers as it's probably the best fit for our use case and can also boot any linux partition without needing to prepare an apposite container image.

Less go!

@JucaRei
JucaRei / ubuntu-build.sh
Created April 4, 2025 19:31 — forked from ryza-dytalabs-io/ubuntu-build.sh
secure installation of ubuntu
#!/bin/bash
# Ubuntu Installation Script with LUKS-encrypted BTRFS, systemd-boot, and Secure Boot
# Author: Claude (modified and improved with apt speed enhancements)
# Usage: sudo bash script.sh [install_device] [username] [hostname] [locale] [language] [timezone]
# Passwords can be provided via environment or will be prompted securely.
set -euo pipefail
# Log file for the installation process
LOGFILE="/var/log/ubuntu_install_script.log"
@JucaRei
JucaRei / installing-debian-arch-way.md
Created April 4, 2025 19:30 — forked from bgarber/installing-debian-arch-way.md
The Art of Installing Debian the Arch-way

The Art of Installing Debian the Arch-way

Around 2005, I published in my personal blog in Wordpress a small tutorial on how to install Debian the Nerd-way. That post is long gone now, and it was more like a small reference guide for myself than anything else. Recently I tried some of those steps again just for fun to see they still work and they do!

As you move on in this tutorial, you will notice it resembles a lot the Arch Linux installation method (hence the title). That's not a surprise since all of this existed even before Arch was popularized.

This work grabs some steps from the Instaling Debian GNU/Linux from a Unix/Linux System, in the Random Bits appendix from the Debian documentation. I decided to create one of my own because some of those steps could be either abbreviated or more detailed.

DISCLAIMER: as you already suspect, these steps will potentially break your system! Read every step carefully and check what applie

@JucaRei
JucaRei / installing_debian.md
Created April 4, 2025 19:30 — forked from raphendyr/0-about.md
Instructions on installing Debian manually with full control. Desktop, laptop or VM.

Installing Debian

prepare storage

  1. prepare

create a memory storage for secure files

mkdir -p /prepare
@JucaRei
JucaRei / custom_debian_lxc_image_proxmox_arm64.md
Created April 4, 2025 19:30 — forked from AnnoyingTechnology/custom_debian_lxc_image_proxmox_arm64.md
Build your own arm64 Debian LXC image. (avoid unable to open file '/etc/network/interfaces.tmp.0000000' - No such file or directory)

On another Debian (x86 or arm64, doesn't matter much).

apt install distrobuilder qemu-system-common

Create a configuration file (debian.yml for example) for your LXC image :

image:
  description: |-
    Nearly stock Debian Bookworm image
@JucaRei
JucaRei / a-z.md
Created April 4, 2025 19:01 — forked from pmartycz/a-z.md
Debian/Ubuntu Setup