This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
raspberry-pi [2018/10/06 08:49] dblume |
raspberry-pi [2021/10/25 10:59] (current) dblume |
||
|---|---|---|---|
| Line 191: | Line 191: | ||
| sudo crontab -e | sudo crontab -e | ||
| - | 0 5 * * 0 certbot renew --post-hook " | + | 0 5 * * 0 certbot renew --post-hook " |
| < | < | ||
| Line 214: | Line 214: | ||
| </ | </ | ||
| - | 5. Port forward ports 80 and 443. At the local router: | + | 6. Port forward ports 80 and 443. At the local router: |
| http:// | http:// | ||
| Line 220: | Line 220: | ||
| WAN -> Virtual Server / Port Forwarding | WAN -> Virtual Server / Port Forwarding | ||
| - | 6. Update nginx | + | 7. Update nginx |
| https:// | https:// | ||
| Line 252: | Line 252: | ||
| | | ||
| **TODO**: Renew with '' | **TODO**: Renew with '' | ||
| + | |||
| + | ===== Updating CertBot to use ACMEv2 ===== | ||
| + | |||
| + | Got an email from the EFF saying my current CertBot client uses ACMEv1 and it needs to be upgraded. Followed some instructions here: | ||
| + | |||
| + | sudo apt-get remove certbot | ||
| + | wget https:// | ||
| + | sudo mv certbot-auto / | ||
| + | sudo chown root / | ||
| + | sudo chmod 0755 / | ||
| + | |||
| + | But the next step (they suggested'' | ||
| + | |||
| + | sudo / | ||
| + | | ||
| + | is broken because it first an apt-get and Jessie Backports is gone, and then because the pip installation failed Hash verification. | ||
| + | |||
| + | ==== Problem: Jessie Backports is gone. ==== | ||
| + | |||
| + | Follow the instructions here: [[https:// | ||
| + | |||
| + | Remove "< | ||
| + | |||
| + | deb http:// | ||
| + | deb-src http:// | ||
| + | |||
| + | And then essentially (I did it with a sudo vim session): | ||
| + | |||
| + | echo ' | ||
| + | | ||
| + | ==== Problem pip install hash verification ==== | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | <file bash / | ||
| + | [global] | ||
| + | extra-index-url=https:// | ||
| + | </ | ||
| + | |||
| + | ===== Upgrading Distros ===== | ||
| + | |||
| + | When upgrading from Jessie to Stretch, I followed this recipe: [[https:// | ||
| + | |||
| + | I didn't keep PiHole working, as I would get occasional network drops when working from home, and it was resolved when taking PiHole out of the mix. Will probably have to do a fresh install. | ||
| ===== PiHole ===== | ===== PiHole ===== | ||
| Line 315: | Line 359: | ||
| curl " | curl " | ||
| </ | </ | ||
| + | |||
| + | ===== New ACMEv2 Certbot overwrites / | ||
| + | |||
| + | We keep backups at '' | ||
| + | |||
| + | sudo service nginx restart | ||
| ===== Jessie or earlier: Add piwheels for fast Python pip installations ===== | ===== Jessie or earlier: Add piwheels for fast Python pip installations ===== | ||
| If you're not installing Stretch or later, here's [[https:// | If you're not installing Stretch or later, here's [[https:// | ||
| - | <file / | + | < |
| [global] | [global] | ||
| extra-index-url=https:// | extra-index-url=https:// | ||