How to setup `tor` in bazzite/uBlue?

Hi all i'm a fresh user of bazzite and uBlue in general, but not Linux... How do we install and configuretor in this distro? (I got my own working config in my other setup (debian based) that i would like to use ofcourse.)
Solution:
Doing it again after a fresh install, so marking the steps for later and reference for others reading this later: 1. Main instructions at: https://community.torproject.org/relay/setup/bridge/fedora/ 2. Add the Tor.repo file (Step 2), followed by: ```sh...
Tor Project | Fedora
Defend yourself against tracking and surveillance. Circumvent censorship. | Fedora
Jump to solution
32 Replies
Kyle Gospo
Kyle Gospo11mo ago
Tor Project | Fedora
Defend yourself against tracking and surveillance. Circumvent censorship. | Fedora
Kyle Gospo
Kyle Gospo11mo ago
follow this, but instead of dnf install tor rpm-ostree install tor + reboot
©TriMoon™
©TriMoon™OP11mo ago
Thanks i will have a read, but im not configuring it as a relay, i just use obfs4 bridges...
Kyle Gospo
Kyle Gospo11mo ago
kk, one sec
©TriMoon™
©TriMoon™OP11mo ago
Aha /etc/yum.repos.d is the equivalent of /etc/apt/sources.list.d/ 🤔 Good to know thx 👍 Ok i have pasted the repo config text in kate and saved the file as /etc/yum.repos.d/tor.repo, do we need a apt update equivalent in Fedora ?
Kyle Gospo
Kyle Gospo11mo ago
nope
©TriMoon™
©TriMoon™OP11mo ago
Does this need to be run as root? Oh and PS, how do we check what files are used inside the package we install with rpm-ostree?
©TriMoon™
©TriMoon™OP11mo ago
Looks ok so far?
©TriMoon™
©TriMoon™OP11mo ago
Installed obfs4proxy also...
©TriMoon™
©TriMoon™OP11mo ago
Will try to continue with step #5 later, because i need to copy over my settings in my config from other setup for that... Aha cant even view the /etc/tor/torrc file because the directory isn't there, most likely because i first need to reboot for it to be there right...ahh well brb going to reboot, just to see what happens/how far it is..
Kyle Gospo
Kyle Gospo11mo ago
you can look with rpm2cpio
©TriMoon™
©TriMoon™OP11mo ago
Can you give an example command for the tor package i just installed? 🤔
Kyle Gospo
Kyle Gospo11mo ago
that package is just the tor CLI, can run tor --help to get a full list if you want the tor browser you can grab it from flathub
©TriMoon™
©TriMoon™OP11mo ago
I mean the file list of what is installed where...not the command options...
Kyle Gospo
Kyle Gospo11mo ago
rpm2cpio rpmfilehere.rpm | cpio -idmv will extract an RPM into the current directory so you can look at what's in it
©TriMoon™
©TriMoon™OP11mo ago
Uhmmm... i didn't download the tor rpm manually, it was done automatically using rpm-ostree, so where is that file to use that command you say?
Kyle Gospo
Kyle Gospo11mo ago
you'd have to grab it from the repo
©TriMoon™
©TriMoon™OP11mo ago
hmmmpf
Kyle Gospo
Kyle Gospo11mo ago
alternatively you can look at how the rpm file is built upstream https://rpm.torproject.org/fedora/39/x86_64/ here's the rpm sources so you can do your extraction
©TriMoon™
©TriMoon™OP11mo ago
so there is no way to view the file list of packages installed using rpm-ostree for a specific package? 🤔
Kyle Gospo
Kyle Gospo11mo ago
not that I am aware of hold on rpm -ql tor might work
©TriMoon™
©TriMoon™OP11mo ago
No such file or directory
Kyle Gospo
Kyle Gospo11mo ago
new command ^
©TriMoon™
©TriMoon™OP11mo ago
mainuser@uBlue:/var/home/mainuser$ rpm -qf tor
error: file /var/home/mainuser/tor: No such file or directory
mainuser@uBlue:/var/home/mainuser$ rpm -qf tor
error: file /var/home/mainuser/tor: No such file or directory
Kyle Gospo
Kyle Gospo11mo ago
ql
©TriMoon™
©TriMoon™OP11mo ago
ahh you edited the command 🤣 THAT worked, thx 👍
Kyle Gospo
Kyle Gospo11mo ago
np
©TriMoon™
©TriMoon™OP11mo ago
see DM, to not derail this topic even more for my aside question...
dnkmmr
dnkmmr11mo ago
could it be installed in distrobox?
HikariKnight
HikariKnight11mo ago
tor works similar-ish to a vpn so no
Solution
©TriMoon™
©TriMoon™10mo ago
Doing it again after a fresh install, so marking the steps for later and reference for others reading this later: 1. Main instructions at: https://community.torproject.org/relay/setup/bridge/fedora/ 2. Add the Tor.repo file (Step 2), followed by:
rpm-ostree install tor obfs4

rpm-ostree install tor obfs4

3. Edit the relevant tor config file under /etc/tor/ 4. SeLinux: Need more research to keep it at enforced... Seems it is NOT needed anymore, because things work without it on my fresh install of Bazzite, most likely due to the rpm-ostree command 🤷‍♀️ 5. Enable the tor service you are planning to use using systemctl enable fe. in my case it was tor@obfs4-includes which is an instanced version which uses a custom config. 6. Reboot your machne, and it will start at boot. 🖖
Tor Project | Fedora
Defend yourself against tracking and surveillance. Circumvent censorship. | Fedora
dnkmmr
dnkmmr10mo ago
you can also download the archive on the website
Want results from more Discord servers?
Add your server