[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [community/master] relay/setup (CentOS-likes): promote full page update, to follow Debian-like changes
commit db26be9c90ff2f313b118aa46528861d81479cd7
Author: VinÃcius Zavam <egypcio@xxxxxxxxxxxxxx>
Date: Sun Oct 24 13:32:31 2021 +0000
relay/setup (CentOS-likes): promote full page update, to follow Debian-like changes
---
content/relay/setup/guard/centosrhel/contents.lr | 57 +++++++++++++-----------
1 file changed, 32 insertions(+), 25 deletions(-)
diff --git a/content/relay/setup/guard/centosrhel/contents.lr b/content/relay/setup/guard/centosrhel/contents.lr
index e5e7afd..54b7d29 100644
--- a/content/relay/setup/guard/centosrhel/contents.lr
+++ b/content/relay/setup/guard/centosrhel/contents.lr
@@ -10,13 +10,21 @@ body:
One of the most important things to keeps your relay secure is to install security updates timely and ideally automatically so you can not forget about it. Follow the instructions to enable [automatic software updates](updates) for your operating system.
-# 2. Enable the EPEL repository
+# 2. Install `epel-release`
-To install `tor` package on CentOS/RHEL, you need to install the [EPEL](https://fedoraproject.org/wiki/EPEL) repository first:
+To install `tor` on CentOS/RHEL, you need to enable the use of the [EPEL](https://fedoraproject.org/wiki/EPEL) Repository first. To do so, you must install the `epel-release` package:
`yum install epel-release`
-# 3. Add the following to /etc/yum.repos.d/tor.repo and then install the tor package.
+Recent versions of CentOS/RHEL are using `dnf` instead of `yum`, so the command to install the package would be:
+
+`dnf install epel-release`
+
+If you are on a recent version that uses `dnf`, please keep using it for the following steps where `yum` is called on this setup guide.
+
+# 3. Enable Tor Project's Repository
+
+Enabling the Tor Project's Repository for CentOS/RHEL consists basically on setting up `/etc/yum.repos.d/Tor.repo` with the following content:
```
[tor]
@@ -28,40 +36,39 @@ gpgkey=https://rpm.torproject.org/centos/public_gpg.key
cost=100
```
+More information about it can be found [here](https://support.torproject.org/rpm/).
+
+# 4. Install `tor`
+
+Once you are set with EPEL and the Tor repositories, you are now able to install the package:
+
`yum install tor`
-When you install the first package from the EPEL repository you will be asked about verifying the EPEL GPG signing key.
-Please ensure the key matches with the one available on the [Fedora Project website](https://getfedora.org/keys/).
+Please note that when you are installing the first package from the EPEL repository you will be asked about verifying the EPEL's GPG signing key. Please ensure the key matches with the one available on the [Fedora Project website](https://getfedora.org/keys/).
-# 4. Put the tor configuration file `/etc/tor/torrc` in place
+# 5. Configure `/etc/tor/torrc`
```
-#change the nickname "myNiceRelay" to a name that you like
-Nickname myNiceRelay
-ORPort 9001
-SocksPort 0
-ExitRelay 0
-# Change the email address below and be aware that it will be published
-ContactInfo tor-operator@your-emailaddress-domain
+Nickname myNiceRelay # Change "myNiceRelay" to something you like
+ContactInfo your@e-mail # Write your e-mail and be aware it will be published
+ORPort 443 # You might use a different port, should you want to
+ExitRelay 0
+SocksPort 0
```
-# 5. Enable and start your Tor relay
+# 6. Enable and Start `tor`
-CentOS 7 / RHEL 7:
+Recent versions os CentOS/RHEL which ship with systemd:
-```
-systemctl enable tor
-systemctl start tor
-```
+`systemctl enable --now tor`
-CentOS 6 / RHEL 6:
+Should you use an older release like CentOS/RHEL 6, that will be:
-```
-service tor enable
-service tor start
-```
+`service tor enable`
+
+`service tor start`
-# 6. Final notes
+# 7. Final Notes
If you are having trouble setting up your relay, have a look at our [help section](/relay/getting-help/).
If your relay is now running, check out the [post-install](/relay/setup/post-install/) notes.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits