Saturday, July 31, 2010

Friday, July 30, 2010

Set time in Linux


  • In CentOS
    date MMDDhhmmccyy
    MM - month
    DD - date
    hh - hour
    mm - minute
    cc - first two digit of the year (20)
    yy - last two digit of the year (10)

  • Setting the time of your system

Thursday, July 29, 2010

Install Chrome in Ubuntu 9.10

First way
  1. Open file "/etc/apt/sources.list".

  2. Add test in the file
    "deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
    deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main".

  3. run command
    "sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5".

  4. sudo apt-get update

  5. sudo add-apt-key ppa:chromium-daily/ppa

  6. sudo apt-get update

  7. sudo apt-get install chromium-browser

Second way
  1. Open file "etc/apt/sources.list"

  2. add text to file
    deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main
    deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main

  3. sudo aptitude install chromium-browser

Wednesday, July 28, 2010

Configure DNS in CentOS


  1. Open /etc/resolv.conf file

  2. put your DNS server ip's as follows. Keep space between "nameserver" and ip addressnameserver (IP of your DNS server)
    nameserver (IP of your DNS server)

Tuesday, July 27, 2010

Sinhala Vedio Songs

  1. Asha Nirasha Mawu..
  2. Liyu Pem Hasun
  3. Ege Sinahawa thahanam
  4. Obata sitha adare karai
  5. Mage Lowata Oba Wadina Thura
  6. Wiyo gee gayena
  7. Obe sina laga
  8. Duhulu Malak - Bonda Meedum
  9. Ganga Addara
  10. Kauruda Pave Pavee
  11. Sihinayaki Oba
  12. Obata waram nathi
  13. Sinahawa atharin
  14. Mahawarusawata (Somathilaka Jayamaha)
  15. Ma nisa oba
  16. Sagawanna epa hasaral
  17. Premaya Puda Dee Awasanai
  18. Aradana
  19. Hinawenna Beri Tharamata
  20. Soduru Athithaye - T.M Jayarathne

Asterisk CLI

Asterisk CLI commands.
  1. #asterisk -r
  2. #asterisk -vvvvvr - If you want debugging output, add one or many v's
  3. #asterisk –vvvvvvvgrc - this show more debug info.
  4. #asterisk -rx "logger reload" - If you want to run a CLI command in a shell script, use the x option

        Primary Rate Interface (PRI)

        • T1 ( 23B +D )
          B-channel : 64 kbit/s
          D-channel
          There are 24 channels.

        Basic rate interface -BRI

        2B + D = 144 kbit/s

        B channel - 64 kbit/s
        D channel - 16 kbit/s

        B channel : carries data, voice, and other services.
        D channel : carries control and signaling information

        File Descriptors- Asterisk

        file descriptors - voip-info.org: "file descriptors"

        Folder creation issue

        Can not create folder named "con" in desktop.

        Monday, July 26, 2010

        How to install Hylafax

        Install and configure NTP on CentOS 5.3

        1. Install NTP (Network Time Protocol):
          yum -y install ntp

        2. Edit the NTP config file:
          vi /etc/ntp.conf

        3. At line 18, find "server 2.centos.pool.ntp.org" and under, add:
          server time.nrc.ca
          server time.chu.nrc.ca
          server tock.utoronto.ca
          server tick.utoronto.ca

        4. Ajust the other NTP config file by editing:
          vi /etc/sysconfig/ntpd

        5. At that file's second line:
          OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid"

        6. Modify this line to add the option -x that will force a NTP synch at boot time:
          OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"

        7. Restart NTPD service:
          service ntpd start

        8. Ajust system to automaticaly start the service at boot:
          chkconfig ntpd on

          Reference link

        Install Hyladfax

        Handbook : Basic Server Configuration:Modem-specific Guidance

        Asterisk commands

        • asterisk -vvvgci : goto asterisk CLI

        Installing Asterisk With Yum

        http://www.asterisk.org/downloads/yum

        SS7 Point Code

        http://www.voip-info.org/wiki/view/SS7+Point+Code

        Install KDE (Kubuntu) on Ubuntu

        http://www.howtogeek.com/howto/ubuntu/install-kde-kubuntu-on-ubuntu/

        Wednesday, July 21, 2010

        Sadaham

        Asterisk Installation guides




        Asterisk Dialplan

        How to write dialplan to restrict a user to call only predefine extensions.

        ;--------------------------------------------------------------------------------
        ; Context for allow ext-100 to call only ext-200,201,202,203,204
        ; and any extension begins with number 3 and contains 3 digits.
        ;If he get a call to any other number, it will hangup by the context.

        [from-restricted]
        exten => _200,1,Goto(from-internal,${EXTEN},1)
        exten => _201,1,Goto(from-internal,${EXTEN},1)
        exten => _202,1,Goto(from-internal,${EXTEN},1)
        exten => _203,1,Goto(from-internal,${EXTEN},1)
        exten => _204,1,Goto(from-internal,${EXTEN},1)
        exten => _3XX,1,Goto(from-internal,${EXTEN},1)
        ;--------------------------------------------------------------------------------
        1. You have to include above context in
          extension.conf file(in CentOS file location is /etc/asterisk/extension.conf).
        2. Then you can change the context of
          extension 100 to from-restricted. (in Asterisk 1.6 file location is /etc/asterisk/user.conf)