2010/08/29

Linux 關閉系統的BB聲

OS: Linux
1.$ sudo rmmod pcspkr (重開機後即改回)


2.重開機後仍可作用
將指令加入rc.local,讓開機時直接執行該指令.

/etc/rc.d/rc.local

2010/07/13

透過指令更改網路IP Address

========================================================================
適用:windows2000 2003 XP

將TCP/IP更改為DHCP
#netsh interface ip set address "區域網路" dhcp

更改TCP/IP設定如下。IP=192.168.1.28 網路遮罩=255.255.255.0 閘道器=192.168.1.254
#netsh interface ip set address "區域網路" static 192.168.1.28 255.255.255.0 192.168.1.254

設定DNS為168.95.1.1
#netsh interface ip set dns "區域網路" static 168.95.1.1

========================================================================

適用:windows 7  2008
設定成DHCP


#netsh interface ipv4 set address "eth0" source=dhcp
#netsh set dnsserver "eth0" source=dhcp

設定成固定IP。IP=192.168.1.28 網路遮罩=255.255.255.0 閘道器=192.168.1.254

#netsh interface ipv4 set address "eth0" static 192.168.1.28 255.255.255.0 192.168.1.254

設定DNS依序為192.168.1.101,192.168.1.102,168.95.1.1
#netsh interface ipv4 set dnsservers name="eth0" static 192.168.1.101 primary
#netsh interface ipv4 add dnsservers name="eth0" 192.168.1.102 index=2
#netsh interface ipv4 add dnsservers name="eth0" 168.95.1.1 index=3


 *在設定固定的DNS位置時,會偵測是否該DNS是否存在。所以若出現不存在的話也不用在意。因為設定值還是有設定到IP裡。




2010/05/18

HP-UX 所有command

http://docs.hp.com/en/B3921-90010/index.html

HP-UX 顯示硬體的資訊

#machinfo

http://docs.hp.com/en/B3921-90010/machinfo.1.html

HP-UX 系統loading狀況

#sar  1 10

1: 一秒顯示一次
10: 共顯示十次

查看HP-UX硬體資訊

http://docs.hp.com/en/diag/stm/sth_cstm.htm

HP-UX:bdf - report number of free disk blocks (Berkeley version)

The bdf command displays the amount of free disk space available either on the specified filesystem (/dev/dsk/c0d0s0, for example) or on the file system in which the specified file (such as $HOME), is contained. If no file system is specified, the free space on all of the normally mounted file systems is printed. The reported numbers are in kilobytes.