User Tools

Site Tools


perso:dump:mess

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
perso:dump:mess [2016/09/28 15:36]
Jean-Christophe Berthon Add rsync mirroring
perso:dump:mess [2017/03/19 23:13] (current)
Jean-Christophe Berthon Add section regarding adding trusted Certificate Authority to Synology DSM
Line 100: Line 100:
 This assume that ssh is correctly set-up and that the destination folder exist. This assume that ssh is correctly set-up and that the destination folder exist.
  
-<​code>​rsync -acAHPX ​--del /​var/​backup/​ myNAS.lan:/​var/​backup/​$(hostname)</​code>​+<​code>​rsync -acAHX --progress ​--del /​var/​backup/​ myNAS.lan:/​var/​backup/​$(hostname)</​code>​
  
 //Note: the --del option will remove the locally deleted files on the remote end. In my case, this is a must. But in most cases you should remove that option!// //Note: the --del option will remove the locally deleted files on the remote end. In my case, this is a must. But in most cases you should remove that option!//
Line 144: Line 144:
 exclude=*kmdl*i586* exclude=*kmdl*i586*
 includepkgs=*nvidia-graphics*</​code>​ includepkgs=*nvidia-graphics*</​code>​
 +
 +==== Add a new Certificate Authority in the list of trusted ones on Synology DSM 6.1 ====
 +
 +In order to add a new root certificate (e.g. for an internal CA), you need to do the following assuming your root public certificate is in the file ''​my-ca-root.pem''​. The file suffixes ''​.pem''​ or ''​.crt''​ are interchangeable,​ but in our case make sure to use the right suffix depending on the location as per our example:
 +
 +<​code>​$ sudo cp my-ca-root.pem /​usr/​share/​ca-certificates/​mozilla/​my-ca-root-pem
 +$ sudo chmod 0644 /​usr/​share/​ca-certificates/​mozilla/​my-ca-root.prm
 +$ sudo ln -s /​usr/​share/​ca-certificates/​mozilla/​my-ca-root-pem /​etc/​ssl/​certs/​my-ca-root.crt
 +$ cd /​etc/​ssl/​certs
 +$ sudo ln -s my-ca-root.crt $(sudo openssl x509 -hash -noout -in my-ca-root.crt).0
 +$ sudo cat my-ca-root.crt | sudo tee -a ca-certificates.crt</​code>​
 +
 +Source: https://​forum.synology.com/​enu/​viewtopic.php?​t=93223
 +
 +However the source was adapted, but it works on DSM 6.1.
  
 ==== Firefox settings optimisation (faster start-up) ==== ==== Firefox settings optimisation (faster start-up) ====
 Since Firefox 3, many settings (bookmarks, history, etc.) are store into small database files (the ones with the sqlite extension). But after a long utilisation of Firefox, these files get big (and thus slowdown their reading) and their inner data gets sort of fragmented. Now, there is a rather not too difficult way of optimising those files. All you need is sqlite3 program and a small script to do the job. Since Firefox 3, many settings (bookmarks, history, etc.) are store into small database files (the ones with the sqlite extension). But after a long utilisation of Firefox, these files get big (and thus slowdown their reading) and their inner data gets sort of fragmented. Now, there is a rather not too difficult way of optimising those files. All you need is sqlite3 program and a small script to do the job.
  
-//**Update 2016-09**: I would have to verify to be sure, but I think Firefox must be doing those sqlite databse maintenance ​form time to time (or sqlite is automatically doing now) because since a few years now this trick does not bring any visible changes.//+//**Update 2016-09**: I would have to verify to be sure, but I think Firefox must be doing those sqlite databse maintenance ​from time to time (or sqlite is automatically doing now) because since a few years now this trick does not bring any visible changes.//
  
  
perso/dump/mess.1475069804.txt.gz · Last modified: 2016/09/28 15:36 by Jean-Christophe Berthon