Tuesday, February 3, 2026

Connect to Kubuntu from Android via Termux

1. Preparations on your Kubuntu 24.04 PC

    Enable Remote Desktop: Go to System Settings > System > Remote Desktop. Enable "Desktop Sharing" (VNC) or "Remote Login" (RDP).

    sudo apt update && sudo apt install openssh-server.

    To find your PC's local IP address (e.g., 192.168.1.10):

    ip addr  OR ip addr  | grep inet    

2. Installation on Termux (Android)

Install OpenSSH client to create the secure bridge:

    pkg update && pkg upgrade

    pkg install openssh

    Create the Tunnel: Use this command to forward your PC's remote desktop port to your phone.

        For RDP (Recommended): ssh -L 3389:localhost:3389 user@your_pc_ip

        For VNC: ssh -L 5901:localhost:5901 user@your_pc_ip

        (Keep this Termux session running in the background).

3. Connecting to the Desktop

Once the tunnel is active, you do not use Termux to view the screen; you use a dedicated app to connect to the "tunnel" Termux created.

    Download a Client: Install aRDP from Play Store or F-Droid.

    Configure the Connection:

        PC Name / Host: 127.0.0.1 (or localhost).

        Port: If the app asks, use 3389 (RDP) or 5901 (VNC).

    Login: Use your standard Kubuntu username and password.

If you get a black screen when connecting via RDP, ensure you are logged out of the physical PC first. Kubuntu's current RDP implementation often prevents simultaneous local and remote sessions for the same user.

Monday, February 2, 2026

Mobile phone control on PC with scrcpy Screen Copy

Control Android phone from a Kubuntu PC with full GUI and app access

  Setup on Android:

        Go to Settings > About Phone and tap "Build Number" 7 times to enable Developer Options.

        In Developer Options, enable USB Debugging.

    Connect: Plug your phone into your PC via USB.

sudo apt install scrcpy adb

scrcpy

scrcpy 1.25 <https://github.com/Genymobile/scrcpy>

/usr/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 96.3 MB/s (41650 bytes in 0.000s)

[server] INFO: Device:


Once connected via USB once, you can switch to Wi-Fi by running

scrcpy --tcpip=PHONE_IP_ADDRESS


https://github.com/Genymobile/scrcpy

https://www.youtube.com/watch?v=FBicaEkweOs

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. 

Thursday, January 29, 2026

mpv - best light video media player for Linux

mpv file1.mp4 file2.mp4

mpv /path/to/folder/

mpv --playlist=my_list.m3u


Play/Pause: Space or p

Fullscreen: f (or Esc to exit)

Seek: Left / Right arrows (5 seconds) or Up / Down arrows (1 minute)

Volume: 9 (decrease) and 0 (increase)

Subtitles: j to cycle through subtitle tracks; v to toggle visibility

Audio: # to cycle through audio tracks

Quit: q (to close) or Q (to save the current position for the next time you open the file)


View Playlist F8 (opens an on-screen overlay)

Next File > or Enter

Previous File <

First/Last File Shift + Home / Shift + End

Loop Playlist Map L to cycle-values loop-playlist inf no in input.conf


3 videos

mpv --lavfi-complex="[vid1][vid2][vid3]hstack=inputs=3[vo];[aid1][aid2][aid3]amix=inputs=3[ao]" input1.mkv --external-files="input2.mkv;input3.mkv"


2 videos

mpv --lavfi-complex="[vid1][vid2]hstack[vo];[aid1][aid2]amix[ao]" input1.mkv --external-file=input2.mkv


2x2 grid (4 IP cams)

mpv --lavfi-complex="\

[vid1][vid2]hstack[top]; \

[vid3][vid4]hstack[bottom]; \

[top][bottom]vstack[vo]" \

"URL1" \

--external-file="URL2" \

--external-file="URL3" \

--external-file="URL4"


Several IP webcams in one window

mpv http://192.168.1.10:8080/video

i

fps: 25


mpv \

--no-correct-pts --container-fps-override=25 \

--lavfi-complex="[vid1][vid2]hstack[vo]" \

"http://192.168.1.10:8080/video" \

--external-file="http://192.168.1.10:8080/video"

Wednesday, January 28, 2026

cmus - Console Music Player for Linux command line

Shift + C, R to play playlist in loop.

Tab to focus cursor on playlist name * default

:clear into the command line at the bottom of the screen to empty playlist.

y to add selected folders or tracks to playlist

+ - to change volume

p - change track position down

1 2 3 (Playlist) 4 5 (Browser) 6 7 (Keybindings)

:set resume=true - resume playback from current position (don't work as expected)

:quit - exit and close player

https://github.com/cmus/cmus/blob/master/Doc/cmus-tutorial.txt