Skip to content

Instantly share code, notes, and snippets.

@lidgnulinux
lidgnulinux / Alpine_Linux_minirootfs_install.md
Last active July 22, 2025 16:33
Install Alpine Linux Via Minirootfs Archive.

Install Alpine Linux Via Minirootfs Archive.

Prerequisites.

  • Any live usb bootable.
  • Alpine Linux minirootfs archive, we can get it here. We can choose alpine-minirootfs-3.20.2-x86_64.tar.gz.
  • Some partitions, for root system (/), efi (if you have uefi machine) and swap (optional).
  • Basic commandline knowledge.

Steps.

@lidgnulinux
lidgnulinux / Fedora_via_rootfs_installation.md
Last active May 3, 2025 00:37
Experimental way to install fedora via rootfs archive / the arch way. GRUB kind of work.

Experimental way to install fedora via rootfs archive / the arch way.

Don't ever try this if you don't know what you're doing !

Prerequisites.

  • Any live usb bootable.
  • Fedora rootfs archive, we can get it here. It's better to choose the most update / latest archive.
  • Some partitions, for root system (/), efi (if you have uefi machine) and swap (optional).
  • Basic commandline knowledge.
@lidgnulinux
lidgnulinux / Static_IP_guide.md
Created July 28, 2024 01:19
Simple guide for setting static IP.

Opening.

Hello, couple years ago, I wanted to set and have a static IP, but due lack of knowledge I can't have it. Now I manage to set it and it's kinda work. Here are some methods I'm using.

Methods.

Netplan (Ubuntu & Debian).

I start with netplan. For netplan I just need to make this configuration :

@lidgnulinux
lidgnulinux / INSTALL.md
Last active May 25, 2025 15:56
Install Cosmic Desktop for Ubuntu, Debian Sid, and Alt Linux.

INSTALLATION GUIDE

Download packages

We borrow rpm packages from fedora 41, because we won't build all components ourselves. Download all packages using wget !

$ wget -ci packages.txt
@lidgnulinux
lidgnulinux / post-install.md
Last active July 3, 2024 03:16
Post-installation guide openbsd.

Openbsd post-installation guide.

  • Boot openbsd from linux's grub.

    We can boot openbsd via linux's grub. These are how we can boot openbsd via linux's grub :

    • Enter grub !
    • Press "c" to enter grub shell !
    • List all partitions using ls command !
  • Because I install openbsd at /dev/sda1, so my partition will be shown as "hd0,msdos1".

@lidgnulinux
lidgnulinux / dhcpcd
Created June 4, 2024 02:30
Example of wpasupplicant & dhcpcd service file for dinit.
# dhcpcd service
type = process
command = /usr/bin/dhcpcd -B -M -j /var/log/dhcpcd-service.log wlp3s0
before = network.target
depends-on = pre-network.target
restart = true
logfile = /var/log/dhcpcd.log
@lidgnulinux
lidgnulinux / wayland_list_window_s.sh
Created May 20, 2024 02:46
Show list of window(s) for wayland compositor. The compositor may need to implement foreign-toplevel protocol.
#!/usr/bin/bash
window_list=$(wlrctl toplevel list | awk '{ print substr($0, index($0,$2)) }')
selected=$(echo "$window_list" | wofi -d)
wlrctl toplevel focus title:"$selected"
# Note :
# We need to use "title" rather than "app_id" to avoid window with same app_id.
@lidgnulinux
lidgnulinux / gist_awk_print_2nd_to_last.md
Created May 20, 2024 02:09
Print second column to last column using awk.

Using awk to print second column to last column.

$ echo "first second third N69 NeNN" | awk '{ print substr($0, index($0,$2)) }'

The output will be :

second third N69 NeNN
@lidgnulinux
lidgnulinux / flip_vertical.effect
Created May 18, 2024 05:35
Flip vertical effect for upside-down webcam.
[Effect]
Name[en_GB]=Flip_Vertical
Name=Flip_Vertical
Comment[en_GB]=Flip the image vertically (Silly fix for upside down webcam)
Comment=Flip the image vertically (Silly fix for upside down webcam)
Category=Geometry;
PipelineDescription=videoflip video-direction=vert
@lidgnulinux
lidgnulinux / gvim_trick_1.md
Created May 12, 2024 01:41
GVIM simple trick (Copy and paste on terminal).

Using GVIM as alternative terminal. (Part I).

Copy and paste on terminal.

Copy.

  • To copy, press and hold the shift button and start to select our desired texts !

Paste