Archive Page 2

12
Jul
07

Centos DNS Installation

yum install caching-nameserver bind*

12
Jul
07

CentOS Asterisk installation

Required packages :

  • Minimal install
  • kernel-devel / kernel-smp-devel
  • bison
  • openssl-devel
  • gcc

1. Install the required packages using yum
yum install kernel-devel bison openssl-devel gcc
2. Install zaptel
make
make install
make install-udev

If the kernel module compiled, try
modprobe ztdummy (only if using ztdummy)
modprobe zaptel
modprobe wcfxs
which should quietly load the zaptel kernel module and not output any error message

You will need the kernel modules to load when your Asterisk computer boots. You can try the commands:
cd /usr/src/zaptel
make config

3. Install Asterisk
$ make mpg123 ;configure for music on hold
$ make
$ make install

Create sample files to be created in /etc/asterisk
$ make samples

#If you want program docs/manual pages for asterisk
make progdocs

#If you want “service asterisk restart” command to work do this
make config

07
Jul
07

Ubuntu Install online with apt

There are many way to install new package into your system. With Ubuntu, apt is the simples way. You can easy upgrade and install package with command apt-get.

After install Ubuntu. You can let Ubuntu doesn’t use packages from cd by edit file /etc/apt/source.list
Please find line: deb cdrom:[Ubuntu ….
You can delete or insert letter # in front of that line.

Now you can:
- upgrade your system by command: apt-get upgrade
- install new package (ex mc) apt-get install mc
If you an error occur, please type apt-get update

07
Jul
07

Ubuntu How to install RAR Archiver (rar)

Open a terminal window and type in:
sudo apt-get install rar
sudo ln -fs /usr/bin/rar /usr/bin/unrar

07
Jul
07

Reinstall Grub bootloader

1. Boot in to rescue mode (linux single)

2. Type these command
$ chroot /mnt/sysimage
$ /sbin/grub-install /dev/sda

device can be sda or hda … belong to your hardisk.
You can know  about your hard disk by command: fdisk -l

07
Jul
07

Centos Networking

1. Configure interface in centos is difference from ubuntu. The configuration file is /etc/sysconfig/network-scripts/ifcfg-eth0.
Samples configuration for eth0:
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:90:27:1C:C2:CB
ONBOOT=yes
TYPE=Ethernet
IPADDR=172.24.236.152
NETMASK=255.255.0.0
BROADCAST=172.24.255.255
GATEWAY=172.24.231.1

Restart service network by command: /etc/init.d/network (or service network) restart

2. Edit host name in file /etc/sysconfig/network

07
Jul
07

Ubutu Networking

1. Configure static ip
Edit file /etc/network/interfaces, configure interface eth0 like this:
iface eth0 inet static
address 172.24.236.151
netmask 255.255.0.0
broadcast 172.24.255.255
gateway 172.24.231.1

After configure your interface, you’ve to restart your network service: /etc/init.d/networking restart

2. Export proxy for internet connection
Edit file ~/.bashrc, append these line:
http_proxy=http://172.24.231.1:8000
ftp_proyx=ftp://172.24.231.1:8000
export http_proxy ftp_proxy

3. DNS
Edit file /etc/resolve.conf
search nhson-lap.ntis.vn
nameserver 172.24.236.150

4. Edit host name in file /etc/hostname

06
Jul
07

Ubuntu VMWare server

append line “deb http://archive.canonical.com/ubuntu feisty-commercial main ” in to /etc/apt/sources.list

sudo apt-get update
sudo apt-get install vmware-server vmware-tools-kernel-modules

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.