NAS server

There are some useful links for happy owners of Synology NAS servers.

 Basic commands

Adding SSL sertificate

http://forum.synology.com/wiki/index.php/Overview_on_modifying_the_Synology_Server,_bootstrap,_ipkg_etc

At first you would probably like to install 'ipkg' package manager:
cd /volume1/@tmp
wget "http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/syno-mvkw-bootstrap_1.2-7_arm.xsh"

chmod +x syno-mvkw-bootstrap_1.2-7_arm.xsh
sh syno-mvkw-bootstrap_1.2-7_arm.xsh


You can install cacti - a very nice snmp monitoring tool:
http://thanatosblog.wordpress.com/2010/09/02/cacti-as-snmp-monitor-on-synology/

You may also alter it to be smokeping alike
http://www.robdehoog.nl/technology/cacti-on-a-synology-nas-how-to/ping-availability-cacti-graphs/

ipkg_conf_init: Failed to create temporary directory `(null)': Permission denied

Solution: login to cli as a root user not as admin.

ipkg update error

NAS> /opt/bin/ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz
An error occurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 41: `wget --passive-ftp    -q -P /opt/ipkg-0Y3D3H http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz'


Make sure you're using the right version of wget. There are usually 2 of them at /opt/bin/wget and at /usr/syno/bin/wget

NAS> echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/                             local/bin
NAS> which wget
/usr/syno/bin/wget
NAS> wget -V
GNU Wget 1.10.1


Use a newer one:

NAS> export PATH=/opt/bin:$PATH
NAS> which wget
/opt/bin/wget
NAS> wget -V
GNU Wget 1.12 built on linux-gnueabi.


Where to find php.ini?
/usr/syno/etc

Indexing script 

For files that don't get indexed otherwise.
http://www.naschenweng.info/2010/02/13/synology-automatic-indexing-via-synoindex/

Basic command

http://forum.synology.com/wiki/index.php/Basic_commands_to_get_around_the_Synology_Box_using_the_CLI