Skip Navigation
Linux 101 stuff. Questions are encouraged, noobs are welcome! @lemmy.world Telorand @reddthat.com
How can I make a custom .service run as root?

I have a VPN daemon that needs to run before the client will work. Normally, this would have been set up automatically by its install script, but the system is immutable.

I've created the systemd service via sysyemctl edit --force --full daemon.service with the following parameters:

``` [Unit] Description=Blah After=network-online.target

[Service] ExecStart=/bin/bash /path/to/daemon

[Install] Wanted By=multi-user.target ```

I've verified that the daemon is actually executable, and it runs fine when I manually call it via sudo daemon. When I try to run it with sudo systemctl enable --now daemon.service, it exits with error code 126.

What am I missing?

0
Am I overthinking it?
  • Sorry I didn't get back sooner, but I made some progress.

    What do you mean with "work in progress"?

    Their words (second video, I think), and more in reference to how they are still working out how they haven't yet covered all of the use cases (like maybe my needs can't currently be met by rpm-ostree or bootc). rpm-ostree has functional limitations, and bootc is still being developed. Obviously, both are still useable and useful, and Universal Blue has been using them for quite a while. I may have been reading too much into it with the "depreciation" comment.

    So, did you try the following methods when installing the .run file? If so, how did it go?

    It can't work on its own. Running with sh or making it executable runs the script, but it fails when it tries to write its icon and .desktop entry to /usr (it also doesn't take an --appimage-extract argument). You can use sudo rpm-ostree usroverlay to create a temporary FS overlay for /usr, but it's wiped on the next boot. Still, that allowed the installation to complete.

    I discovered that it's installing all of the necessary components to /opt, and they remain functional. I was able to manually run the daemon script required and get a WireGuard tunnel established in the client.

    Now, I'm trying to get a .service module to work so it can run automatically as root on a reboot with systemd. So far, it's giving me a 126 exit code, so I still haven't figured out how to escalate its privileges automatically, but this is the most progress I've made to date.

  • Extra drivers on Fedora Atomic install
  • Correct, and if you just type ujust, you'll get a list of all the "recipes" you can apply with that command (that's what they're called).

    Alternatively, OP can contact the maintainers and see if they can add the necessary recipe. They're really nice and responsive—even offered to add a semi-common print driver to the image for another user.

  • Why do you still hate Windows?
  • But wait. One update failed. Why? Ah, the rescue partition is too small.... THE ONE THAT DUMB SON-OF-BITCH CREATED ON ITS OWN AS PART OF THE INSTALL!

    Shit, I forgot about this bug! Such a weird design choice to make the installer fuck up its own partitions.

  • Why do you still hate Windows?
  • I don't like the fact that even if you have a Pro or Enterprise license, some amount of telemetry is still being sent to MS for any number of nebulous reasons.

    At least with bigger names like Fedora et al, they give you the option up front to opt-in, and you can have a reasonable amount of trust that they won't do it in secret.

  • Why do you still hate Windows?
  • The Microsoft support forums are pitifully hilarious, too.

    "Hi, I need help with N. I've tried X, Y, and, Z."

    "Hello, sorry to hear that you're having trouble with N. Have you tried X, Y, or Z?"

    "Yes."

    "I'm sorry to hear that it's still not working. Please refer to this thread, and feel free to contact Microsoft Support with any future questions. Have a nice day."

    "But my problem still isn't solved. Hello?"

  • Authy Users' Phone Numbers Compromised via Twilio API Vulnerability
  • That's especially bad, because the default behavior, iirc, is to have Multi-Device turned on, which means anyone can potentially add their device to your account and access your TOTP.

    And I don't expect most users to know how or to remember to turn it off.

  • Linux during the mid to late 90s (Windows 95 and 98 era)
  • I wasn't that into computers at that point in my life, but it was definitely a time where "computers" was a hobby, in the same way that restoring old motorcycles was/is a hobby. Sure, you might take it out for a spin every now and again, but a lot more time is spent tinkering than simply using.

    I'm constantly amazed by how much better the end-user experience is today, even just from 10 years ago. The installers are better, the pre-configured software and settings are more thoughtfully chosen, and now we're at the beginnings of meaningful Linux gaming for non-hobbyists.

    We truly stand upon the shoulders of giants, and I look forward to the future.

  • AMD Frame Generation On The Steam Deck Is Here With FSR 3.1
  • And this is why I think Valve was very shrewd when it came to deciding what hardware to use. Not only is AMD better supported, but it feels like every update just keeps improving everything.

    Doesn't matter if it's actually better on paper (I don't know if it is or isn't), because it feels like the value only improves.

  • Help/Recommendations for setting up new SSD with Linux
  • It may work to swap drives, but you should definitely minimize physical swapping if possible. Pick where the drives will live, then try to stick with that (or be ready to do some troubleshooting). Create a Linux install media for your chosen distro, put the empty drive in the laptop, and boot from the install media. Most distros come with a graphical installer, so you should be able to navigate from there.

    Also, for the best experience, the drive inside the laptop should be your daily driver, anyway. USB-C is great, but you'll have the best I/O with the slot on the mainboard, which is both physically closer to the CPU and likely uses NVMe. If you plan on making Linux your daily driver, that should be the drive in the laptop.

    Lastly, try booting from a live ISO where you can give it a test run before you install. Might identify any glaringly obvious issues with your hardware before you go through the trouble, though not all distros have live media.

    Good luck, OP! I'm right there with you, making the switch to Linux, though I'm just going to relegate Windows to a VM.

  • Will anything dethrone the Steam Deck? Probably not -GamingonLinux
  • I bought it specifically because it directly and indirectly supports the Linux community at large. I'm now working on moving away from Windows for gaming, because they've made it possible with what they've done with tools like Proton and gamescope.

  • HoloCure devs are cooking again
  • If they're the analog to Golden Eggs in Vampire Survivors, it likely won't, even if they're stackable. 0.1 sec of invulnerability and 0.5% crit increase aren't much, and if they're "very rare" as advertised, they won't amount to much unless you play a lot.

  • Am I overthinking it?
  • Okay, I appreciate the links. I've had a chance to go over both, and I think I get the gist:

    • rpm-ostree is a work in progress, and it will be depreciated and replaced with bootc + dnf

    However, I'm still struggling to understand how it all works together. For example, I have a VPN client that is installed via a .run script, so it doesn't work with ostree. If I wanted to apply this software to my system, I'd have to create a bootable container, then rebase to that. But my goal isn't to create a new image, just to apply transient packages to the base Bazzite image, so my remaining questions are these (and it's fine if you don't know):

    If I made a bootable container(file), would that derived image fall out of sync with the parent Bazzite project? Would I have to manually build a new container and rebase each time I wanted to check for updates? I feel like I'm on the cusp of seeing the big picture, but I'm not quite getting it, and maybe that's because I haven't worked at all with services like Podman and Docker.

  • Am I overthinking it?
  • Not Brazzite, "Bazzite." It's a mineral, and its naming proximity to an adult website is entirely coincidental (and I would hazard a guess that the mineral was named first).

    Honestly, I'm not that concerned with Bazzite being newer, because it's based on Fedora CoreOS. It utilizes rpm-ostree to manage system upgrades, so for any bad updates, you just rollback to any previous deployments (and you can pin specific ones so you are guaranteed a stable rollback point). Additionally, you can rebase at any time, so you can swap out the system layer for another ostree-based image without touching any of your files in /etc, /var, and /home.

    Pop!_OS is a great choice, too, but the biggest problem facing the family of Universal Blue distros isn't notoriety, it's the fact that Fedora Atomics in general are still relatively new. The examples are still being written, and people are getting used to new tooling.

    But if you don't need specific customizations like me, and all your software can be found as appimages or flatpaks (or is already installed), Aurora, Bluefin, and Bazzite are all rock-solid choices that will "just work."

  • Am I overthinking it?

    I'm working on my transition plan away from Windows and testing out various things in VMs as I do so, and one big hurdle is making sure the VPN client my work requires can connect. Bazzite is my target distro (primarily gaming, work less frequently), though other more traditionally structured ones like Pop!_OS and Garuda are possibilities.

    I'm currently trying and failing to get the VPN client working in a distrobox (throws an error during connection saying PPP isn't installed or supported by the kernel). However, I can successfully get the VPN connected if I overlay the client and its dependencies via rpm-ostree install, but I read somewhere that Bazzite's philosophy is to use rpm-ostree as sparingly as possible for installing software to preserve as much containerization as possible.

    Since I can get it working outside of a container, am I overthinking it? Should I just accept that this might be one of the "sparing" cases? Is Bazzite perhaps a poor fit for my use case? I've been trying to make sense of this guide, but I'm having trouble understanding how to apply it to my situation, since I'm not that familiar with Docker or Podman.

    36
    What are some preparations you think people should know about in advance of migrating to Linux?

    For example, I saw a post the other day detailing how to set up a Brother laser printer on Kinoite. That's not something I would have initially considered a potential problem to be solved. Another I ran into some years ago had to do with an Edimax WiFi dongle that used some weirdly specific Realtek 8812 radio, for which you had to set up the driver via dkms. A little prep and knowledge in advance would have saved days of searching online.

    I've started a personal to-do list of things to research and make sure I have all my ducks in a row before I make the full-time switch on my main desktop, so besides the usual "back up your files" advice, I'm hoping y'all can point out some QoL things I and others may often miss!

    43
    Knowledge Fight @lemmy.ml Telorand @reddthat.com
    Ep 936: Do TPUSA attendees believe they're fighting demons?

    As an ex-fundigelical, I think the boys get it wrong here. Perhaps the people at the top are cynical with regard to the existence of demons, but I guarantee there's a concerning number of people in the crowd who think demons are real, and they genuinely think they're fighting a holy war against them by opposing people that include "liberals and 'unhuman' communists." I used to think demons were actually real, and average people often had demons inside them, like sleeper agents waiting to be activated.

    I agree that the "demonic" rhetoric is a convenient tool to justify political violence, but many of them aren't using demons as an excuse to do something they already want to do; they're doing it because they genuinely think they're saving humanity from Satan to usher in some kind of idealized 1950s utopia only for white, affluent Christians.

    In their mind, they are sincerely at war with their fellow Americans, but there's a convenient, dehumanizing layer of "demons" to make them feel better about any acts of violence or stripping of rights.

    Hello, spectre of Nazism.

    0
    Why openSUSE?

    First, let me be clear up front that I'm not promoting the idea that there should be one "universal" Linux distro. With all the various distros out there for consumers, there's lots of discussion about Arch, Debian, and Fedora (and their various descendant projects), but I rarely see much talk about openSUSE.

    Why might somebody choose that one over the others? What features or vision distinguishes it from the others?

    Edit: I love all the answers! Great stuff. Thanks to everyone!

    37
    Where is all the water going from climate change?

    Now that late spring/early summer is upon us, there's increasingly more headlines about less rain in various places (recent floods notwithstanding). I'm assuming that's because water is evaporating and not returning to those places, but where is it going?

    Is it arriving, now, in these bursty flash floods? Is it staying longer in the atmosphere and moving to new locations? Is more of it just staying in the atmosphere period?

    9
    [ForFreFri] HoloCure - Save the Fans! on Steam
    store.steampowered.com HoloCure - Save the Fans! on Steam

    Play as your favorite Vtubers from Hololive! Fight, explore, and clear your way through armies of fans and save them from their mind-control in this unofficial free fan-game.

    HoloCure - Save the Fans! on Steam
    9
    www.lgbtqnation.com Public school tried to ban student’s lesbian art work because it’s “offensive” to Christians

    Her piece was about religious trauma that LGBTQ+ people deal with, and it apparently struck a nerve.

    Public school tried to ban student’s lesbian art work because it’s “offensive” to Christians

    Communicating trauma through art is fine, as long as you don't remind the Christian fundies that their beliefs and practices are a prime source of religious trauma for lots of people.

    10
    Knowledge Fight @lemmy.ml Telorand @reddthat.com
    Watched the Eclipse. World did not end as promised.

    On the recent episode of KF #916, Alex's employee halfheartedly promised the world would end. And if that didn't happen, lots of people were allegedly going to be going to the hospital, but nobody at my office seems to be feeling anything but allergies.

    Ripped off. I think the folks at Infowars might be charlatans. /s

    2
    Texas Republicans Call For Execution of Women Who Receive Abortions, IVF In Horrifying Video

    Y'all, this is why you need to vote, including your local races. All an ideology like this needs to grow is fertile ground, a propaganda apparatus to spread it, and a willing legislature.

    Vote like your lives depend on it, vote like your families' and friends' lives depend on it, because it very well might.

    39
    Favorite games for traveling?

    What are some good games you play that you think are good for extended travel (i.e. battery friendly)? Emulation and TDP-adjusted options count!

    40
    Thanks to the admins for not enabling downvoting

    Far too often, lately, I see lots of people worried about the number of downvotes, or making preliminary justifications and requests to not downvote particular posts.

    Me? I don't have to think about any of that. The content of the posts and comments determines their quality, not some artificial number that only represents whether people dis/like something.

    Edit: Wow, a lot of people from other instances seem really offended that I don't like downvoting and seem a bit confused that I'd be thanking my admins for something I appreciate.

    If you like downvoting, you don't have to move here. Enjoy your instance's features. Welcome to the Fediverse.

    31
    www.gamingonlinux.com 5 years later Valve finally gives Windows compatibility tool Proton a logo

    Can you believe it? Proton, the compatibility layer that allows Windows games to run on Steam Deck / Linux PCs didn't actually have a proper logo for over 5 years.

    5 years later Valve finally gives Windows compatibility tool Proton a logo

    cross-posted from: https://lemmy.ml/post/12541544

    > !

    2
    Tecno Pocket Go is like a Steamdeck that replaces a screen with a wearable display
    www.notebookcheck.net Tecno Pocket Go: Unusual gaming handheld arrives combining AR Glasses and controller with embedded AMD Ryzen 7 8840HS APU

    The Pocket Go is Tecno's first handheld gaming device. Surprisingly, the Tecno Pocket Go does not look like a conventional gaming handheld at all, although it may prove to be more powerful than the likes of the Steam Deck and the ASUS ROG Ally, among others.

    Tecno Pocket Go: Unusual gaming handheld arrives combining AR Glasses and controller with embedded AMD Ryzen 7 8840HS APU

    cross-posted from: https://lemmy.world/post/12498529

    > I think this is really the way going forward with portable gaming. > - Lighter and smaller handheld > - A large screen experience in a portable package > - Privacy > - Not having to hold the handheld device oriented to view it > - Replaceable battery is a big plus too! > > > There is no mention of Linux as the OS but it looks as friendly to Linux gaming as any other AMD based handheld device beside the Steam Deck.

    7
    Mechanism to report entire communities?

    Hey Reddthat mods,

    Is there a mechanism to report entire communities? I found one that appears to be

    trigger warning

    pro-pedophilia

    but it's the lone mod doing the posting, so sending a report will likely be ignored.

    It's a community on this instance.

    Relevant post.

    https://reddthat.com/post/9070084

    Edit: formatting

    6
    What game company from your childhood do you remember with fondness?

    I was thinking about how I remember Maxis fondly, and I got to wondering what other people's experiences were like!

    Is your favorite still around? Are they still the same, or did they "change directions under new management?"

    140
    [Mycology] Are yeasts analogous to each other, to the point they can be used in food interchangeably?

    Amouranth, the Kick streamer, is allegedly brewing beer with her vaginal yeast. It's an obvious publicity stunt to squeeze more money from her impressionable and "thirsty" audience.

    Gross-factor aside, is this even possible? Is it analogous to brewer's yeast? Would this cause undesirable side effects or introduce undesirable compounds?

    21
    [itch.io] Aerofoil
    galeforcegames.itch.io Aerofoil by Gale Force Games

    Port of Glider PRO, the classic Macintosh paper airplane game

    Aerofoil by Gale Force Games

    This is a port of the game GliderPRO, originally for MacOS 9. You do not need itch.io to install it, and there's versions for Windows, Mac, and Android (APK and Play Store)

    0
    Can sufficiently energetic EM waves of a specific frequency affect weaker EM waves of a different frequency?

    My initial thought is "no," since our eyes, being receivers for specific wavelengths of EM radiation, can't see frequencies like infrared, no matter how bright. Likewise, my cell phone's WiFi and cell modules don't conflict with each other (as far as this layperson can tell, anyway).

    But if, for example, infrared were sufficiently bright/energetic, could it affect neighboring frequencies, like reds?

    11
    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/)TE
    Telorand @reddthat.com
    Posts 21
    Comments 2.3K