2012-11-17
The procedures for obtaining diagnostic information for VMware vCenter Server
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1011641#method1
2012-10-13
MRBS -- LDAP
mrbs 1.4.8 on OB2D with "apt-get install php5-ldap"
check ldap log
/var/log/apache2/error.log
systemdefaults.inc.php
auth_ldap.inc
check ldap log
/var/log/apache2/error.log
systemdefaults.inc.php
$auth["type"] = "ldap"; $ldap_host = "server.abc.com"; $ldap_port = 389; $ldap_v3 = false; $ldap_tls = false; $ldap_base_dn = "c=uers,DC=abc,DC=com"; $ldap_user_attrib = "uid"; $ldap_dn_search_attrib = "sAMAccountName"; $ldap_dn_search_dn = "CN=user,cn=users,DC=abc,DC=com"; $ldap_dn_search_password = "xxxxxx"; $ldap_disable_referrals = TRUE; $ldap_get_user_email = FALSE; $ldap_email_attrib = "mail"; //$ldap_unbind_between_attempts = TRUE; $ldap_debug = TRUE; //$ldap_filter = "memberof=cn=MRBSUsers,ou=MRBS,ou=Groups,dc=ufv,dc=ca"; //$ldap_admin_group_dn = "cn=MRBSAdmins,ou=MRBS,ou=Groups,dc=ufv,dc=ca"; //$ldap_group_member_attrib = "memberof";
auth_ldap.inc
// Turn any non-array config items into arrays in $all_ldap_opts
+ if (!isset($count))
+ {
+ $count = 1;
+ }
foreach ($config_items as $item)
{
if (!isset($$item))
Windows How to Finding non present devices
1. Open Command shell
2. type "set devmgr_show_nonpresent_devices=1"
3. type "start devmgmt.msc"
4. Select "Show hidden devices"
2. type "set devmgr_show_nonpresent_devices=1"
3. type "start devmgmt.msc"
4. Select "Show hidden devices"
2012-09-30
Ubuntu -- Learning
@How to configure network setting to use static IP address
sudo vi /etc/network/interfaces
1 auto lo
2 iface lo inet loopback
3
4 auto eth0
5 iface eth0 inet static
6 address 192.168.0.1 # 固定 IP 位址
7 netmask 255.255.255.0 # 網路遮罩
8 gateway 192.168.0.254 # 預設閘道
sudo /etc/init.d/networking restart #重啓網路服務
@How to configure DNS server setting
sudo vim /etc/resolv.conf
1# DNS of Google
2#nameserver 8.8.4.4
3#nameserver 8.8.8.8
4
5# DNS of HiNet
6#nameserver 168.95.1.1
7#nameserver 168.95.192.1
sudo /etc/init.d/networking restart #重啓網路服務
@How to install LAMP
sudo apt-get install tasksel
sudo tasksel
#select LAMP to install
$sudo vi /var/www/info.php #to vi info.php
<?php
phpinfo();
?>
$sudo /etc/init.d/apache2 restart #to restart Apache service
Visit http://192.168.0.1/info.php
@How to install phpmyadmin
sudo apt-get install phpmyadmin
http://ip/phpmyadmin #to test
sudo vi /etc/network/interfaces
1 auto lo
2 iface lo inet loopback
3
4 auto eth0
5 iface eth0 inet static
6 address 192.168.0.1 # 固定 IP 位址
7 netmask 255.255.255.0 # 網路遮罩
8 gateway 192.168.0.254 # 預設閘道
sudo /etc/init.d/networking restart #重啓網路服務
@How to configure DNS server setting
sudo vim /etc/resolv.conf
1# DNS of Google
2#nameserver 8.8.4.4
3#nameserver 8.8.8.8
4
5# DNS of HiNet
6#nameserver 168.95.1.1
7#nameserver 168.95.192.1
sudo /etc/init.d/networking restart #重啓網路服務
@How to install LAMP
sudo apt-get install tasksel
sudo tasksel
#select LAMP to install
$sudo vi /var/www/info.php #to vi info.php
<?php
phpinfo();
?>
$sudo /etc/init.d/apache2 restart #to restart Apache service
Visit http://192.168.0.1/info.php
@How to install phpmyadmin
sudo apt-get install phpmyadmin
http://ip/phpmyadmin #to test
Linux -- 檔案系統樹狀標準
- 根目錄 (/):為整個檔案系統樹狀結構的根,也就是整個檔案系統的根目錄。
- /bin: 此目錄中存放著許多的 Binary 執行檔案,為一般及啟動時常常會使用到的檔案,例如 ls、cp、rm ...等指令。
- /sbin:此目錄中存放著許多的 System Binary 執行檔案,為系統管理時常常會使用到的檔案,例如 shutdown、fsck、quotacheck...等指令。
- /etc:此為 Linux 系統中相當重要得目錄,大部份的設定檔都存放於此,例如檔案系統掛載設定檔 /etc/fstab、IPTables 防火牆設定檔 /etc/sysconfig/iptables...等。
- /lib:存放 Linux 系統中各種共用的 Library 函式庫檔案,類似於 Windows 作業系統的 DLL 動態連結函式庫一樣的功能。
- /dev:Linux 系統是以 Everything is Files 的觀念來進行管理 Device 硬體裝置,因此硬體設備及週邊設備也不例外,此目錄中存放著所偵測到的相關硬體檔案,例如 光碟機為 /dev/cdrom、SCSI 硬碟為 /dev/sda...等,為相容舊版系統而存在。
- /sys:存放 System-Device 相關資訊 (由 RHEL 4 開始才有此資料夾),如 PnP...等,會將偵測到的 Device 資訊回寫至 /dev 對應的檔案內以相容舊版,所以舉例來說當主機插入 USB 隨身碟時會同時建立 /sys/block/sdb 以及回寫至 /dev/sdb 內。
- /selinux:存放 Linux 增強安全性機制 SELinux (Security Enhanced Linux) 相關檔案。
- /var 具備 Variable 也就是變動特性的檔案將存放於此,例如 系統的各式日誌檔案 /var/log、使用者電子信箱 /var/mail、正在執行的執行序 /var/run/*.pid ...等。
- /srv:存放相關的 Server-data。(由 RHEL 4 開始才有此資料夾)
- /usr:Linux 系統中大部份的 安裝套件及相關應用程序 都存放於此,例如其它網路服務的執行程序 /usr/sbin、核心原始碼檔案 /usr/src...等,類似於 Windows 作業系統的Program Files 資料夾。
- /opt:Optional 通常非預設安裝的套件會安裝於此,例如 Oracle 資料庫...等。
- /lost+found: 在每個獨立的掛載點內都會有此資料夾,當 Linux 系統不正常關機時相關資料便會暫存於此。
- /mnt: 用於 臨時掛載的目錄,通常會手動執行將外接設備掛載於此。(Kernel 2.4.x 使用)
- /media: 若 RunLevel 為 5 也就是進入圖形介面時 (由 RHEL 4 開始才有此資料夾),若主機有插入 USB 或其它外接設備時則會自動掛載於此目錄上 (不需手動掛載)。(Kernel 2.6.x 使用)
- /misc、/net: 用於 autofs 自動掛載時所使用的資料夾,例如 Linux 主機成為 LDAP、NIS Client 時便會將相關資料夾自動掛載於此,類似於 Windwos 作業系統中網路芳鄰的概念。
- /tmp: 暫存資料夾,存放暫時性的資料夾及檔案,通常 Linux 系統重新啟動或關機以及排程會自動清空此資料夾內容。
- /proc: Linux 系統中目前所執行的 執行序 Process 即存放於此資料夾,當該執行序停止執行則位於此資料夾中的 Process ID 或檔案將消失 (事實上此資料夾就是 Memory 中的暫存資料),至於有些檔案的大小為何是 0? 例如 meminfo、cpuinfo 則只是為了要達成 Everything is Files 的觀念而以,但仍可查看及檔案內容。
- /boot: 存放 Linux 系統開機時相關引導檔案,例如 Boot Loader 設定檔 /boot/grub/grub.conf、初始化映像檔 .img...等。
- /home: 所有 一般使用者帳號的家目錄,例如 使用者帳號 weithenn 的家目錄為 /home/weithenn。
- /root: Linux 系統超級管理者的家目錄。
CentOS -- Learning
&configure NIC&
#su
#Enter password for root
#service NetworkManager stop
#chkconfig NetworkManager off
#chkconfig NetworkManager --list
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
#su
#Enter password for root
#service NetworkManager stop
#chkconfig NetworkManager off
#chkconfig NetworkManager --list
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
TYPE=Ethernet
IPADDR=x.x.x.x
NETMASK=255.255.255.0
GATEWAY=x.x.x.x
DNS1=8.8.8.8
DEFROUTE=yes
#service network restart
&system update&
#yum update --skip-broken
&Disable SELinux&
&Disable SELinux&
#getenforce
Enforcing
#vi /etc/selinux/config
SELINUX=disabled
#reboot
#getenforce
Disabled
Enforcing
#vi /etc/selinux/config
SELINUX=disabled
#reboot
#getenforce
Disabled
Connecting to the Console Port with Mac OS X
Connecting to the Console Port with Mac OS X
This procedure describes how to connect a Mac OS X system USB port to the console using the built-in OS X Terminal utility.
Step 1 Use the Finder to go to Applications > Utilities > Terminal.
Step 2 Connect the OS X USB port to the router.
Step 3 Enter the following commands to find the OS X USB port number:
macbook:user$ cd /dev
macbook:user$ ls -ltr /dev/*usb*
crw-rw-rw- 1 root wheel 9, 66 Apr 1 16:46 tty.usbmodem1a21
DT-macbook:dev user$
Step 4 Connect to the USB port with the following command followed by the router USB port speed:
macbook:user$ screen /dev/tty.usbmodem1a21 9600
To Disconnect the OS X USB Console from the Terminal Window
Enter Ctrl+A followed by Ctrl+\
訂閱:
文章 (Atom)