Posts

Showing posts with the label synology

How to send large backup on Hubic using Synology Hyper Backup when you get connection issues for the first synchronization

Image
In your backup task, simply drill down in the folder tree to select only a few folders amongst the whole set of folders you would like to backup in order to keep the backup size and time reasonable. When the backup task succeeds, edit the task and add a few folders more.  Then relaunch the backup task. The Synology Hyper Backup service will only backup the freshly added folders and data that has changed from the last succeeded backup task. Reapeat that operation untill all the folders are backuped.

Get access on your synology nas having ssh disabled without reset when you cannot bypass the Two-Factor Authentication

Few days ago, I couldn't connect to my synology backup NAS because I've reset my phone and therefore lost my Google Authenticator's data. When I've tried to click the "Lost my phone" link, I got a message : you have exceeded your emergency code limit As this is a backup NAS, I've enabled only few services, i.e. not SSH. And there is only one administrator account on this NAS. I didn't wanted to reset my NAS and reconfigure all parameters. Hopefully for me, rsync was enabled and I had another nas available with 2FA enabled also. So I've simply overriden the google_authenticator file using rsync. That also lets me now to connect to my both NAS using the same code :) Here is the command line : rsync -avzh /usr/syno/etc/preference/admin/google_authenticator root@192.168.1.2:/usr/syno/etc/preference/admin/ 192.168.1.2 is the ip address of the NAS I wanted to get access you have to use 'root' user, not 'admin'. And the...

Connect the Xiaomi Yi Ants Cam to your Synology Surveillance Station

1) Ensure the current firmware of your cam allows you to see the steam without authentication. You can check this using vlc and connecting to rtsp://192.168.1.128:554/ch0_0.h264 If you are able to see the stream, you can go to the next point. Otherwise you have to downgrade the firmware of your cam : Simply place this file on the root of an SD card, insert the SD card in the cam and reset it (a reboot may be sufficient) 2) Create the following file on your synology using putty /volumeX/@appstore/SurveillanceStation/device_pack/camera_support/Xiaomi.conf with this content: [Xiaomi*Ants] api = custom resolution_h264 = 1280x720 default_resolution_h264 = 1280x720 fps_h264_640x480 = 5,10,15,20,25,30 fps_h264_1280x720 = 5,10,15,20,25,30 default_fps_h264_1280x720 = 10 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 3) In the surveillanc...

Synology : Fix double-factor authentication issue linked to time desynchronization

It could be linked to the fact that your synology is not time-synchronized anymore. Connect through ssh and execute the following command : ntpdate -u pool.ntp.org the -u switch allow to use another port if the ntp deamon is already running.

Check the reason why Synology Network Backup failed

If you have encountered errors with the Synology Network Backup and that the log message is as vague as Network Backup failed to backup task [xxx] to [xxxx.synology.me]. ([23] Some files could not be transferred. Possible reasons: 1) backup user has no permission to access the files, 2) illegal file name. 3) file name too long) and you want to get more information about the error, simply connect to the console and open the file /var/log/rsync.error 

Restore Synology network backup after nas migration

Image
If you have changed the source server of a network backup, you may follow these steps in order to recover your backups without the need to transfer again all your files through the network : Connect to the target (backup) server Go in the NetBackup folder Go in the folder you want to recover (you may rename it if you wish) Delete all files at the root of this folder (not the subfolders) Go in the @app folder Delete all files at the root of this folder (not the subfolders) Create the backup task using the same target folder name as previously. You may receive an error message: "The operation failed.  Please login to DSM again and retry". Simply ignore it. Run the backup task Take care that if you have set a new user to the backup task on your target (backup) server since the last backup has been made. You have to ensure that the access rights for this new user are consistent along the whole folders' tree (use chown -R or check the corresponding checkbo...

Fix ipkg's Bootstrap Installer package on Synology after restoring system configuration

If the quadrat4.de Bootstrap Installer for ipkg package has been installed on your system and for any reason you had to restore the system configuration (but your previous volumes are still intact), you may notice that reinstalling the package does not restore the ipkg command anymore. Here is the fix you need to apply : Uninstall the package if installed Connect to the console Execute the following command to uninstall the previous package: rm -rf /volume1/@optware rm -rf /usr/lib/ipkg Install the package again Reboot #1

Synology : Fix SVN package after moving svn repository directory

If you have moved the svn directory created by the SVN package, you may get an error message such "Error. Please reconnect to DSM". You will not be able to use the SVN server untill you fix the symbolic link to the repository : cd /var/packages/SVN/target rm repo ln -s [new_path_to_svn_repo_folder] repo

Use your private linux server (NAS or other) as a proxy with ssh, PuTTY and Firefox

Image
In PuTTY parameters, in Connection > SSH > Tunnels Configure your SSH connection as usual In Source port , input the port that putty will listen on (e.g. 44444). Use a port that is not currently used on the computer running putty In  the three-option Local, Remote, Dynamic, choose Dynamic Click the Add button Click the Open button to connect to the server In the Firefox options, Advanced > Network > Parameters , select the option Manual proxy configuration . In the field SOCKS host , input 127.0.0.1 and in port , the port you have configured in PuTTY. Your Firefox should now tunneling all your connections through your private server. (This should also work with any server running SSH) UPDATE 2014-03-12 :  If you also would like to secure your DNS queries, write "about:config" in the address bar. Then search for the value network.proxy.socks_remote_dns and set it to true  #1