1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Synology の NAS に debian pkgをインストールする方法

Posted at

SynologyのNASに必要なpkgをインストールする方法

Synology NAS の ssh を有効にしておく。

DSMのコントロールパネルから端末とSNMP を選択して、"SSHサービスを有効化する。" を有効にする。

teraterm等で、NASにSSHで接続する。

uname -a を実行して、Synology の NASのCPU Archを確認する。

$ uname -a
Linux DS_XXX 4.4.59+ #25426 SMP PREEMPT Mon Dec 14 18:48:52 CST 2020 x86_64 GNU/Linux synology_geminilake_920+

これを見るとx86_64だと分かる。

ここから、必要なPKG を探してくる。
https://www.debian.org/distrib/packages

sshpass が必要だったので、amd64のsshpass のdebian pkg をdownload してinstall する。
https://packages.debian.org/buster/amd64/sshpass/download

$ sudo wget http://ftp.jp.debian.org/debian/pool/main/s/sshpass/sshpass_1.06-1_amd64.deb
$ sudo dpkg -i --force-all sshpass_1.06-1_amd64.deb

--force-all を付けないと、signature errorで怒られる。

$ sudo dpkg -i sshpass_1.06-1_amd64.deb
Authenticating sshpass_1.06-1_amd64.deb ...
debsig: Origin Signature check failed. This deb might not be signed.

dpkg: error processing sshpass_1.06-1_amd64.deb (--install):
 verification on package sshpass_1.06-1_amd64.deb failed!
Errors were encountered while processing:
 sshpass_1.06-1_amd64.deb

インストールが成功すると、sshpassのコマンドが打てるようになる。

$ sshpass
Usage: sshpass [-f|-d|-p|-e] [-hV] command parameters
   -f filename   Take password to use from file
   -d number     Use number as file descriptor for getting password
   -p password   Provide password as argument (security unwise)
   -e            Password is passed as env-var "SSHPASS"
   With no parameters - password will be taken from stdin

   -P prompt     Which string should sshpass search for to detect a password prompt
   -v            Be verbose about what you're doing
   -h            Show help (this screen)
   -V            Print version information
At most one of -f, -d, -p or -e should be used
1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?