Hard drive upgrade with encryption in Ubuntu

sudo fdisk -l | grep Disk
lsblk 
sudo dd if=/dev/sda of=/dev/sdb status=progress bs=4m
sudo parted /dev/sda print 
sudo parted /dev/sda resizepart 4 100%
sudo cryptsetup luksOpen /dev/sda4 vgubuntu
sudo cryptsetup resize vgubuntu
sudo pvresize /dev/mapper/vgubuntu
sudo pvs
sudo vgs
sudo lvs
lvresize -l +100%FREE /dev/vgubuntu
e2fsck -f /dev/mapper/vgubuntu-root
resize2fs /dev/mapper/vgubuntu-root

x11VNC on raspberry Pi OS – possible! VNC server for remote access or screen sharing.

sudo apt update  
sudo apt install x11vnc
sudo nano /lib/systemd/system/x11vnc.service
[Unit]
Description=x11vnc service
After=display-manager.service network.target syslog.target

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -forever -display :0 -auth guess -passwd password
ExecStop=/usr/bin/killall x11vnc
Restart=on-failure

[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload 
sudo systemctl enable x11vnc.service 
sudo systemctl start x11vnc.service 
systemctl status x11vnc.service