LinkNYC Blue

A LinkNYC  Kiosk crashed

I always assumed that these ran Windows or Andriod.


Ubuntu 15.04 adr-sbc-mn-03-138508 tty1
adr-sbc-mn-03-138508 login:

Canal St.

replacing curl with wget

In the old days, curl was installed by default by a new installation and wget needed to be added.

Now it’s the other way around. I got fed up with this and figured out how to modify my old scripts to use wget.

open(CURLY, "/usr/bin/curl -kfs https://copier.lan/status/statgeneral.htm|")
    or die "Can't curl: $!";

curl writes to stdout by default. k for insecure https connection, f for fail silently, s for silent.

open(CURLY, "/usr/bin/wget --no-check-certificate -qO - https://copier.lan/status...
    or die "Can't curl: $!";

wget writes to a file by default. --no-check-certificate for insecure https connection, q for quiet, O - to write the data to stdout.

let’s encrypt: https_proxy systemd

On a Debian Stretch system at work, certbot was working but automatic renewals were not. The system is behind a proxy server and the https_proxy environment variable was not being set when certbot ran unattended.

I wasted several hours tinkering with /etc/cron.d/certbot before I realized that

0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(3600))' && certbot -q renew

was preventing certbot from running if systemd was running.

Edit /lib/systemd/system/certbot.service Add: