Job control on synology via SSH

This command will keep your process running in background even when closing the SSH connection to your synology.

 

nohup your_command >out.log 2>&1 </dev/null &

Enabling extensions in PHP CLI on a synology DS

This guide shows how to enable extensions in PHP CLI (command line interface).

Check your php ini location

php --ini

Change to the folder to where the php.ini is located given by the previous command which was in my case

/usr/local/etc/php70/php.ini

Use vi to edit the file

sudo vi php.ini

Change the extension dir path in php.ini to /volume1/@appstore/PHP7.0/usr/local/lib/php70/modules. Depending on your PHP version the location might differ.

Enable the extension by adding the following code line to your php.ini. Here’s an example showing how to enable PDO_mysql support.

extension = pdo_mysql.so

I had to the correct php executable. In my case it was located under

/volume1/@appstore/PHP7.0/usr/local/bin

There is no restart of any kind necessary to make this work as php.ini is initialised on every start when using PHP CLI. If you want to enable the extension on your webserver you have to to use the DSM settings for webstation to do it.

How to replace dump1090 with dump1090-mutability

I used the flightaware image for this swap to mutability. First thing you need to do is enable SSH on the device. Stop and remove dump1090-fa.

sudo service dump1090-fa stop
sudo apt-get remove dump1090-fa

Check the releases page on the dump1090 mutability git. Choose your version and copy the URL to the .deb file which is usually listed at the bottom if you click on a specific release.

Download & Install

sudo wget https://github.com/mutability/dump1090/releases/download/v1.14/dump1090-mutability_1.14_armhf.deb

sudo dpkg -i dump1090-mutability_1.14_armhf.deb

sudo apt-get update && sudo apt-get install dump1090-mutability

 

Configure

sudo dpkg-reconfigure dump1090-mutability (Make sure to choos port 30104 instead of 30004 when prompted)

 

Start

sudo service dump1090-mutability start

The only issue I’m currently having with this is the MLAT timestamp error. Btw. the URL to the radar map changed and is now accessible via serveradress/dump1090

How to enable SSH access on piaware (flightaware) since version 3.3

 

For security reasons, SSH access is disabled by default on new PiAware SD card installs, starting with version 3.3. To enable SSH, create an empty file on the /boot partition of the SD card with the filename of “ssh” only (no file extension). When this file is present, SSH will be automatically enabled.

Make sure however to change the default password for the user “pi” which is “flightaware” to something to your liking using…

To change the password of your account, use command: passwd.

To change password of any account when login as root, use command: passwd <account name>

Back to Top