I'm currently trying out Bazzite, and everything is smooth, except one thing: I can't get V2Ray-based apps (V2RayN, Nekoray etc.) to tunnel the VPN traffic. As I couldn't find much online, asking here - did anyone successfully run V2Ray on immutable distros generally and Bazzite specifically? What should be done to make it work?
(An obvious solution - installation via rpm-ostree - does not help, and I need V2Ray specifically)
9 Comments
warmaster@lemmy.world · 2 pts · 125d
Try this
https://formulae.brew.sh/formula/v2ray#default
Allero@lemmy.today · 1 pts · 125d
Didn't figure out how to add subscription lists (if it's possible at all), so didn't research further, as this feature is crucial for my use case. Looks like I'll have to try it again.
OUwUO@programming.dev · 1 pts · 124d
What have you tried? Why doesn't
rpm-ostree install nekoraywork for you?Allero@lemmy.today · 2 pts · 124d
Nekoray in particular doesn't have .rpm, so I used the universal executable (NOT the AppImage which doesn't have TUN capability). With TUN mode enabled, it shows outbound and inbound connections trying to be established, and exchanges of up to 300 singular bytes per second. Needless to say, no Internet resources work. The second I close the connection, everything gets back to normal.
V2RayN does have rpm and can be installed using rpm-ostree, but enabling TUN and subsequent connection attempt lead to the following log messages appear ( censored):
from accepted [proxy-relay- -> proxy] ERROR [ ] dns: exchange failed for . IN A: EOF
Same continues for every connection attempt. No actual connection is established.
OUwUO@programming.dev · 1 pts · 124d
Perhaps they don't provide any themselves. But installing it from a repository is preferred anyways. To be clear, it's found within Terra's repository. The very same Terra repository that's enabled by default on Bazzite. So, as I see it, there's nothing that would prevent
rpm-ostree install nekorayfrom working. Have you even tried this?I don't know why V2RayN doesn't work though. Try Nekoray and let us know how it goes.
EDIT: I just noticed how Nekoray has seemingly lost its maintainer. Thankfully, someone forked it and renamed it to Throne. And, with it, we find ourselves an RPM repository to install from. Thankfully, you don't even have to go through any hoops, as it's also found in the Terra repository. So you're simply one
rpm-ostree install throneremoved from installing it.Allero@lemmy.today · 2 pts · 124d
I got stuck with Terra atm. Bazzite shows that terra-release is indeed installed, yet doesn't seem to check the repo when installing packages. And, predictably, fails to install either Nekoray or Throne through
rpm-ostree install throneAssuming it is disabled (as happened in https://github.com/ublueos/bazzite/issues/2580), I wanted to reenable it, but didn't find any command to do this in rpm-ostree help.
Attempting
dnf5 install throne --enable-repo=terrapredictably didn't work as it's an immutable system.Any ideas or help here? Your help is much appreciated.
OUwUO@programming.dev · 3 pts · 124d
Interesting. Perhaps we can try to delete terra and reinstall it.
To delete terra:
sudo rm -rf /etc/yum.repos.d/terra.repoTo install terra (as per its own instructions):
First do: curl -fsSL https://github.com/terrapkg/subatomic-repos/raw/main/terra.repo | pkexec tee /etc/yum.repos.d/terra.repo
And then, do: sudo rpm-ostree install terra-release
I'm not sure if a reboot is required for it to take effect*.
Allero@lemmy.today · 3 pts · 123d
Alrightie, this worked! I did install Throne. As per
sudobeforerpm-ostree- it's not necessary, it just asks for su password if you run it without sudo.So, Throne came up with another error, it was unable to change file ownership in /usr directory (of course it couldn't, it's an immutable system)...and then it got me.
I read into the errors given by v2rayN, and checked it on a regular mutable distro...and indeed, my subscription list got blocked right when I started testing TUN on Bazzite a few days ago. Case closed, Bazzite has nothing to do with it.
But, I learned something about Bazzite repo management, which will be valuable going forward. Thanks a lot for so much effort figuring things out!
OUwUO@programming.dev · 2 pts · 123d
I'm glad to hear that you found the most egregious culprit. Hopefully you'll be able to get it to work after your subscription list 'functions' (again). (I'm honestly completely oblivious of what this software is or how it works.)
Though, if you allow me, I would like to give some comments. So, without further ado.
Hmm..., curious. I would think that it shouldn't even (necessarily) require anything like that. And, if it does, perhaps the maintainer/contributor should be addressed in hopes of resolving the issue; I'm sure they can figure out a workaround (or so).
😅. This is actually a very nuanced topic:
/usrcompared to its upstream; i.e. Fedora Atomic. So, there is a supported way of doing this in order to create an image with the desired changes to/usr. If you got any such needs, consider taking a look at this page of Bazzite's documentation./usr/etc,/usr/shareet cetera; one could instead make changes to the content of folders like/etc~/.local/shareet cetera./usronce and would like for said changes to not persist after a reboot, then commands likerpm-ostree usroverlayandbootc usr-overlayare worth mentioning.So, to be clear: while it is true that Fedora Atomic does not like/support making changes to
/usrat runtime, it's not like it's necessarily limiting you if you really desire to make changes to/usr. Even if non of the methods 100% function like howsudo <input change> /usr/<some content>would on a traditional distro*.It has been my pleasure 😊!