# wget http://libvirt.org/sources/php/libvirt-php-0.4.5.tar.gz # tar zxvf libvirt-php-0.4.5.tar.gz # cd libvirt-php-0.4.5 # yum install libvirt-devel php-devel # ./configure # make # make install # ls -al /usr/lib64/php/modules/ # chmod 755 /usr/lib64/php/modules/libvirt-php.so # cat /etc/php.d/libvirt-php.ini ; libvirt-php module extension=libvirt-php.so # php -m | grep libvirt libvirt # service httpd restart
2012年4月17日 星期二
libvirt-php in CentOS 5.X
2012年1月4日 星期三
2011年11月21日 星期一
ubuntu 由 DHCP 取得 ip 以及 hostname
Step 1.
===/etc/networks/interface
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
Step 2.
=== /etc/dhcp3/ dhclient- exit-hooks. d/sethostname ======= ======= ======= =
# This script sets the machine hostname to the hostname sent from the DHCP server.
# Beware, if this happens while X is running, there will be problems, so the script checks
# for a running gdm and does not change the hostname if it detects one.
# If you want to enable this script, change SETHOSTNAME to "yes"
SETHOSTNAME="yes"
if [ "$SETHOSTNAME" = "yes" ]; then
if test -r /var/run/gdm.pid && ps -ef | grep $(cat /var/run/gdm.pid) | grep -q /usr/sbin/gdm ; then
echo "$(date): GDM running, not changing host name"
else
hostname $new_host_name;
fi
fi
===/etc/networks/interface
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
Step 2.
=== /etc/dhcp3/
# This script sets the machine hostname to the hostname sent from the DHCP server.
# Beware, if this happens while X is running, there will be problems, so the script checks
# for a running gdm and does not change the hostname if it detects one.
# If you want to enable this script, change SETHOSTNAME to "yes"
SETHOSTNAME="yes"
if [ "$SETHOSTNAME" = "yes" ]; then
if test -r /var/run/gdm.pid && ps -ef | grep $(cat /var/run/gdm.pid) | grep -q /usr/sbin/gdm ; then
echo "$(date): GDM running, not changing host name"
else
hostname $new_host_name;
fi
fi
2011年9月5日 星期一
Ununtu Disabled ipv6
root@server:~# netstat -atnup | grep 177 udp6 0 0 :::177 :::* 4146/gdm-binary
I disabled IPv6 via the Kernel Boot Parameters:
I added "ipv6.disable=1" to the Config Line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" in /etc/defaults/grub.
$ grep -i ipv6 /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
Then updated grub via the command "sudo update-grub" and rebooted.
Now gdm listens on the UDP in IPv4.
$ sudo netstat -tuanp |grep gdm udp 0 0 0.0.0.0:177 0.0.0.0:* 607/gdm-binary
2011年4月20日 星期三
VNC & GDM
so, you have no graphics card, but you still want GUI management / X Windows......
Perhaps you do have a graphics card but want the convenience of using VNC to reach your Fedora machine?
There are some great turotials on getting the basics of VNC set up, but it always logs you right into the machine as a specific user...I want to choose my user....VNC + GDM is the answer
Perhaps you do have a graphics card but want the convenience of using VNC to reach your Fedora machine?
There are some great turotials on getting the basics of VNC set up, but it always logs you right into the machine as a specific user...I want to choose my user....VNC + GDM is the answer
Torque 中,限制哪些Queue 只能在哪些 node 跑
12.1.3 Queues
Some resource managers allow queues (or classes) to be defined and then associated with a subset of available compute resources. With such systems, such as Loadleveler or PBSPro, these queue to node mappings are automatically detected. On resource managers which do not provide this service, Moab provides alternative mechanisms for enabling this feature.
12.1.3.1 TORQUE/OpenPBS Queue to Node Mapping
Under TORQUE, queue to node mapping can be accomplished by using the qmgr command to set the queue acl_hosts parameter to the mapping hostlist desired. Further, the acl_host_enable parameter should be set to False.
Some resource managers allow queues (or classes) to be defined and then associated with a subset of available compute resources. With such systems, such as Loadleveler or PBSPro, these queue to node mappings are automatically detected. On resource managers which do not provide this service, Moab provides alternative mechanisms for enabling this feature.
12.1.3.1 TORQUE/OpenPBS Queue to Node Mapping
Under TORQUE, queue to node mapping can be accomplished by using the qmgr command to set the queue acl_hosts parameter to the mapping hostlist desired. Further, the acl_host_enable parameter should be set to False.
Using native IB support for GPFS
資料來源: http://mytravelingfamily.com/2009/03/04/using-native-ib-support-for-gpfs/
March 4, 2009 in Computers | Tags: gpfs, Infiniband, verbsPorts, verbsRdma
Just a quick follow on to the last post. If you try to use native IB support with GPFS instead of the IP over IB you need to set the verbsRdma to enabled. You also need to set the rdma device to use with the verbsPort setting. If you get the following error in /var/mfms/gen/mmfslog then you didn’t properly set the verbsPort
March 4, 2009 in Computers | Tags: gpfs, Infiniband, verbsPorts, verbsRdma
Just a quick follow on to the last post. If you try to use native IB support with GPFS instead of the IP over IB you need to set the verbsRdma to enabled. You also need to set the rdma device to use with the verbsPort setting. If you get the following error in /var/mfms/gen/mmfslog then you didn’t properly set the verbsPort
Lustre 安裝與設定
安裝
rpm -ivh lustre-modules-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh lustre-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh kernel-2.6.18-194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh lustre-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh lustre-ldiskfs-3.1.4-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -Uvh --nodeps --force e2fsprogs-1.41.10.sun2-0redhat.rhel5.x86_64.rpm
shutdown -r now
rpm -ivh lustre-modules-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh lustre-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh kernel-2.6.18-194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh lustre-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh lustre-ldiskfs-3.1.4-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -Uvh --nodeps --force e2fsprogs-1.41.10.sun2-0redhat.rhel5.x86_64.rpm
shutdown -r now
Linux KVM: Disable virbr0 NAT Interface
The virtual network (virbr0) used for Network address translation (NAT) which allows guests to access to network services. However, NAT slows down things and only recommended for desktop installations. To disable Network address translation (NAT) forwarding type the following commands:
2008年10月24日 星期五
MPICH and gfortran
export FC="gfortran -O2 -ff2c -fno-underscoring "
export F77_GETARGDECL=" "
export CC="gcc -O2 "
export CXX="g++ -O2 "
export F90="gfortran -O2 -ff2c -fno-underscoring "
./configure --prefix=/opt/mpich -rsh=ssh
export F77_GETARGDECL=" "
export CC="gcc -O2 "
export CXX="g++ -O2 "
export F90="gfortran -O2 -ff2c -fno-underscoring "
./configure --prefix=/opt/mpich -rsh=ssh
2008年10月22日 星期三
最好的阻止SSH暴力破解的方法(DenyHosts)
最近機器每天都會有無數的SSH失敗嘗試記錄,有些無聊的人一直不停的掃描,這些人真夠無聊的,沒事吃飽了撐著,老找些軟體在那裏窮舉掃描,所以大家第一要記的設定一個好的夠複雜的密碼。
訂閱:
文章 (Atom)










