-
Notifications
You must be signed in to change notification settings - Fork 9
How to Update dnscrypt proxy in Debian with Minimal Downtime
jdrch edited this page Nov 20, 2019
·
6 revisions
- Save this script to
/opt/dnscrypt-proxy/dnscrypt-proxy-update.sh
- Make the script executable by running
chmod +x /opt/dnscrypt-proxy/dnscrypt-proxy-update.sh
- Execute the script by running
sudo ./dnscrypt-proxy-update.sh
in/opt/dnscrypt-proxy/
- Complete Scripted Method steps above to set up the script and ensure it works on your system
- Open the crontab editor with
sudo crontab -e
- In the crontab editor that pops up, append a descriptive comment describing the entry, e.g.
# Daily dnscrypt-proxy update
- Add a crontab entry that performs the update on the desired schedule, e.g.
@daily /opt/dnscrypt-proxy/dnscrypt-proxy-update.sh
. See crontab syntax for more scheduling options - Hit Ctrl O to save your changes
- Hit Enter
- Hit Ctrl X to exit the crontab editor
- Start your preferred GUI file manager with
sudo
, e.g.sudo krusader
on Debian orsudo pcmanfm
on Raspbian. - Download the new version's
linux_Platform-VersionNumber.tar.gz
archive - Extract the archive
- Use the GUI file manager to transfer the extracted files to
/opt
- Copy the current dnscrypt-proxy folder into an *
-old
folder - Navigate to
/opt
in the terminal usingcd /opt/dnscrypt-proxy
- Stop the
dnscrypt-proxy
service in the terminal usingsudo ./dnscrypt-proxy -service stop
- Use the GUI file manager to transfer the new files to to the
dnscrypt-proxy
folder - Start the
dnscrypt-proxy
service in the terminal usingsudo ./dnscrypt-proxy -service start
- If everything is working, delete the *
-old
and extracted tar.gz folders
Organized Alphabetically:
- Explainers
- How Linux, BSD, UNIX, and macOS Relate to Each Other
- Why I Use Resilio Sync Instead of Syncthing
- Why US Buyers Should Purchase Datacenter HDDs instead of NAS HDDs
- Why You Should Separate Compute and Backup Workloads
- Why You Shouldn't Stress Test HDDs Unless You're Trying to Maximize Uptime
- Why You Shouldn't Use Most Premade NAS Solutions
- Guides
- Disaster Recovery and Backups for OpenRC BSDs to non ZFS Repositories
- Disk Encryption Options
- How Much Raw Storage You'll Need for RAID
- How Often Arrays Can Be Scrubbed Without Reducing HDD Life
- How to Calculate the Odds of Physical Attack Data Loss for a ZFS Array
- How to Configure a Samba Server
- How to Generate an Affordable Server or NAS Parts List
- How to Get Your Home Wired for Ethernet
- How to Install OpenIndiana
- How to Install Pycharm on Debian from the JetBrains script
- How to Set Up Regular, Recurring, Incremental, Online Filesystem Backups using Restic
- How to Set Up Regular, Recurring, Recursive, Incremental, Online, In Place Filesystem Backups Using zfsnap
- How to Store HDDs Long Term
- How to Update dnscrypt proxy in Debian with Minimal Downtime
- Projects
- Ongoing
- Future (in order of descending priority/implementation)
- Recommended Hardware
- Recommended Software
- Troubleshooting
- Useful Links