• 1 Post
  • 15 Comments
Joined 1 year ago
cake
Cake day: July 10th, 2023

help-circle
  • Synthead@lemmy.mltoLinux@lemmy.mlThe Linux experice
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    If the package manager leaves you with broken dependencies, a broken system, or a system that “doesn’t work,” then there are significant bugs in how the distro has packaged things. It happens, but seldomly.

    Package managers aren’t “hard.” There are GUIs where you can search and install packages, even. In my opinion, if you have a Linux user that has avoided learning how package managers work, then they’re skipping a core foundation of how to use their operating system.




  • Also, how are you starting it? I’m looking at the Arch package in the AUR (not your distro, but just looking), and I notice that it includes a .service file. This means that it would be started as a service, and not as a user, like you’re probably attempting to do.






  • Synthead@lemmy.mltoLinux@lemmy.mlWhat exactly does systemd do?
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    1 year ago

    From man systemd:

    DESCRIPTION
           systemd is a system and service manager for Linux operating systems. When run as first process on boot
           (as PID 1), it acts as init system that brings up and maintains userspace services. Separate instances
           are started for logged-in users to start their services.
    
           systemd is usually not invoked directly by the user, but is installed as the /sbin/init symlink and
           started during early boot. The user manager instances are started automatically through the
           user@.service(5) service.
    
           For compatibility with SysV, if the binary is called as init and is not the first process on the
           machine (PID is not 1), it will execute telinit and pass all command line arguments unmodified. That
           means init and telinit are mostly equivalent when invoked from normal login sessions. See telinit(8)
           for more information.
    
           When run as a system instance, systemd interprets the configuration file system.conf and the files in
           system.conf.d directories; when run as a user instance, systemd interprets the configuration file
           user.conf and the files in user.conf.d directories. See systemd-system.conf(5) for more information.
    




  • This is what’s important. If you don’t enable power saving in some fashion, your hardware will always be “on” at full specs. Even if the machine isn’t actually being used, it’s still powering everything to be ready to jump at any opportunity to process something quickly without ramping down.

    TLP has pretty excellent default settings. Simply turning it on will likely make your battery life go 2-3x longer than without it being on, and you will have about 80% of the performance from a UX perspective. And if you want to crunch numbers faster on battery, you can tune TLP or turn it off temporarily.



  • Don’t forget that Vim also keeps every tree of undo history. Wrote someone one way, wanted to try another way, and changed your mind? Switch to the other undo future! Change your mind again? Go back!

    And there’s persistent undo, where your undo history is written a file. Quit Vim, power off your machine for 5 years, power it back on, and you can still undo!