oscarb pad

Guides, resources, notes, docs and knowledge for everything Oscar.

Tags

Synology DS713+ Guide

Device information

CPU Model: Intel Atom D2700 x86_64 
GHz: 2.13 
Cores: 2 
Threads: 4 
FPU: yes 
Package Arch: x86 cedarview 
RAM: 64-bit@DDR3 1GB

Shell commands

Command Description
sudo -i Enter root
ssh -i ~/.ssh/id_rsa admin@ds713 Log in using key

Installing packages

Package Center

DSM > Package Center

Debian chroot

ipkg

ipkg update
ipkg install nano

Docker

pip

opkg

See Optware replacement - 1700+ packages (arm & x86) - Synology Forum

Email with sSMTP

Config: /etc/ssmtp/ssmtp.conf

Updating DSM

When DSM is updated, sometimes access to ipkg and optware is lost.

Access ipkg and optware after DSM update

  1. /opt/bin/nano /etc/profile
  2. Add to the bottom of the file
    PATH=$PATH:/opt/bin:/opt/sbin # Keep bootstrap on update
    PATH=$PATH:/volume1/@appstore/python/bin/ # Add Python binaries to PATH
    export PATH
    
  3. source /etc/profile
  4. Repeat from step 1 for /root/.profile
  5. Verify with ipkg -v
  6. Run ipkg update

Sources

Verify

Autostart script

See /etc/rc.local

pip

pip install pip --upgrade

FlexGet

flexget --version
pip install flexget --upgrade
flexget -c /volume1/apps/flexget/config.yml check
flexget -c /volume1/apps/flexget/config.yml --test execute
more /volume1/apps/flexget/flexget.log | grep WARNING
more /volume1/apps/flexget/flexget.log | grep ERROR
more /volume1/apps/flexget/flexget.log | grep CRITICAL

Subliminal

subliminal --addic7ed oscarb {ADDIC7ED_PASSWORD} --cache-dir /volume1/apps/subliminal/ download --language en --provider addic7ed --provider podnapisi --provider opensubtitles --provider subscenter --provider thesubdb --provider tvsubtitles  --age 2d /volume1/downloads/tv/

Login with SSH keys

  1. Install PuTTYGen
  2. Generate SSH-2 RSA 1024 bit keys
  3. Login as admin
  4. mkdir ~/.ssh
  5. echo "public key from PuTTy" >> ~/.ssh/authorized_keys
  6. chmod 700 ~/.ssh
  7. chmod 600 ~/.ssh/authorized_keys
  8. Save private key
  9. Create new PuTTY session
  10. Auto-login as admin
  11. Load private file

Resources

node.js projects

See list of connected devices from ASUS router

ssh -i /volume1/homes/admin/.ssh/tatanga-private-key  rt-ac68u-oscar@192.168.1.1 "/usr/sbin/nvram get client_info_tmp"

Findings

To research

Problems and solutions

Insufficient capacity for upgrade

See available space on system partition

df -h

See disk usage for directories

du -achx --max-depth=1 /

Narrow down and remove unused large directories and files

Resources

Reindex media folders

 synoindex -R /volume1/path/to/media/folder

Home Assistant

Philips TV

Turning on using Home Assistant and CURL:

switch:
  - platform: command_line
    switches:
      philips_home:
        command_on: "curl -X POST --digest --insecure -u philips_tv_username:philips_tv_password https://192.x.x.x:1926/6/input/key -d '{key:Home}'"
        command_off: "curl -X POST --digest http://192.x.x.x:1926/6/input/key -d '{none:none}'" 

Python

Python 3

/volume1/\@appstore/python3/usr/bin/python3

pip

/var/packages/python3/target/bin/pip3