cleaning up file names and trying macros for gollum
This commit is contained in:
parent
eac217b41a
commit
02c58f39e5
9 changed files with 8 additions and 8 deletions
73
Linux/ubuntu-notes.md
Normal file
73
Linux/ubuntu-notes.md
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
# GRUB
|
||||
|
||||
| Commands | What it does |
|
||||
|:--------:|:------------:|
|
||||
| sed -i 's/^GRUB_CMDLINE_LINUX_DEFAULT="/&option /' /etc/default/grub | adds kernel option to GRUB file |
|
||||
|
||||
Replace &option with the kernel param like quiet or similar.
|
||||
|
||||
> *NOTE:* you will need to run this command when making changes to GRUB's file before rebooting:
|
||||
|
||||
```bash
|
||||
sudo update-grub
|
||||
```
|
||||
|
||||
Editing the /etc/default/grub file and changing the GRUB_DEFAULT line to match this will boot the previous kernel as the default:
|
||||
|
||||
GRUB_DEFAULT="1>3"
|
||||
|
||||
Run the update-grub command to save that change.
|
||||
|
||||
## fwupd
|
||||
|
||||
| Commands | What it does |
|
||||
|:--------:|:------------:|
|
||||
| fwupdmgr get-devices | List devices supported by fwupd |
|
||||
| fwupdmgr get-updates | Perform updates to devices supported by fwupd |
|
||||
https://wiki.archlinux.org/title/fwupd
|
||||
|
||||
## Ubuntu/Pop
|
||||
|
||||
### apt/dpkg
|
||||
|
||||
| Commands | What it does |
|
||||
| :------------------------------------------------------: | :--------------------------------------------------: |
|
||||
| apt policy packagename | Package information |
|
||||
| apt-cache madison packagename | List available versions for a package |
|
||||
| sudo apt install packagename –dry-run | See what packages will be installed with the package |
|
||||
| apt policy packagename | Find version installed and available |
|
||||
| sudo dpkg --remove --force-remove-reinstreq package_name | Remove broken package |
|
||||
| sudo apt-mark hold packagename | Hold a package to the current version |
|
||||
| dpkg --list | grep linux-image |
|
||||
| apt list --installed | grep packagename |
|
||||
## kernel commands
|
||||
|
||||
| Commands | What it does |
|
||||
| ------------------------------------------- | ------------------------------------------- |
|
||||
| sudo update-initramfs -c -k *kernelversion* | Generate a new initramfs image with version |
|
||||
|
||||
# [flatpak](https://docs.flatpak.org/en/latest/using-flatpak.html)
|
||||
|
||||
| Commands | What it does |
|
||||
|:--------:|:------------:|
|
||||
| flatpak update | Update flatpak packages |
|
||||
| flatpak list | Show the installed flatpak packages |
|
||||
| flatpak search | Search flatpak packages from sources |
|
||||
| flatpak remotes | List Flatpak remotes (other servers) |
|
||||
|
||||
# Plasma
|
||||
|
||||
| Commands | What it does |
|
||||
|:--------:|:------------:|
|
||||
| kioclient exec path/to/desktop/file | Runs the .desktop file |
|
||||
|
||||
# GNOME
|
||||
|
||||
## GSettings
|
||||
|
||||
| Commands | What it does |
|
||||
| :------: | :----------: |
|
||||
| gsettings set org.gnome.desktop.interface scaling-factor 2 | Change scaling for the UI |
|
||||
| gsettings set com.ubuntu.user-interface.desktop cursor-size 48 | Enlarge cursor |
|
||||
| gsettings set org.gnome.desktop.background picture-uri 'file://PathToImage' | Change wallpaper |
|
||||
| gsettings set org.gnome.desktop.wm.preferences button-layout "appmenu:minimize,maximize,close" | Enable Minimize and Maximize buttons |
|
||||
Loading…
Add table
Add a link
Reference in a new issue