Daily Weekly Monthly

Daily Shaarli

All links of one day in a single page.

August 20, 2024

How to Install Deb Files/Packages on Ubuntu 24.04 - Linux Genie

I couldn't install deb files with the GUI, it said that it couldn't satisfy the dependencies.

sudo dpkg -i package.deb
How to Enable Hibernate Function in Ubuntu 24.04 & 22.04 LTS | UbuntuHandbook

command:

systemctl hibernate

I created my swap partition like this: https://links.lburgy.ch/shaare/WSOAMQ

On Kubuntu 24.04, create the file /etc/polkit-1/rules.d/10-enable-hibernate.rules with this content:

polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.login1.hibernate" ||
        action.id == "org.freedesktop.login1.hibernate-multiple-sessions" ||
        action.id == "org.freedesktop.upower.hibernate" ||
        action.id == "org.freedesktop.login1.handle-hibernate-key" ||
        action.id == "org.freedesktop.login1.hibernate-ignore-inhibit")
    {
        return polkit.Result.YES;
    }
});

https://www.reddit.com/r/Kubuntu/comments/1c2frkd/enabling_hibernation_on_2404/

How to Create Swap Partition in Linux - idroot

In fstab, I used this instead:

/dev/nvme0n1p6 swap swap defaults 0 0

I also had to do this (on 24.04):
https://community.frame.work/t/responded-ubuntu-24-04-and-hibernation-fw-13-12th-gen/51626/4

  1. Add resume=/dev/nvme0n1p6 to the GRUB_CMDLINE_LINUX_DEFAULT line of /etc/default/grub
  2. Update grub with sudo update-grub