cd ~/compile curl -L -k http://de1.php.net/get/php-5.5.19.tar.gz/from/this/mirror -o php-5.5.19.tar.gz tar -xzf php-5.5.19.tar.gz cd ~/compile/php-5.5.19 find . -type f ( -exec sed -i s/”\/usr\/bin\/perl”/”\/ffp\/bin\/perl”/ {} \; , -exec sed -i s/”\/usr\/bin\/python”/”\/ffp\/bin\/python”/ {} \; , -exec sed -i s/”\/usr\/bin\/bash”/”\/ffp\/bin\/bash”/ {} \; , -exec […]
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 […]
Test WebDAV server protocol compliance
#using litmus; there’s no space in front of > > debug.log && litmus http://adrhc.go.ro/webdav user password #or #using cadaver cadaver http://adrhc.go.ro/webdav
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 […]
Hibernate 4.3.5 + Spring 4.0.5
org.hibernate.dialect.MySQL5InnoDBDialect 20 false true false
Recursively remove all empty or almost empty directories
find /i-data/md0/video/ -type d -empty -delete # print files/directories with size less 1M: cd /****/Videos/couchpotato-complete du -sh * | grep -P “\d+K” | awk ‘{for (i=2; i
JPA (hibernate 4.3.x) + Spring 3.2.x
org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform false org.hibernate.spatial.dialect.postgis.PostgisDialect true
Tomcat
Pt debug din mediul de dezvoltare trebuie modificat: a) setenv.bat: SET “JAVA_HOME=c:\Program Files\Java\jdk1.7.0_60” CATALINA_OPTS=-Xms512m -Xmx2048m -XX:MaxPermSize=512M -XX:+CMSClassUnloadingEnabled -javaagent:c:\maven.repository.3x\org\springframework\spring-instrument-tomcat\4.0.6.RELEASE\spring-instrument-tomcat-4.0.6.RELEASE.jar SET “JPDA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005” b) startup.bat (la finalul fisierului): call “%EXECUTABLE%” jpda start %CMD_LINE_ARGS% -> pt a determina utilizarea lui JPDA_OPTS
Install & configure ghost
Installing ghost on linux (official) Compiling nodejs cd /ffp/opt/ rm -r ghost #rm ghost.zip #curl -L -k https://ghost.org/zip/ghost-latest.zip -o ghost.zip unzip -uo ghost.zip -d ghost cd /ffp/opt/ghost find . -type f -exec sed -i s/”\/usr\/bin\/bash”/”\/ffp\/bin\/bash”/ {} \; find . -type […]
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 […]
Compiling nodejs
cd ~/compile #wget http://nodejs.org/dist/v0.10.30/node-v0.10.30.tar.gz rm -r ~/compile/node-v0.10.30 tar xvzf node-v0.10.30.tar.gz cd ~/compile/node-v0.10.30 find . -type f -exec sed -i s/”\/usr\/bin\/bash”/”\/ffp\/bin\/bash”/ {} \; find . -type f -exec sed -i s/”\/usr\/bin\/sh”/”\/ffp\/bin\/sh”/ {} \; find . -type f -exec sed -i s/”\/usr\/bin\/env”/”\/ffp\/bin\/env”/ […]
Linux commands
prints current path pwd network traffic info: #processes using 80 and 443 ports netstat -tulpn | grep -P “:80|443” sudo nmap localhost sudo nmap -T4 -A -v localhost download with curl curl -L -k https://ghost.org/zip/ghost-latest.zip -o ghost.zip scan/checks USB harddisk: […]
Linux uname command
Find linux version uname -a Linux nsa310 2.6.31.8 2 Wed Mar 27 16:43:46 CST 2013 armv5tel GNU/Linux