Category Archives: NAS

Setup custom Synology NAS on a real hardware

You can like my Facebook page here for more technology knowledge.
https://www.facebook.com/ahkhaitech/

Sorry, was quite busy lately. Before that, I explained in a separate post on how to install Synology Disk Station on virtual machine. So it was only just on a virtual machine that installed under Windows 7 operating system. So which means there are 2 main concerns if we try to do that.

  1. Virtual machine hard disk may easily corrupted
    The real problem here is virtual machine hard disks are much more difficult to backup and restore if there is virtual hard disk corrupted
  2. Performance issue
    You won’t get a real performance if you run everything on a virtual machine, no matter how it still run under Windows 7 operating system.
  3. High Power Consumption
    The old NAS is running with first generation of Intel I7 Processor. And then the motherboard is an old powerful model Asus P7P55D. Both are very high power consumption. And the motherboard don’t have embedded graphic card chipset. So I have to buy an extra fanless graphic card which is expect to be low power consumption.

So it was OK if you plan to do quick testing on Synology Disk Station, then you can use virtual machine for that purposes. Before I am writing this post, I actually already setup the DSM 5.1 version on an old machine. I tried to install DSM 5.2 but it can’t detect the XPEnology bootable disk. So I suspect because the motherboard are too old to install DSM 5.2. Below are my old PC specification.

Old PC.PNG

The major reasons why I start to buy some new hardware because the old PC that runs DSM 5.1, will auto reboot itself every couple of days. I tested on DSM 5.2 before on another new PC (Asus Z97-M plus motherboard), and it is looking stable and good. so I decide to pick some new hardware. Because Asus Z97M-Plus motherboard is out of stock at the moment, so I think that it was OK if i pick Asus H97M-E. Slightly lower spec than the Asus Z97M-Plus but I believe that it should runs DSM 5.2 pretty well.

So below is my custom Synology NAS hardware.

new PC.PNG

Basically the Intel Pentium G3260 comes with 2 cores (2 threads). which is super low power compare to I3 or I5 processor. And the motherboard is Asus H97M-E, can support up to 4 x 6.0 gb/s SATA. 2 GB ram is very good enough for DSM 5.2, So I am using back the old kingston 120GB SSD as my main storage, and you can add additional HDD if you want.

Power Consumption

This motherboard has already comes with embedded graphic card chip-set. So the total power consumption is around < 25W (Without HDD) for the new NAS. The old one was 50Watt (Without any HDD)! So there is a 50% improvement on power consumption.

Casing, Power Supply

I am using existing power supply and Lian Li Casing for this new NAS.

IMG_2191

IMG_2194IMG_2196IMG_2200IMG_2201IMG_2204IMG_2209

Things we need this round

XPEnoboot_DS3615xs_5.2-5592.1.img

Win32DiskImager-0.9.5-install.exe

DSM_DS3615xs_5592.pat

Create the XPEnology bootable pen drive

After assemble all the hardware, now the first step is to create the bootable pen drive. You can create a bootable CD drive, but I never tried before. I used an old kingston 8GB pen drive as my bootable device. So install the Win32 Disk Imager on ur PC, then you would see something like below.

Win32DiskImager

Change BIOS Settings

You should have change your BIOS setting to run then bootable pen drive as highest priority

IMG_2207

System tuning and power consumption

Adjust your system to lowest possible eco mode, it will save a lot of power consumption

IMG_2204

Boot for the first time

https://youtu.be/iUzeGgo_6KA

You should see this screen if you are running XPEnoboot 5.2-5592.1 on your system. Choose the install/upgrade (But actually it doesn’t really matter so far from what I noticed). And then the system will be loaded. And when you see “DiskStation Login:”, you can use http://find.synology.com/ to search for this Disk Station.

IMG_2210IMG_2212

Installing your Disk Station Manager

Once you found your disk station, you should see the screen like below, choose a manual installation and select your DSM_DS3615xs_5592.pat file locally. The installation should takes around 5 minutes depending on your system performance.

This slideshow requires JavaScript.

Setting up your credential

Once the installation completed, you should see a welcome page. Proceed to setup your administrator credential. If you lost your connection to Disk Station, you can access it again by getting the IP address from your router DHCP list and then use username=”admin” and password =”” to re-login again.

This slideshow requires JavaScript.

Done!

Feel free to comment below if you have any question or better suggestion.

9.PNG

 

 

 

Setup Cloud Station on Synology NAS

Synology Disk Station allowed user to setup a cloud service which is fairly similar like DropBox.com.

The majority of people now switch between multiple devices every day, resulting in a dramatic increase in the popularity of cloud storage. Sometimes our entire productive life – working reports, notes, references – relies on the cloud, meaning we need a cost-efficient, high-capacity yet absolutely private cloud solution more than ever. Synology NAS can provide the solution.

Installing the Synology Cloud Station Client application on windows 7.

cloud1

You can select a quick setuo, or advanced setup. If  you selected advanced setup you can specify your cloud directory where you want to sync.

cloud2

If you completed, you can see the cloud in your windows directory.

cloud3

You can setup multiple cloud sources from different Synology NAS.

cloud4

The toolbar icon will displayed if you have the latest up to date files.

cloud5

cloud6

Below is the mobile version, you can login to specific domain with port number.

IMG_1792

Below is the mobile version of cloud directory.

IMG_1793

You can see your sync files.

IMG_1794

Because it is a mobile version, so  you can filtered files by file format.

IMG_1795

Modify Synology Photo Station Default Directory

By default, Synology Disk Station will only accept one photo directory as the photo station source. But sometimes you want to re-connect the existing photo directory that you already have, or migrate the photo directory to a bigger hard disk volume. You can’t select multiple photo directories unless you install the Synology Media Server application.

If you don’t want to do that, the only solution is to change your photo station default directory to the hard disk volume that you preferred.

After you installed the Photo Station on your Synology NAS, go to Control Panel and refer to the “Shared folder” page.

photo1

photo2

As you can see now, the default shared folder of the Photo Station is pointing at “Volume 1”, So our task now is to migrate it to “Volume 2”.

photo3photo4photo5

 

Setup a Surveillance Station on 2 different LAN networks

Currently I installed a Synology NAS at my home, but I need another one to setup at my hometown (300 kilometers away) so that I can helped my parent to monitor their premises. Instead of spending on 2 Synology Disk Stations, I just stick with one, but connect to my parent’s house CCTV and grab all the live content and recording it down into my NAS.

But we need to make sure a couple of things are working now before we link all the CCTVs at a single NAS.

  1. My parent’s CCTVs support port forwarding access
  2. My parent’s router can support external access
  3. My parent’s router support dynamic DNS.
  4. Setup a free domain

 

If (1) and (2) are OK, then the next important step is to setup a free domain at www.Noip.com. let’s say we setup http://secondhouse.ddns.net, update your router’s DDNS (Dynamic Domain Name System) settings so that each time your router reboot, it will notify noip.com server on it’s latest IP address, so that when you access http://secondhouse.ddns.net, you would get the latest IP address.

The next thing is to setup port forwarding for your CCTV, let’s say we already setup port 8000 for external source to access the CCTV, then you should fill up the information like below,

2lan.PNG

The Synology Surveillance Station is good enough to stream the CCTV content across internet. Physically your CCTVs can be at 2 or more different locations, but virtually you are keeping all the video recording at a single NAS.

Connect DS Cam to your Synology NAS

Since we had already setup external access for our Synology NAS, now is time to test it and make sure we can access our Synology Surveillance Station from the WAN network using our phone or browsers. If you are using IOS or Android phone, download the Synology official Surveillance Cam App,

IOS: https://itunes.apple.com/us/app/ds-cam/id349087111?mt=8
Android: https://play.google.com/store/apps/details?id=com.synology.DScam&hl=en

Install them, and you would see the DS cam icon like below,

 

You can enter your router external IP Address with the forwarded port, if you are not sure how to do a port forwarding for Synology NAS please refer to my previous post here.

IMG_1742

The green box is “navigation menu”, and the red one is “view all mode”

IMG_1743

If you click on individual camera, the right box at the top is “manual recording”.

IMG_1744

Navigation Menu

IMG_1745

Recordings video

IMG_1746

You can filter the recording videos by source, cameras, and date. And if you want you can sort it by date.

IMG_1747

This is “view all” mode. You can see all the camera real time activities in a single view.

IMG_1748

 

Setup external access to your Synology NAS

2 Ways

There are 2 ways to setup external access for your Synology NAS, the first way is to setup Synology QuickConnect ID. The other method is to setup router port forwarding. If you are using QuickConnect ID definitely would be safer compare to router port forwarding method because you have to manage your router security better if you are doing it your way.

A standard port to access Synology NAS HTTP is port 5000. HTTP then required port 5001. To access photo station externally then you required a port 80. Surveillance Station required standard port 5000 or 5001.

Synology Network Ports

You can see the complete list of network port for Synology NAS, refer to here.

https://www.synology.com/en-us/knowledgebase/DSM/tutorial/General/What_network_ports_are_used_by_Synology_services

Although in the network port list, they mentioned required port 9000 or 9001 for Surveillance Station, but I noticed that exposing port 5000 and 5001 is sufficient enough.

Router Port Forwarding

Let’s say, for an example if your Synology NAS URL is, http://192.168.0.108:5000/webman/index.cgi

You can set your router port forwarding like below,

forward1.PNG

If your external IP address (router IP address) is like 175.200.142.46, you can access your Synology NAS using http://175.200.142.46:20000/ then you can see your Synology NAS login screen.

For cloud station, just access it with http://175.200.142.46:20001/ will do.

In order to test if your Synology NAS successfully exposed to external access, use Google Paping to double check with “paping 175.200.142.46 -p 20001”.

*Most importantly, setup your Synology NAS properly, please refer to here.*

 

Setup XiaoYi IP Camera on Surveillance Station

Surveillance Station XiaoYi IP Camera

By default Synology Disk Station never support XiaoYi IP camera offically, so that’s why you can’t see the XiaoYi IP camera as part of the compatible cameras.

Overall

But after I read a couple of Chinese web site, I realized that it is entirely possible to install the XiaoYi IP camera on Synology Surveillance Station, but some minor tweak and workaround is needed in order to achieve that.

The current situation

One of the tricky part with Xiao Yi IP camera is that Xiao Mi launched 2 version of Xiao Yi IP Cameras. The first one we called it “non night vision”, where the latest product is called “night vision”.

The so-called “non night vision”, won’t worked well during night time, but it support RTSP (Real Time Streaming Protocol). RTSP protocol is very important for us if we want to setup the XiaoYi IP Camera to works in Synology Surveillance Station.

The “night vision” XiaoYi IP camera works well during dark time, but I noticed it contains 2 big problems.

The first one is it did not support RTSP protocol. Second one is the ping is very high when compare with the old version. I believe that since it is a manufacture problem for the later problem, then we can’t do anything about it. But the first problem can be solved with some trick (Will show you guys later).

How to install XiaoYi IP camera on night vision version

Please refer to the latest post here.

How to install XiaoYi IP Camera (non night vision) on Surveillance Station?

The first step is to add the Xiao Yi IP Camera into the XiaoMi account, and make sure it is connected to internet.

Second step, try to get the XiaoYi IP camera IP address from your router device list like below.

 

xiaoyi1

If you know the IP address, try to ping using google paping, pointing it at “paping [IP address]  -p 554“, if it is working then you can see a list of connected results like below. On how to use Google Paping, please refer to here.

 

xiaoyi2.PNG

Use VLC to double confirm everything, choose “Open network stream” option in File.

xiaoyi3.PNG

And then enter “rtsp://[IP address]:554/ch0_0.h264” like “rtsp://192.168.0.194:554/ch0_0.h264”

xiaoyi4.PNG

If your one is non night vision XiaoYi IP camera, then you can see your screen.

xiaoyi5.PNG

After make sure every connect work smoothly within our expectation, then next big step is to connect them to Synology Surveillance Station.

The next big step

As I explained earlier, Synology Surveillance Station never support XiaoMi IP camera officially. So we need to update the “device pack” configuration file with a custom XiaoYi camera configuration file.

[Xiaomi*Ants]
api = custom
resolution_h264 = 1280×720
default_resolution_h264 = 1280×720
fps_h264_640x480 = 5,10,15,20,25,30
fps_h264_1280x720 = 5,10,15,20,25,30
default_fps_h264_1280x720 = 20
default_image-quality = 5

h264 = rtsp
mpeg4 = rtsp
mjpeg = rtsp
motion = h264,mpeg4,mjpeg

motion_param = sensitivity,threshold
rtsp_keepalive = none
rtsp_protocol = auto,udp,tcp

Save the configuration as Xiaomi.conf.
By using WinSCP, upload this Xiaomi.conf configuration and store it at “/var/packages/SurveillanceStation/target/device_pack/camera_support” like below.

xiaoyi6

This step is very important, so that after we added the configuration, then we can see the XiaoYi camera listed in the drop down menu of the device pack like below.

xiaoyi7.PNG

Make sure you entered the IP address, and the port 554. Leave the username and password <blank>.

Click next or save it.
As you can see that the XiaoYi IP camera will listed as “disconnected”, this is common and it happened because we still have to do some tweak and workaround to make it work.

xiaoyi8.PNG

Make sure you read all the text carefully

Export the XiaoYi IP camera configuration to a storage

xiaoyi9xiaoyi10

And remember to select the XiaoYi IP camera so it can export correctly.

Access the network drive of the NAS, and look for the .EXPcam file.

xiaoyi11.PNG

By using PSPad, modify the path and live path from “/” to “/ch0_0.h264” like below.

xiaoyi12.PNG

And then remove the current “disconnected” XiaoYi IP camera from the IP camera list.

xiaoyi13.png

Import the one that modified by you previously.

xiaoyi16xiaoyi15xiaoyi14

If you import an IP camera configuration, by default Surveillance Station will disable it. So you have to right click and Enable it.

xiaoyi17

It is 99% working fine now, as you can see the thumbnail preview.

xiaoyi18.PNG

And below is the final confirmation.

xiaoyi19.PNG