搜尋此網誌

2010年12月24日 星期五

ubuntu Server 10.10

Ubuntu Server 10.10 Guide
https://help.ubuntu.com/10.10/serverguide/C/index.html


HowTo:  Samba Active Directory Integration: Script tested on win 2003r2 and 2008r2
http://ubuntuforums.org/showthread.php?t=1580505


Add HardDisk
#sudo fdisk /dev/sdb
n (add a new partition)
#sudo mke2fs /dev/sdb1
#ls -l /dev/disk/by-uuid/
#vi /etc/fstab
UUID=66bcdd2e-8861-4fb0-b7e4-e61c569fe17d /srv ext3 noatime,relatime,acl 0 1

VirtualBox
Guest OS mount USB
#usermod -G vboxusers -a [your account]


Likewise-Open
10.10 has bug. It's needed upgrade.
sudo apt-get upgrade
sudo reboot
sudo apt-get install python-software-properties

#Then follow the #16 to configure apt-repository
http://ubuntuforums.org/showthread.php?t=1430347&page=2

#sudo apt-get install likewise-open5
#domainjoin-cli join example.com Administrator
Administrator@example.com password:

Configuration Default Domain. Doesn't need entry "Domain\".
sudo vi /etc/likewise-open/lsassd.reg
"AssumeDefaultDomain"=dword:00000000
to
"AssumeDefaultDomain"=dword:00000001
sudo lw-refresh-configuration

Mail Server Configuration
sudo apt-get install postfix dovecot-common dovecot-imapd dovecot-pop3d
sudo vi /etc/dovecot/dovecot.conf
#disable_plaintext_auth = yes
..
protocols = imap imaps pop3 pop3s
..
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
to
disable_plaintext_auth = no
..
protocols = imap imaps pop3 pop3s
..
auth_username_chars = \abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@

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

Squirrel Webmail Installation
sudo apt-get install squirrelmail
執行「select-default-wordlist」來變更預設的單字列表。
sudo squirrelmail-configure
sudo cp /etc/squirrelmail/apache.conf /etc/apache2/sites-available/squirrelmail
sudo ln -s /etc/apache2/sites-available/squirrelmail /etc/apache2/sites-enabled/squirrelmail
sudo a2ensite squirrelmail
sudo /etc/init.d/apache2 force-reload

#setup Local User Autoresponder
#Download plugin
sudo cd /user/share/squirrelmail/plugin
cp config_example.php config.php

Openwebmail Installation
apt-get install apache2 perl-suid libdbd-mysql-perl libnet-ldap-perl libauthen-pam-perl libpg-perl wwwconfig-common
dkpg -i owm-2.5.3.deb

2010年12月11日 星期六

Ubuntu Server 10.04

OS: Ubuntu Server 10.04
Install sysv-rc-conf helpful configure serivce
Feature:
a. Join Active Directory
b. Mail server (postfix)
c.

Configuration IP address
sudo vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.0.xxx
netmask 255.255.255.0
gateway 192.168.0.x

Configure Hostname
edit /etc/hostname
Configure DNS Client
Edit /etc/resolv.conf file

domain test.com
search test.com
nameserver DNS Server IP

Join Microsoft Domain (Active Directory)
Install Likewise Open
apt-get install likewise-open5
Conifure settings to join Domain
domainjoin-cli join example.com Administrator
Test Configration
ssh 'example\username'@hostname
Edit /etc/likewise-open/lsassd.conf
assume-default-domain = yes


Configure Dovecot Settings
Edit /etc/dovecot/dovecot.conf

#disable_plaintext_auth = yes
..
protocols = imap imaps pop3 pop3s
..
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
to
disable_plaintext_auth = no
..
protocols = imap pop3
..
auth_username_chars = \abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@


Postfix Configuration
Check Postfix settings
postfix check

Webmin Installation
#apt-get install  libauthen-pam-perl libnet-ssleay-perl libpam-runtime openssl perl perl-modules libio-pty-perl apt-show-versions libapt-pkg-perl

#wget http://prdownloads.sourceforge.net/webadmin/webmin_1.530_all.deb or higher

#dpkg -i webmin_XXXX.deb


#/etc/init.d/webmin restart

2010年12月6日 星期一

VirtualBox Howto

Command
Start Guest PC
#vboxmanager startvm "virtual machine name"

2010年12月3日 星期五

Drupal6 Howto

Install Drupal in ubuntu
#apt-get install sysv-rc-conf unzip drupal6
#cd /usr/share/drupal6/
#wget http://drupaltaiwan.org/files/drupal-6.2-zh-hant-package.zip
#vi ./install.php
^a-zA-Z_0-9
change
^a-zA-Z_\-0-9

#unzip ./drupal-6.2-zh-hant-package.zip

Visit http://server/drupal6/install.php

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

2010年4月15日 星期四

ubuntu Server install SAMBA

Installing SAMBA Server in the ubuntu is eaily.

sudo apt-get update
sudo apt-get install samba

 

Configure SAMBA Settings

	workgroup = groupname
	...
#create share folder
[share name]
	comment = remark
	path = "folder path"
	guest ok = "yes or no"
	read only = 'yes or no'

2010年2月25日 星期四

如何解除被歸類為垃圾郵件的 IP - Barracuda

因為垃圾郵件的泛濫, 所以在 2009 年 10 月後出現了許多郵件伺服器 IP 被封鎖的現象, 被封鎖的郵件伺服器在發出郵件到有 Barracuda Spam 的伺服器時, 會出現如下被封鎖的訊息。
image 

2010年2月8日 星期一

2010年2月7日 星期日

mRemote 多種通訊協定的遠端控制軟體

mRemote is a multi-tab & multi-protocol remote control software. Let you manager many kind of being remoted server.
It supports RDP, VNC, SSH, Telnet, Rlogin, RAW, ICA (Citrix ICA), Gecko (Firefox). Citrix ICA is Xenapp.

2010年2月5日 星期五

VMware ESXi – Create New Virtual Machine

建立一個虛擬機在 VMware ESXi 上要使用 VMware Client software, 操作方式有分 ESXi 3.5 & ESXi 4.0 二種, 這二種方式大同小異, 方式如下:

Multi-login Remote Desktop xWindows

在 Windows Server 系列有提供多人遠端桌面的功能, 雖然 Linux 一直有多重登入的功能, 但都一直僅限於文字介面, 後來又多了一個 VNC 多重登入, 但 Clients 需要安裝 VNCviewer 的軟體, 並且少了像 windows RDP 可複製連線設定的方便性, 這些都不方便 Linux 多人遠端登入的使用。

現在發佈了一套給 Linux 用的 RDP Server 軟體 xRDP, 它是一個符合 RDP 的中介軟體, 是中介軟體的原因在於, 它本身並沒有提供遠端桌面的功能, 它是將遠端桌面的需求丟給 Linux 上的 VNC 來執行, 就是利用 xRDP + VNC Server 達到如同 Windows Server 的 Terminal Server。

2010年2月3日 星期三

Windows Live Writer Plugin – Code

在寫部落時常需要寫入一段 Code 或 Message, 過去都是直接與本文一樣的方式, 這會使得資料容易搞混, 而且要複製整 Code 時也會遇到格式問題。自從開始使用 Windows Live Writer 寫部落格, 就一直聽說可以使用其 Plugin 標示文章中 Code 的功能, 經過尋找找到這個。

2010年2月2日 星期二

Howto Digital Signature


This is a way of secretly adding somebody's name to an electronic message or document to prove the identity of the person who is sending it and show that the data has not been changed at all.

New Computer Install Windows XP Notice

新的電腦安裝 Windows XP 過程, 常會出現找不到硬碟的訊息, 這是因為SATA的硬碟控制卡 Windows XP 不認得, 過去可以用軟體片在安裝時先載入驅動程式,但現在除了軟碟少用外, 而且多數廠商也沒提供驅動程式。

解決方法是進入 BIOS, 把 AHCI mode 關閉或轉成 IDE mode, 如此在安裝 Windows XP 的過程就找得到硬碟了

2010年1月29日 星期五

Likewise Open Setup

Likewise Open is the Linux software. It provide Linux to join Active Domain function. That will get AD accounts.

Document web site
https://help.ubuntu.com/9.04/serverguide/C/likewise-open.html
http://pavelfibich.blogspot.com/2009/11/migration-openwebmail-authunix-to.html

2010年1月28日 星期四

VMware ESXi Guide - Basic Control

VMware ESXi Server 是透過 Client 程式做到遠端操作與效能監視,大致的操作方式如下:

安裝 VMware Infrastructure Client


需要透過 Client 程式才能遠端管理 ESXi Server,安裝方式是連線到遠端 Server 的 web site,如: http://"ESXi Server IP" ,點選 Download VMware Infrastructure Client 下載程式 。
image 

How TO Use Floppy in VMware Guest PC

建立 1.44 磁碟片資料
有時 Guest PC 需要透過磁片才能載入驅動程式, 例如:安裝 WinXP, Win2000..等, 建立方法如下:
1. 關閉 Guest PC, Edit Settings (Guest PC)
2. 在 Floppy driver 中, Create new floppy image in datastore.
3. 在另一個 Guest PC 載入 floppy image , 將資料寫入
4. 回到原來 Guest PC 就可以載入 floppy image, 並讀取之

Windows Convert to VMware Guest PC

If you get bulescreen message as below.

STOP: 0x0000001E (0xC0000005, 0x8045D9BF, 0x0000000, 0x001A0018) 
KMODE_EXCEPTION_NOT_HANDLED   Address 8045D9BF base at 80400000, Datestamp 45069e6e - ntoskrnl.exe
image

* You need to power off the VM, add a CD-ROM and a Floppy virtual device (assuming it's not already there)
* Download this:
http://www.microsoft.com/downloads/details.aspx?FamilyId=B54730CF-8850-4531-B52B-BF28B324C662&displaylang=en&displaylang=en

* Extract it, and pull the scsiport.sys file out (should be version 5.0.2195.7059) and make it into a virtual floppy file, mount it to the virtual floppy along with a Windows 2000 iso.
* Boot the VM into recovery mode from the Windows 2000 ISO
* Copy the file off the floppy (scsiport.sys) to the %systemroot%system32drivers folder
* Reboot

Windows Live Writer

Windows Live Writer is an offline blog edition software. You can write blog efficiently. It supports to sync Blogger, Live Space,