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) […]
How To
how to, tips, hints
Using PEAR
pear update-channels #Instalare pachet PEAR: pear install PHP_Archive -> e versiune gen alpha, beta, etc si de-aia nu se instaleaza pear install PHP_Archive-0.11.4 -> specificata versiunea exacta si instalarea va rula fara probleme pear search pecl -> cautare pachet pecl […]
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 […]
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 […]
Linux kill command
pkill cupsd kill pidof cupsd
-> pidof transmission-daemon
e ok dar pidof transmission
nu e ok kill pidof "Plex Media Server"
kill pgrep transmission
-> pgrep transmission
e ok dar pgrep transmission-daemon
nu e ok kill `ps ax -o pid,args […]
FFP 0.7 NSA310 packages
All packages here (when you’re in trouble don’t miss the details/readme below the packages list) root@nsa310:~# uname -a Linux nsa310 2.6.31.8 #2 Fri Aug 2 11:21:44 CST 2013 armv5tel GNU/Linux I’m successfully using (or used) all these packages with my […]
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 > […]
Copy/extract iso
mount -o loop X-Men.Days.of.Future.Past.2014.NTSC.DVDR.Ro-playON.iso /mnt/iso #nohup cp -R /mnt/iso/* /i-data/md0/video/filelist9/X-Men.Days.of.Future.Past.2014.NTSC.DVDR.Ro-playON/ & umount /mnt/iso
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 […]