Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)TR
Posts
7
Comments
42
Joined
2 yr. ago
Linux @lemmy.ml
trachemys @iusearchlinux.fyi

How do you disable machinectl entirely?

I’m mostly interested in disabling the command to create a root shell ‘machinectl shell @root’. Attempting to ‘systemctl disable systemd-machined’ doesn’t work.

Edit:

After some more poking, it seems polkit is the way to do it. Create the file /etc/polkit-1/rules.d/10-deny-machinectl.rules and add the following

 undefined
        polkit.addRule(function(action, subject) {
       if (action.id.startsWith("org.freedesktop.machine1.")) {
             return polkit.Result.NO;
       }
    });


  

The list of all actions you can filter on are in /usr/share/polkit-1/actions/org.freedesktop.machine1.policy

  • I have no experience with this, but did some googling. The AMD ROCm installer instructions for Ubuntu are here. You need ROCm for HIP. That installs the entire SDK not just the runtime.

    The Arch Wiki says you just need the package hip-runtime-amd. But I can’t find that package for Ubuntu.

    There are also HIP installation instructions for PopOS. That’s similar to Ubuntu.

  •  undefined
            echo $(($(rdmsr -c 0xc0011029) & (1<<9) )) 
    
    
      

    Should return 512. You might need a ‘sudo’ before the rdmsr (any permission errors in any of this means it didn’t work). Unfortunately, this needs to be done every time you reboot. The next security update for linux will do this automatically.

  • The only difference between prebuilt and DIY is the lack of OS, memory, and storage. The power brick is also an extra $80 for DIY (pretty good deal for a 180W charger). That makes the base prebuilt be +$200 to give you 16GB ram, 512GB ssd, and windows home. That price is good, but if you instead want 32GB and 1TB, the prebuilt price goes way up and you are better off doing DIY. Standard laptop overcharge for upgrades is in effect.

  • chat @iusearchlinux.fyi
    trachemys @iusearchlinux.fyi

    Have you checked your subscription list lately? I’m subscribed to several communities I didn’t ask for.

    At first I thought it might be that XSS vulnerability, and someone used it to force people into some communities. But then I noticed all the subs are on this instance. Maybe it is a local database error.

    The subs I definitely didn’t ask for are: Teardrop…trailers, Hardstyle, Geohints, geo games, and Seventeen (lol).

    Linux @lemmy.ml
    trachemys @iusearchlinux.fyi

    TechCrunch explains what is happening with RedHat, including today’s SUSE development.

    Includes interviews with both RedHat and Rocky Linux.

    Asklemmy @lemmy.ml
    trachemys @iusearchlinux.fyi

    Funding an instance with advertising

    If your instance started showing ads, would you just leave to another instance? Do you see any way to fund the operation of an instance other than donations?

    Hardware @lemmy.ml
    trachemys @iusearchlinux.fyi

    The 12VHPWR connector is redesigned and renamed to 12v-2x6 (no new PSU required)

    chat @iusearchlinux.fyi
    trachemys @iusearchlinux.fyi

    Lemmy is struggling. How are you?

    It’s Saturday. Reddit apps have shutdown. Major lemmy instances are failing under the strain. lemmy.world is trying to do a version upgrade in all this. beehaw worker bees are swarming. How are you enjoying this lemonlemmy party?

    Reddit @lemmy.ml
    trachemys @iusearchlinux.fyi

    Reddit locked out r/mildlyinteresting mods who tried to mark their sub as nsfw