All Projects → wkoszek → synology

wkoszek / synology

Licence: BSD-2-Clause license
My Synology automation scripts. Making Synology NAS command line usable

Programming Languages

shell
77523 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to synology

Synology
Cheatsheet and bash scripts sripts for Synology Nas Stations cheet cheat sheet nas networkdisk
Stars: ✭ 125 (+177.78%)
Mutual labels:  synology, nas
Ftpgrab
Grab your files periodically from a remote FTP or SFTP server easily
Stars: ✭ 300 (+566.67%)
Mutual labels:  synology, nas
Moviemagnetbot
🤖 telegram bot for movies
Stars: ✭ 39 (-13.33%)
Mutual labels:  synology, nas
Scripts
This project attempts to improve DSM's compatibility
Stars: ✭ 130 (+188.89%)
Mutual labels:  synology
Photostation Upload Lr Plugin
Photo StatLr (aka PhotoStation Upload) is a Lightroom Publish and Export Service Plugin that enables the export /publishing of photos and videos from Lr to a Synology Photo Station. It uploads the photos/videos and all required thumbnails. It can download comments and ratings and do a real two-way synch of various metadata (tags, ratings, labels).
Stars: ✭ 159 (+253.33%)
Mutual labels:  synology
LANraragi cn
This repo is a fork of Difegue / LANraragi , those things i've done was to translate this repo into chinese ,and fix chrome browser js problem.
Stars: ✭ 147 (+226.67%)
Mutual labels:  nas
synology-decrypt
An open source implementation/description of the Synology Cloud Sync encryption/decryption algorithm
Stars: ✭ 91 (+102.22%)
Mutual labels:  synology
Airconnect Synology
AirConnect package for Synology NAS and Synology Router
Stars: ✭ 102 (+126.67%)
Mutual labels:  synology
Synology-NAS-monitoring
influxDB, Grafana, snmp and telegraf
Stars: ✭ 140 (+211.11%)
Mutual labels:  synology
youtube-dl-nas
youtube download queue websocket server with login for private NAS.
Stars: ✭ 136 (+202.22%)
Mutual labels:  nas
qb-rss-manager
qBittorrent rss订阅规则管理, 支持Docker环境, 群晖, Windows桌面, Linux桌面的qb. 推荐直接使用懒人包体验完整功能.
Stars: ✭ 134 (+197.78%)
Mutual labels:  synology
Openhab Syno Spk
openHAB Synology SPK Install Package
Stars: ✭ 160 (+255.56%)
Mutual labels:  synology
Movie Data Capture
Local Movies Organizer
Stars: ✭ 5,481 (+12080%)
Mutual labels:  nas
Synology Download Manager
An open source browser extension for adding/managing download tasks to your Synology DiskStation.
Stars: ✭ 138 (+206.67%)
Mutual labels:  synology
flickr-uploader
Upload a directory of media to Flickr to use as a backup to your local storage
Stars: ✭ 38 (-15.56%)
Mutual labels:  synology
synologylyric
Collection of Synology Audio Station Lyrics Module
Stars: ✭ 61 (+35.56%)
Mutual labels:  synology
cloudflareddns
DDNS with Cloudflare
Stars: ✭ 33 (-26.67%)
Mutual labels:  synology
Synologycloudflareddns
📜 Cloudflare DDNS script for Synology
Stars: ✭ 222 (+393.33%)
Mutual labels:  synology
Hypernets
A General Automated Machine Learning framework to simplify the development of End-to-end AutoML toolkits in specific domains.
Stars: ✭ 221 (+391.11%)
Mutual labels:  nas
MixPath
MixPath: A Unified Approach for One-shot Neural Architecture Search
Stars: ✭ 29 (-35.56%)
Mutual labels:  nas

Making Synology NAS command line usable

My Synology automation scripts

Build Status

This project should be converted to Ansible. Any volunteers?

I have a Synology DS214play NAS box and its command line is pretty limited. Most of the commands are trimmed down copies of their UNIX counterparts. I like my NAS being NAS, but I also wanted to be able to do useful things with it, assuming it's powered 24/7. To make its command line usable for myself in a long-term, I decided to spend some time on proper configuration. Unfortunately my NAS model isn't permitted to use Synology's Docker package, so the whole activity included:

  • ipkg installation: this will give you basic commands such as vim or bash

  • Debian chroot: this will let you run a Debian userland, which gives you apt-get and the possibility of running all sorts of stuff on your Synology box. I found it useful when experimenting with command-line backup solutions such as zbackup, which don't exist in ipkg repository.

I stole some ideas from:

http://www.hang321.net/en/2015/06/09/debian-chroot-on-dsm-5-2/

How to use

  1. Enable SSH on your Synology http://forum.synology.com/wiki/index.php/Enabling_the_Command_Line_Interface
  2. Go to https://synocommunity.com/ and add the Community Packages to Synology software sources.
  3. From the community packages tab, install Python.
  4. From the community packages tab, install Debian chroot.
  5. Upon installing, start Debian chroot.

SSH to your NAS:

ssh root@nas_ip

Get the simple Python script which imitates wget, but unlike Synology's wget(1) has HTTPS support (http://www.koszek.com/blog/2015/10/04/wget-in-9-lines-of-python-for-hostile-environments/):

wget -O - 'http://pastebin.com/raw.php?i=PcbNtyh9' | tr '\r' ' ' > wget2
chmod 755 wget2
./wget2 https://github.com/wkoszek/synology/archive/0.1.1.tar.gz
gunzip 0.1.1.tar.gz
tar xf 0.1.1.tar
cd synology-0.1.1
./bootstrap.sh

(you may want to pick the latest synology-x.x.x release).

This should initiate the bootstrap procedure.

What bootstrap does for you

Upon running bootstrap.sh following things will happen:

  1. ipkg will be fetched and installed.
  2. ASH config will be updated to add ipkg to PATH
  3. .profile will be updated with some usable aliases and mandatory settings
  4. SSH keys will be generated.
  5. SSH configuration will be installed for GitHub.com in case you want to push from your NAS
  6. Updated start script for Debian chroot will be installed. It basically mounts home directories in the chroot directory, and also adds USB-mounted volumes there.
  7. Debian's chroot environment will be started and updated.
  8. Informational message will be printed.

Author

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].