Guides, resources, notes, docs and knowledge for everything Oscar.
TagsCPU Model: Intel Atom D2700 x86_64
GHz: 2.13
Cores: 2
Threads: 4
FPU: yes
Package Arch: x86 cedarview
RAM: 64-bit@DDR3 1GB
CPU Model: Intel Celeron J3455 x86_64
GHz: 2.13
Cores: 4
Threads: 4
FPU: yes
Package Arch: x86 Apollolake
RAM: DDR3L SO-DIMM 2GB
Command | Description |
---|---|
sudo -i |
Enter root |
rm -rf mydir |
Remove directory |
ssh -i ~/.ssh/id_rsa admin@ds713 |
Log in using key |
synoservice --restart pkgctl-Docker |
Restart Docker |
chmod +x script.sh |
Make script executable |
sudo synoservicectl --restart sshd |
Restart SSH |
sudo -E docker-compose up -d |
Start Docker containers |
sudo -E docker-compose up -d --force-recreate |
Recreate Docker containers |
See http://rescene.wikidot.com/synology-ipkg
Option A. See Optware replacement - 1700+ packages (arm & x86) - Synology Forum
Option B. Use Easy Bootstrap Installer in Package Center. opkg will be avialable for root only.
samba
(not hidden in “My Network Drives”)\\ds713
samba
and then Map Network Drive
Create a triggered task (Control Panel > Task Scheduler)
Task: Mount folders
User: root
Event: Boot-up
Command: `/volume1/scripts/boot-up/mount-folders.sh`
Send run details when the script terminates abnormally
samba
for each folder you want access tomount-folders.sh
#! /bin/sh
mount /volume1/apps/ /volume1/samba/apps --bind
mount /volume1/downloads/ /volume1/samba/downloads/ --bind
mount /volume1/scripts/ /volume1/samba/scripts/ --bind
mount /volume1/web/ /volume1/samba/web/ --bind
DSM > Package Center
Allow installation from any publisher
Package sources
Name | Location |
---|---|
Synocommunity | http://packages.synocommunity.com |
CPH | http://www.cphub.net |
PC Load Letter | http://packages.pcloadletter.co.uk/ |
Missile Hugger | http://packages.missilehugger.com |
Chicken and Porn | http://spk.chickenandporn.com/ |
https://think.unblog.ch/en/how-to-install-nano-on-synology-nas/
ipkg update
ipkg install nano
Updating docker containers
Option A - see Optware replacement - 1700+ packages (arm & x86) - Synology Forum
Option B - use Easy Bootstrap Installer in Package Center. opkg will be avialable for root only.
Config: /etc/ssmtp/ssmtp.conf
or in DSM settings (Notifications) when SMTP config is used
Config
sudo less /volume1/@appstore/transmission/var/settings.json
When DSM is updated, sometimes access to ipkg and optware is lost.
/opt/bin/nano /etc/profile
PATH=$PATH:/opt/bin:/opt/sbin # Keep bootstrap on update
PATH=$PATH:/volume1/@appstore/python/bin/ # Add Python binaries to PATH
export PATH
source /etc/profile
/root/.profile
ipkg -v
ipkg update
See /etc/rc.local
pip install pip --upgrade
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 --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/
wget https://frontend.bredbandskollen.se/download/bbk_cli_linux_i386-1.0
chmod +x bbk_cli_linux_i386-1.0
./bbk_cli_linux_i386-1.0
mkdir ~/.ssh
echo "public key from PuTTy" >> ~/.ssh/authorized_keys
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
chmod 700 ~
Disable password login in /etc/ssh/sshd_config
:
# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication no
#PermitEmptyPasswords no
Restart SSH from DSM.
Source: Disallow logging in to a Synology DiskStation with passwords & only allow logging in via SSH keys
Check logs
sudo /bin/sshd -d -p 1234
Fix owenership and permissions
Use chmod
and chown
to set up correct ownership and permissions.
https://superuser.com/a/1559867
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\PuTTY
Modify properties
Target: "C:\Program Files (x86)\PuTTY\putty.exe" -load "<session-name>"
ssh -i /volume1/homes/admin/.ssh/tatanga-private-key rt-ac68u-oscar@192.168.1.1 "/usr/sbin/nvram get client_info_tmp"
scp
Try setting PUID
and PGID
to the id:s of the user and group that has permission to read/write the files. Could also be USER_ID
and GROUP_ID
respectively.
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
synoindex -R /volume1/path/to/media/folder
https://github.com/MichMich/MagicMirror
Modules
https://github.com/MichMich/MagicMirror/wiki/3rd-party-modules
https://github.com/MichMich/MagicMirror/wiki/legacy-modules
Modules to look into:
https://github.com/eouia/MMM-Glance
https://github.com/boghammar/MMM-SL-PublicTransport
https://github.com/Blastitt/DailyXKCDß
https://documenter.getpostman.com/view/6167403/Rzfni66c?version=latest
Configuring UI
homeassistant/home-assistant
with the tag latest
/voluem1/apps/home-assistant/config
http://ds718:8123
/config
TZ
and value Europe/Stockholm
86400
TODO
Update cert regularily
HomeGraph API
for that project on Google Cloud Platform
Smart home
https://sub.domain.se/api/google_assistant
https://oauth-redirect.googleusercontent.com/
https://sub.domain.com/auth/authorize
https://sub.domain.com/auth/token
email
and name
Update Home Assistant config:
# Example configuration.yaml entry
google_assistant:
project_id: YOUR_PROJECT_ID
api_key: YOUR_API_KEY
exposed_domains:
- switch
- light
entity_config:
switch.kitchen:
name: CUSTOM_NAME_FOR_GOOGLE_ASSISTANT
aliases:
- BRIGHT_LIGHTS
- ENTRY_LIGHTS
light.living_room:
expose: false
room: LIVING_ROOM
group.all_automations:
expose: false
[test} Home Assistant
and login to HATurning 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}'"
dani-garcia/bitwarden_rs: Unofficial Bitwarden compatible server written in Rust
Installation instructions
/volume1/@appstore/mosquitto/var/mosquitto.conf
cd /volume1/@appstore/mosquitto
sudo ./bin/mosquitto_passwd -b ./var/password_file username password
Docker: molobrakos/tellsticknet
Volume mapping
apps/tellsticknet/.conf/tellsticknet.conf <- /app/tellsticknet.conf
apps/tellsticknet/.conf/mosquitto_pub <- /app/.config/mosquitto_pub
python -m tellsticknet
or
./script/tellsticknet
Usage:
tellsticknet (-h | --help)
tellsticknet --version
tellsticknet [-v|-vv] [options] discover
tellsticknet [-v|-vv] [options] listen [--raw]
tellsticknet [-v|-vv] [options] devices
tellsticknet [-v|-vv] [options] sensors
tellsticknet [-v|-vv] [options] send <name> <cmd> [<param>]
tellsticknet [-v|-vv] [options] send <protocol> <model> <house> <unit> <cmd>
tellsticknet [-v|-vv] [options] mqtt
tellsticknet [-v|-vv] [options] mock
tellsticknet [-v|-vv] [options] parse
Options:
--ip <ip> IP of Tellstick Net device
--raw Print raw packets instead of parsed data
-h --help Show this message
-v,-vv Increase verbosity
-d Debug
--version Show version
/volume1/\@appstore/python3/usr/bin/python3
pip
/var/packages/python3/target/bin/pip3
https://stackoverflow.com/a/69633630