-
Notifications
You must be signed in to change notification settings - Fork 62
OS3 tricks
Stefaan Ghysels edited this page Oct 18, 2019
·
3 revisions
The firmware ships without ca certificates (or outdated certs) and uses wget --no-check-certificate too often. Use secure downloads by installing the mozilla ca bundle.
curl --remote-name --time-cond cacert.pem https://curl.haxx.se/ca/cacert.pem
mv cacert.pem /etc/ssl/cert.pem
Normally, the WD web interface is only available in the local network. Run this script to remove that limitation.
#!/bin/sh
CONFIG=/usr/local/apache2/conf/httpd.conf
sed -i -e '/<RequireAny>/{N;N;N;d}' $CONFIG
kill -HUP $(pidof httpd)
I prefer running a more up-to-date version of nginx instead of apache. I'm using apache for the WD firmware only on port 80 (not portforwarded in the router) and nginx for my own projects on https port 443 (portforwarded in my router).
TODO: add script
Get the current date
date
Get the current date in universal time (UTC)
date -u
List available timezones
ls /usr/sbin/zoneinfo/
Change the timezone
unlink /etc/localtime
ln -s /usr/sbin/zoneinfo/Amsterdam /etc/localtime