Skip to content

Instantly share code, notes, and snippets.

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

JucaRei

:electron:
Focusing
View GitHub Profile
@morrolinux
morrolinux / linux-full-desktop-container.md
Last active April 4, 2025 19:33
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!

@Le0xFF
Le0xFF / VoidLinux_Install.md
Last active December 3, 2024 04:00 — forked from tobi-wan-kenobi/VOID-INSTALL.md
Void Linux installation (on NVMe with trim enabled, with BTRFS filesystem, with Full Disk Encryption using LUKS, with swapfile)

Void Linux installation (on NVMe with trim enabled, with BTRFS filesystem, with Full Disk Encryption using LUKS, with swapfile)

This gist could be outdated, so if you prefer an automated script based on this gist, check out my github repo VoidLinuxInstaller!


Features

This guide explains how to set up Void Linux:

  • On an NVMe disk, enabling trim;
  • Using Full Disk Encryption including /boot, with LUKS;
@jaromil
jaromil / debian-to-devuan-ansible-role.yaml
Created June 17, 2022 09:55
Ansible for the non-interactive migration of Debian 11 "Bullseye" to Devuan 4 "Chimaera"
---
- name: INSTALL DEVUAN
hosts: all
# become: yes
tasks:
- name: Install Devuan keyring
shell: >-
curl https://pkgmaster.devuan.org/devuan/pool/main/d/devuan-keyring/devuan-keyring_2017.10.03_all.deb -o devuankeys.deb && dpkg -i devuankeys.deb
- name: Install sysvinit
@InternetUnexplorer
InternetUnexplorer / command-not-found.sh
Last active March 17, 2024 11:53
Improved home-manager nix-locate configuration, with an auto-updated index and a better command-not-found handler
# Adapted from https://github.com/bennofs/nix-index/blob/master/command-not-found.sh
command_not_found_handle () {
if [ -n "${MC_SID-}" ] || ! [ -t 1 ]; then
>&2 echo "$1: command not found"
return 127
fi
echo -n "searching nix-index..."
ATTRS=$(@nix-locate@ --minimal --no-group --type x --type s --top-level --whole-name --at-root "/bin/$1")
@unique1984
unique1984 / installer.sh
Last active December 27, 2024 22:54
OpenZFS - ZFS as a Root File System on Debian Bullseye
#!/usr/bin/env bash
###########################################################################################################
# Bash Script of this Documentation :
# https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/Debian%20Bullseye%20Root%20on%20ZFS.html#debian-bullseye-root-on-zfs
#
# Copyright © 2022 - installer.sh
# Yasin Karabulak
# [email protected]
# https://github.com/unique1984
#
@SkyyySi
SkyyySi / youtube-vanced-alternatives.md
Last active April 7, 2025 00:27
A list of alternatives after the shutdown of Vanced

NONE OF THESE CLIENTS ARE VERIFIED BY ME FOR SECURITY OR ANYTHING ELSE! USE AT YOUR OWN RISK!

These are the current alternatives (with links when possible):

@matthewpi
matthewpi / README.md
Last active March 31, 2025 21:07
Nix on Fedora

NixOS on Fedora

Please note that these instructions are not offically supported or condoned by Nix and are not guaranteed to always work, but from my testing everything seems to work perfectly fine.

These steps may not be required if NixOS/nix#2374 is resolved.

SELinux

These commands are required for both Fedora Workstation and Fedora Silverblue

@raphendyr
raphendyr / installing_debian.md
Last active April 4, 2025 19:30
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
@olegshtch
olegshtch / Dockerfile
Last active February 20, 2023 02:18
Docker container for building iso
FROM dyne/devuan:chimaera
ARG SUITENAME=chimaera
ARG architecture=amd64
RUN apt update -y
RUN apt list --upgradable
@scyto
scyto / docker-swarm-architecture.md
Last active April 1, 2025 20:52
My Docker Swarm Architecture