搜尋此網誌

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