homehowtokbslinksaboutcontactprojectsmusic

Index > Knowledge Base > Linux Cheatsheet
Find all symlinks
find -type l
Delete all symlink
find -type l -delete
re-run rules in ubuntu
udevadm control --reload-rules && udevadm trigger
rule to mount CD/DVD on insert
ACTION=="change", KERNEL=="sr[0-9]*", ENV{ID_CDROM_DVD}=="1", ENV{ID_CDROM_MEDIA_STATE}=="complete", ENV{ID_FS_TYPE}=="udf", RUN+="/usr/local/bin/cdmount"
ACTION=="change", KERNEL=="sr[0-9]*", ENV{ID_CDROM_DVD}=="1", ENV{ID_CDROM_MEDIA_STATE}=="complete", ENV{ID_FS_TYPE}=="iso9660", RUN+="/usr/local/bin/cdmount"
above linked script
#!/bin/bash

sleep 4

if ! mount | grep -q /dev/sr0; then
  mount /dev/sr0 /media/cdrom0
fi
Install Lubuntu minimal from command line
sudo apt-get install lubuntu-core
Or
sudo apt-get install lubuntu-core --no-install-recommends
Install Ubuntu mate core
apt install ubuntu-mate-core --no-install-recommends
Create USB bootable to install Ubuntu 20 LTS, with progress switch (assuming /dev/sdc is your stick, adjust if needed)
sudo dd if=~/Downloads/ubuntu-20.04.1-desktop-amd64.iso of=/dev/sdc bs=1M status=progress
With progress bar using PV and dialong (may need to install packages)
apt install pv dialog
(pv -n /home/ryaz/Downloads/ubuntu-20.04.1-desktop-amd64.iso | dd of=/dev/sdc bs=1M conv=notrunc,noerror) 2>&1 | dialog --no-shadow --gauge "Running dd command, please wait...." 10 70 0