以前調べた時は,Synology NAS と同様に面倒だと思ったが…
検索すると
QNAPにEntware-stdをインストールする
Microsoft Windows [Version 10.0.18362.1016] (c) 2019 Microsoft Corporation. All rights reserved. C:\Users\Iwao>\\WDCloud\Public\Document\bat\ssh_ts253d.bat C:\Users\Iwao>cd C:\Users\Iwao\AppData\Local\Temp C:\Users\Iwao\AppData\Local\Temp>ssh -l Iwao -p 22 ts253d Iwao@ts253d's password: [Iwao@TS253D ~]$ gcc -sh: gcc: command not found [Iwao@TS253D ~]$ opkg -sh: opkg: command not found [Iwao@TS253D ~]$ /opt/bin/opkg opkg must have one sub-command argument usage: opkg [options...] sub-command [arguments...] where sub-command is one of: Package Manipulation: update Update list of available packages upgrade <pkgs> Upgrade packages install <pkgs> Install package(s) configure <pkgs> Configure unpacked package(s) remove <pkgs|regexp> Remove package(s) flag <flag> <pkgs> Flag package(s) <flag>=hold|noprune|user|ok|installed|unpacked (one per invocation) ... regexp could be something like 'pkgname*' '*file*' or similar e.g. opkg info 'libstd*' or opkg search '*libop*' or opkg remove 'libncur*' [Iwao@TS253D ~]$ [Iwao@TS253D ~]$ /opt/bin/opkg install gcc Installing gcc (7.4.0-5) to root... Downloading http://bin.entware.net/x64-k3.2/gcc_7.4.0-5_x64-3.2.ipk Installing zlib (1.2.11-3) to root... Downloading http://bin.entware.net/x64-k3.2/zlib_1.2.11-3_x64-3.2.ipk Collected errors: * wfopen: //opt/lib/opkg/info/zlib.control: Permission denied. * extract_archive: Cannot create symlink from ./opt/lib/libz.so to 'libz.so.1': Permission denied. * extract_archive: Cannot create symlink from ./opt/lib/libz.so.1 to 'libz.so.1.2.11': Permission denied. * wfopen: /opt/lib/libz.so.1.2.11: Permission denied. * pkg_write_filelist: Failed to open //opt/lib/opkg/info/zlib.list: Permission denied. * opkg_install_pkg: Failed to extract data files for zlib. Package debris may remain! * opkg_install_cmd: Cannot install package gcc. * opkg_conf_write_status_files: Can't open status file //opt/lib/opkg/status: Permission denied. * opkg_conf_write_status_files: Can't open status file /opt/tmp//opt/lib/opkg/status: Permission denied. [Iwao@TS253D ~]$
sudo -i としても入れない.方法がわからなかったので admin で入ることに.
C:\Users\Iwao>ssh -l Iwao ts253d Iwao@ts253d's password: [Iwao@TS253D ~]$ sudo -i Password: Iwao is not in the sudoers file. This incident will be reported. [Iwao@TS253D ~]$ [Iwao@TS253D ~]$ [Iwao@TS253D ~]$ exit logout Connection to ts253d closed. C:\Users\Iwao>ssh -l admin ts253d admin@ts253d's password: [~] # [~] # [~] #
[/opt/bin] # opkg install gcc
Installing gcc (7.4.0-5) to root...
Downloading http://bin.entware.net/x64-k3.2/gcc_7.4.0-5_x64-3.2.ipk
Installing zlib (1.2.11-3) to root...
Downloading http://bin.entware.net/x64-k3.2/zlib_1.2.11-3_x64-3.2.ipk
Installing libiconv-full (1.11.1-4) to root...
Downloading http://bin.entware.net/x64-k3.2/libiconv-full_1.11.1-4_x64-3.2.ipk
Installing libintl-full (0.19.8.1-2) to root...
Downloading http://bin.entware.net/x64-k3.2/libintl-full_0.19.8.1-2_x64-3.2.ipk
Installing libbfd (2.27-1) to root...
Downloading http://bin.entware.net/x64-k3.2/libbfd_2.27-1_x64-3.2.ipk
Installing libopcodes (2.27-1) to root...
Downloading http://bin.entware.net/x64-k3.2/libopcodes_2.27-1_x64-3.2.ipk
Installing objdump (2.27-1) to root...
Downloading http://bin.entware.net/x64-k3.2/objdump_2.27-1_x64-3.2.ipk
Installing ar (2.27-1) to root...
Downloading http://bin.entware.net/x64-k3.2/ar_2.27-1_x64-3.2.ipk
Installing binutils (2.27-1) to root...
Downloading http://bin.entware.net/x64-k3.2/binutils_2.27-1_x64-3.2.ipk
Configuring zlib.
Configuring libiconv-full.
Configuring libintl-full.
Configuring libbfd.
Configuring libopcodes.
Configuring objdump.
Configuring ar.
Configuring binutils.
Configuring gcc.
There are no *-dev packages in Entware(with few exceptions)!
Please install headers as described in the wiki:
https://github.com/Entware/Entware/wiki
[/opt/bin] #