搜尋此網誌

2011年12月8日 星期四

Microsoft Active Directory

變更五大操作主機
架構主機
  • 執行 regsvr32 schmmgmt.dll
  • 執行 mmc
  • 增加 Active Directory 架構,完成後並在上面按右鍵選擇操作主機變更。
命名主機
在 Active Directory 網域及信任上按右鍵選擇操作主機變更。

RID & PDC & 基礎結構
在 Active Directory 使用者及電腦上按右鍵選擇操作主機變更。


啟用或停用通用類別目錄
啟用通用類別目錄可以儲存各網域間的資料,節省查訊的時間。
  • 執行 Active Directory 站台及服務
  • Default-First-Site-Name > Servers > Server Name > NTDS Settings (右鍵內容)
  • 啟用 ”通用類別目錄“
GPO
設定 Terminal License Server
  • 設定 GPO
  • 電腦設定 > 系統管理範本 > Windows 元件 > Terminal Service
  • 啟用"使用所指定的終端機伺服器授權伺服器
MS DTC 無法正確的處理 DC 升級/降級事件
  • 執行 mmc
  • 增加元件服務
  • 我的電腦(右鍵內容)>MSDTC>安全性設定
  • 啟用網路 DTC 存取

目的地伺服器目前拒絕複寫要求
  • 下載 Windows Server support.cab
  • 執行
  • repadmin /options "DC Name" -DISABLE_INBOUND_REPL
  • repadmin /options "DC Name" -DISABLE_OUTBOUND_REPL

強制同步 DC 間資料
  • HKLM\System\CurrentControlSet\Services\NTDS\Parameters
  • Add REG_DWORD "Allow Replication With Divergent and Corrupt Partner" = 1
  • 修改 REG_DWORD "Strict Replication Consistency" = 0
  • 同步後再將上述步驟恢復

目標主體名稱不正確
參考下述 KB 解決:http://support.microsoft.com/kb/288167/zh-tw

Error Log
NtFrs ID: 13559
  • Create a "NTFRS_CMD_FILE_MOVE_ROOT" into "c:\windows\sysvol\domain"
  • Restart "File Replication Service" Service
利用 script 確保二台 DC 時間相同
w32tm /config /update /manualpeerlist:ntp.ntu.edu.tw
w32tm /resync

2011年12月6日 星期二

MAC OSX 10.7

Software List
  • Smart Converter: 轉檔成各種類型影像檔
  • Telephone: SIP Client
  • The Unarchiver: 好用的解壓縮軟體,不會有亂碼。
  • MPlayerX: 超好用的影像播放軟體,支援多種格式。
Convert mts m2ts file to mov
為了讓 iMovie 可以將 mts 的檔案匯入,有下述幾種方法:
  • 將錄影設備所儲存的 mts 檔案目錄,連同上一層的目錄一同複製。
  • 上 App Store 下載 SmartConverter free 版本,再一個一個檔案轉成 mov 格式。
手動備份 Mail
  • 前往資料夾 /Users/user name/Library/
  • 備份 Mail 資料夾
手動備份 Address
  • 前往資料夾 /Users/user name/Library/Application Support
  • 備份 Address Book 資料夾
設定 Mail 外寄郵件預設編碼
  • 打開 "終端機"
  • 執行指令 defaults write com.apple.mail NSPreferredMailCharset "UTF-8"
USB to RS232
  • 安裝驅動程式
  • screen /dev/tty.uXXXX 192000 8n1
  • Control + a + \ 關閉連線

2011年11月28日 星期一

SharePoint Server 2010 安裝與設定

安裝與設定作業系統
Install WIndows Server 2008 R2
新增 Windows Server 角色
  • Microsoft .Net FrameWork Core
  • IIS 7.5
安裝 Microsoft SQL Server 2008 R2
  • 選擇”新的安裝或將功能加入到現有安裝。”
  • 開啟防火牆 1433 port
    參考網址:http://msdn.microsoft.com/zh-tw/library/cc646023.aspx
    指令:netsh advfirewall firewall add rule name="SQL 1433" dir=in localport=1433 protocol=tcp action=allow
安裝 SharePoint Server 2010
  • 確認 Server DNS 設定可以連到微軟網站
  • 執行 “安裝軟體先決條件”
  • 安裝 Windows6.1-KB976462-v2-x64.msu hotfix
  • 安裝 SharePoint Server 2010
  • 執行第一次設定精靈
新增語系
到微軟網站下載語系包,並參考下述的安裝方式進行安裝:

修改預設 URL:
SharePoint 管理中心 > 系統設定 > 伺服器陣列管理 > 設定備用存取設定
修改預設的 URL

安裝 Office Web Apps:
  • 參考網址:
    http://technet.microsoft.com/zh-tw/library/ff431685.aspx

2011年11月13日 星期日

Time Machine

Time Machine on CIFS
Time Machine 在 CIFS 上運作

在沒有 AFP 分享協定的網路環境裡,如果需要開啟 Time Machine 來備份 Mac 可以利用 CIFS 協定來建立一個 Time Machine 備份。做法如下:

1. 參考:
http://lifehacker.com/5691649/an-easier-way-to-set-up-time-machine-to-back-up-to-a-networked-windows-computer
http://mac.pcbeta.com/thread-69059-1-1.html

2011年11月8日 星期二

Joomla

Joomla Installation
安裝伺服器環境
OS: ubuntu 11.10 Server
install OpenSSH, LAMP Server, unzip

Configuration UTF-8
因為 Ubuntu 11.10 Server 安裝完成後預設的正體中文是 zh_TW,這會導至使用 SSH 連線到伺服器時中文全變成亂碼,透過下述步驟將編號改成 UTF-8 即可。
sudo vi /etc/defaut/locale
zh_TW change to zh_TW.UTF-8

安裝 Joomla
Download Joomla
#sudo mkdir /var/www/website
#sudo mv joomla.zip /var/www/website
#cd /var/www/website
#sudo unzip joomlia.zip
#sudo chown -R www-data /var/www/website
#sudo vi /etc/php5/apache/php.ini
output_buffering = 4096 change to output_buffering = Off
#sudo /etc/init.d/apache restart

Use browser to visit http://server/website

2011年10月17日 星期一

Windows 指令

taskkill /IM 123.exe /F
Kill 所有 123.exe process

2011年9月29日 星期四

Subversion

Install Subversion
Create WIndows Server
Download & Launch VisualSVN

Install Polarion SVN Web Client

2011年9月22日 星期四

Linux 指令

du 查看目錄大小
#du -s 查看該目錄總容量
#du -h 輸出的結果呈現 mb, gb
#| sort -gr 按大小排序
ex: #du -s * | sort -gr

cp 複製檔案
#cp -RPfpv 含子目錄,保留路徑,強制執行,保留權土裉,秀出備份過程。

2011年9月7日 星期三

Synology Device HowTo

Configure Samba
#vi /usr/syno/etc/smb.conf

2011年9月6日 星期二

Windows issue

網路不存在或尚未啟動
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order]
ProviderOrder"=LanmanWorkstation

Windows XP DNS Issue
KB951748 會造成電腦 DNS 解析出問題,Uninstall it

2011年8月20日 星期六

Nagios

sudo apt-get install nagios3

Add Admin
#sudo htpasswd -c /etc/nagios3/htpasswd.cfg nagiosadmin

Add User
#sudo htpasswd /etc/nagios3/htpasswd.cfg user1

Setup Contact
#sudo vi /etc/nagios3/conf.d/contacts_nagios2.cfg

define contact{
        contact_name                    it
        alias                           IT
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r
        host_notification_options       d,r
        service_notification_commands   notify-service-by-email
        host_notification_commands      notify-host-by-email
        email                           user@email.com
        }


Monitor Linux Server
Postfix server

Postfix# sudo apt-get install nagios-nrpe-server
postfix# sudo vi /etc/nagios/nrpe.cfg
allowed_hosts=?
command[check_mailqq]=/usr/lib/nagios/plugins/check_mailq -w 100 -c 200 -M postfix
postfix# sudo /etc/init.d/nagios-nrpe-server restart
#sudo apt-get install nagios-nrpe-plugin
#sudo vi /etc/nagios3/host.cfg
check_command           check_nrpe_1arg!check_mailqq
#sudo /etc/init.d/nagios3 reload

Linux Client ping other server
linux client#sudo vi /etc/nagios/nrpe.cfg
command[check_ping_other]=/usr/lib/nagios/plugins/check_ping -H 8.8.8.8 -w 600,10% -c 800,50%

2011年8月19日 星期五

Ubuntu Server 11.04

UTF-8
sudo vi /etc/default/locale
zh_TW change to zh_TW.UTF-8

Install AC'97 Modem Controller
sudo apt-get install sl-modem-daemon

iTunes Share
apt-get install mt-dappd
fix iTunes 10.5 can't load mt-dappd
https://discussions.apple.com/message/16577371#16577371

2011年4月14日 星期四

Samba

ACL Settings
getfacl DIR/
setfacl -m u:user:rwx DIR/

2011年2月13日 星期日

AirPrint Server on WIndows 7

AirPrint Server can share printer to IOS device, is like iPhone, iPod, iPad.

Step
1. mkdir c:\Program Files\AirPrint
2. download airprint.zip
3. extract airpint.zip c:\program files\Airprint\
4.
sc.exe create AirPrint binPath= "C:\Program Files\AirPrint\airprint.exe -s" depend= "Bonjour Service" start= auto
sc.exe start AirPrint
5. configuration firewall policy for c:\program files\airprint\airprint.exe

2011年1月27日 星期四

Ubuntu Desktop

Live Messenger:
emesene