• 0 Posts
  • 47 Comments
Joined 3 years ago
cake
Cake day: June 10th, 2023

help-circle

  • vole@lemmy.worldtoLinux@lemmy.ml•Create an automated terminal command?
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    edit-2
    2 days ago

    It would be because cron runs as the root user.

    Castget probably looks at the file path $HOME/.castgetrc. For your regular user, $HOME is probably /home/myamazingusername. For the root user, $HOME is probably /root .

    You can get a root terminal session by running sudo -i in a terminal console window. You can try running castget there to see what happens.

    Sudo -n:

    -n, --non-interactive
      Avoid prompting the user for input of any kind.  If a
      password is required for the command to run, sudo, will
      display an error message and exit.
    

    It’s just a nice thing to put in non-interactive scripts that use sudo. Sometimes you can end up with scripts that just wait endlessly for a password that will never be input because the script is being run non-interactively. The flag probably isn’t needed for a cron job, because root probably can sudo as any user without a password, but it doesn’t hurt either.

    EDIT: I didn’t know that there are user crontab entries as well. If you just used crontab -e without using sudo, then you don’t need to worry about the job being run as root.




  • In this episode: Ruche attacks twice. See you next week! I’m only half joking, we do get to see a new skill and we get some monster lore, potentially plot related.

    I think that the show’s choice (perhaps LN’s or manga’s choice) of having the Elymas narrate their pre-fight plan during the fight is bad. Imagine if they talked beforehand about how to get Rouche on the centipedes back. Then I’m more invested in how they can pull it off. Instead, I’m watching them do stuff, and then they tell me that they successfully did what they planned to do. Imagine if Elyma explained beforehand why logically the centipede shouldn’t be able to evolve. Then I think I’m more surprised when it does evolve and I feel more inline with Elymas’ surprise. Instead, I’m just surprised that the centipede can evolve at all. More generally, whether something goes to plan or doesn’t go to plan, I’m not going to be very invested if I don’t know what the plan is!



  • I enjoyed watching this season. The world is filled with interesting things and plot developments advance at a decent pace, it has been comfortable to tune in each week. I’m sure the royal academy will spark all sorts of fun events. I’m tempted to rush forward and read the LN’s.

    For this episode… why did grandpa become comically dumb for that scene? A strange bit of slapstick comedy, I suppose. It was nice to see Ferdinand and others caring for Myne. We got to see a rare sighting of an emotional outburst from Ferdinand. They did let the evil noble weasel away, but knowing this show he’s eventually going to perpetrate another evil scheme, get foiled, and get his entire bloodline extinguished. And I look forward to it. If I’m following correctly, I think the use of the secret passage is the first piece of evidence that specifically indicts Georgine as assisting in the immoral schemes of the pro-Georgine nobles. I think the previous schemes could be explained as the pro-Georgine nobles working independently from Georgine. I could be wrong, forgetting something, it’s not a detail that I’ve been tracking closely.

    Also, I don’t think I understand why the evil noble has to sneak out to give Myne a poison and give the kidnapper instructions himself. Is it a needless event to implicate the evil noble and Georgine or perhaps there’s a good explanation? I don’t know what they were planning to do by poisoning, but not killing, and kidnapping Myne. To be honest, I don’t care about these points too much; the mechanisms of nobles in this world are strange, so I can imagine that there are many possible explanations. I enjoy the show nonetheless. The issue is that I don’t know if I’m missing something that the show has already explained, or if these are intentional points of interest placed by the author, or if these are details that the author/adaptation don’t really care about.


  • The falling and capture scene: I feel like they could’ve sold it better. I just thought it was a bit strange how Myne would crash but Angelica is fine, then Myne can’t get to them but Cornelius could (Could make sense if everybody, including the kidnapper, normally slows down their highbeasts to match Myne’s speed. Or she can’t accelerate very quickly. Or I guess you could say Myne is just a klutz, that seems like the answer that the anime is selling.), then Cornelius rescues them by intercepting them feet off the ground which is somehow fine. It was just a bit too much all at once for me to take in.

    Grandpa Bonifatius beats up the intruders with his bare hands, really putting the knights to shame there. It seems like the season finale next week will be high stakes high action. I’m rooting for grandpa.









  • The first thing is to do is to understand what you’re looking at. Read this:

    systemd-analyze blame¶

    This command prints a list of all running units, ordered by the time they took to initialize. This information may be used to optimize boot-up times. Note that the output might be misleading as the initialization of one service might be slow simply because it waits for the initialization of another service to complete. Also note: systemd-analyze blame does not display results for services with Type=simple, because systemd considers such services to be started immediately, hence no measurement of the initialization delays can be done. Also note that this command only shows the time units took for starting up, it does not show how long unit jobs spent in the execution queue. In particular it shows the time units spent in “activating” state, which is not defined for units such as device units that transition directly from “inactive” to “active”. This command hence gives an impression of the performance of program code, but cannot accurately reflect latency introduced by waiting for hardware and similar events.

    For example: I have passphrase disk encryption (no TPM encryption), and the time I take to enter the passphrase is added to many entries in systemd-analyze blame. Here is the output of systemd-analyze blame if I wait 2 minutes to enter my disk encryption passphrase:

    2min 12.640s sys-module-fuse.device
    2min 12.618s sys-devices-platform-MSFT0101:00-tpm-tpm0.device
    2min 12.618s dev-tpm0.device
    2min 12.551s dev-ttyS0.device
    2min 12.551s sys-devices-pnp0-00:00-00:00:0-00:00:0.0-tty-ttyS0.device
    2min 12.550s dev-ttyS2.device
    ...
    

    So, I guess my advice is that systemd-analyze blame is not always going to be a clear indicator that a particular service is holding your boot times back. The .device entries in particular probably just represent how long after boot that the device became active. And unfortunately the systemd-analyze tools do not always lead you to the underlying delay.

    $ systemd-analyze critical-chain dev-tpm0.device
    The time when unit became active or started is printed after the "@" character.
    The time the unit took to start is printed after the "+" character.
    
    dev-tpm0.device +2min 12.618s
    
    $ systemd-analyze critical-chain dracut-initqueue.service
    The time when unit became active or started is printed after the "@" character.
    The time the unit took to start is printed after the "+" character.
    
    dracut-initqueue.service +2min 11.123s
    └─systemd-udev-trigger.service @770ms +158ms
      └─systemd-udevd-varlink.socket @760ms +65us
        └─system.slice
          └─-.slice
    

    If you are trying to deal with an issue that is causing significant delays in your boot time, journalctl --boot can sometimes be helpful. For the example boot above where I waited 2 minutes before entering the disk encryption passphrase:

    Jul 31 14:09:39 mycomputer kernel: Linux version 7.1.5-201.fc44.x86_64 (mockbuild@9b86e96a386140128351588d751166fd) (gcc (GCC) 16.1.1 20260515 (Red Hat 16.1.1-2), GNU ld versi>
    ... (a lot of log lines within a few seconds, but then I find a big jump) ...
    Jul 31 14:09:44 mycomputer kernel: [drm] pre_validate_dsc:1667 MST_DSC dsc precompute is not needed
    Jul 31 14:11:48 mycomputer systemd-cryptsetup[551]: Set cipher aes, mode xts-plain64, key size 512 bits for device /dev/disk/by-uuid/...
    ... (and then there are a lot of log lines in the following seconds after the above line) ...
    



  • vole@lemmy.worldtoAnime@ani.social•Anime I've tried in 2026
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 months ago

    Daemons is like a good rendition of a forgettable 2000’s shounen battle anime. It might shine compared against Shaman King and Zatch Bell (I was so young when I watched these, I don’t remember if they’re actually good), but it’s hard to think much of Daemons once you’ve seen battle shounen done well (Jojo, FMA, HxH). I was watching the series as it aired, and I dropped off after episode 12 (I think because there was a short break). I will continue to watch it, but it doesn’t pop out as a show to watch even though episode 12 ended with a cliffhanger.

    It could be a slow burn, but perhaps too slow. From a recent MAL thread on the manga:

    Is the manga anywhere near completion?

    No way. We’re still on setup arcs. We don’t even know who the main antagonists are yet.


  • With most Linux OS’s you have a choice of what desktop environment to use. The desktop environment controls most of what I would call the OS experience. Most linux distros will have KDE or Gnome installed as the default desktop environment, though there are often some more minimal or power-user focused desktop environments offered. I’ve heard Cinnamon is another good choice.

    Ctrl-C, Ctrl-X, Ctrl-V, Ctrl-F, F3, F11 generally behave the same on most Linux desktop environment and software as they do on Windows.

    Alt-Tab, Alt-F4 are commonly supported

    For the run menu, Alt-F2 opens a similar menu in KDE and Gnome. I can only go into the specifics with KDE, but I can also run commands with the regular Windows key start menu. Though when I personally run commands, I generally open a terminal (Ctrl-Alt-T) so I can get tab completion. On KDE, Win+E opens a file explorer. Almost all the keyboard shortcuts are customizable on KDE, but I prefer to swim with the current whenever possible.

    For some distros, you can write a “Live” version to a flash drive to try it out before installing, but opening applications will be slower than running on an SSD.