mount iso on solaris

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

two command
#lofiadm -a /root/my.iso /dev/iso01
#mount -F hsfs -o ro /dev/iso01 /mnt

one command
#mount -F hsfs -o ro `lofiadm -a /root/my.iso` /mnt

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

configure: error: C compiler cannot create executables
install SUNWarc from dvd for fix it

Edit ld.config on solaris 10

Posted: 28th July 2010 by admin in system

Edit Default Library Path on solaris 10
type “crle” for list Default Library Path
# crle

Configuration file [version 4]: /var/ld/ld.config
Default Library Path (ELF): /usr/local/lib:/lib:/usr/lib
Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system default)

Command line:
crle -c /var/ld/ld.config -l /usr/local/lib:/lib:/usr/lib

type “crle -c /var/ld/ld.config -l /usr/local/lib:/lib:/usr/lib” to change Default Library Path
#crle -c /var/ld/ld.config -l /usr/local/lib:/lib:/usr/lib

Install and config Java on gentoo linux

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

Install JDK
# emerge virtual/jdk

Config JVM

# java-config –list-available-vms

# java-config –set-system-vm ???

enable php curl proxy

Posted: 2nd January 2010 by admin in php

curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($ch, CURLOPT_PROXY,”$host:$port”);

ubuntu build essential

Posted: 2nd January 2010 by admin in system

#apt-get install build-essential

snmptranslate

Posted: 26th June 2009 by admin in linux security, network

# snmptranslate -IR tcpPassiveOpens.0
TCP-MIB::tcpPassiveOpens.0

# snmptranslate -On TCP-MIB::tcpPassiveOpens.0
.1.3.6.1.2.1.6.6.0

# snmptranslate .1.3.6.1.2.1.6.6.0
TCP-MIB::tcpPassiveOpens.0

การเปิด 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