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
I looked around forums and saw one say that you can install through Homebrew, but when I do that I'm toldthis needs much more context broadly referring to instructions without providing those instructions will just lead to confusion
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 deniedNextDNS 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
brew might just have some limitations on what can be accessed
Sorry if this still isn't that helpful, I haven't been able to get anything elaborate
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/1358106983227588680Do you think it would work if I found it through
rpm-ostree
?there is this old post about setting up for
sudo
on brew commands
possibly yesOkay, 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
adding to
secure_path
as described here allows the nextdns.service
to be installed
and also allowing sudo nextdns ...
to be runThat 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 fileit's a string similar to
PATH
located in the /etc/sudoers
file
Ooooh
Thank you for that visual
This makes more sense now
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 brewThat'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?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
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?
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 somethingI see
if tailscale doesn't help you in other ways I wouldn't bother ;-).
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?