Mar 24 2025

UTC in Microsoft Windows

To dual boot with Windows, it is recommended to configure Windows to use UTC, rather than Linux to use localtime. (Windows by default uses localtime)

It can be done by a simple registry fix: Open regedit and add a DWORD value with hexadecimal value 1 to the registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversal

You can do this from an Administrator Command Prompt running:

C:\>reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f

Mar 8 2025

pacman upgrade packages in ArchLinux

pacman upgrade packages in ArchLinux
sudo pacman -Syu
-S – Synchronizes packages
-y – Refreshes the package database
-u – Upgrades all installed packages

Remove a package (keep dependencies)
sudo pacman -R package_name

Remove a package and unneeded dependencies
sudo pacman -Rns package_name

Remove orphaned packages (unneeded dependencies)
sudo pacman -Rns $(pacman -Qdtq)

Remove a package and ignore dependencies
sudo pacman -Rdd package_name

Remove a package and its cache (free up disk space)
sudo pacman -R package_name && sudo pacman -Sc

For a more aggressive cleanup, remove all cached package files:
sudo pacman -R package_name && sudo pacman -Scc

To install packages from a previously saved list of packages, while not reinstalling previously installed packages that are already up-to-date, run:
pacman -S --needed - < pkglist.txt

Mar 5 2025

GRUB boot to last OS

edit /etc/default/grub

change or aadd:

GRUB_DEFAULT=saved

GRUB_SAVEDEFAULT=true

GRUB_DISABLE_OS_PROBER=false

Recreate config

Arch example:

grub-mkconfig -o /boot/grub/grub.cfg

Mar 5 2025

EFI BOOT ENTRY

DELETE

To delete a menu entry using efibootmgr
first list the current boot entries with sudo efibootmgr
Identify the boot number of the entry you want to delete, then use the command:
sudo efibootmgr -b XXXX -B
replacing XXXX with the boot number of the entry you wish to remove.

ADD

To add a menu entry using efibootmgr, use the following command format:
sudo efibootmgr -c -d /dev/sdX -p NN -L "Label" -l "\EFI\path\to\boot\file.efi"
where /dev/sdX is your disk, NN is the partition number,
“Label” is the name you want for the boot entry,
and \EFI\path\to\boot\file.efi is the path to the EFI executable.

!!! Make sure the path to the boot file is correct and uses backslashes, as required by the EFI specification!!!

Dec 19 2024

Repeated Message – Driver exit RTD3 [USB issue]

#Display USB Selective Suspend when on battery

powercfg.exe /SETDCVALUEINDEX SCHEME_CURRENT 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 1

#Display USB Selective Suspend when plugged

powercfg.exe /SETACVALUEINDEX SCHEME_CURRENT 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 1

Oct 27 2024

Windows 11 / Windows 10 Download

Goto https://uupdump.net

Search  “23H2” (build number 22631)

Download and unpack files

Click uup_download_windows.cmd batch file and select the Run as administrator option.

After download use Rufus or other app to create bootable USB Drive

Oct 11 2024

Install Windows 11 24H2 on Unsupported Hardware

Get ISO fro https://www.microsoft.com/pl-pl/software-download/windows11
Mount iso
Windows+r “cmd”
select mounted drive ex.: D:
then
.setup.exe /product server
click “Change how to setup download updates” and select “Not right now”

Oct 11 2024

Enable Multiple RDP Sessions

Enable Multiple RDP Sessions

  1. Log into the server, where the Remote Desktop Services are installed.
  2. Open the start screen (press the Windows key) and type gpedit.msc and open it.
  3. Go to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections.
  4. Set Restrict Remote Desktop Services user to a single Remote Desktop Services session to Disabled.
  5. Double click Limit number of connections and set the RD Maximum Connections allowed to 999999.
Jul 13 2024

proxmox import vm from kvm

Create a new VM in the web interface (leave other settings as default)
copy VM disk to proxmox (ex. using terminal) and import it to newly created VM machine
qm importdisk machine_id_number /var/lib/vz/images/file.qcow local-zfs
qm rescan

Go to your new created VM in the proxmox web interface.
Go to the Hardware section of the newly created VM in the Proxmox web interface
Look for the Unused Disk and select it.
Then you have to add the disk by clicking on Edit on the top.

Jul 13 2024

Reducing the size of a QEMU virtual disk (thin disk)

On all mounting points
dd if=/dev/zero of=/nul;sync;sync;sync;rm -f /nul;sync

    Stop VM
    Convert disk

qemu-img convert -O qcow2 -c disk1.qcow disk1.new.qcow