Synology – config Automysqlbackup

Config Automysqlbackup 

config automysqlbackup.conf
edit  automysqlbackup and set /path/to/automysqlbackup.conf

MySQL aliases
Instead of extending the path variable, you can create a symbolic link to mysql, mysqldump, mysqlshow
cd /usr/local/bin

sudo ln -s /volume1/@appstore/MariaDB10/usr/local/mariadb10/bin/mysql /usr/local/bin/mysql
sudo ln -s /volume1/@appstore/MariaDB10/usr/local/mariadb10/bin/mysqldump /usr/local/bin/mysqldump
sudo ln -s /volume1/@appstore/MariaDB10/usr/local/mariadb10/bin/mysqlshow /usr/local/bin/mysqlshow

How to change PhotoStation Synology logo

Login via ssh:

ssh -2 [email protected]
sudo -i

Copy Your logo white template:

cp /yourlogo.png /var/packages/PhotoStation/target/photo/photo_new/images/White/logo_ps6.png

Copy Your logo dark template:

cp /yourlogo.png /var/packages/PhotoStation/target/photo/photo_new/images/Black/logo_ps6.png

How to use Time Machine to back up your Mac to a Windows shared folder – macOS

The issue that makes Time Machine more difficult in terms of options for backup locations is that it requires use of Apple’s proprietary HFS+ filesystem. Although I’m certain the HFS+ features that Time Machine uses for file versioning and linking could be “mimicked” for use on other more open filesystems, the reality is that Apple chose HFS+ and supports that filesystem exclusively in Time Machine (in fact as of this writing Apple’s new APFS isn’t even supported for Time Machine backups as of yet).

  • Create a Windows share location
  • Make the remote share automatically mount
  • make Time Machine use the remote share and file
  • Check Time Machine

Read more

Which Synology NAS models does Migration Assistant support?

The below table lists Synology NAS models which are supported by Migration Assistant to work as either source or target server. The source server refers to the original Synology NAS from which data is moved, and the target server refers to the new Synology NAS.
Series Models
19-series RS1619xs+, RS1219+, DS2419+, DS1819+, DS1019+
18-series FS1018, RS3618xs, RS2818RP+, RS2418+/RS2418RP+, RS818+/RS818RP+, DS3018xs, DS1618+, DS918+, DS718+, DS418play, DS218+
17-series FS3017, FS2017, RS18017xs+, RS4017xs+, RS3617xs+, RS3617RPxs, RS3617xs, DS3167xs, DS1817+, DS1517+
16-series RS18016xs+, RS2416+/RS2416RP+, DS916+, DS716+II, DS716+, DS416play, DS216+II, DS216+
15-series RS815+/RS815RP+, RC18015xs+, DS3615xs, DS2415+, DS1815+, DS1515+, DS415+
14-series RS3614xs+, RS3614xs/RS3614RPxs, RS2414+/RS2414RP+, RS814+/RS814RP+
13-series RS10613xs+, RS3413xs+, DS2413+, DS1813+, DS1513+, DS713+
12-series RS3412xs/RS3412RPxs, RS2212+/RS2212RP+, RS812+/RS812RP+, DS3612xs, DS1812+, DS1512+, DS412+
11-series RS3411xs/RS3411RPxs, DS3611xs
The models in below table are also supported by Migration Assistant as either source or target server. However, please note that they cannot be used as target servers for the models mentioned in above table.
Series Models
17-series DS1817, DS1517
15-series DS2015xs, DS1515, DS715
Neither source nor target server can be VDSM or DDSM.
We recommend migrating to a Synology NAS with better hardware specification to ensure all packages and services will work properly after migration. Please visit Synology Download Center to find your product’s datasheet for more information.

How to Find and Remove @eaDir Directories on Synology NAS

Synology NAS @eaDir directories popping up everywhere. These are “hidden” folders equivalent to thumbs.db on Windows where the package stores thumbnail files associated with iTunes support. If you’re not using iTunes you don’t need these directories. You can remove them in two steps.

In SSH use the following to locate them:

cd /
find. -type d -name"@eaDir"

and if you’re feeling adventurous you can automatically delete them like so:

find . -type d -name "@eaDir" -print0 | xargs -0 rm -rf

Downgrade Synology DSM 5.0 to 4.3

What you’ll need:
DSM5.0-4482 (or newer is installed) for your particular DS.
DSM4.3-3827 for your particular DS.
Assistant Synology DS
A network and some cables.
A disk to be used for installation.
Your data, back up a safe place.
A DiskStation be downgraded.
Get the DSM versions here

Read more

Set up scaling option for DSM Synology

* Check scaling setup:

sysctl net.ipv4.tcp_window_scaling

* Turned off scaling to 0 as root:

sysctl -w "net.ipv4.tcp_window_scaling=0"

* To maintain the changes after a restart, include the file

vi /usr/syno/etc/rc.d/
sysctl -w "net.ipv4.tcp_window_scaling=0"
 chmod +x /usr/syno/etc/rc.d/


Slow connection and email attachments download to 0 kb

Configuration of operating systems

TCP Window Scaling is implemented in Windows since Windows 2000. It is enabled by default in Windows Vista / Server 2008 and newer, but can be turned off manually if required.

Linux kernels (from 2.6.8, August 2004) have enabled TCP Window Scaling by default. It chooses the good value of the option by default. The configuration parameters are found in the /proc filesystem, see pseudo-file /proc/sys/net/ipv4/tcp_window_scaling and its companions /proc/sys/net/ipv4/tcp_rmem and /proc/sys/net/ipv4/tcp_wmem

Scaling can be turned off by issuing the command sysctl -w “net.ipv4.tcp_window_scaling=0” as root. To maintain the changes after a restart, include the line “net.ipv4.tcp_window_scaling=0” in /etc/sysctl.conf.

FreeBSD, NetBSD and Mac OS X 
The default setting for FreeBSD, NetBSD and Mac OS X is to have window scaling (and other features related to RFC 1323) enabled.
To verify their status, a user can check the value of the “net.inet.tcp.rfc1323” variable via the sysctl command:

sysctl net.inet.tcp.rfc1323

A value of 1 (output “net.inet.tcp.rfc1323=1”) means scaling is enabled, 0 means “disabled”. If enabled it can be turned off by issuing the command:

sudo sysctl -w net.inet.tcp.rfc1323=0

This setting is lost across a system restart, to make it permanent it must be written in the /etc/sysctl.conf configuration file, that can be accomplished via the command:

echo 'net.inet.tcp.rfc1323=0' | sudo tee -a /etc/sysctl.conf