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
diskstation [2019/02/23 19:55]
paul [Scheduled Tasks]
diskstation [2019/03/31 14:49] (current)
Line 3: Line 3:
 I use a Synology DS416j NAS. It's great. I use a Synology DS416j NAS. It's great.
  
-==== Scheduled Tasks ====+===== Scheduled Tasks =====
  
 I run some backup rsync tasks using the Diskstation task scheduler.  I run some backup rsync tasks using the Diskstation task scheduler. 
  
-{{ ::diskstation_task.png?direct&400 |}}+{{:diskstation_task.png?direct&400|}}
  
-==== Adding User ====+One very annoying thing is that you have to set the command to be run as: 
 + 
 +<code bash> 
 +bash /volume1/path/to/command.sh 
 +</code> 
 + 
 +Do not try to manually set the job as cron. Diskstation has its own very weird 
 +way of handling cron, so best use the interface.  
 + 
 +===== SSHFS ===== 
 + 
 +SSHFS is a little tricky with the Diskstation because of the contrived way 
 +Diskstation handles paths. Run the following: 
 +<code bash> 
 +sudo sshfs -o allow_other,IdentityFile=/home/paul/.ssh/id_rsa [email protected]:/homes/paul /home/paul/diskstation 
 +</code> 
 + 
 +===== Adding User =====
  
 When adding a new user I have to enable ssh for that user. When adding a new user I have to enable ssh for that user.
Line 16: Line 33:
   * Enable the user's shell.   * Enable the user's shell.
   * Assigned to the administrator group. The keys won't work if assigned to the user group.   * Assigned to the administrator group. The keys won't work if assigned to the user group.
 +
 +===== SSH Keys =====
 +
 +To add ssh keys you need to do the following:
 +
 +There is a bunch of stuff you have to do get the synology to accept keys. Follow
 +this tutorial [[http://karlcode.owtelse.com/blog/2015/06/27/passwordless-ssh-on-synology/|link]].
 +
 +Login as admin using the admin password. 
 +Type sudo -i and then enter the admin password. You will be root. The reason for this is because DSM 7 update disabled logging in as root.
 +
 +Use RSA keys with the synology, DSA keys gave me trouble and I think are deprecated.  
 +
 +When you make ssh keys that don't have a default name you have to add them so
 +that they get used by ssh when you're trying to ssh into that server. So, use
 +ssh-add which adds a line in the .ssh/config file.  
 +
 +If you get into trouble you can do two things. Run the ssh command with the
 +verbose option, so ssh -v, or go into the server and look up the logs. The ssh
 +logs are in: /var/log/auth.log
 +
 +===== Synology Webserver =====
 +Lucas helped me set up a synology webserver to put all the html files generated by
 +vimwiki on there. 
 +
 +We first tried just installing the apache package but we then realized that it is
 +designed to work with the web station synology package. After installing that, we set
 +it up with Apache 2.2 (he changed some settings messing with Apache 2.4 and it
 +stopped working even after an uninstall). 
 +
 +He then set up a working directory for the html files which are at:
 +<code bash>
 +/volume1/data/paul_web/
 +</code>
 +    
 +He then set up a .htaccess and a .htpasswd file with a password we generated and now
 +the whole site is locked with this password :).
 +
 +Read about it [[https://httpd.apache.org/docs/2.4/howto/auth.html|here.]]
 +
  
  • diskstation.txt
  • Last modified: 2019/03/31 14:49
  • (external edit)