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

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

Ruby

https://forum.synology.com/enu/viewtopic.php?t=60204
http://killall.ninja/2015/04/22/unknown-keyword-url-in-ruby-tmp-pc/
Install Ruby 1.9.3-p327 on a Synology DS1511+ with DSM 4.1
[SOLVED] I keep getting this error: “File in wrong format”
compile ruby from source - Jason’s space

env CC=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-gcc \
  LD=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld \
  RANLIB=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ranlib \
  CFLAGS="-I/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/include" \
  CONFIGURE_OPTS="--disable-install-doc --with-openssl-dir=/opt" \
  LDFLAGS="-L/usr/lib64"  \
  CPP=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-cpp \
  CPPFLAGS="-I/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/include" \
  ./configure --prefix=/usr/local 



env CONFIGURE_OPTS="--disable-install-doc --with-openssl-dir=/opt" CPPFLAGS="-I/opt/include" LDFLAGS="-L/opt/lib" ruby-build --verbose 1.9.3-p327 /usr/local

env CC=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-gcc \
  LD=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld \
  RANLIB=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ranlib \
  CFLAGS="-I/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/include" \
  CONFIGURE_OPTS="--disable-install-doc --with-openssl-dir=/opt" \
  LDFLAGS="-L/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/lib"   \
  CPP=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-cpp \
  CPPFLAGS="-I/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/include" \
  ruby-build --verbose 2.3.0 /usr/local