Skip to main content


Showing posts from April, 2022

gentoo mimeo download tar.gz from src  tar -xf mimeo-2021.11.tar.xz python install --prefix=~/.local  --optimize=1   depends on pyxdg pip3 install pyxdg or  build from src tar -xf pyxdg-0.27.tar.gz python install --prefix=~/.local  --optimize=1   open file  mimeo path/filename -q to quiet   find application .desktop files    mimeo --app2desk zathura zathura   org.pwmt.zathura-pdf-mupdf.desktop   org.pwmt.zathura.desktop  mimeo --add 'glob:text/*' medit.desktop      

libreoffice math

 {partial^2 u} over {partial x^2} +{ partial^2 u} over{ d y^2 }

coffe types


void musl bootstrap

 1. choose appropriate mirror:: download static xbps:: 2. goto  (or repo chosen in 1/static) scroll to bottom for latest this time (apr 13 2022) latest was :: xbps-static-static-0.59_5.x86_64-musl.tar.xz  ~/xbps 3.tar -xf  xbps-static-static-0.59_5.x86_64-musl.tar.xz  4. cd ~/xbps/usr/bin for glibc remove musl in REPO and ARCH= x86_64 , x86_64-musl , i686, aarch64 REPO= ARCH=x86_64 -musl  XBPS_ARCH=$ARCH ./xbps-install -S -r /mnt -R "$REPO" base-system or   XBPS_ARCH= x86_64 -musl  ./xbps-install -S -r /mnt -R " " base-system  base-minimal for minimal linux5.15 kernel gsettings-desktop-schemas  

firefox shlibs

       --ro-bind /usr/lib/ /usr/lib/ \      --ro-bind /usr/lib/ /usr/lib/  \      --ro-bind  /usr/lib/ /usr/lib/ \      --ro-bind /usr/lib/ /usr/lib/ \      --ro-bind /usr/lib/ /usr/lib/ \      --ro-bind /usr/lib/ /usr/lib/ \      --ro-bind /usr/lib64/ /usr/lib64/      --ro-bind /usr/lib/ /usr/lib/ \      --ro-bind /usr/lib/ /usr/lib/ \      --ro-bind /usr/lib/ /usr/lib/ \      --ro-bind /usr/lib/ /usr/lib/ \      --ro-bind /usr/lib/ /usr/lib/ \      --ro-bind /usr/lib/ /usr/lib/ \      --ro-bind /usr/lib/ /usr/lib/ \      --ro-bind /usr/lib/ /usr/lib/ \     

debian waybar no clock module

"custom/clock": {         "exec": "date '+%a %d %b %I:%M:%S %p' ",         "format": "{}",               "interval": 1     },     "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",   date library haven't got a release since 2018. so no clock module in debian

mac address

 format MM:MM:MM:SS:SS:SS total 48 bit, 6 hex  MM=vendor prefix=Adapter manufacturer registers in ieee SS=deice identifier= id no for specific device manufacturer database ::   new network require 64 bit mac address,for old mac address FFFE is added between vendor prefix and device identifier to make it 64 bit.

mime alpine

> app describe mimes supported in desktop entry (.desktop) file using MimeType= >> desktop-file-utils builds cache database of MIME types handled by desktop entries  in   $XDG_DATA_DIRS/applications/mimeinfo.cache /usr/share/applications/mimeinfo.cache    using cmd:: /usr/bin/update-desktop-database --quiet /usr/bin/update-mime-database /usr/share/mime >>>mimetypes defined in /usr/share/mime/packages/   doas apk add xdg-user-dirs xdg-usr-dirs-update cat /usr/share/applications/mimeinfo.cache | wl-copy  vi .config/mimeapps.list  paste and remove [MIME Cache]

alpine linux nasm hello world

doas apk add nasm musl-dev nano hello.asm  ----------------------------------------------------------------------------- section .data msg: DB 'Hello World!', 10 msgSize EQU $ - msg global start section .text start:     mov rax, 4          ; function 4     mov rbx, 1          ; stdout     mov rcx, msg        ; msg     mov rdx, msgSize    ; size     int 0x80     mov rax, 1          ; function 1     mov rbx, 0          ; code     int 0x80     ret ----------------------------------------------------------------------------- nasm -f elf64 -g hello.asm ld -e start -o hello hello.o ./hello Hello world! src::