Skip to main content

Posts

Showing posts from October, 2022

vol control in wm

###Alsa ##speaker     set $upvol amixer sset Master 5%+    set $downvol amixer sset Master 5%-    set $mute amixer sset Master toggle ##mic    set $upmik   amixer -q sset Capture 5%+    set $downmik  amixer -q sset Capture 5%-    set $mutemik  amixer -q sset Capture toggle   ##pipewire/pulseaudio ((debian has pulsemixer )  pulsemixer --change-volume -5  pulsemixer --change-volume +5  pulsemixer --toggle-mute  pulsemixer --list-sources Source:          ID: source-65577, Name: Monitor of Built-in Audio Analog Stereo, Mute: 0, Channels: 2, Volumes: ['86%', '86%'] Source:          ID: source-42, Name: Built-in Audio Analog Stereo, Mute: 1, Channels: 2, Volumes: ['5%', '5%'], Default note source id mine is 42    pulsemixer --change-volume  -5  --id 42  pulsemixer --change-volume   +5 --id 42 pulsemixer --toggle-mute --id 42     ##arch pamixer -i 5 #to increase 5% pamixer -d 5 #to decrease 5%         bindsym XF86AudioRaiseVolume exec  $upvol     bindsym XF86Au

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 ([email protected]) 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 [email protected]@ @[email protected]/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 @[email protected] @[email protected]      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

jammy debootstrap

 sudo debootstrap --arch amd64 --extractor =ar  jammy http://np.archive.ubuntu.com/ubuntu/ W: Cannot check Release signature; keyring file not available /usr/share/keyrings/ubuntu-archive-keyring.gpg I: Validating Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... I: Checking component main on http://np.archive.ubuntu.com/ubuntu... I: Validating adduser 3.118ubuntu5 I: Validating apt 2.4.5 I: Validating apt-utils 2.4.5 I: Validating base-files 12ubuntu4 I: Validating base-passwd 3.5.52build1 I: Validating bash 5.1-6ubuntu1 I: Validating bsdutils 1:2.37.2-4ubuntu3 I: Validating ca-certificates 20211016 I: Validating console-setup 1.205ubuntu3 I: Validating console-setup-linux 1.205ubuntu3 I: Validating coreutils 8.32-4.1ubuntu1 I: Validating cron 3.0pl1-137ubuntu3 I: Validating dash 0.5.11+git20210903+057cd650a4ed-3build1 I: Validating dbus 1.12.20-2ubuntu4 I: Validating debconf 1.5.79ubuntu1 I: Validating debconf-i18n 1.5.79ubuntu1