Last active
November 26, 2024 12:59
-
-
Save frankpanduh/0dbf52298ac85a4aa61a05f5d4e79969 to your computer and use it in GitHub Desktop.
Ubuntu 24.04 APT tor.sources setup tutorial.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Quick Tutorial to setting up Ubuntu 24.04 (noble) TOR apt repo with new (example.source) files. | |
The tutorial on: | |
https://support.torproject.org/apt/tor-deb-repo/ | |
Currently isn't ideal for Ubuntu 24.04 Users as it prefers using the .sources format for custom apt repos. | |
TLDR: how to setup the tor repo in ubuntu 24.04. | |
sudo nano /etc/apt/sources.list.d/tor.sources | |
or | |
sudo vim /etc/apt/sources.list.d/tor.sources | |
## COPY AND PASTE ## | |
## Change "Architectures:" as needed ## | |
\\\\\\\\\\\\NOT THIS PART\\\\\\\\ | |
Types: deb | |
Architectures: amd64 | |
URIs: https://deb.torproject.org/torproject.org | |
Suites: noble | |
Components: main | |
Signed-By: /usr/share/keyrings/deb.torproject.org-keyring.gpg | |
\\\\END OF COPY PASTE (USE CTRL + o to save file if new to nano)\\\ | |
Use the next commands to log into root user to add gpg to keychain. | |
## HOW TO ADD GPG KEY FOR APT ## | |
sudo -i | |
wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --dearmor | tee /usr/share/keyrings/deb.torproject.org-keyring.gpg >/dev/null | |
exit | |
### | |
Now as your regular user account update apt and install tor. | |
example: | |
sudo apt update && sudo apt install tor tor-geoipdb -y | |
#Enjoy be safe, hope this helps ## | |
Further Reading If needed: | |
Ubuntu 24.04 APT - Specify Architecture Using .sources Files [duplicate] | |
https://askubuntu.com/questions/1514281/ubuntu-24-04-apt-specify-architecture-using-sources-files | |
Ubuntu 24.04 (Noble Source change quote:) | |
deb822 sources management | |
The sources configuration for Ubuntu has moved from /etc/apt/sources.list to /etc/apt/sources.list.d/ubuntu.sources | |
in the more featureful deb822 format, aligning with PPAs that already migrated to deb822 last year. | |
See the specification 283 for more details. - Source - | |
https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890 | |
How to setup a bridge relay: | |
https://community.torproject.org/relay/setup/bridge/debian-ubuntu/ | |
TOR official: Good bad ISP list: | |
https://community.torproject.org/relay/community-resources/good-bad-isps/ | |
Some reasons not to run an EXIT relay from home: | |
https://www.eff.org/pages/legal-faq-tor-relay-operators#:~:text=If%20law%20enforcement%20becomes%20interested,suspecting%20you%20of%20criminal%20activity. | |
More info on the tor network: | |
https://en.wikipedia.org/wiki/Tor_(network) | |
https://community.torproject.org/relay/community-resources/eff-tor-legal-faq/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Types: deb | |
Architectures: amd64 | |
URIs: https://deb.torproject.org/torproject.org | |
Suites: noble | |
Components: main | |
Signed-By: /usr/share/keyrings/deb.torproject.org-keyring.gpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -i | |
wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --dearmor | tee /usr/share/keyrings/deb.torproject.org-keyring.gpg >/dev/null | |
exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you run into issues with Nyx installs on Noble: | |
There is a long post about it here: | |
https://github.com/torproject/nyx/issues/24 | |
The TLDR thanks to Jayto1 @ https://github.com/torproject/nyx/issues/55#issue-1110894030: | |
add CookieAuthFileGroupReadable 1 to /etc/tor/torrc | |
sudo usermod -aG debian-tor $USER | |
sudo systemctl restart tor | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment