Linux version.h: LINUX_VERSION_CODE is X65536 + Y256 + Z e.g. Linux 2.6.31.8: LINUX_VERSION_CODE = 265536 + 6256 + 31 = 132639 root@nsa310:~# cat /ffp/include/linux/version.h #define LINUX_VERSION_CODE 132639 #define KERNEL_VERSION(a,b,c) (((a)
Month: October 2014
Compiling Apache 2.2.9
rm -r ~/compile/httpd-2.2.9-unpacked cd ~/compile && mkdir httpd-2.2.9-unpacked tar xvzf httpd-2.2.9.tar.gz -C ./httpd-2.2.9-unpacked cd ~/compile/httpd-2.2.9-unpacked/httpd-2.2.9 find . -type f ( -exec sed -i s/”\/usr\/bin\/bash”/”\/ffp\/bin\/bash”/ {} \; , -exec sed -i s/”\/usr\/bin\/sh”/”\/ffp\/bin\/sh”/ {} \; , -exec sed -i s/”\/usr\/bin\/env”/”\/ffp\/bin\/env”/ {} \; […]
Library rpath si Library runpath
ATENTIE, am manarit referintele la librarii (vezi /etc/ld.so.conf). Vezi Library rpath si Library runpath cu: readelf -d /usr/sbin/httpd http://en.wikipedia.org/wiki/Rpath: At run time, if the dynamic linker finds a DT_RUNPATH attribute, it ignores the value of the DT_RPATH attribute, with the […]
C++ programming on linux
Info despre configuratia de la build gcc gcc -v Paths http://en.wikipedia.org/wiki/Rpath http://man7.org/linux/man-pages/man8/ld.so.8.html A sure-fire way to determine the name of the dynamic linker is to inspect a random binary from the host system by running: readelf -l /ffp/bin/find | grep […]
Compiling uClibc toolchain 0.9.33.2
#The test suite will be installed into /root/uClibc directory. To run # x the test suite enter the /root/uClibc/test directory and type # x “make UCLIBC_ONLY=1 CC=/bin/true check”. # x See the /root/uClibc/test/README for additional information. export CFLAGS=”-march=armv5te -mtune=xscale -mfloat-abi=soft […]
Build, install & configure mod_spdy
https://code.google.com/p/mod-spdy/wiki/GettingStarted chrome://net-internals/#spdy https://svn.apache.org/viewvc/httpd/mod_spdy/trunk/ #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. #When depot_tools is already updated than run once: cd /ffp/home/root/compile/depot_tools ~/x.sh ffpg […]
Integrate apache 2.2 with zyxel firmware apache modules
WSGIPythonHome /usr -> existing line LoadModule actions_module /ffp/opt/apache-2.2.9/modules/mod_actions.so LoadModule alias_module /ffp/opt/apache-2.2.9/modules/mod_alias.so LoadModule asis_module /ffp/opt/apache-2.2.9/modules/mod_asis.so LoadModule authn_default_module /ffp/opt/apache-2.2.9/modules/mod_authn_default.so LoadModule authn_file_module /ffp/opt/apache-2.2.9/modules/mod_authn_file.so LoadModule authz_default_module /ffp/opt/apache-2.2.9/modules/mod_authz_default.so LoadModule authz_groupfile_module /ffp/opt/apache-2.2.9/modules/mod_authz_groupfile.so LoadModule authz_host_module /ffp/opt/apache-2.2.9/modules/mod_authz_host.so LoadModule authz_user_module /ffp/opt/apache-2.2.9/modules/mod_authz_user.so LoadModule auth_basic_module /ffp/opt/apache-2.2.9/modules/mod_auth_basic.so LoadModule autoindex_module /ffp/opt/apache-2.2.9/modules/mod_autoindex.so LoadModule cgi_module […]
Install & configure Owncloud
cd /i-data/60cb70cf/www/pages #mv /i-data/md0/www/pages/owncloud to /i-data/md0/www/pages/owncloud{vezi versiunea in version.php} #rm -r /i-data/md0/www/pages/owncloud wget https://download.owncloud.org/community/owncloud-7.0.2.tar.bz2 tar xjf owncloud-7.0.2.tar.bz2 -> creaza folderul owncloud (atentie la vechiul owncloud) mysql -p CREATE DATABASE owncloud702 CHARACTER SET utf8; GRANT ALL ON owncloud702.* TO ‘owncloud702’@’%’ IDENTIFIED […]
Plex behind Apache proxy
Sorry for moving you around; didn’t have time to transfer the content below to here. https://adrhc.go.ro/ffp/plex-apache.html
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 […]
Install & configure google’s mod_pagespeed for apache
#See https://adrhc.go.ro/blog/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. #mod_pagespeed (see depot_tools and modpagespeed-patch.sh below) rm -r ~/compile/mod_pagespeed mkdir ~/compile/mod_pagespeed cd ~/compile/mod_pagespeed #export PATH=/ffp/sbin:/usr/sbin:/sbin:/ffp/bin:/usr/bin:/bin:/ffp/opt/ejre1.7.0_60/bin:/ffp/home/root/compile/depot_tools/ […]
Compiling findutils
mkdir -p ~/temp/findutils make install DESTDIR=/ffp/home/gigi/temp/findutils/ cd ~/temp/findutils rm /tmp/findutils-4.5.15-arm-1.txz #makepkg findutils version buildnumber makepkg findutils 4.5.15 1 cp /tmp/findutils-4.5.15-arm-1.txz /usr/local/zy-pkgs/gui/ffp_0.7_armv5
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 > […]
Compiling findutils
#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. #requires: pth-2.0.7-arm-1.txz, libiconv-1.14-arm-1.txz, texinfo-5.2-arm-1.txz cd ~/compile rm -r ~/compile/findutils #rel-4-4-fixes branch (stable) #git clone -q […]
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