ipkg install openssl-dev librsync zlib
ipkg install gcc ipkg install make automake autoconf libtool binutils autoconf
ipkg install optware-devel
download uthash header files https://github.com/troydhanson/uthash/tree/master/src and put it in /opt/include
export PATH=/opt/bin:$PATH
try --disable-acl to avoid
acl.c:15:21: error: sys/acl.h: No such file or directory acl.c:19:24: error: acl/libacl.h: No such file or directory acl.c:24: error: 'acl_t' was not declared in this scope acl.c:25: error: expected ',' or ';' before '{' token make[1]: *** [acl.o] Error 1 make[1]: Leaving directory `/share/HDA_DATA/Public/burp/src'
export PATH=/opt/bin:$PATH; ./configure --disable-acl
make
Add /opt/lib to /etc/ld.so.conf
where c_rehash? Install manually from https://github.com/ChatSecure/OpenSSL/blob/master/tools/c_rehash to /opt/sbin/ and fix path to perl in header
to make possible make test acl.h and libacl.h from http://mirrors.zerg.biz/nongnu/acl/ As adviced http://blog.softwaredemo.com/2011/12/21/qnap-nas-configure-rsyncdrsync-with-extended-acl-rights/
Play with PATH not help somehow. I just remove awk and find in /bin (it just symlink to busybox) so GNU tools in /opt/bin used
http://wiki.qnap.com/wiki/Running_Your_Own_Application_at_Startup
export PATH=/opt/bin:$PATH; ./configure --disable-acl --prefix=/share/HDA_DATA/.qpkg/burp make install
create service control file /share/HDA_DATA/.qpkg/burp/burp-server.sh add to /etc/config/qpkg.conf Section [BURP] It MUST be after [Optware] section, because it depend on Optiware ipkg /opt hierarhy
http://wiki.qnap.com/wiki/Add_items_to_crontab combine Method 2 and Method 1 bis add to burp-server.sh
burp -a S -c /etc/burp/burp-server.conf | grep -v -e "$(date -d 'yesterday' +%F)" -e "$(date +%F)" -e "^[[:space:]]*$" grke/burp#151
http://git.ziirish.me/ziirish/burp-ui/tree/master
From 0.0.7.1 it support ACL and both burp lines 1 and 2 It really amazing.
http://gleenders.blogspot.ru/2014/04/install-python-pip-on-qnap-nas.html but change versions to latest
Install Python from QNAP App center. (It should be the most easy way) Access your NAS through SSH, ex. ssh [email protected] Install setuptools
$ wget https://pypi.python.org/packages/source/s/setuptools/setuptools-3.4.4.tar.gz --no-check-certificate
$ tar xf setuptools-3.4.4.tar.gz
$ cd setuptools-3.4.4
$ python setup.py build $ python setup.py installInstall pip
$ curl -O https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz -k $ tar xf pip-1.5.4.tar.gz $ cd pip-1.5.4 $ python setup.py install
v Add symbolic links
$ vim /share/MD0_DATA/.qpkg/Python/python.sh
Note: you can find a cheatsheet on how to use vim here. v v Insert the following two statements under the “#create symbolic links” section
/bin/ln -sf
${QPKG_BASE}/.qpkg/Python/bin/pip /usr/bin/pip /bin/ln -sf $ {QPKG_BASE}/.qpkg/Python/bin/pip2.7 /usr/bin/pip2.7Save and exit.
/share/MD0_DATA/.qpkg/Python/python.sh restart
SSL error when using pip
When running pip install you’ll get the following SSL error (run with -v option):
SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed Workaround: Install libraries manually
Example:
Download the archive:
curl -o boto-2.27.0.tar.gz https://pypi.python.org/packages/source/b/boto/boto-2.27.0.tar.gz#md5=47a4d81554380b21d85005f91d12a585 -k
Install the archive:
pip install boto-2.27.0.tar.gz
- https://pypi.python.org/pypi/Werkzeug/0.11.2
- Flask
- Flask-Login
- WTForms
- Flask-WTF
- Flask.ext.bower
- https://pypi.python.org/pypi/six/1.10.0
- https://pypi.python.org/pypi/python-dateutil/2.4.2
- https://pypi.python.org/pypi/aniso8601
- https://pypi.python.org/pypi/pytz/2015.7
- https://pypi.python.org/pypi/Flask-RESTful#downloads
- https://pypi.python.org/pypi/jsonschema/2.5.1#downloads
- https://pypi.python.org/pypi/flask-restplus/0.8.1#downloads
- https://pypi.python.org/pypi/functools32/3.2.3-2
download from https://pypi.python.org/pypi with wgtet --no-check-certificate
pip install
bound: 0.0.0.0
[BASE] admin: password