Monthly Archives: May 2019

Adding bootstrap to Synology DSM

In package center > settings:

  • add https://www.cphub.net/ to package sources
  • Allow installation of packages published by Synology Inc. and trusted publishers

Install in this order:

  1. Perl in Developer Tools
  2. Easy Bootstrap Installer in Community (choose entware as optware doesn’t have any recent updates)
  3. iPKGui in Community

Packages will be installed to /opt.

Command-line tool is opkg.

opkg list-installed
opkg list *gcc*

Source /opt/etc/profile at the end of the ~/.profile file for each user that needs
to use packages installed by ipkg.

Change Letsencrypt certificates

In case you find yourself that you added one to many host/domainnames to your letsencrypt certificate, it is possible to change that after the initial generation. The tool certbot is your friend in this case.

Imagine your initial cert was named test.domain.com and it contained the additonal domain test2.domain.com. Now you want to add test3.domain.com. You do that as follows:

certbot certonly --cert-name test.domain.com -d test.domain.com,test2.domain.com,test3.domain.com

Enable SMTP for PHP on Ubuntu

Many php-based web application are using php's smtp function. Unfortunately, Ubuntu's php default setup disregards the installation of packages necessary for using smtp. The following command line takes care of their installation:

aptitude install php-net-smtp