Differences

This shows you the differences between two versions of the page.

Link to this comparison view

raspberry-pi [2020/02/02 11:24]
dblume [Problem: Jessie Backports is gone.]
raspberry-pi [2020/04/05 18:12] (current)
dblume
Line 263: Line 263:
   sudo chmod 0755 /usr/local/bin/certbot-auto   sudo chmod 0755 /usr/local/bin/certbot-auto
  
-But the next step,+But the next step (they suggested''sudo /usr/local/bin/certbot-auto certonly --nginx'')but I tried:
  
-  sudo /usr/local/bin/certbot-auto certonly --nginx+  sudo /usr/local/bin/certbot-auto certonly --webroot -w /var/www/html -d pi.dlma.com -d wopr.dlma.com
      
-is broken because it does an apt-get and Jessie Backports is gone.+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. ==== ==== Problem: Jessie Backports is gone. ====
Line 282: Line 282:
   echo 'Acquire::Check-Valid-Until no;' > /etc/apt/apt.conf.d/99no-check-valid-until   echo 'Acquire::Check-Valid-Until no;' > /etc/apt/apt.conf.d/99no-check-valid-until
      
 +==== Problem pip install hash verification ====
  
 +[[https://community.letsencrypt.org/t/certbot-auto-certificates-fails-while-installing-phyton-packages-with-these-packages-do-not-match-the-hashes/90363/5|Certbot fails when installing Python packages]]. This can be resolved by deleting the ''/etc/pip.conf'' file:
 +
 +<file bash /etc/pip.conf>
 +[global]
 +extra-index-url=https://www.piwheels.org/simple
 +</file>
 ===== PiHole ===== ===== PiHole =====
  
Line 345: Line 352:
 curl "http://pi.hole/admin/api.php?summary" | python -m json.tool curl "http://pi.hole/admin/api.php?summary" | python -m json.tool
 </code> </code>
 +
 +===== New ACMEv2 Certbot overwrites /etc/nginx/sites-enabled/default =====
 +
 +We keep backups at ''~/etc_nginx_sites-enabled_default_pihole.backup''.
 +
 +  sudo service nginx restart
  
 ===== Jessie or earlier: Add piwheels for fast Python pip installations ===== ===== Jessie or earlier: Add piwheels for fast Python pip installations =====
raspberry-pi.1580671467.txt.gz · Last modified: 2020/02/02 11:24 by dblume
 
Recent changes RSS feed Driven by DokuWiki