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

Jun 28 2024

AC power notify

upower -i $(upower -e | grep '_AC') | grep "online"

Jun 20 2024

mysql repair all tables

mysqlcheck -u root -p --auto-repair --check --all-databases

Jan 14 2024

Unboud (DNS) – listen on IPv4 only

Add to /etc/unbound/unbound.conf

server:
interface: 0.0.0.0

Jan 14 2024

TMUX

split-window -h: Ctrl+b %

split-window -v: Ctrl+b ”

 

 

 

Sep 14 2023

wrong Video codec on Opera Linux Mint

install chromium and

mv /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so.orig
ln -s /usr/lib/chromium/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/
Sep 9 2023

MSSQL restore all databases from folder with .bak files

Powershell

Install-Module dbatools
Import-Module dbatools
Set-DbatoolsInsecureConnection -SessionOnly
Restore-DbaDatabase -SqlInstance SERVER-NAME\INSTANCE-NAME -Path 'C:\PATH-TO-BACKUPS'