搜尋此網誌

2010年12月1日 星期三

Mac OSX 10.6 HowTo

Read / Write NTFS
sudo vi /etc/fstab
UUID="Disk UUID" none ntfs rw
or
LABEL="Disk name" none ntfs rw
:wq

2010年9月20日 星期一

Postfix Issue and solution

Following are Postfix issues and solution.

Issue
error log: unable to lock for exclusive access: Resource temporarily unavailable
Solution
Edit /etc/postfix/mail.cf & /etc/dovecot.conf
The lock settings have to configure same. ex:
mail.cf

mailbox_delivery_lock = flock, dotlock

dovecot.conf

mbox_read_locks = flock dotlock
mbox_write_locks = flock dotlock

2010年8月30日 星期一

DeltaCopy Use Guide

DeltaCopy is base on rsync software.

Download DeltaCopy (Without Installer), http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp, And Extract it.
DeltaC is Client program, DeltaS is Server program,

Server Configuration
Execute DeltaS.exe
Register Windows Service Using Local Service Account
Add New Virtual Directories
a. Set Virtual Directory Name
b. Path, ex: c:\temp
c. Comment, backup temp file
d. Choose Use Authentication, fill User Name and Pasword

Client Configuration
Execute DeltaC.exe
Add New Profile
a. Profile Name, ex: temp
b. Server IP/Host Name, ex: Storage server IP
c. Vitual Directory Name, ex: temp (follow Server Configuration step a)
Disable “Remove delete files from server”Options
Configure Authentication as you feld
Add Folder, Choose you want to backup folder, ex: backupfile

When you sync, file will storage in server c:\temp\backupfile

2010年8月25日 星期三

Tomcat Configuration



Add a Virtual Host
Configure “conf\server.xml”
<Host name="www.localhost.com"  appBase="c:\temp\"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="c:\temp\" debug="0" reloadable="true"/> 
</Host>

Reference Web Site: http://wenson.javaeye.com/blog/45546

Listing file
Configure "conf'web.xml"
listings
false
change to
listings
true

2010年7月22日 星期四

ubuntu server add Harddisk

1. check device name in /dev/, ex: /dev/sdb
2. use fdisk create patition, ex: fdisk /dev/sdb
p: printe all patition
n: create a patition
d: delete a patition
l: show all know kind of patition
w: save setting

3. format patition, ex: mke2fs /dev/sdb1
4. configure setting in /etc/fstab

2010年7月21日 星期三

Windows 大量部署

tools
Windows OPK: auto install windows
WinPE, ImageX, diskpart, oscdimg
WinPE:
ImageX: like ghost
Diskpart: 切 Disk Partition
oscdimg: like ultraISO, 將檔案轉成 ISO 檔

Step
1. sysprep final OS
clean host name & SID

2. Using WinPE boot, than use ImageX backup OS to the image file (*.wim)

copy *.wim to \Image\i386\system32\os.wim
oscdimg.exe –n -m -betfsboot.com Image Recovery.iso -lRecovery

Java + Tomcat Deployment

Install J2SDK 1.4.2_19 in the Windows
1. Download Java from
http://java.sun.com/products/archive/
2. Install it using default
3. Setup Path in Windows
a. right click "My Computer" choose properties.
b. Advanced > Environment Variables
c. Create System Variables: JAVA_HOME=C:\j2sdk1.4.2_19
d. Add "C:\j2sdk1.4.2_19\bin" in the PATH
Done

Install Tomcat 4.1 in the Windows
1. Download Tomcat from
http://archive.apache.org/dist/tomcat/tomcat-4/v4.1.40/bin/
2. Install it using default
Done