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 / waydroid on x11.md
Created August 4, 2025 20:10 — forked from 1999AZZAR/waydroid on x11.md
This guide provides comprehensive instructions for installing and using Waydroid on an X11-based Linux system. Waydroid is a powerful tool that enables you to run Android in a containerized environment on Linux, giving you a full Android system experience directly on your desktop.
@JucaRei
JucaRei / WSL2GUIXvnc-en.md
Created July 25, 2025 00:53 — forked from tdcosta100/WSL2GUIXvnc-en.md
A tutorial to use GUI in WSL2 replacing original XServer by Xvnc, allowing WSL to work like native Linux, including login screen

WSL2 with GUI using Xvnc

Note

If you want to use pure WSLg, you can try the new WSLg (XWayland) tutorial or the WSLg (Wayland) tutorial.

In this tutorial, we will setup GUI in WSL2, and access it using VNC. No additional software outside WSL (like VcXsrv) is required, except, of course, a VNC Viewer (RealVNC, TightVNC, TigerVNC, UVNC, etc, all of them might work flawlessly).

The key component we need to install is the desktop metapackage you want (GNOME, KDE, Xfce, Budgie, etc) and tigervnc-standalone-server.

For this setup, I will use Ubuntu (20.04, 22.04 and 24.04 are working), and install GNOME Desktop. Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the [Sample

@JucaRei
JucaRei / debianvmvirtinst.md
Created July 24, 2025 17:24 — forked from plembo/debianvmvirtinst.md
Install a Debian VM using virt-install

Installing a Debian VM with virt-install on KVM (libvirtd)

This turned out to be easier than I thought it would, especially after struggling with Ubuntu.

Both procedures use a common debian.env file to hold environment variables applied in the script.

When installing Debian always be sure to select an apt mirror when prompted, if you don't you'll regret it.

Environment variables

In a file, debian.env:

@JucaRei
JucaRei / Readme.md
Created July 24, 2025 17:20 — forked from techhazard/Readme.md
NixOS: PCI Passthrough

PCI Passthrough

Warning: unfinished (but successfull!)

I did PCI passthrough on Archlinux and Debian with the old PCI-stub method (this was pre-4.0 era). And later I did PCI passthrough on the 4.1+ kernels on Arch and Ubuntu (16.10 I think?).

This is my attempt at doing the same on Nixos.

Requirements

@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"