Asterisk 설치

다음의 순서로 작업을 시작했다.

jonathan@MyWork:~/workspace/09.ETC$ mkdir Asterisk
jonathan@MyWork:~/workspace/09.ETC$ cd Asterisk/
jonathan@MyWork:~/workspace/09.ETC/Asterisk$ ls
jonathan@MyWork:~/workspace/09.ETC/Asterisk$ wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-12-current.tar.gz
--2013-09-11 15:39:37--  http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-12-current.tar.gz
Resolving downloads.asterisk.org (downloads.asterisk.org)... 76.164.171.238, 2001:470:e0d4::ee
Connecting to downloads.asterisk.org (downloads.asterisk.org)|76.164.171.238|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 56720157 (54M) [application/x-gzip]
Saving to: 'asterisk-12-current.tar.gz'

100%[=====================================================================================================================>] 56,720,157  54.1KB/s   in 17m 6s 

2013-09-11 15:56:44 (54.0 KB/s) - 'asterisk-12-current.tar.gz' saved [56720157/56720157]

jonathan@MyWork:~/workspace/09.ETC/Asterisk$ ls
asterisk-12-current.tar.gz
jonathan@MyWork:~/workspace/09.ETC/Asterisk$ tar xvfz asterisk-12-current.tar.gz 

그리고 configure 작업을 위해, 다음의 패키지들을 설치해주었다.

jonathan@MyWork:~/workspace/09.ETC/Asterisk/asterisk-12.0.0-alpha1$ sudo apt-get install uuid-dev libjansson-dev libxml2-dev sqlite3 libsqlite3-dev

configure 완료.

configure: Menuselect build configuration successfully completed

               .$$$$$$$$$$$$$$$=..      
            .$7$7..          .7$$7:.    
          .$$:.                 ,$7.7   
        .$7.     7$$$$           .$$77  
     ..$$.       $$$$$            .$$$7 
    ..7$   .?.   $$$$$   .?.       7$$$.
   $.$.   .$$$7. $$$$7 .7$$$.      .$$$.
 .777.   .$$$$$$77$$$77$$$$$7.      $$$,
 $$$~      .7$$$$$$$$$$$$$7.       .$$$.
.$$7          .7$$$$$$$7:          ?$$$.
$$$          ?7$$$$$$$$$$I        .$$$7 
$$$       .7$$$$$$$$$$$$$$$$      :$$$. 
$$$       $$$$$$7$$$$$$$$$$$$    .$$$.  
$$$        $$$   7$$$7  .$$$    .$$$.   
$$$$             $$$$7         .$$$.    
7$$$7            7$$$$        7$$$      
 $$$$$                        $$$       
  $$$$7.                       $$  (TM)     
   $$$$$$$.           .7$$$$$$  $$      
     $$$$$$$$$$$$7$$$$$$$$$.$$$$$$      
       $$$$$$$$$$$$$$$$.                

configure: Package configured for: 
configure: OS type  : linux-gnu
configure: Host CPU : i686
configure: build-cpu:vendor:os: i686 : pc : linux-gnu :
configure: host-cpu:vendor:os: i686 : pc : linux-gnu :

make 를 하자.

jonathan@MyWork:~/workspace/09.ETC/Asterisk/asterisk−12.0.0−alpha1$ make
jonathan@MyWork:~/workspace/09.ETC/Asterisk/asterisk−12.0.0−alpha1$ sudo make install
 +---- Asterisk Installation Complete -------+
 +                                           +
 +    YOU MUST READ THE SECURITY DOCUMENT    +
 +                                           +
 + Asterisk has successfully been installed. +
 + If you would like to install the sample   +
 + configuration files (overwriting any      +
 + existing config files), run:              +
 +                                           +
 +                make samples               +
 +                                           +
 +-----------------  or ---------------------+
 +                                           +
 + You can go ahead and install the asterisk +
 + program documentation now or later run:   +
 +                                           +
 +               make progdocs               +
 +                                           +
 + **Note** This requires that you have      +
 + doxygen installed on your local system    +
 +-------------------------------------------+
마지막으로 기본 Test와 문서 작성을 위해서 make samples 와 make progdocs 를 입력하자.
jonathan@MyWork:~/workspace/09.ETC/Asterisk/asterisk-12.0.0-alpha1$ sudo make progdocs 
jonathan@MyWork:~/workspace/09.ETC/Asterisk/asterisk-12.0.0-alpha1$ sudo make samples 



FTP 12002 ERROR

자체 개발한 프로그램으로 FTP 연결을 통한 파일 업/다운 로드 시, 12002 timeout ERROR 가 발생하는 경우가 왕왕 있다.

오늘, 회사 Application 에서 FTP 연결로 파일을 업/다운 로드 하는 모듈에서 장애가 발생했다.
테스트를 위해 Filezila와 같은 기타 다른 FTP 통신을 해보면 정상으로 잘 된다.

분석한 결과, 해당 오류는 윈도우 내, 방화벽의 문제로 확인되었다.
방화벽을 해제하고 다시 프로그램으로 FTP 전송을 시도하니 정상적으로 되었다.

지금까지의 경험으로 보아 대부분의 경우, 이는 방화벽의 문제로 분석된다.
혹은 내부망내 구성된 IDS 와 같은 보안 시스템에 의해서 발생되었다.

만약, 앞으로도 FTP 12002 오류가 발생한다면 참고해도 좋을 것 같다.

How to check HP-UX CPU info

HP-UX에서 CPU 정보 확인

* HP-UX 11.11 에서

 – #sam 실행 후

   Performance Monitors > System Properties > Processor

  – #getconf KERNEL_BITS                 ; Kernel 비트수 확인 -> 예) 64bit

* HP-UX 11.31 에서

  – #machinfo

출처 : http://blog.daum.net/comoffi/8517003

Lec 19 | MIT 6.00SC Introduction to Computer Science and Programming, Spring 2011

[youtube]http://youtu.be/miw2CiKp1r0[/youtube]

Lecture 19: More Optimization and Clustering

This lecture continues to discuss optimization in the context of the knapsack problem, and talks about the difference between greedy approaches and optimal approaches. It then moves on to discuss supervised and unsupervised machine learning optimization problems. Most of the time is spent on clustering.