Skip to main content

Posts

Showing posts from August, 2021

mount vhdx linux

sudo pacman -S  libguestfs guestmount --add yourVirtualDisk.vhdx --inspector --ro /mnt/anydirectory     or  sudo pacman -S qemu-headless nbd https://gist.github.com/allenyllee/0a4c02952bf695470860b27369bbb60d mount_vhdx.sh #! /bin/bash VHDX_IMG= " $1 " MOUNT_POINT= " $2 " # [ubuntu] How do you mount a VHD image # https://ubuntuforums.org/showthread.php?t=2299701 # # Load the nbd kernel module. sudo rmmod nbd ; sudo modprobe nbd max_part=16 # mount block device sudo qemu-nbd -c /dev/nbd0 " $VHDX_IMG " # reload partition table

brightness control debian stable

 sudo apt install brishtnessctl sudo usermod -aG video $USER bindsym XF86MonBrightnessUp exec "brightnessctl s 5%+" bindsym $mod+p  exec lxrandr bindsym Control+XF86MonBrightnessUp exec "brightnessctl s 10%+" bindsym XF86MonBrightnessDown exec "brightnessctl s 5%-" bindsym Control+XF86MonBrightnessDown exec "brightnessctl s 10%-"

i3wm current config

 set $mod Mod4 set $mod1 Mod1 #new_window pixel 2 #font pango:monospace 8 font pango:DejaVuSansMono Nerd Font 10   set $term kitty set $fm pcmanfm set $browser ~/opt/firefox/firefox set $editor mousepad set $ws1 "1" set $ws2 "2" set $ws3 "3" set $ws4 "4" set $ws5 "5" set $ws6 "6" set $ws7 "7" set $ws8 "8" set $ws9 "9" set $ws10 "10" # dir keys when the arrows is not convenient set $up l set $down k set $left j set $right semicolon bindsym $mod+1 workspace $ws1 bindsym $mod+2 workspace $ws2 bindsym $mod+3 workspace $ws3 bindsym $mod+4 workspace $ws4 bindsym $mod+5 workspace $ws5 bindsym $mod+6 workspace $ws6 bindsym $mod+7 workspace $ws7 bindsym $mod+8 workspace $ws8 bindsym $mod+9 workspace $ws9 bindsym $mod+0 workspace $ws10 #gesture: swipe up 3    xdotool key super+d bindsym $mod+Shift+1 move container to workspace  $ws1 bindsym $mod+Shift+2 move container to workspace  $ws2 bindsym $m

office 2019 from msguides

 save as .cmd or .bat and run as admin -------------------------------------------------------------------------------------------------------------------- @echo off title Activate Microsoft Office 2019 ALL versions for FREE!&cls&echo ============================================================================&echo #Project: Activating Microsoft software products for FREE without software&echo ============================================================================&echo.&echo #Supported products:&echo - Microsoft Office Standard 2019&echo - Microsoft Office Professional Plus 2019&echo.&echo.&(if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms

debian tty autologin

 sudo mkdir /etc/systemd/system/[email protected]/ cd /etc/systemd/system/[email protected]/ sudo nano override.conf -------------------------------------------- [Service] ExecStart= ExecStart=-/sbin/agetty --autologin kai --noclear %I $TERM  ------------------------------------------------------------------------------------------------------- for silent logint without some messages ExecStart=-/sbin/agetty --skip-login --nonewline --noissue --autologin kai --noclear %I $TERM in archwiki path was /usr/bin/agetty in debian its /sbin/agetty

silent debian

 kernel parameters to disable log on boot can still view by sudo dmesg later  quiet loglevel=0 rd.systemd.show_status=quiet rd.udev.log-priority=3   on .bashrc redirect xorg message to null [ "$(tty)" = "/dev/tty1" ] && ! pgrep -x Xorg >/dev/null && exec startx -- vt1 &> /dev/null disable motd(message of the day) message on every login edit /etc/pam.d/login and /etc/pam.d/sshd comment  session optional pam_motd.so motd=/run/motd.dynamic session optional pam_motd.so noupdate        

realme/mi connect to windows 10

 goto settings/  press  win+i apps and features optional features add wireless display by searching you will get connect app goto settings>system>projecting to this pc  adjust who can connect   realme/mi screencast on then u can connect via windows connect app

dism disable app

  dism /online /get-features   dism /online /get-features > allfeats notepad allfeats  DISM.exe /Online /Disable-Feature /FeatureName:somename for gui appwiz.cpl and turn off features