Skip to content

Instantly share code, notes, and snippets.

@lidgnulinux
lidgnulinux / 00-Kumpulan-kulak-kulik.md
Last active April 22, 2025 00:25
Kumpulan Kulak Kulik.

Kumpulan Kulak Kulik.

Linux related.

How to build gettext and libintl.so on musl.

Gettext with libintl.so.

After did some trials and errors I found a way to build gettext library + its libintl.so library on musl. I need the library so cosmic-files will work properly. Before I finally built gettext + libintl.so, everytime I build gettext I only get libgnuintl.so instead of libintl.so. Turns out, the solution is pretty simple. I just need to rename libintl.h header file from musl build and boom, gettext build will produce libintl.so instead of libgnuintl.so.

Prepare.

  • Musl (obviously).
  • gettext, I use 0.24 version.
@lidgnulinux
lidgnulinux / 00.vanity-gaps-and-foreign-toplevel.patch
Last active March 22, 2025 11:49
Vanity gaps & foreign toplevel management patch for dwl v0.7.
diff --git a/Makefile b/Makefile
index 3358bae..9652529 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,8 @@ dwl: dwl.o util.o
$(CC) dwl.o util.o $(DWLCFLAGS) $(LDFLAGS) $(LDLIBS) -o $@
dwl.o: dwl.c client.h config.h config.mk cursor-shape-v1-protocol.h \
pointer-constraints-unstable-v1-protocol.h wlr-layer-shell-unstable-v1-protocol.h \
- wlr-output-power-management-unstable-v1-protocol.h xdg-shell-protocol.h
+ wlr-output-power-management-unstable-v1-protocol.h xdg-shell-protocol.h \
@lidgnulinux
lidgnulinux / Firefox-appimage.md
Last active March 31, 2025 01:38
Build firefox appimage for musl based distro.

Build Firefox Appimage for Musl Based Distro.


Preparation.

  • Musl based distro archive.
  • Appimagetool.
  • Text editor.

@lidgnulinux
lidgnulinux / Celluloid.txt
Created March 18, 2025 22:17
Celluloid backtrace.
backtrace:
#0 0x00007ffff297ad95 in pixman_transform_point_3d () from /usr/lib/libpixman-1.so.0
No symbol table info available.
#1 0x00007ffff297d1d8 in radial_get_scanline_narrow () from /usr/lib/libpixman-1.so.0
No symbol table info available.
#2 0x00007ffff2976b74 in general_composite_rect () from /usr/lib/libpixman-1.so.0
No symbol table info available.
#3 0x00007ffff28d5a52 in pixman_image_composite32 () from /usr/lib/libpixman-1.so.0
No symbol table info available.
#4 0x00007ffff67c6f31 in _inplace_spans (abstract_renderer=0x7fffecc36430, y=3, h=1, spans=0x7fffecc34a28, num_spans=1) at ../src/cairo-image-compositor.c:2547
@lidgnulinux
lidgnulinux / fix-echo-error-invalid-argument-ssh-lfs.md
Created March 13, 2025 13:53
Simple fix for echo error invalid argument on sshd init service LFS.

How to Fix "echo: error invalid argument" for sshd init service on LFS.

Why does it happen ?

Honestly, I don't really know.

Prerequisites

  • Editor text, I use vim.
  • Sshd init service file, It usually exist at /etc/rc.d/init.d/sshd.
@lidgnulinux
lidgnulinux / LFS-musl.md
Last active April 11, 2025 09:41
Build LFS with Musl, Libressl and Eudev.

Build LFS with Musl, Libressl and Eudev.

Prerequisite.

We need some stuffs to be prepared, like :

  • Musl-based linux distro as host. I used dragora GNU/Linux. We may use alpine as well.
  • Compiler, I use gcc 14.
  • LFS book, just ignore everything about the glibc, openssl and eudev part.
  • Mussel to build cross compilers.
  • Time and patient.
@lidgnulinux
lidgnulinux / Musl-appimage-on-glibc.md
Created February 20, 2025 11:45
Open Built-on-Musl Appimage on Glibc Distro.

Open Built-on-Musl Appimage on Glibc Distro.

What do we need ?

We need :

  • Appimage file which we built on musl environment.
  • cp command.

Steps.

@lidgnulinux
lidgnulinux / sway-xfce.conf
Last active March 23, 2025 14:20
Using sway with xfce4.
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
@lidgnulinux
lidgnulinux / create_appimage_from_musl_rootfs_distro.md
Last active December 31, 2024 20:02
Create Appimage File using Minimal Rootfs Archive Musl Distro (e.g alpine linux).

Create Appimage Using Minimal Rootfs Archive Musl Distro.

What do we need / prerequisite ?

  • Rootfs archive musl distro, I'm using alpine minirootfs archive. We can get it here.
  • AppRun executable, it's needed for launch our app. Get it here.
  • Appimagetool, available here
  • Desktop file / .desktop.
  • Icon file.