linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux [2024/01/22 21:26] – [Suspend and Hibernation] dblume | linux [2025/01/09 10:06] (current) – dblume | ||
---|---|---|---|
Line 11: | Line 11: | ||
sudo apt install exuberant-ctags cscope moreutils | sudo apt install exuberant-ctags cscope moreutils | ||
- | Now that you have vim and git: | + | Now that you have vim and git, get [[https:// |
| | ||
git clone ssh:// | git clone ssh:// | ||
Line 21: | Line 21: | ||
sudo apt install tmux entr | sudo apt install tmux entr | ||
tmux | tmux | ||
- | sudo apt install curl jq tree expect gnuplot httpie visidata | + | sudo apt install curl jq tree expect gnuplot httpie visidata |
sudo apt install python3-pip | sudo apt install python3-pip | ||
python3 -m pip install matplotlib | python3 -m pip install matplotlib | ||
Line 74: | Line 74: | ||
I put the krita appimage in ''/ | I put the krita appimage in ''/ | ||
+ | |||
+ | ===== DejaVu Sans for Powerline Font ===== | ||
+ | |||
+ | First install the Powerline Font: | ||
+ | |||
+ | git clone --filter=blob: | ||
+ | cd fonts | ||
+ | ./ | ||
+ | |||
+ | Then your terminal emulator can use it. | ||
===== i3 ===== | ===== i3 ===== | ||
The [[https:// | The [[https:// | ||
+ | |||
+ | ==== Install Alacritty ==== | ||
+ | |||
+ | gnome-terminal won't distinguish between C-i and Tab, so [[https:// | ||
+ | |||
==== Configuration ==== | ==== Configuration ==== | ||
Line 97: | Line 112: | ||
xinput set-prop " | xinput set-prop " | ||
xinput set-prop " | xinput set-prop " | ||
+ | xinput set-prop " | ||
</ | </ | ||
Line 180: | Line 196: | ||
Enable suspend-then-hibernate. To hibernate, [[https:// | Enable suspend-then-hibernate. To hibernate, [[https:// | ||
- | * [[https://community.frame.work/t/resolved-amd-framework-arch-linux-suspend-wakes-every-5-minutes/39022|[RESOLVED] AMD Framework - Arch Linux - Suspend wakes every 5 minutes]] | + | I had a 2GiB /swapfile, and this is how I resized it: |
- | * [[https://community.frame.work/t/responded-amd-hot-while-suspended-in-suspend-then-hibernate/39050|[RESPONDED] AMD - Hot while suspended | + | <code bash> |
+ | ~$ sudo swapoff | ||
+ | ~$ sudo dd if=/dev/zero of=/ | ||
+ | ... | ||
+ | ~$ sudo mkswap | ||
+ | ~$ sudo swapon | ||
+ | </ | ||
+ | Then it became time to update the kernel boot params again with the UUID of the volume with the swapfile, and the physical offset of the swapfile. | ||
+ | <code bash> | ||
+ | $ blkid | ||
+ | / | ||
+ | |||
+ | $ sudo filefrag | ||
+ | Filesystem type is: ef53 | ||
+ | File size of /swapfile is 34359738368 (8388608 blocks of 4096 bytes) | ||
+ | | ||
+ | | ||
+ | </code> | ||
+ | That means, in my case, I add this to '' | ||
+ | < | ||
+ | resume=UUID=de9f6aca-85a1-461b-b8b8-15f44441f64d resume_offset=1257472 | ||
+ | </code> | ||
+ | Don't forget to '' | ||
+ | |||
+ | Then I enabled this line in | ||
+ | <file bash / | ||
+ | HandleLidSwitch=suspend-then-hibernate | ||
+ | </ | ||
- | Everything is still commented out in ''/ | + | Everything is still commented out in ''/ |
==== Future Config Tips ==== | ==== Future Config Tips ==== | ||
Line 228: | Line 271: | ||
[[https:// | [[https:// | ||
+ | ====== Distro Upgrade ====== | ||
+ | Software Updater: "Not enough free disk space" | ||
+ | Thread at Slack. First try "sudo apt-get autoremove --purge", | ||
+ | |||
+ | < | ||
+ | $ dpkg --list | egrep "^ii +(linux-image|linux-headers)" | ||
+ | ii linux-headers-5.11.0-46-generic | ||
+ | ii linux-headers-5.13.0-52-generic | ||
+ | ii linux-headers-5.15.0-58-generic | ||
+ | ii linux-headers-5.15.0-60-generic | ||
+ | ii linux-headers-5.4.0-42 | ||
+ | ii linux-headers-5.4.0-42-generic | ||
+ | ii linux-headers-5.8.0-63-generic | ||
+ | ii linux-headers-generic-hwe-20.04 | ||
+ | ii linux-image-5.15.0-58-generic | ||
+ | ii linux-image-5.15.0-60-generic | ||
+ | ii linux-image-generic-hwe-20.04 | ||
+ | </ | ||
+ | |||
+ | And then choose the old ones (comparing with what's on /boot) to manually remove... | ||
+ | |||
+ | < | ||
+ | df -h /boot | ||
+ | ls -l /boot | ||
+ | # Install aptitude to see why it was installed... (Output wordy, says whether manually installed, dependencies) | ||
+ | aptitude why -v linux-headers-5.11.0-46-generic | ||
+ | |||
+ | sudo apt purge linux-headers-5.11.0-46-generic | ||
+ | </ |
linux.1705987568.txt.gz · Last modified: 2024/01/22 21:26 by dblume