• 1 Post
  • 25 Comments
Joined 2 years ago
cake
Cake day: June 12th, 2023

help-circle

  • Assuming you made a bit of a typo with your regexp, any of these should work as you want:

    grep -oE '/dev/loop[0-9]+'
    awk 'match($0, /\/dev\/loop[0-9]+/) { print substr($0, RSTART, RLENGTH) }'
    sed -r 's%.*(/dev/loop[0-9]+).*%\1%'
    

    AWK one is a bit cursed as you can see. Such ways of manipulating text is not exactly it’s strong suite.


  • How did we arrive at networking? I feel like we are on two completely different pages.

    I was talking about your regular end user machines, what we usually call “desktop computers”. They are connected to the internet, but I don’t have any way to remotely login into those. And I have a single person per computer. There is no need to disable root passwords on these, seeing that Larry executed a command as root won’t provide any insight, I know that Larry is the only person who uses the machine. And it can complicate things in a sense that if Larry fatfingers his password three times and gets locked out, I’ll have to get into his filesystem somehow and remove tallies manually instead of just logging in as root and doing faillock --reset.


  • So, we are clearly talking about different environments here. Of course I would not have a password for root in an enterprize setting where you have a lot of different people managing one machine. But for your regular desktop computer with one user, it just complicates things needlessly without providing any benefits.


  • Maybe I’m a bit ignorant, but would it make much of a difference? Whether I authenticate with my own account to get root permissions or directly with root, I still have a string of characters which I use to get root priveleges on my machine. For a single (physical) user machine, that allows me to use a separate password for root. Should be better than using the same one twice, right?





  • For the love of all that’s saint, can we please stop recommending Manjaro to people, especially newbies?

    It’s not really a preference thing, Manjaro team did plenty of questionable stuff with it, as in DDoSing AUR, mind you, twice, or letting their server certificates expire, also more than once.

    It also routinely shows more stability issues that led to the infamous “I swear to god, if it’s Manjaro again…” in AUR discussions. Apart from AUR problems, they also shipped alpha quality things to their users, like this and this.

    I’ve used Manjaro myself for around a month. If you are treating it as a regular Arch installation, you will break it.

    If you want something up to date, but more stable than Arch, just use Fedora. If you insist on it being Arch-based, use something like CachyOS. Or you can read the wiki and install Arch itself. Arch is a DIY distro, after all.








  • I wouldn’t recommend vanilla Arch only because of the installation process. CachyOS that simplifies it is an extremely good pick for a person who already knows what a computer is, but wants to try a proper OS.

    Arch mostly got it’s reputation in the early days. Today some things are a lot easier to do on Arch than on other distros, especially because AUR exists. Also, it built one of the best wikis over all that time.






  • I assume it creates some sort of save file in the current working directory?

    You may try changing the working directory via batch script, if you’re on Windows.

    Make a text file, name it something like launch.bat (the actual name may be whatever you want, just make sure you leave the extention .bat) Paste this there:

    @echo off
    cd /d "%~dp0"
    start "" "game.exe"
    

    Be sure to replace game.exe with your game’s .exe filename. Don’t delete any double quotes, they are important.

    Put this text file near .exe file of your game, and make a shortcut of it to your desktop. You may rename a shortcut and choose an icon from your game’s .exe file to make it pretty.

    After that just launch the shortcut as you normally would. If I’m correct, the game should create it’s .bin file in the script directory and not in your desktop.