Skip to main content

Posts

Showing posts from October, 2022

efistub combo .efi creator debian

cat build_kernel.sh      -----------------------------------------------------------------------------------------------------------------------------                                 #!/bin/bash TARGET=/boot BOOTDIR=/boot UCODE=$BOOTDIR/intel-ucode.img EFISTUB=/usr/lib/systemd/boot/efi/linuxx64.efi.stub echo "Updating EFI kernels..." for k in $BOOTDIR/vmlinuz*; do         NAME=$(basename $k|sed 's/vmlinuz-//')         echo "  Building $NAME"         INITRD="$BOOTDIR/initrd.img-$NAME" ls /boot         if [ -f "$UCODE" ]; then                 cat "$UCODE" "$INITRD" > /tmp/initrd.bin                 INITRDFILE=/tmp/initrd.bin         else                 # Do not fail on AMD systems                 echo "    Intel microcode not found. Skipping."                 INITRDFILE="$INITRD"         fi         # Check for custom command line for the kernel.         CMDLINE="$BOOTDIR/cmdline-$NAME.txt&quo

bruch test

  doas  bash chromeos-install.sh -l  -src chromeos.bin -dst  ~/tmpmount/chromeos.img -s 18 doas (kai@kat) password: Creating image file Creating partition table... 0BF210F5-3004-3C41-8B32-087CE69182CC        start        size    part  contents            0           1          PMBR (Boot GUID: 0BF210F5-3004-3C41-8B32-087CE69182CC)            1           1          Pri GPT header            2          32          Pri GPT table     19255304    18493384       1  Label: "STATE"                                   Type: Linux data                                   UUID: BAA4C007-CA96-0848-9436-256EADE4E345      2117638       65536       2  Label: "KERN-A"                                   Type: ChromeOS kernel                                   UUID: 0F3D825E-8F59-974B-81C7-FEB8900207F8                                   Attr: priority=15 tries=15 successful=0     10866696     8388608       3  Label: "ROOT-A"                                   Type: ChromeOS rootfs

extract xbps in debian bullseye

 apt install p7zip zstd or https://www.7-zip.org/download.html download for linux put in path    use file to check xbps compression method pkg .xbps: Zstandard compressed data (v0.8+), Dictionary ID: None zstdcat <xbpsfile> | 7z l -ttar -si # list files zstdcat <xbpsfile> | 7z x -ttar -si # extract files        src::https://www.reddit.com/r/voidlinux/comments/x77gq3/how_to_extract_xbps_file_tarunzip7z/ 

ls color fix

  dircolors -p > ~/.dircolors  eval $( dircolors ~/.dircolors)   edit STICKY_OTHER_WRITABLE and OTHER_WRITABLE     34;42 (34 is blue, 42 is green)    https://unix.stackexchange.com/questions/241726/fix-ls-colors-for-directories-with-777-permission

foot color emoji

mkdir -p ~/.config/fontconfig/conf.d/ cd ~/.config/fontconfig/conf.d/ nano 75-joypixels.conf    ----------------------------------------------------------------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig>     <!--     This adds a generic family 'emoji',     aimed for apps that don't specify specific font family for rendering emojis.     -->     <match target="pattern">         <test qual="any" name="family"><string>emoji</string></test>         <edit name="family" mode="assign" binding="same"><string>JoyPixels</string></edit>     </match>     <!--     This adds JoyPixels as a final fallback font for the default font families.     In this case, JoyPixels will be selected if and only if no othe

adding new lyricssource to osdlyrics

debian repos has old sources to add new to it  from https://github.com/osdlyrics/osdlyrics/tree/master/lyricsources $ mkdir -p $HOME/.local/share/dbus-1/services/ mkdir -p  $HOME/.local/lib/osdlyrics/lyricsources/   to add https://github.com/osdlyrics/osdlyrics/tree/master/lyricsources/megalobiz   download and edit  org.osdlyrics.LyricSourcePlugin.megalobiz.service.in   [D-BUS Service] Name=org.osdlyrics.LyricSourcePlugin.megalobiz Exec=@PYTHON@ @pkglibdir@/lyricsources/megalobiz/megalobiz.py       as org.osdlyrics.LyricSourcePlugin.megalobiz.service.service   [D-BUS Service] Name=org.osdlyrics.LyricSourcePlugin.megalobiz Exec=/usr/bin/python3 /home/kai/.local/lib/osdlyrics/lyricsources/megalobiz/megalobiz.py   just expand @PYTHON@ @pkglibdir@      copy  megalobiz.py to  $HOME/.local/lib/osdlyrics/lyricsources/megalobiz/megalobiz.py

kiss linux test

https://kisslinux.org/install   ##download latest tarball   find latest from  https://github.com/kisslinux/repo/releases   #dnload using curl ver=2021.7-9  url=https://github.com/kisslinux/repo/releases/download/$ver  file=kiss-chroot-$ver.tar.xz  curl -fLO "$url/$file"    ##mount root partition to install to /mnt  mkfs.ext4 /dev/nvme0n1p1  mount /dev/nvme0n1p1 /mnt cd /mnt  tar xvf "$OLDPWD/$file"  or   sudo tar -xvf ~/Downloads/kiss-chroot-2021.7-9.tar.xz    /mnt/bin/kiss-chroot /mnt         ## inside chroot   passwd root adduser  kai su kai cd git clone https://github.com/kisslinux/repo   ##setup repos https://kisslinux.org/wiki/KISS_PATH vi  .profile  export KISS_PATH='' KISS_PATH=/home/kai/repo/core KISS_PATH=$KISS_PATH:/home/kai/repo/extra KISS_PATH=$KISS_PATH:/home/kai/repo/wayland . ~/.profile  kiss search \*    ## enable sig verification kiss build gnupg1    $ gpg --keyserver keyserver.ubuntu.com --recv-key 13295DAC2CF13B5C $ echo tr

dell fan

  sudo apt-get install i8kutils sudo modprobe dell-smm-hwmon force=1   sudo apt-get install lm-sensors sudo sensors-detect   snesors now shows fan status   for control sudo modprobe i8k force=1       sudo systemctl start i8kmon.service   i8kctl fan 1 1 set both fan to low speed     https://www.cyberciti.biz/faq/controlling-dell-fan-speeds-temperature-on-ubuntu-debian-linux/      https://mijorus.medium.com/thermal-tweaks-on-dell-laptops-running-linux-769c8c80022e  

adb

    adb devices   adb shell adb -s <device̠-number> shell  adb tcpip 5555 adb shell ip route | awk '{print $9}'   adb connect 192.168.1.51ː5555   adb start-server adb kill-server adb reboot adb reboot recovery adb reboot bootloader adb push files /storage/on/device adb push myfolder /storage/on/device   #push folder only adb push myfolder/ /storage/on/device   #push all files in folder ## use pull instead of push for pulling file/folder   adb shell getprop adb shell setprop key value  adb shell service call <your_service_name> <number at which the function appears in your_service_name.aidl> <type of the argument like i32 or i64> <argument> adb shell service list adb shell service call iphonesubinfo 1 adb shell service call iphonesubinfo 1| cut -d "'" -f2| grep -Eo '[0-9]'| xargs| sed 's/\ //g'   service call iphonesubinfo 3 i32 1 | grep -oE '[0-9a-f]{8} ' | while read hex; do echo -ne "\u${hex:4:4}\u${h

mpv lyrics plugin

  https://git.sr.ht/~guidocella/mpv-lrc   cd ~/.config/mpv/plugins git clone  https://git.sr.ht/~guidocella/mpv-lrc   chmod +x lrc.sh   mv  scripts-opts ..   alt+m to download lyrics needs metadata to download else fails     cat ~/.config/mpv/mpv.conf sub-font-size=100   fir big lyrics font  The default shortcuts for adjusting subtitle font size: shitft + g : to increase font size shitft + f : to decrease font size   files:: @Mon Oct 10 01:03:11 PM +0545 2022 lrc.sh #!/bin/sh lrc_path = $( printf %s \\ n '{ "command": ["get_property", "path"] }' | socat - /tmp/mpv-socket | jq -r .data ) [ " $lrc_path " ] || exit 1 lrc_path = ${ lrc_path %.* } .lrc case $lrc_path in /* ) ;; * ) lrc_path = $( printf %s \\ n '{ "command": ["get_property", "working-directory"] }' | socat - /tmp/mpv-socket |