Showing posts with label crash. Show all posts
Showing posts with label crash. Show all posts

Tuesday, March 3, 2026

Shrink disk size partition in terminal with parted resize

The Victory Lap: 851GB shrinked drive (Stable), 323GB 4256-sector slop (Webcam Trash), screaming shrinked 978GB 2005-sector zombie (Torrent Sacrifice). Successfully built "Post-Apocalyptic" Storage Array out of pure e-waste. It's chatty, it spams errors - but it's moving 110MB/s and cost $0.

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

Friday, February 13, 2026

Root access for Android 4.4 injecting su

lsusb

sudo apt install android-tools-adb

adb devices

adb pull / /$HOME/Videos

adb shell

Wednesday, February 11, 2026

Root access for Android 5.1 with Magisk 22.1-22100

Install Magisk on phone, copy boot.img

Launch Magisk > Install > Select boot.img

DO NOT TICK AVB 2.0 for Android 5.1

adb pull storage/sdcard0/download/magisk_patched.img /home/user/Downloads

BACKUP YOUR DATA!!!

adb reboot bootloader

fastboot devices -l

0123456789ABCDEF       fastboot

usb:5-1

fastboot getvar unlocked

unlocked: no

Finished. Total time: 0.002s

sudo fastboot oem unlock

Press Volume Up on phone (READ MESSAGE!!!)

Shows ==> Fastboot... No need to do anything.

sudo fastboot devices

[sudo] password for user:

0123456789ABCDEF         fastboot

cd ~/Donwloads

ls

sudo fastboot flash boot magisk_patched.img

Sending 'boot' (16384 KB)                          OKAY [  0.464s]

Writing 'boot'                                     OKAY [  2.210s]

Finished. Total time: 2.689s

sudo fastboot reboot

DO EVERYTHING AT YOUR OWN RISK!

Tuesday, February 10, 2026

Linux firewall ufw settings for local PC

sudo ufw enable

sudo ufw default deny incoming


sudo ufw allow from 192.168.1.0/24 to any port *****

sudo ufw allow from 192.168.1.0/24 to any port ***** proto udp

sudo ufw allow from 192.168.1.0/24 to any port ****

sudo ufw allow from 192.168.1.0/24 to any port 22

sudo ufw allow from 192.168.1.0/24 to any port 3389

sudo ufw allow from 192.168.1.0/24 to any port 445 proto tcp


sudo ufw status verbose


ss -tulpn

upnpc -l

curl ifconfig.me // compare with PC public ISP IP

nmap -p **,****,***** IP-address (check PC and ISP)

ip a

ip -4 addr

ip -6 addr // global address (not fe80::)

nmap -6 -p ****,***** YOUR_IPV6

Friday, February 6, 2026

Sound problems, audio glitches on Kubuntu

cmus playing music. Audio glitches when turning on monitor after sleep. analog-stereo.

Firefox playing Youtube. Monitor speakers - hdmi-stereo. Sound glitches.

journalctl --user -f | grep -i pipewire // shows nothing

pw-top // to see the current quantum and latency in real-time.

Sunday, February 1, 2026

SP Flash Tool segmentation fault on Kubuntu 24.04

Can't readback large ROMs from phone? Solution:

1. Disable ModemManager

Linux's ModemManager often tries to grab the phone's port because it detects a serial device (/dev/ttyACM0). This causes the connection to drop and SP Flash Tool to crash.

Temporarily stop :

    sudo systemctl stop ModemManager

    sudo systemctl disable ModemManager

2. Check udev Rules

Kubuntu needs to be told to ignore the MediaTek device to prevent the kernel from interfering.

Create a new udev rule file:

    sudo nano /etc/udev/rules.d/20-mm-blacklist-mtk.rules

Add this line to tell ModemManager to ignore your device:

    ATTRS{idVendor}=="0e8d", ENV{ID_MM_DEVICE_IGNORE}="1"

    Add another rule for user permissions:

    SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", MODE="0666"

Reload rules:

    sudo udevadm control --reload-rules

    sudo udevadm trigger

Saturday, January 31, 2026

Copy and boot Linux partition on same SSD disk

Install Ventoy on USB stick. https://www.ventoy.net/en/download.html

Copy Resquezilla.ISO to USB flash drive. https://rescuezilla.com/download


Boot from USB stick and choose Resquezilla.ISO.

BACKUP PARTITIONS BEFORE DOING ANYTHING!


Close Resquezilla and open PartedMagic. https://partedmagic.com/

Resize necessary partition, making space for copy.

Copy selected partition.

Delete original partition.

Reboot


DO EVERYTHING AT YOUR OWN RISK!


blkid

lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINTS,UUID,PARTUUID

lsusb

mount

sudo fdisk -l

sudo hdparm -i /dev/sda

Friday, January 30, 2026

Create SSD disk image & restore clone on Kubuntu

Rescuezilla is widely considered the best choice because it provides a modern graphical interface (GUI) while remaining fully compatible with Clonezilla, the industry standard for disk imaging. 

    Why it's better than others: Unlike built-in tools like dd, Rescuezilla handles partition resizing, skips unused space to save time/storage, and is highly unlikely to fail due to simple user errors.

    Emergency Readiness: The resulting image file can be restored to a brand-new SSD of equal or larger size, and your system will boot exactly as it did before. 

Tuesday, January 27, 2026

Do not remove Baloo on Kubuntu - disable

apt list --installed | grep -i baloo

dpkg -l | grep -i baloo

balooctl status

Baloo is currently disabled. To enable, please run balooctl enable

System Settings > Search > File Search, "Enable File Search" is unchecked.

Sunday, January 18, 2026

POSIX ACL no ownership changes instead of chown and chmod

ACLs let you say: “This specific user can read here — without touching owner/group logic.”

Linux ACLs (setfacl, getfacl) rely on POSIX filesystem features.

NTFS is a Windows filesystem, so:

It has its own ACL model (Windows-style)

Linux NTFS driver (ntfs-3g) fakes permissions

There is no real POSIX ACL storage

Saturday, January 17, 2026

Scanning HDD surface test on Linux

To scan the surface of a hard disk drive (HDD) for bad sectors in the Ubuntu terminal, the most direct command-line tool is **`badblocks`**. It performs a thorough surface scan by reading (and optionally writing) to every block on the drive.

Friday, January 16, 2026

smartctl do not show all SMART parameters for USB-drive

smartctl often shows fewer or limited SMART parameters for USB-connected drives (external HDDs/SSDs in enclosures or via adapters) compared to internal SATA/NVMe drives. This happens mainly because USB drives use a bridge chip (USB-to-SATA or USB-to-NVMe) that translates commands between USB (typically SCSI-based) and the internal drive's ATA/NVMe protocol.

Tuesday, January 6, 2026

Ubuntu 14 remote desktop Kubuntu 24.04 Plasma 5

Ubuntu 14

sudo apt install krdc


Kubuntu 24.04 Server with Plasma 5.27

sudo apt install xrdp

sudo adduser xrdp ssl-cert

sudo systemctl restart xrdp

Monday, January 5, 2026

NoMachine remote desktop with full access to PC

NOT OPEN SOURCE

sudo dpkg -i nomachine_9.3.7_1_amd64.deb

[sudo] password for user:

Selecting previously unselected package nomachine.

(Reading database ... 340752 files and directories currently installed.)

Preparing to unpack nomachine_9.3.7_1_amd64.deb ...

Unpacking nomachine (9.3.7-1) ...

Setting up nomachine (9.3.7-1) ...

NX> 700 Starting installation at: Tue, 30 Dec 2025 21:02:12.

NX> 700 Using installation profile: Ubuntu.

NX> 700 Installation log is: /usr/NX/var/log/install.log.

NX> 700 Installing nxrunner version: 9.3.7.

NX> 700 Installing nxplayer version: 9.3.7.

NX> 700 Installing nxnode version: 9.3.7.

NX> 700 Installing nxserver version: 9.3.7.

NX> 700 Installation completed at: Tue, 30 Dec 2025 21:02:27.

NX> 700 NoMachine was configured to run the following services:

NX> 700 NX service on port: 4000

Sunday, January 4, 2026

Windows 7 PC remote desktop Kubuntu 24.04 Plasma 5

The "not applicable" error when trying to install **KB2592687** (RDP 8.0 update) on your Windows 7 machine usually means one (or more) of these common issues:

Saturday, January 3, 2026

No sound on X2Go client with Kubuntu 24.04 server

On Ubuntu 14.04 LTS client old laptop

(X2Go audio forwarding over an SSH tunnel to localhost)

By default, the module binds to all interfaces (0.0.0.0 — meaning it could accept connections from anywhere on the network).

Adding listen=127.0.0.1 forces it to bind only to the loopback interface (localhost). This is a common security recommendation when you only need local/tunneled connections (like X2Go does), to prevent accidental exposure to the real network.

In practice, for localhost-only use, it's optional because the default port (4713) isn't usually exposed externally anyway, but it's "safer".

sudo nano /etc/pulse/default.pa

### Network access

load-module module-native-protocol-tcp listen=127.0.0.1 auth-ip-acl=127.0.0.1 auth-anonymous=1

ABOVE LINE IS SOLUTION IN MY CASE

pulseaudio --kill

pulseaudio --start

pactl info

You should see Server String... and so on... if access denied, smth is wrong. 

No need to add client user to audio group!

Friday, January 2, 2026

X2Go Server and Client for old notebook browsing

Always log out of your local session!

Setup (Kubuntu PC)

sudo apt install x2goserver x2goserver-xsession

Laptop

Ubuntu → sudo apt install x2goclient

Win7 → install X2Go Client for Windows

Result

Browser runs on Kubuntu PC

Laptop just displays it

Laptop load ≈ negligible

Ctrl + Alt + F - toggle full screen

Monday, June 2, 2025

Ubuntu GRUB not loading - boot manager repair

1. Check if Linux is in MB BIOS. Del or F11 and choose boot priority: 1. Ubuntu, 2. Windows.

2. If no GRUB (GRand Unified Bootloader), boot Linux from MB boot menu F11.

3. No boot from /boot/efi partition? Boot from USB drive > Try Kubuntu.

Sunday, June 1, 2025

Local ChatGPT alternative AI models

https://huggingface.co/mradermacher/LLama-3-8b-Uncensored-GGUF

https://huggingface.co/TheBloke/CapybaraHermes-2.5-Mistral-7B-GGUF/resolve/main/capybarahermes-2.5-mistral-7b.Q5_K_M.gguf

https://huggingface.co/TheBloke/Nous-Hermes-Llama-2-7B-GGUF/resolve/main/nous-hermes-llama-2-7b.Q5_K_M.gguf