• 46 Posts
  • 911 Comments
Joined 1 year ago
cake
Cake day: June 15th, 2023

help-circle
  • https://www.gnu.org/software/bash/manual/bash.html#Miscellaneous-Commands

    Add to your .bashrc following lines:

    bind '"\C- ":shell-expand-line'
    bind '"\C-x":edit-and-execute-command'
    
    • Control+Space: Now you can expand variables, aliases, !492 history commands, the tilde without executing the line. Now you can make changes to the command.
    • Control+x: Opens the current command in an external editor (such as Vi, or whatever is setup for VISUAL or EDITOR variable). Now you can edit the command and if you save the temporary file and exit editor, the modified command will be executed. If you do not save, the unmodified command before launching the editor will be executed.

  • I didn’t say “personal package manager”. Do you refer to the part “basically my own AUR package”? pacman, the package manager of Archlinux that is also used in EndeavourOS, allows for installing custom packages. There is another tool part of Archlinux that let you build custom packages. These custom packages can be installed on your system, which is then seen like a normal package and handled this way with all the defined dependencies and information about the package. You can install the package from a local location, it does not need to be online repository.

    Then you can upload it to the AUR, which is exactly that: Arch User Repository. But you don’t have to upload it. Either way such a custom build package is what I referred to my own AUR package. For more information see: https://wiki.archlinux.org/title/Arch_User_Repository



  • Probably. I’m definitely not a fan of Garuda Linux (never used it to be honest). The styling and the bloat are not my taste. But the most important thing to me is, if I can trust those developers and maintainers? And I don’t trust most non common distros. Looking at their webpage, they also have a KDE lite version with less bloat and bare minimum packages to get started. This is actually awesome!


  • EndeavorOS. Because I wanted to have a rolling release distribution that is always up to date, and one that is good supported by maintainers and community. Good documentation is very important to me. And I trust the team behind EndeavorOS and Archlinux.

    Also the manual approach of many things and the package manager based on Archlinux is very nice. I also like the building of custom packages that is then installed with the package manager (basically my own AUR package). The focus on terminal stuff without too much bloat by default is also a huge plus.






  • I think Mastodon is heavily “following” based. I mean you need to find people to follow. I think you can even follow hashtags, which is pretty neat. So lookup if your favorite content creators may have a Mastodon account and follow them. And make sure to enable or disable the “world” view and not just looking at your own feed, if you don’t have much yet. Just some random thoughts. If you are already familiar with this, then apology.

    As for the Matrix collaboration, I didn’t think about this working between Lemmy and Matrix. But it make sense. Because there is also some sort of “bridge” setup you can do between Matrix to Discord. I’m not much familiar with that, just read about it.

    All of this is neat. But its biggest strength is also its biggest weakness: Being not centralized. It’s kinda like on Linux (and I don’t mean the distributions only). I just wish the entire Fediverse would already cooperate. The lack of a centralized place that has all instances and technologies that are based on Fediverse (Mastodon, Lemmy, video platforms and so on) is a huge missed oppurnity.

    Even Instagram, a technology not even based on Mastodon or Fediverse, can cooperate with Mastodon. I never used Instagram, so not sure how this looks in reality. But I thought its worth mentioning here.


  • “Dualbooting” is a nice analogy, haha. No, I switched completely over from the previous main ones: No Reddit and no Twitter. But I still use dedicated forums for specific topics/software, such as a Romhacking (retro game modding) community or RetroArch forum. Unfortunately not everyone is on Lemmy (or Mastodon, but I stopped using Mastodon too). So for me it is Lemmy/Beehaw and a few standalone forums.

    Wait I also started using Discord from time to time, but dislike this as a main application. There is an alternative called “Matrix”, which is similar to what Lemmy and Mastodon are respective to their technology. But its not that widespread, so stopped using it too. Maybe will comeback to it. I know there is BlueSky, which is a main competitor to Mastodon. Just didn’t have enough interested into it yet, as there is Mastodon already.

    • Reddit <> Lemmy and Kbin
    • Twitter <> Mastodon
    • Discord <> Matrix

    (I’m sorry if I’m the 100th person to ask this on here…)

    Fine with me, as I didn’t saw any of the 99th person asking this before.



  • No. There are cases which is an error of the operating system, not the operator. Windows in example did that recently (not my machine, I do not use Windows) by ruining grub. Saying it was a bug, but we believe its an attempt of Microsoft ruining grub with intention.

    Just because you did not have any problems does not mean its the optimal and easiest way. Also having all operating systems and multiple Kernels and options to boot from for every OS in one boot menu is a mess. I don’t want that ever again. Right now I have 5 entries for only one OS. Imagine adding Windows or another OS to it.

    Its much easier and cleaner to separate each OS to its own menu, with the way I described earlier. Also much easier to replace an OS this way or make modifications.





  • I use command trash-empty to empty all trashcan of all the users, after each system update. It’s a non standard program, but most likely available in your distributions repository: https://github.com/andreafrancia/trash-cli And my alias/function will show each file that is about being deleted (just put it in .bashrc, if you have installed trash-cli, which includes trash-empty):

    old function (click to expand)
    empty() {
        echo "Files to delete:"
        trash-empty -f --dry-run |
            awk '{print $3}' |
            grep -vF '/info/'
        echo
        trash-empty
    }
    

    Edit: After I posted I just realized there is a more straightforward way of doing it:

    New and more simple alias:

    alias empty='trash-empty -f --dry-run ; trash-empty'
    

    This searches all trash cans, lists all files it has found to be deleted, then lists all directories it looked under and then asks if you want really delete. With trash-empty -f it deletes without asking.


  • But there is context to it:

    The report on Product Security Bad Practices warns software manufacturers about developing “new product lines for use in **service of critical infrastructure or [national critical functions] **NCFs in a memory-unsafe language (eg, C or C++) where there are readily available alternative memory-safe languages that could be used is dangerous and significantly elevates risk to national security, national economic security, and national public health and safety.”

    It’s for new products that are very important to critical infrastructure and need to be safe as possible. The article writer seem not to be aware of this context:

    Take Rust in Linux, for example. Even with support from Linux’s creator, Linus Torvalds, Rust is moving into Linux at a snail’s pace.

    Because Linux is the biggest software in the entire world and they do lot of stuff their own way. Rust is integrated slowly for future new projects. It makes sense to move in snail pace. The government doesn’t suggest the Linux project to stop using C entirely. The government “recommends” to start new projects in memory safe languages, if it is a critical software. That makes sense to me.

    You see, people who’ve spent years and sometimes decades mastering C don’t want to master the very different Rust. They don’t see the point.

    No, totally wrong. C programmers in Linux do not NEED to learn or master Rust. They just need to cooperate. The problem is, that some C programmers refuse to cooperate with Rust. They just want Rust to disappear. That has nothing to do with mastering the language. They refuse to make changes to their C code, so it can cooperate with Rust code via bindings.

    After all, they can write memory-safe code in C, so why can’t you?

    Nonsense argument, and false too. If that was the case, why do we have memory safe languages? Clearly people make mistake, old and new. Besides Linux is not the only software in the world.

    Converting existing large codebases to memory-safe languages can be an enormous undertaking.

    Nobody says old code should be rewritten in Rust. Neither the government, nor the Rust programmers in Linux suggest that. It’s not about rewriting code in memory-safe languages, its about new projects.

    Either this article is a misrepresentation or misunderstanding. Or I misunderstand the article or government. I don’t know anymore…




  • I daily drive Plasma 6 Wayland on Archlinux based distro (EndeavourOS). Its the most stable KDE I have ever used. Before that I was using since Plasma 5 X11 on same distro and switched to Wayland when 6 became available. Unless you have some issues that are specific to your setup, it works surprisingly well. I even use an auto tiler addon and added a second monitor (ok the monitor is since today :D).

    All in all, its stable after the 2 big updates that focused on stability since 6 launched.