Trouble installing NextDNS to Bazzite

I've been trying to figure this out for a long time and I gave up for a few weeks but I want it on my system. I looked around forums and saw one say that you can install through Homebrew, but when I do that I'm told Error: open /etc/systemd/system/nextdns.service: permission denied and I can't figure out what to do to get it working. I've attempted sudo on brew and with the install command but both say that no such thing exists. I just want a more secure connection.
22 Replies
termdisc
termdisc2w ago
I looked around forums and saw one say that you can install through Homebrew, but when I do that I'm told
this needs much more context broadly referring to instructions without providing those instructions will just lead to confusion
pengu1nton
pengu1ntonOP2w ago
Okay So the post someone made said they follow NextDNS's install instruction through their curl script sh -c 'sh -c "$(curl -sL https://nextdns.io/install)"' And they were met with problems So then they tried going the their network manager UI to do it Then someone's answer was just "nextdns is available in brew. That said, the warning you were receiving was because the install script is likely attempting to call to dnf. dnf does not work on bazzite and has been replaced with a stub telling you about that" And the post never got any further than that So I figured, sure, I'll use brew and give it a shot It installed no problem, but now I can't seem to get any further after that And I'm just trying to use any command that'll get it running, I started with nextdns install and that's when my error occurs; the permission being denied
pengu1nton
pengu1ntonOP2w ago
NextDNS has also recommended I change the resolved.conf file but that doesn't seem to exist and I don't really know if I should just make that as a new file and do that or if I should stick to this Homebrew method
No description
termdisc
termdisc2w ago
brew might just have some limitations on what can be accessed
pengu1nton
pengu1ntonOP2w ago
Sorry if this still isn't that helpful, I haven't been able to get anything elaborate
termdisc
termdisc2w ago
there is the rpm option nextdns_1.45.0_linux_amd64.rpm. you may need to layer it if the brew option isn't working https://discord.com/channels/1072614816579063828/1358106983227588680
pengu1nton
pengu1ntonOP2w ago
Do you think it would work if I found it through rpm-ostree?
termdisc
termdisc2w ago
there is this old post about setting up for sudo on brew commands possibly yes
pengu1nton
pengu1ntonOP2w ago
Okay, I'll check for it womp, package not found in there, I'll see about the downloadable Okay, downloaded, so then I assume I run the same rpm install command just with the path to the file seems to be the case in the doc, moving on
termdisc
termdisc2w ago
adding to secure_path as described here allows the nextdns.service to be installed and also allowing sudo nextdns ... to be run
pengu1nton
pengu1ntonOP2w ago
That part may be a little over my head in terms of what I've learned of Linux thus far, but what is added to secure_path referring to? Because I saw a link to the github talking about it but it's seeming to still point to Homebrew and not the raw rpm file
termdisc
termdisc2w ago
it's a string similar to PATH located in the /etc/sudoers file
termdisc
termdisc2w ago
No description
pengu1nton
pengu1ntonOP2w ago
Ooooh Thank you for that visual This makes more sense now
termdisc
termdisc2w ago
beyond this I won't be of much more assistance. I don't know how to use nextdns, and I only have experience with like 2 things in brew
pengu1nton
pengu1ntonOP2w ago
That's fine, I mostly understand how to handle the client from having done it in Windows before So when I add this I just use Defaults secure_path = /etc/systemd/system/nextdns.service, does this sound correct?
geeksville
geeksville2w ago
This is a little bit of an alternate way of solving the problem: If you are using tailscale (supported by bazzite by default). You can just setup nextdns inside of tailscale instead (which has all sorts of other benefits if you are doing other things with ts). Then you don't need to change anything on your pc at all (just in the tailscale console). https://tailscale.com/kb/1218/nextdns
Tailscale
Use NextDNS · Tailscale Docs
Use NextDNS with devices in your tailnet.
pengu1nton
pengu1ntonOP2w ago
I've never used tailscale before and I don't know what I would really use it for outside of this, but if it will apply it system-wide to my computer then I could maybe get behind it Is ts a CLI program?
termdisc
termdisc2w ago
you would add :/home/linuxbrew/.linuxbrew/opt/nextdns/bin to the end of the existing secure_path line removing what's already there will probably break something
pengu1nton
pengu1ntonOP2w ago
I see
geeksville
geeksville2w ago
if tailscale doesn't help you in other ways I wouldn't bother ;-).
pengu1nton
pengu1ntonOP2w ago
fair enough Okay, so I added that string to the existing path line ran nextdns install same error oh I'm dumb one moment okay, that worked Now I just need to figure out how to add my profile through the CLI Other than that I got it running I'll have to do some more digging; seems my browser still isn't using it as the DNS of choice so I'll google around, but it's at least looking like it's confirmed running I think I managed to do it differently...potentially. I pulled a resolved.conf from another distro and shoved that config into /etc/systemd/ This seems to have affected the output to use NextDNS without issue. Which makes me ask; was there a reason that file was omitted from Bazzite?

Did you find this page helpful?