vmware esx server – compile linux kernel / scsi controller/driver problem

直接在 vmware esx server 上重裝一台 gentoo linux 的 steps 在這個地方要勾 BusLogic , 在 make menuconfig 要選 BusLogic (簡直是廢話…) 開機後 dmesg | grep scsi 的結果是 scsi: ***** BusLogic SCSI Driver Version 2.1.16 of 18 July 2002 ***** scsi: Copyright 1995-1998 by Leonard N. Zubkoff <[email protected]> scsi0: Configuring BusLogic Model BT-958 PCI Wide Ultra SCSI Host Adapter … Read more

sysctl / Linux tunning /etc/sysctl.conf

net.ipv4.ip_local_port_range = 1024 65536 net.core.rmem_max=16777216 net.core.wmem_max=16777216 net.ipv4.tcp_rmem=4096 87380 16777216 net.ipv4.tcp_wmem=4096 65536 16777216 net.ipv4.tcp_fin_timeout = 3 net.ipv4.tcp_tw_recycle = 1 net.core.netdev_max_backlog = 30000 net.ipv4.tcp_no_metrics_save=1 net.core.somaxconn = 262144 net.ipv4.tcp_syncookies = 0 net.ipv4.tcp_max_orphans = 262144 net.ipv4.tcp_max_syn_backlog = 262144 net.ipv4.tcp_synack_retries = 2 net.ipv4.tcp_syn_retries = 2

解決 error while loading shared libraries 的方法

執行程式時, 若遇到 ./update_item: error while loading shared libraries: libsqlrclientwrapper-0.40.so.1: cannot open shared object file: No such file or directory 像這樣的錯誤訊息 , 表示程式中所需的 so 檔(share library) 沒找到 , 要修改 /etc/ld.so.conf 加上這個目錄 , 改完要下 ldconfig –v 讓路徑生效 可以用 ldd 看該程式所使用到的 shared library 有那些, 及 lib 路徑 —– 以下是 gentoo 的標準解法 , 其他版本的 linux 則不太相同!! cat /etc/ld.so.conf   … Read more

install oracle instant client basic on gentoo linux step by step

emerge -av dev-db/oracle-instantclient-basic dev-db/oracle-instantclient-sqlplus — !!! dev-db/oracle-instantclient-basic-11.1.0.7.0 has fetch restriction turned on. !!! This probably means that this ebuild’s files must be downloaded !!! manually. See the comments in the ebuild for more information. * Please go to: * http://www.oracle.com/technology/tech/oci/instantclient/index.html * select your platform and download the * Basic client package with SDK, which are: … Read more