Skip to content

Commit

Permalink
Update package lists before apt use.
Browse files Browse the repository at this point in the history
  • Loading branch information
boldsuck committed Jul 27, 2021
1 parent e6de1fb commit 354ef43
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
*.swp
### KDE ###
# directory preferences #
.directory
### Kate ###
# Swap Files #
.*.kate-swp
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This is a script to bootstrap a Debian server to be a set-and-forget Tor relay.

tor-relay-bootstrap does this:

* Configures only recommended but not install suggested packages by default
* Configures only recommended, but not install suggested packages by default
* Upgrades all the software on the system
* Adds the deb.torproject.org repository to apt, so Tor updates will come directly from the Tor Project
* Installs and configures Tor to be a relay (but still requires you to manually edit torrc to set Nickname, ContactInfo, etc. for this relay)
Expand All @@ -19,7 +19,7 @@ To use it, set up a Debian server, SSH into it, switch to the root user ('su -'

* Get & use this script:
```sh
apt install -y git
apt update && apt install -y git
git clone https://github.com/boldsuck/tor-relay-bootstrap.git
cd tor-relay-bootstrap
./bootstrap.sh
Expand Down
2 changes: 1 addition & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ echo ""
echo "== You may enable email reporting for unattended-upgrades & system's logfiles"
echo " - Make sure that you have a working mail setup on your system (mailx, nullmailer or alternatives)"
echo " then uncomment and adjust this lines in '/etc/apt/apt.conf.d/50unattended-upgrades':"
echo " '//Unattended-Upgrade::Mail' & '//Unattended-Upgrade::MailOnlyOnError"
echo " '//Unattended-Upgrade::Mail' & '//Unattended-Upgrade::MailOnlyOnError'"
echo " - You can monitor log files and receive a daily email report using tools like Logcheck or Logwatch"
echo ""
echo "== Recommendation: subscribe to the tor-relays & tor-announce mailing lists"
Expand Down
1 change: 1 addition & 0 deletions etc/tor/torrc
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ SocksPolicy reject *
ExitPolicy reject *:*

Log notice file /var/log/tor/notices.log
## Is already in "/usr/share/tor/tor-service-defaults-torrc" by default.
DataDirectory /var/lib/tor
RunAsDaemon 1

0 comments on commit 354ef43

Please sign in to comment.