Application | Description |
---|---|
aseprite | Pixel art tool |
blueman | Bluetooth manager |
evince | Document viewer |
flameshot | Screenshot capture |
gnome-disks | Tool to manage storage devices |
heroic | Epic Games Store launcher |
itch | itch.io game launcher |
lutris | Wine, Steam, etc game launcher |
Mission Center | Monitor your CPU, Memory, Disk, Network and GPU usage |
obs | Tool to record video and perform live streaming |
pcmanfm | File manager |
piper | Configure mouse DPI |
resources | Monitor your system resources and processes |
retroarch | ROM game and emulator launcher |
seahorse | Tool to manage the Gnome keyring |
solaar | Manage Logitech unifying receivers and devices |
uhubctl | USB hub per-port power control |
usb-creator-gtk | Tool to write ISO files to USB storage devices |
Application | Description |
---|---|
Betterlockscreen | Lockscreen for X11 |
BSPWM | Tiling window manager for X11 (ansible-role-bspwm) |
clipboard | TUI clipboard manager |
ElKowars wacky widgets (EWW) | Bar for X11 and Wayland |
Hyprland | A dynamic tiling Wayland compositor |
Ly | Display manager |
River WM | Dynamic tiling Wayland compositor |
Rofi | Window switcher, application launcher and dmenu replacement |
Stalonetray | System tray for X11 |
Sway WM | i3-compatible Wayland compositor |
Waybar | Bar for Wayland |
Command | Description |
---|---|
atop | AT Computing's System & Process Monitor |
htop | ncurses-based process viewer for Linux |
iftop | A real-time console-based network bandwidth monitoring tool |
intel_gpu_top, nvtop, radeontop | Monitor graphics devices |
iostat | CPU and input/output statistics for devices and partitions |
lsof | Lists on its standard output file information about files opened by processes |
mtr | Combines the functionality of the traceroute and ping programs in a single network diagnostic tool |
nethogs | Net top tool grouping bandwidth per process |
netstat | Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships |
pidstat | Monitor individual tasks currently being managed by the Linux kernel |
powertop | Power consumption and power management diagnosis tool |
sensors | Print temperature sensors information |
vmstat | Report virtual memory statistics |
# Monitor a process' utilization
pid=$(ps -e|grep filectrl|cut -f1 -d' ');pidstat -h -r -u -v -p $pid 10
grep -li ${SEARCH_TEXT} /usr/share/applications/*.desktop
# or
dpkg -l | grep ${SEARCH_TEXT}
# eg.
$ grep -li music /usr/share/applications/*.desktop
/usr/share/applications/spotify.desktop
sudo apt-get install apt-file
apt-file update
apt-file search ${pattern}
Default application associations can be configured in:
Path | Usage |
---|---|
~/.config/mimeapps.list |
user overrides |
/etc/xdg/mimeapps.list |
system-wide overrides |
/usr/local/share/applications/mimeapps.list , /usr/share/applications/defaults.list , /usr/share/applications/mimeapps.list |
distribution-provided defaults |
Desktop applications and their .desktop
files are located in:
Path | Usage |
---|---|
~/.local/share/applications/ |
user applications |
/usr/share/applications/ |
system-wide applications |
~/.local/share/flatpak/exports/share/applications/ |
Flatpak --user applications |
/var/lib/flatpak/exports/share/applications/ |
Flatpak --system applications |
# Use a TUI program to set default association
apt install libfile-mimeinfo-perl
mimeopen -d existing.pdf
# Get the mimetype for a given file:
xdg-mime query filetype existing.pdf
> application/pdf
# Check system-wide default:
vim /usr/share/applications/defaults.list
# Check the current default application:
xdg-mime query default application/pdf
# List all applications
find /usr/share/applications/ \
/usr/share/applications/ \
~/.local/share/flatpak/exports/share/applications/ \
/var/lib/flatpak/exports/share/applications/ \
-iname '*.desktop' \
-exec basename {} \;|sort|uniq
# Set a new default application:
xdg-mime default org.gnome.Evince.desktop application/pdf
# View the override created above:
vim ~/.config/mimeapps.list
sudo apt purge evolution* language-selector-gnome whoopsie*
# Remove Snap
sudo rm -rf /var/cache/snapd/
sudo apt remove --purge snapd gnome-software-plugin-snap speech-dispatcher
sudo apt-mark hold snapd
rm -rf ~/snap
# Free up disk-space
sudo apt autoremove && sudo apt clean
# Uninstall other unnecessary programs
sudo apt remove --purge tracker-miner-fs
# Exec into the container
flatpak enter org.mozilla.firefox bash
# Debug and possibly fix Firefox downloads not saving to the ~/Downloads folder outside of the sandbox
flatpak permission-show org.mozilla.firefox
flatpak permission-reset org.mozilla.firefox
sudo sed -i 's/^\(Prompt\s*=\s*\)\w\+/\1normal/g' /etc/update-manager/release-upgrades
sudo do-release-upgrade
sudo sed -i 's/^\(Prompt\s*=\s*\)\w\+/\1never/g' /etc/update-manager/release-upgrades
echo -n "" > /var/lib/ubuntu-release-upgrader/release-upgrade-available
Use dconf watch /
to monitor changes.
Using dconf:
@au [] specifies the type of the empty array (which would not parse otherwise)
# Remove language switcher keyboard shortcut
dconf write /org/gnome/desktop/wm/keybindings/switch-input-source '@au []'
# Disable "Intelligent Input Bus Daemon"
dconf write /org/gnome/settings-daemon/plugins/keyboard/active false
# Restart (replace) ibus-daemon
ibus-daemon -rd
Using dconf-editor:
apt install dconf-editor
dconf-editor
# Navigate to: /org/gnome/desktop/wm/keybindings/switch-input-source
# Set to []
Force reboot an unresponsive system.
ALT + SHIFT + PRINT SCR + R E I S U B
unRaw (take control of keyboard back from X),
tErminate (send SIGTERM to all processes, allowing them to terminate gracefully),
kIll (send SIGKILL to all processes, forcing them to terminate immediately),
Sync (flush data to disk),
Unmount (remount all filesystems read-only),
reBoot.
# /etc/fstab
//$HOSTNAME/stuff /media/nas cifs defaults,guest,ro 0 0
Mount a subdirectory of a share as a non-root user
# /etc/fstab
# vers=1.0 is necessary for Samba to support Unix extnsions:
# https://askubuntu.com/a/995142
//$HOSTNAME/homes/src /home/andornaut/src cifs vers=1.0,user,uid=andornaut,gid=andornaut,credentials=/home/andornaut/.smb_credentials_on_$HOSTNAME,nofail 0 0
sudo env "PATH=$PATH" command
$ echo '
fs.file-max = 100000
fs.inotify.max_user_watches = 524288' | sudo tee -a /etc/sysctl.conf
$ sudo sysctl -pf
timedatectl set-ntp false
timedatectl set-time "2016-06-20 10:00:00"
timedatectl set-time "10:00:00"
timedatectl set-ntp true
hdparm -I /dev/sdX (result: Security:not enabled)
hdparm --user-master u --security-set-pass PasSWorD /dev/sdX
hdparm -I /dev/sdX (result: Security:enabled)
hdparm --user-master u --security-erase PasSWorD /dev/sdX
hdparm -I /dev/sdX (result: Security:not enabled)
sudo debconf-show ${packageName}
# or
sudo debconf-get-selections|grep -i ${packageName}
Add the following to /etc/sudoers.d/power
:
%adm ALL=NOPASSWD: /sbin/halt, /sbin/poweroff, /sbin/reboot
- LiveCdRecovery - Chroot an Ubuntu ISO on a USB drive
mount /dev/sda1 /mnt \
mount --bind /dev /mnt/dev \
mount --bind /proc /mnt/proc \
mount --bind /sys /mnt/sys \
chroot /mnt
grub-install /dev/sda
umount /mnt/proc/ /mnt/dev /mnt/sys /mnt
This error occurs when running apt update
on an unsupported version of Ubuntu.
sudo sed -i -e 's/\([a-z]*.\?\)\?archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
- Permit access to the symlink source by editing
/etc/apparmor.d/local/usr.bin.redshift
:
owner @{HOME}/PATH_TO_VAULT/redshift.conf r,
- Restart AppArmor:
sudo systemctl reload apparmor
This can be caused by accessing the "Sound" section/tab of Gnome Control Center on an installation provisioned by ansible-workstation.
rm -rf .config/dconf/
RSA SHA-1 is deprecated starting in Ubuntu 22.04. Re-enable it by adding the following
to /etc/ssh/ssh_config
:
Host *
# ...
PubkeyAcceptedKeyTypes +ssh-rsa
dmesg output:
ch341 2-3:1.0: ch341-uart converter detected
usb 2-3: ch341-uart converter now attached to ttyUSB0
input: BRLTTY 6.4 Linux Screen Driver Keyboard as /devices/virtual/input/input21
usb 2-3: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1
ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
Disable brltty:
sudo systemctl stop brltty-udev brltty
sudo systemctl disable brltty-udev brltty
sudo systemctl mask brltty-udev brltty
sudo apt remove --purge brltty*