Archive for the ‘Linux How to’ Category

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

mount iso on solaris

Posted: 30th July 2010 by admin in Linux How to

two command lofiadm -a /root/my.iso mount -F hsfs -o ro /dev/lofi/1 /mnt/cdrom one command mount -F hsfs -o ro `lofiadm -a /root/my.iso` /mnt/cdrom

zfs basic command

Posted: 30th July 2010 by admin in Linux How to

zpool create mypool /dev/dsk/c0t0d0 zfs list zfs mount mypool zfs unmount mypool zfs create mypool/test zfs destroy mypool/test zfs rename mypool/test mypool/test2 zfs set canmount=off mypool zfs set mountpoint=/home mypool zfs set compression=on mypool zfs set atime=off mypool zfs set quota=1G mypool/test

bash: rsync: command not found

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

bash: rsync: command not found fix by add –rsync-path=PATH

การเปิด timestamp จะทำให้ต้องเพิ่ม ‏ 12bytes ไว้ที่ TCP header ครับ Linux เปิด : echo 1 >/proc/sys/net/ipv4/tcp_timestamps ปิด : echo 0 >/proc/sys/net/ipv4/tcp_timestamps *BSD เปิด : sysctl -w TCPCTL_DO_RFC1323=true ปิด : sysctl -w TCPCTL_DO_RFC1323=false หรือ เปิด : sysctl -w net.inet.tcp.rfc1323=true ปิด : sysctl -w net.inet.tcp.rfc1323=false

How to install mod_rpaf – reverse proxy wget http://stderr.net/apache/rpaf/download/mod_rpaf-0.6.tar.gz tar -xvzf mod_rpaf-0.6.tar.gz cd mod_rpaf-0.6 apxs -i -c -n mod_rpaf-2.0.so mod_rpaf-2.0.c   add this to httpd.conf and save it LoadModule rpaf_module /usr/lib/apache/mod_rpaf-2.0.so #Reverse proxy RPAFenable On RPAFsethostname On RPAFproxy_ips 127.0.0.1 xxx.xxx.xxx.xxx <– set your public ip xxx.xxx.xxx.xxx RPAFheader X-Forwarded-For   restart service apache #/etc/init.d/httpd restart

การ backup/restore OpenLdap (BerkleyDB)

Posted: 25th May 2009 by admin in Linux How to
Tags:

Backup: slapcat > backup.ldif Restore: slapadd < backup.ldif