Archive for July 5th, 2007

05
Jul
07

Ubuntu DNS Installation

Everybody know DNS. This is simple way to install DNS and create your zone

1. Install Bind9
$ sudo apt-get install  bind9

2. Create your zone
$ sudo vi /etc/bind/named.conf.local
zone “nhson-lap.ntis.vn”{
type master;
file “/etc/bind/zones/nhson-lap.ntis.vn.db”;
};
# reverse DNS
zone “236.24.172.in-addr.arpa” {
type master;
file “/etc/bind/zones/rev.236.24.172.in-addr.arpa”;
};
In here I create my zone nhson.lap.ntis.vn with IP 172.24.236.*

3. Forward unknow domain to your ISP’s name server
$ sudo vi /etc/bind/named.conf.options
forwarders {
# dns.vnn.vn
203.162.0.180;
};
4. Define your zone
$ sudo vi etc/bind/zones/nhson-lap.ntis.vn.db
nhson-lap.ntis.vn.      IN      SOA     ns1.nhson-lap.ntis.vn.  nhson.nhson-lap.ntis.vn.(
2007062201      ; serial, todays date + todays serial #
8H              ; refresh, seconds
2H              ; retry, seconds
4W              ; expire, seconds
1D )            ; minimum, seconds

nhson-lap.ntis.vn. IN NS ns1
nhson-lap.ntis.vn. IN MX 10 mail

ns1     IN      A       172.24.236.161
ldap    IN      A       172.24.236.162
smb    IN      A       172.24.236.163
mail    IN      A       172.24.236.164
www     IN      A       172.24.236.165

5. Create reverse DNS
$ sudo vi /etc/bind/zones/rev.236.24.172.in-addr.arpa
@ IN      SOA     ns1.nhson-lap.ntis.vn.  nhson.nhson-lap.ntis.vn.(
2007062201      ; serial, todays date + todays serial #
8H              ; refresh, seconds
2H              ; retry, seconds
4W              ; expire, seconds
1D )            ; minimum, seconds
IN      NS      ns1.nhson-lap.ntis.vn.
161     IN      PTR     ns1.nhson-lap.ntis.vn
162     IN      PTR     ldap.nhson-lap.ntis.vn
163     IN      PTR     smb.nhson-lap.ntis.vn
164     IN      PTR     mail.nhson-lap.ntis.vn
165     IN      PTR     www.nhson-lap.ntis.vn

6. It’s finish. Restart your server
$ sudo /etc/init.d/bind9 restart

7. Configure client to use your DNS
$ sudo vi /etc/resolve.conf
search domain nhson-lap.ntis.vn
nameserver 172.24.236.161

05
Jul
07

Hello world!

This is first time I use wordpress. I write blog here because I like some blog here. Like saylinux,…
As my profile, I like opensource and something like: Linux, Ubuntu, Asterisk, Java, …
I want to share and know more knowledge.

Hi hi, I use title “Hello world!” for everything new. It like the first time I learn java, I’ve wrote one class to print “Hello world!” in console.
About rootxvn, it’s combine of root, x, and vn
Start0: start at zero.

05
Jul
07

Ubunu Asterisk Installation

Asterisk is an open source telephony system. It can run on Linux, Mac, Sun Solaris, … Asterisk support all of the features that you expect from an PBX. There are many VoIP protocal: SIP, IAX, MGCP, H323 is supported by Asterisk. You can connect Asterisk to PSTN by using Digium hardware.

There are 2 version of Asterisk: 1.2 for stable and 1.4 for new features. Trixbox and Asterisk Now are operating systems(CentOS) with Asterisk preinstalled. Trixbox also have some useful tool for administrator like freePBX, SugerCRM,… Install Trixbox and Asterisk Now is easy. I would like to show you how to install Asterisk.

1. Prepare your system
$ apt-get install cvs build-essential automake autoconf bison flex libtool libncurses5-dev libssl-dev
$ apt-get install linux-header-`uname -a’
If you want to use analog phone or call to PSTN, please buy an Digium Card.

2. Download and extract package:
$ cd /usr/src
$ wget http://ftp.digium.com/pub/asterisk/asterisk-1.2-current.tar.gz
$ wget http://ftp.digium.com/pub/zaptel/zaptel-1.2-current.tar.gz
$ tar -xzvf asterisk-1.2-current.tar.gz
$ tar -xzvf zaptel-1.2-current.tar.gz
In here, we download Asterisk for telephony, Zaptel is drive for Digium Card.

3. Install package
$ cd zaptel-1.2..
$ make
$ make install
$ cd asterisk1.2-..
$ make
$ make install

4. Configure Card
$ sudo vi /etc/zaptel.conf
I uses TDM411 with FXS module on port 3, FXO module on port 4. So that, I add these line
fxoks=3
fxsks=4
I have no mistake here. FXS module use FXO signal, and FXO use FXS signal.
It’s time to check does it right. Please type this command in your console
$ ztcfg -vvv
If you receive message like this:
Channel 03: FXO Kewlstart (Default) (Slaves: 03)
Channel 04: FXS Kewlstart (Default) (Slaves: 04)

2 channels configured.
Everything ok. Anything else, please check your module and /etc/zaptel.conf

3. Configure Asterisk
$ cd /usr/src/asterisk-1.2..
$ make samples
This command create some configure file for asterisk in /etc/asterisk.

Oh yes! We’ve finish install asterisk and it driver in our Ubuntu server. Next time will be create phone, line and make call