Tuesday, March 3, 2026

Shrink disk size partition in terminal with parted resize

sudo umount /mnt/hdd


sudo partprobe /dev/sdX

sudo lsof +f -- /mnt/data

sudo fuser -vm /mnt/data


sudo systemctl stop transmission-daemon

sudo systemctl stop smbd nmbd

sudo systemctl stop nfs-server

sudo systemctl stop docker

sudo systemctl stop cups


kill PID


sudo umount /mnt/hdd

mount | grep sdX

NO OUTPUT > GOOD!


sudo dmesg | grep -i "Gbps"

sudo dmesg -w | grep -i "ata"

tail -f /var/log/syslog | grep -E "sd[a-z]|SMARTD"


sudo wipefs -a /dev/sdX

sudo parted /dev/sdX mklabel gpt

sudo parted /dev/sdX mkpart primary ext4 0GB 1050GB

sudo mkfs.ext4 -L "LABEL" /dev/sdX1


sudo parted /dev/sdX

mklabel gpt

unit GB

mkpart primary ext4 0 1050

quit

sudo mkfs.ext4 -L "LABEL" /dev/sdX1


sudo wipefs -a /dev/sdX

sudo parted /dev/sdX mklabel gpt

sudo parted /dev/sdX mkpart primary ext4 80GiB 100%

sudo mkfs.ext4 -L "LABEL" /dev/sdX1


sudo e2fsck -fC 0 /dev/sdX1 // not necessary


lsblk -f

sudo nano /etc/fstab


sudo mount /dev/sdX1 /mnt/storage

sudo chown -R $USER:$USER /mnt/storage

sudo parted /dev/sdX align-check optimal 1

Monday, March 2, 2026

KGet download and upload limit not working

nano ~/.bashrc

alias slowget='aria2c -c -x 16 -s 16 --file-allocation=prealloc --max-download-limit=1024K -o'

source ~/.bashrc

cd /desired/folder

slowget "file_0.avi" "URL"


If download fails:

slowget "file_0.avi" "NEW_URL" // to resume


Alternatives for using KGet:

E: Package 'trickle' has no installation candidate


sudo apt install firejail // 28.5 MB

firejail --net=eth0 --bandwidth=kget:1500:1500 kget


sudo wondershaper eth0 1500 1500 // NIC limit

Sunday, March 1, 2026

GA-970A-DS3P FX wake on lan not working on Lubuntu

Looks like WOL is Enabled by default, if Erp Disabled, and MB is made solely for Windows, where WOL is enabled in driver. Enabled Power On By Mouse, Power On By Keyboard just in case... No lights on LAN port but 2.5W power draw... If CPU Turbo mode is enabled, 3.5W power draw...

https://www.gigabyte.com/Motherboard/GA-970A-DS3P-FX-rev-21

Windows 8 Features > Other OS

CSM Support > Never

Boot Mode Selection > UEFI and Legacy

LAN PXE Boot Option ROM > Disabled

Storage Boot Option Control > Disabled

Network stack > Disabled

IOMMU Controller > Enabled


ON REMOTE/TARGER/HOST/SERVER PC:

sudo nano /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

GRUB_CMDLINE_LINUX_DEFAULT=""

sudo update-grub


sudo apt install openssh-server -y

sudo systemctl enable --now ssh


ip link

sudo ethtool enp3s0 | grep Wake

        Supports Wake-on: pumbg

        Wake-on: d

sudo ethtool -s enp3s0 wol g

sudo ethtool enp3s0 | grep Wake

        Supports Wake-on: pumbg

        Wake-on: g

BUT IF sudo reboot > Wake-on: d > sudo poweroff > Wake-on: d


nmcli connection show

sudo nmcli connection modify "Wired connection 1" 802-3-ethernet.wake-on-lan magic

sudo nmcli connection down "Wired connection 1" && sudo nmcli connection up "Wired connection 1"


Alternatives:

Option A — NetworkManager

Create a dispatcher script:

sudo nano /etc/NetworkManager/dispatcher.d/99-wol

Put:

#!/bin/sh

ethtool -s eth0 wol g

Make executable:

sudo chmod +x /etc/NetworkManager/dispatcher.d/99-wol

Reboot and check:

ethtool eth0 | grep Wake


Option B — systemd service

sudo nano /etc/systemd/system/wol.service

[Unit]

Description=Enable Wake-on-LAN

[Service]

Type=oneshot

ExecStart=/usr/sbin/ethtool -s eth0 wol g

[Install]

WantedBy=multi-user.target

sudo systemctl enable wol.service


ON CLIENT PC:

sudo apt install wakeonlan

wakeonlan [MAC_ADDRESS]

Sunday, February 22, 2026

KVM install and configuration on Kubuntu

sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager


groups                    List groups for the current user.

groups <username>   List groups for a specific user.

id <username>    Display UID, GID, and all group memberships.

cat /etc/group            Show all local groups and their members by reading a file.

getent group            List all groups from all configured databases.

sudo adduser $USER libvirt

Virtual Machine Manager > File > New Virtual Machine > Local Install Media (ISO image or CD-ROM)

If failed to create image, create image.qcow2 in storage location and then choose it for OS install.


sudo nano /etc/libvirt/qemu.conf

# Some examples of valid values are:

#

#       user = "qemu"   # A user named "qemu"

#       user = "+0"     # Super user (uid=0)

#       user = "100"    # A user named "100" or a user with uid=100

#

#user = "libvirt-qemu"


# The group for QEMU processes run by the system instance. It can be

# specified in a similar way to user.

#group = "kvm"


user = "your_username"

group = "your_username"


user = "your_username"

group = "libvirt"


sudo systemctl restart libvirtd


Network selection > Bridge device... > virbr0


ifconfig


On KDE couldn't turn off full screen with shortcuts... but right mouse button > tick full screen > untick full screen... Changing window size and position with shortcuts started working.


dpkg-query -W -f='${Installed-Size} \t ${Package}\n' virtualbox*

qemu-img convert -f vdi -O qcow2 /path/to/your/vm.vdi /path/to/new/vm.qcow2

sudo apt purge "virtualbox*"

sudo apt autoremove


Rescue mode without graphics:

sudo grub-install /dev/vda

sudo update-grub

Thursday, February 19, 2026

No truth - just approximation

What we’ve been circling around is **not new at all**. Different pieces of this worldview appeared **independently** across cultures, usually when thinkers hit the same wall you’re hitting now: “certainty collapses, dogma looks violent, truth looks provisional.”

Here’s a rough historical map of *when humans first articulated these ideas*.

Wednesday, February 18, 2026

Worst Human Dogmas

### 1. **“My group is chosen / superior / righteous”**

The nuclear reactor of evil.

* Justifies genocide, slavery, crusades, purges, and ethnic cleansing.

* Turns neighbors into “less than human.”

* Works with religion, race, nation, class, or ideology.

  **Body count: maximal.**

Tuesday, February 17, 2026

Android Studio sound problems on Kubuntu

Mucis palyers glitch when Android Studio emulator is running.

pw-top

pactl list short clients

cd ~/.android/avd

nano Medium_Phone_API_30.ini


avd.ini.encoding=UTF-8

path=/home/user/.android/avd/Medium_Phone_API_30.avd

path.rel=avd/Medium_Phone_API_30.avd

target=android-30

hw.audioInput = no

hw.audioOutput = no

audio.backend=none

Turning audio off NOT WORKING!!!


Before starting Android Studio:

export QEMU_AUDIO_DRV=none

Turning audio off NOT WORKING!!!


~/.android/avd$ emulator -avd Medium_Phone_API_30 -no-audio

Command 'emulator' not found, but can be installed with:

sudo apt install google-android-emulator-installer


emulator -avd Medium_Phone_API_30 -no-audio

PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT


Add to ~/.bashrc:

export ANDROID_HOME=$HOME/Android/Sdk

export ANDROID_SDK_ROOT=$ANDROID_HOME


Reload: source ~/.bashrc


emulator -avd Medium_Phone_API_30 -no-audio -verbose

Turning audio off WORKS!!!

pw-top