Differences
This shows you the differences between two versions of the page.
Both sides previous 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. | ||
Line 9: | Line 9: | ||
{{: | {{: | ||
+ | One very annoying thing is that you have to set the command to be run as: | ||
+ | <code bash> | ||
+ | bash / | ||
+ | </ | ||
- | ==== Adding User ==== | + | 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, | ||
+ | </ | ||
+ | |||
+ | ===== 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 18: | 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:// | ||
+ | |||
+ | 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: / | ||
+ | |||
+ | ===== 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> | ||
+ | / | ||
+ | </ | ||
+ | | ||
+ | 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:// | ||
+ | |||