Apr 18 2014

Howto: Can’t Update Synology DSM

Can't Update Synology DSM

The latest problem with the Synology DSM is that the DSM can’t be updated as it normally would. This problem occurs at least with the DSM version 4.2-3211. In this tutorial I will show you how to update it manually.
Continue reading

Nov 26 2013

Howto: Disable Mcrypt in Laravel

Some of the order installations or embedded (ARM processor) builds of PHP may not have PHP Mcrypt module pre-compiled and available. For example Synology entry-level NASes have ARM processors as does my Synology DS-413j. I tried to install Mcrypt via ipkg but it is not available. I tried to compile it from the sources but was not successfull. Continue reading

Oct 28 2013

Howto: Dynamic Virtual Hosts in Synology

Dynamic Virtual Hosts

When dealing with several clients and software that requires to be run on a dedicated domain, running Apache virtual hosts is a must. If you need many vhosts you will end up copy-pasting basically the same Apache configuration all over again. But instead of duplicating the entries you can use Apache’s dynamic virtual hosts configuration where you create a pattern for all future virtual hosts and then just place new vhosts in a correct place in directory hierarchy and voilà, it works automatically! Here’s how to do it. Continue reading

Aug 01 2013

Howto: Move Disks from One Synology NAS to Another Model

Moving Disks Between Synology

If your old Synology NAS breaks down or you upgrade to a newer NAS with perhaps more disk slots it is important that you can move the old disks – including the old RAID setup – to the new one. The problem is that if the new NAS presumes that the disks installed are empty, it may initiate and build a new RAID erasing your precious data in the process. There is a good guide how to do it on Synology website and I used it as a baseline when doing my own upgrading. Synology calls this process “data migration”. Here is how I moved my disks safely. Continue reading

May 31 2013

Howto: Upgrade Synology Hard Drives to Larger Capacity

Synology DS211j

Recently one of my 2 TB hard drives in Synology broke down. While waiting for the replacement drive to arrive from Sweden, I decided to upgrade my drives from 2 x 2 TB to 2 x 3 TB. If you would also like to replace your hard drives in Synology to bigger ones, here’s how to do it. Continue reading

May 28 2013

Cron Scheduling Doesn’t Work with Synology

Just a quick tip if you have trouble getting your Synology to run scheduled tasks specified in crontab. After a reboot I fought a while with my DS211j as no scheduled task worked – no matter how I wrote the commands in crontab. However I found the solution from Synology forum. Restart crond and it starts working:

  1. SSH login as root
  2. killall crond
  3. /usr/syno/etc/rc.d/S04crond.sh start
  4. Verify that your scheduled task is running

That’s it, enjoy!

*** UPDATE Aug 06, 2014: Since DSM update 5.x this method won’t work because /usr/syno/etc/rc.d/S04crond.sh does not exist anymore. Use /usr/syno/sbin/synoservicectl –restart crond instead. ***

Oct 16 2012

Howto: Virtual Hosts in Synology DS211j (Apache)

Sometimes, when developing for a web site for instance, you may need to get the site running in a virtual host in Apache, in order to test how it functions in a production environment. If you don’t use the virtual host technique, you need to manually insert paths in order to get for example CSS styles working properly. That is because in a production environment it is common that the references paths start from the domain and not having a directory in the beginning. Follow these steps to enable virtual hosts in Synology DS211j. Continue reading

Oct 05 2012

Howto: Restart Apache on Synology DS211j

This one is easy if you know where the script is located. Login as root and execute:
/usr/syno/etc.defaults/rc.d/S97apache-user.sh restart

That’s it, enjoy!

Sep 23 2012

Howto: Working Directory in Synology DS211j Shell Prompt

Synology DS211j has ash as the default shell. It has some basic features, such as tab-complete. However one of the features in other shells (such as bash) is missing: dynamic display of working directory in shell prompt. The default prompt is noninformative “DiskStation>“. Fortunately it is easy to change it to display current working directory. Here’s how:

  1. In your home directory: vi .profile
  2. vi editor is not very intuitive so you first need to enter “edit mode” by pressing “i” (insert).
  3. Comment out the line: PS1=”`hostname`> “ by adding a dash (#) in the beginning of the line
  4. Then copy-paste the following lines below it:
    PS1="`whoami`@`hostname | sed 's/\..*//'`:\w"
    case `id -u` in
    0) PS1="${PS1}# ";;
    *) PS1="${PS1}$ ";;
  5. Exit edit mode by pressing Esc.
  6. Save and exit the editor by typing :wq and hitting Enter.
  7. Log out and log in again and there you have it!

Enjoy 🙂

Dec 01 2011

Howto: Installing WordPress on Synology DS211j

With the DiskStation Manager (DSM) software v. 3.2 upwards it is possible to install WordPress using the Admin account’s Package Center. It will, however, install only one “master” instance of WordPress. Luckily installing WordPress blog engine for different users on Synology DS211j NAS station is pretty straight forward. Continue reading