Tomcat datasource in context.xml

<Resource name=”exifweb” auth=”Container” type=”javax.sql.DataSource” factory=”org.apache.tomcat.jdbc.pool.DataSourceFactory” testWhileIdle=”true” testOnBorrow=”true” testOnReturn=”false” validationQuery=”SELECT 1″ validationInterval=”30000″ timeBetweenEvictionRunsMillis=”30000″ maxActive=”10″ minIdle=”2″ maxIdle=”3″ maxWait=”5000″ initialSize=”1″ removeAbandonedTimeout=”60″ removeAbandoned=”false” logAbandoned=”false” minEvictableIdleTimeMillis=”30000″ jmxEnabled=”false” jdbcInterceptors=”org.apache.tomcat.jdbc.pool.interceptor.ConnectionState” username=”exifweb” password=”exifweb” driverClassName=”com.mysql.jdbc.Driver” url=”jdbc:mysql://localhost:3306/exifweb”/>

MetaRepository from mijzelf

cd /i-data/md0/admin/zy-pkgs wget http://downloads.zyxel.nas-central.org/Users/Mijzelf/zypkg-repo/MetaRepository_20140529_arm_010.zpkg cd ~/temp wget http://downloads.zyxel.nas-central.org/Users/Mijzelf/zypkg-repo/ZYPKGS #copy MetaRepository from ~/temp/ZYPKGS within /i-data/md0/admin/zy-pkgs/ZYPKGS #web_prefix: insert as first line “http://downloads.zyxel.nas-central.org/Users/Mijzelf/zypkg-repo/NSA310/4.70/zypkg/” cd /usr/local/zy-pkgs/zypkg_conf touch status touch /i-data/md0/admin/zy-pkgs/ZYPKGS touch /i-data/md0/admin/zy-pkgs/web_prefix #go to Firmware/Packages (only press Package tab, don’t Retrieve List From Internet) […]

Apache basic authentication password creation

# see http://passwordsgenerator.net/ # -c option means to create the passwords file /ffp/opt/apache-2.2.9-prefork/bin/htpasswd -c -m passwords_file_path user_name1 # -m option means to add/modify the user user_name2 /ffp/opt/apache-2.2.9-prefork/bin/htpasswd -m passwords_file_path user_name2 # -D option means to delete the user user_name3 htpasswd […]

Install linux headers

cd ~/compile rm -r linux-2.6.31.8 rm -r linux_headers mkdir linux_headers wget https://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.31.8.tar.gz tar xvzf linux-2.6.31.8.tar.gz cd linux-2.6.31.8 export ARCH=arm export ARM_ARCH=armv5te export CLFS_FLOAT=soft unset CFLAGS unset CPPFLAGS unset CXXFLAGS #For Zyxel NSA310 only: #Replace /ffp/home/root/compile/linux-2.6.31.8/arch/arm/Makefile with #/ffp/home/root/temp/build_NSA310/trunk/linux-2.6.31.8/arch/arm/Makefile #from http://gpl.nas-central.org/ZYXEL/NSA310_GPL/FW4.40/build_NSA310.tar.gz cp […]

How to configure Stunnel

https://www.stunnel.org/howto.html https://www.stunnel.org/static/stunnel.html http://serverfault.com/questions/9708/what-is-a-pem-file-and-how-does-it-differ-from-other-openssl-generated-key-file https://support.ssl.com/index.php?/Knowledgebase/Article/View/19 stunnel /ffp/etc/stunnel/stunnel.conf cat /ffp/var/lib/stunnel/stunnel.pid cat /ffp/var/lib/stunnel/stunnel.log #Generate cert file necesar a fi specificat in stunnel.conf (varianta cu windows – preferata): openssl.exe req -newkey rsa:2048 -x509 -days 3660 -out stunnel-pub.pem -keyout stunnel-key.pem openssl.exe rsa -in stunnel-key.pem -out […]

How to create a certificate

# see https://www.openssl.org/docs/manmaster/apps/req.html # Create a certificate del adr-*.pem openssl req -newkey rsa:2048 -x509 -days 3660 -out adr-pub.pem -keyout adr-key.pem #bug: openssl req -newkey rsa:2048 -x509 -days 3660 -out adr-bitvise-pub.pem -keyout adr-bitvise-key.pem #bug: openssl req -new -x509 -days 3660 -out […]

Zyxel NSA310 info

Packages (compiled by me) for Zyxel NSA310: https://adrhc.go.ro/ffp_0.7_packages/packages/ Fonz Fun Plug repositories: fonz http://www.inreto.de/ffp/0.7/arm/PACKAGES.html adrhc https://adrhc.go.ro/ffp_0.7_packages/packages/ Mijzelf http://downloads.zyxel.nas-central.org/Users/Mijzelf/FFP-Stick/packages/0.7/arm Uli rsync://funplug.wolf-u.li/funplug/0.7/arm/packages Uli http://funplug.wolf-u.li/0.7/arm/packages/ -> URL la care vad packages KyleK http://kylek.is-a-geek.org:31337/files/ffp/0.7-arm Memiks http://ffp.memiks.fr/pkg/ barmalej2 http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/packages https://adrhc.go.ro/pkg/ffp/?0.7/arm,not_chrooted -> info page about Fonz […]

How To Decompress Linux Archive Files

# extract archive: unrar e rar-archive.rar unzip sqlite-amalgamation-3071501.zip unzip -uo ghost.zip -d ghost -> extract ghost.zip to ghost tar xvzf mkvtoolnix-6.5.0-arm-1.tgz tar xvzf mkvtoolnix-6.5.0-arm-1.tar.gz tar xvzf ffp_0.7_arm_003.zpkg tar xvfp wget-1.16.tar.xz tar xvfJ archive.txz tar jxf libebml-1.3.0.tar.bz2 gzip -cd aria2c.1.gz > […]

Using PECL

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. #BEFORE RUNNING any “php peclcmd.php install xxx” these also have to be set: export PKG_CONFIG=/ffp/bin/pkg-config […]