따라쟁이

Qnap에서 entware설치하기 (optware 대체) 본문

NAS

Qnap에서 entware설치하기 (optware 대체)

따라쟁이1 2017. 3. 30. 17:11

참조:

http://www.clien.net/cs2/bbs/board.php?bo_table=cm_nas&wr_id=26594



optware가 보안문제로 entware로 대체 된다하여 QNAP app center에 있던것이 언젠가부터 사라졌단다.

그리하고 entware를 설치하려는데 뭘 알아야지 이곳저곳 기웃거리면서 찾은 방법을 적어본다.


https://forum.qnap.com/viewtopic.php?f=351&t=116737  꼭 방문해볼것, 가입을 해야한다는게 귀찮음




참조:https://github.com/Entware-ng/Entware-ng/wiki/Install-on-QNAP-NAS

위를 참조해서 일단 entware  qpkg파일을 다운로드 받는다.


app center에서 수동설치한다.


Introduction

Entware-ng can be installed using QPKG system. Please remove Optware if it is currently installed. Entware cannot be used simultaneously with Optware.

Download this package, then start App Center in the QNAP admin interface. Press the button labeled "Install Manually" (currently near the top-right corner of the window) and follow the instructions to install the package.

This package will autodetect NAS platform and deploy appropriate Entware binaries. Following platforms are supported:

  • armv5 (x19),
  • armv7 (x31, x41 - models x31/x31+),
  • x86-32,
  • x86-64.

On Intel based devices with 64-bit kernel you can manually choose between x64 and x32 feed by installing one of the this packages:

More details on installation are here - https://forum.qnap.com/viewtopic.php?f=351&t=116737


SSH로 NAS에 접속
  Entware-NG 설치 전에 SSH 접속 중이었다면, Exit 하고 SSH 다시 접속함, PATH가 다시 먹으려면 재접속을.
 




 # opkg update





여기까지 끝..


난여기서 dstat와 sysstat htop mc를 설치하려 했기에





#opkg install dstat 



#opkg install htop


#opkg install sysstat 


#opkg install mc


.

.

.





이왕 여기까지 작업한김에 클리앙에 키보드님이 하신 flexget도 설치 해봄







flexget설치 시도


[/] # pip3 install flexget

Collecting flexget

  Downloading FlexGet-2.10.24-py2.py3-none-any.whl (2.9MB)

    100% |████████████████████████████████| 2.9MB 171kB/s

Collecting html5lib>=0.11 (from flexget)

  Downloading html5lib-0.999999999-py2.py3-none-any.whl (112kB)

    100% |████████████████████████████████| 122kB 2.3MB/s

Collecting colorclass>=2.2.0 (from flexget)

  Downloading colorclass-2.2.0.tar.gz

    Complete output from command python setup.py egg_info:

    /opt/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: '             install_requires'

      warnings.warn(msg)

    /opt/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: '             zip_safe'

      warnings.warn(msg)

    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]

       or: -c --help [cmd1 cmd2 ...]

       or: -c --help-commands

       or: -c cmd --help


    error: invalid command 'egg_info'


    ----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /share/CACHEDEV1_DATA/.qpk             g/Entware-ng/tmp/pip-build-a4i140y6/colorclass/



참조

http://stackoverflow.com/questions/35991403/python-pip-install-gives-command-python-setup-py-egg-info-failed-with-error-c


About your error

setuptools seem to be not installed. Juste follow the Installation Instructions from the pypi website.

If it's already installed, try

pip install --upgrade setuptools

If it's already up to date, check that the module ez_setup is not missing. If it is, then

pip install ez_setup

Then try again

pip install unroll

If it's still not working, maybe pip didn't install/upgrade setup_tools properly so you might want to try

easy_install -U setuptools

and again

pip install unroll

shareimprove this answer

 



[/] # pip3 install --upgrade setuptools

Collecting setuptools

  Downloading setuptools-34.3.3-py2.py3-none-any.whl (389kB)

    100% |████████████████████████████████| 399kB 1.0MB/s

Collecting six>=1.6.0 (from setuptools)

  Downloading six-1.10.0-py2.py3-none-any.whl

Collecting packaging>=16.8 (from setuptools)

  Downloading packaging-16.8-py2.py3-none-any.whl

Collecting appdirs>=1.4.0 (from setuptools)

  Downloading appdirs-1.4.3-py2.py3-none-any.whl

Collecting pyparsing (from packaging>=16.8->setuptools)

  Downloading pyparsing-2.2.0-py2.py3-none-any.whl (56kB)

    100% |████████████████████████████████| 61kB 3.3MB/s

Installing collected packages: six, pyparsing, packaging, appdirs, setuptools

Successfully installed appdirs-1.4.3 packaging-16.8 pyparsing-2.2.0 setuptools-34.3.3 six             -1.10.0

[/] #



다시 시도

[/] # pip3 install flexget



결과



[/] # pip3 install flexget

Collecting flexget

  Using cached FlexGet-2.10.24-py2.py3-none-any.whl

Collecting flask-restplus==0.8.6 (from flexget)

  Downloading flask_restplus-0.8.6-py2.py3-none-any.whl (1.1MB)

    100% |████████████████████████████████| 1.1MB 484kB/s

Collecting flask-restful>=0.3.3 (from flexget)

  Downloading Flask_RESTful-0.3.5-py2.py3-none-any.whl

Collecting zxcvbn-python (from flexget)

  Downloading zxcvbn-python-4.4.14.tar.gz (405kB)

    100% |████████████████████████████████| 409kB 1.4MB/s

Collecting flask-compress>=1.2.1 (from flexget)

  Downloading Flask-Compress-1.4.0.tar.gz

Collecting apscheduler>=3.2.0 (from flexget)

  Downloading APScheduler-3.3.1-py2.py3-none-any.whl (56kB)

    100% |████████████████████████████████| 61kB 3.8MB/s

Collecting python-dateutil>=2.5.3 (from flexget)

  Downloading python_dateutil-2.6.0-py2.py3-none-any.whl (194kB)

    100% |████████████████████████████████| 194kB 2.1MB/s

Collecting guessit<=2.0.4 (from flexget)

  Downloading guessit-2.0.4.tar.gz (73kB)

    100% |████████████████████████████████| 81kB 2.9MB/s

Collecting rpyc (from flexget)

  Downloading rpyc-3.3.0.tar.gz (53kB)

    100% |████████████████████████████████| 61kB 3.1MB/s

Collecting requests<3.0,>=2.8.0 (from flexget)

  Downloading requests-2.13.0-py2.py3-none-any.whl (584kB)

    100% |████████████████████████████████| 593kB 983kB/s

Collecting path.py>=8.1.1 (from flexget)

  Downloading path.py-10.1-py2.py3-none-any.whl

Collecting jinja2 (from flexget)

  Downloading Jinja2-2.9.5-py2.py3-none-any.whl (340kB)

    100% |████████████████████████████████| 348kB 2.3MB/s

Requirement already satisfied: pyparsing>=2.0.3 in /share/CACHEDEV1_DATA/.qpkg/Entware-ng/lib/python3.6/site-packages (from flexget)

Collecting html5lib>=0.11 (from flexget)

  Using cached html5lib-0.999999999-py2.py3-none-any.whl

Collecting pynzb (from flexget)

  Downloading pynzb-0.1.0.tar.gz

Collecting flask>=0.7 (from flexget)

  Downloading Flask-0.12-py2.py3-none-any.whl (82kB)

    100% |████████████████████████████████| 92kB 4.5MB/s

Collecting future>=0.15.2 (from flexget)

  Downloading future-0.16.0.tar.gz (824kB)

    100% |████████████████████████████████| 829kB 404kB/s

Collecting beautifulsoup4>=4.5 (from flexget)

  Downloading beautifulsoup4-4.5.3-py3-none-any.whl (85kB)

    100% |████████████████████████████████| 92kB 4.0MB/s

Collecting flask-cors>=2.1.2 (from flexget)

  Downloading Flask_Cors-3.0.2-py2.py3-none-any.whl

Collecting colorclass>=2.2.0 (from flexget)

  Using cached colorclass-2.2.0.tar.gz

Collecting cherrypy>=3.7.0 (from flexget)

  Downloading CherryPy-10.2.1-py2.py3-none-any.whl (435kB)

    100% |████████████████████████████████| 440kB 1.1MB/s

Collecting flask-login>=0.4.0 (from flexget)

  Downloading Flask_Login-0.4.0-py2.py3-none-any.whl

Collecting FeedParser>=5.2.1 (from flexget)

  Downloading feedparser-5.2.1.zip (1.2MB)

    100% |████████████████████████████████| 1.2MB 647kB/s

Collecting PyYAML (from flexget)

  Downloading PyYAML-3.12.tar.gz (253kB)

    100% |████████████████████████████████| 256kB 1.7MB/s

Collecting terminaltables>=3.1.0 (from flexget)

  Downloading terminaltables-3.1.0.tar.gz

Collecting PyRSS2Gen (from flexget)

  Downloading PyRSS2Gen-1.1.tar.gz

Collecting pathlib>=1.0 (from flexget)

  Downloading pathlib-1.0.1.tar.gz (49kB)

    100% |████████████████████████████████| 51kB 3.5MB/s

Collecting SQLAlchemy<1.999,>=1.0.9 (from flexget)

  Downloading SQLAlchemy-1.1.7.tar.gz (5.2MB)

    100% |████████████████████████████████| 5.2MB 115kB/s

Collecting jsonschema>=2.0 (from flexget)

  Downloading jsonschema-2.6.0-py2.py3-none-any.whl

Collecting pytz (from flask-restplus==0.8.6->flexget)

  Downloading pytz-2016.10-py2.py3-none-any.whl (483kB)

    100% |████████████████████████████████| 491kB 1.2MB/s

Collecting aniso8601>=0.82 (from flask-restplus==0.8.6->flexget)

  Downloading aniso8601-1.2.0.tar.gz (59kB)

    100% |████████████████████████████████| 61kB 2.1MB/s

Requirement already satisfied: six>=1.3.0 in /share/CACHEDEV1_DATA/.qpkg/Entware-ng/lib/python3.6/site-packages (from flask-restful>=0.3.3->flexget)

Collecting tzlocal>=1.2 (from apscheduler>=3.2.0->flexget)

  Downloading tzlocal-1.3.tar.gz

Requirement already satisfied: setuptools>=0.7 in /share/CACHEDEV1_DATA/.qpkg/Entware-ng/lib/python3.6/site-packages (from apscheduler>=3.2.0->flexget)

Collecting rebulk>=0.7.0 (from guessit<=2.0.4->flexget)

  Downloading rebulk-0.8.2.tar.gz (257kB)

    100% |████████████████████████████████| 266kB 1.6MB/s

Collecting babelfish>=0.5.5 (from guessit<=2.0.4->flexget)

  Downloading babelfish-0.5.5.tar.gz (90kB)

    100% |████████████████████████████████| 92kB 3.7MB/s

Collecting plumbum (from rpyc->flexget)

  Downloading plumbum-1.6.3-py2.py3-none-any.whl (99kB)

    100% |████████████████████████████████| 102kB 3.4MB/s

Collecting MarkupSafe>=0.23 (from jinja2->flexget)

  Downloading MarkupSafe-1.0.tar.gz

Collecting webencodings (from html5lib>=0.11->flexget)

  Downloading webencodings-0.5.tar.gz

Collecting itsdangerous>=0.21 (from flask>=0.7->flexget)

  Downloading itsdangerous-0.24.tar.gz (46kB)

    100% |████████████████████████████████| 51kB 136kB/s

Collecting Werkzeug>=0.7 (from flask>=0.7->flexget)

  Downloading Werkzeug-0.12.1-py2.py3-none-any.whl (312kB)

    100% |████████████████████████████████| 317kB 342kB/s

Collecting click>=2.0 (from flask>=0.7->flexget)

  Downloading click-6.7-py2.py3-none-any.whl (71kB)

    100% |████████████████████████████████| 71kB 355kB/s

Collecting portend>=1.6.1 (from cherrypy>=3.7.0->flexget)

  Downloading portend-1.8-py2.py3-none-any.whl

Collecting cheroot>=5.2.0 (from cherrypy>=3.7.0->flexget)

  Downloading cheroot-5.4.0-py2.py3-none-any.whl (61kB)

    100% |████████████████████████████████| 61kB 358kB/s

Requirement already satisfied: packaging>=16.8 in /share/CACHEDEV1_DATA/.qpkg/Entware-ng/lib/python3.6/site-packages (from setuptools>=0.7->apscheduler>=3.2.0->flexget)

Requirement already satisfied: appdirs>=1.4.0 in /share/CACHEDEV1_DATA/.qpkg/Entware-ng/lib/python3.6/site-packages (from setuptools>=0.7->apscheduler>=3.2.0->flexget)

Collecting tempora (from portend>=1.6.1->cherrypy>=3.7.0->flexget)

  Downloading tempora-1.6.1-py2.py3-none-any.whl

Installing collected packages: pytz, itsdangerous, Werkzeug, click, MarkupSafe, jinja2, flask, python-dateutil, aniso8601, flask-restful, jsonschema, flask-restplus, zxcvbn-python, flask-compress, tzlocal, apscheduler, rebulk, babelfish, guessit, plumbum, rpyc, requests, path.py, webencodings, html5lib, pynzb, future, beautifulsoup4, flask-cors, colorclass, tempora, portend, cheroot, cherrypy, flask-login, FeedParser, PyYAML, terminaltables, PyRSS2Gen, pathlib, SQLAlchemy, flexget

  Running setup.py install for itsdangerous ... done

  Running setup.py install for MarkupSafe ... done

  Running setup.py install for aniso8601 ... done

  Running setup.py install for zxcvbn-python ... done

  Running setup.py install for flask-compress ... done

  Running setup.py install for tzlocal ... done

  Running setup.py install for rebulk ... done

  Running setup.py install for babelfish ... done

  Running setup.py install for guessit ... done

  Running setup.py install for rpyc ... done

  Running setup.py install for webencodings ... done

  Running setup.py install for pynzb ... done

  Running setup.py install for future ... done

  Running setup.py install for colorclass ... done

  Running setup.py install for FeedParser ... done

  Running setup.py install for PyYAML ... done

  Running setup.py install for terminaltables ... done

  Running setup.py install for PyRSS2Gen ... done

  Running setup.py install for pathlib ... done

  Running setup.py install for SQLAlchemy ... done

Successfully installed FeedParser-5.2.1 MarkupSafe-1.0 PyRSS2Gen-1.1 PyYAML-3.12 SQLAlchemy-1.1.7 Werkzeug-0.12.1 aniso8601-1.2.0 apscheduler-3.3.1 babelfish-0.5.5 beautifulsoup4-4.5.3 cheroot-5.4.0 cherrypy-10.2.1 click-6.7 colorclass-2.2.0 flask-0.12 flask-compress-1.4.0 flask-cors-3.0.2 flask-login-0.4.0 flask-restful-0.3.5 flask-restplus-0.8.6 flexget-2.10.24 future-0.16.0 guessit-2.0.4 html5lib-0.999999999 itsdangerous-0.24 jinja2-2.9.5 jsonschema-2.6.0 path.py-10.1 pathlib-1.0.1 plumbum-1.6.3 portend-1.8 pynzb-0.1.0 python-dateutil-2.6.0 pytz-2016.10 rebulk-0.8.2 requests-2.13.0 rpyc-3.3.0 tempora-1.6.1 terminaltables-3.1.0 tzlocal-1.3 webencodings-0.5 zxcvbn-python-4.4.14

[/] #

 



이렇게 딱떨어지면 기분이 좋지요.