Archive for the ‘Linux How to’ Category

how to compile gdbm 64 bit

Posted: 20th June 2011 by admin in Linux How to

how to compile gdbm 64 bit for solaris sparc 10 #CC=”gcc -m64″ CXX=”g++ -m64″ ./configure #make #make install #file /usr/local/lib/libgdbm.so /usr/local/lib/libgdbm.so: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped

Create ramdisk on solaris

Posted: 8th June 2011 by admin in Linux How to

Create ramdisk on solaris #ramdiskadm -a idisk 512m #newfs /dev/ramdisk/idisk #mkdir /test #mount /dev/ramdisk/idisk /test

how to change internet sharing ip on OSX

Posted: 8th May 2011 by admin in Linux How to

How to change Sharing network number to 10.10.0.0 # sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.nat NAT -dict-add SharingNetworkNumberStart 10.10.0.0 # defaults read /Library/Preferences/SystemConfiguration/com.apple.nat restart internet sharing

edit open files limit on solaris

Posted: 29th August 2010 by admin in Linux How to

add # Hard limit set rlim_fd_max = 65535 # Soft limit set rlim_fd_cur = 65535 to /etc/system

/export/home to /home on solaris

Posted: 28th August 2010 by admin in Linux How to

/export/home to /home on solaris add * -fstype=lofs :/export/home/& to /etc/auto_home

install openldap (compile) on centos x86_64

Posted: 9th August 2010 by admin in Linux How to

install bdb wget http://download.oracle.com/berkeley-db/db-4.8.30.tar.gz tar -xvzf db-4.8.30.tar.gz cd db-4.8.30/build_unix/ ../dist/configure –prefix=/usr/local make make install install openldap wget ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-stable/openldap-stable-20100719.tgz tar -xvzf openldap-stable-20100719.tgz cd openldap-* ./configure make depend make make install

soelim: command not found on centos x86_64

Posted: 9th August 2010 by admin in Linux How to

yum install groff.x86_64

install python 2.7 , gevent on centos 5 x86_64

Posted: 4th August 2010 by admin in Linux How to

# yum install gcc gcc-c++.x86_64 compat-gcc-34-c++.x86_64 openssl-devel.x86_64 zlib*.x86_64 install python 2.7 # wget http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2 # tar -xvjf Python-2.7.tar.bz2 # cd Python* # ./configure –prefix=/opt/python27 # make # make install # vi ~/.bash_profile replace PATH=$PATH:$HOME/bin with PATH=$PATH:$HOME/bin:/opt/python27/bin reload .bash_profile # source ~/.bash_profile # echo “/opt/python27/lib” > /etc/ld.so.conf.d/python27.conf # ldconfig install setuptool # cd ~ # wget […]

how to mount hdfs

Posted: 31st July 2010 by admin in Linux How to

ant compile-c++-libhdfs -Dislibhdfs=1 mkdir build/libhdfs cp -r build/c++/Linux-amd64-64/lib/* build/libhdfs/ ant compile-contrib -Dislibhdfs=1 -Dfusedfs=1 -Dlibhdfs-fuse=1 ln -s /usr/local/hadoop/build/contrib/fuse-dfs/fuse_dfs* /bin/ ln -s /usr/local/hadoop/build/libhdfs/* /lib/ mkdir /mnt/hdfs test mount fuse_dfs_wrapper.sh dfs://hdmaster01:59995 /mnt/hdfs -d & ls /mnt/hdfs

how to change apache product name on header

Posted: 31st July 2010 by admin in Linux How to

how to change apache product name on header vi /apache_1.3.X/src/include/httpd.h หา #define SERVER_BASEVENDOR “Apache Group” #define SERVER_BASEPRODUCT “Apache” #define SERVER_BASEREVISION “1.3.X” #define SERVER_BASEVERSION SERVER_BASEPRODUCT “/” SERVER_BASEREVISION #define SERVER_PRODUCT SERVER_BASEPRODUCT #define SERVER_REVISION SERVER_BASEREVISION #define SERVER_VERSION SERVER_PRODUCT “/” SERVER_REVISION enum server_token_type { SrvTk_MIN, /* eg: Apache/1.3.0 */ SrvTk_OS, /* eg: Apache/1.3.0 (UNIX) */ SrvTk_FULL, /* eg: Apache/1.3.0 […]