2014년 11월 19일 수요일

oracle top query


select * from (select * from tb_mail_log order by senddate desc) where rownum <= 10

2014년 11월 13일 목요일

Realtime mapping for 'sipregs' found to engine 'odbc', but the engine is not available

localhost*CLI> module show like odbc

if not found

yum install unixODBC unixODBC-devel libtool-ltdl libtool-ltdl-devel

cd /usr/local/src/asterisk-xxxx
make clean && make distclean
./configure && make menuselect && make && make install
./configure --libdir=/usr/lib64 && make menuselect && make && make install

/etc/init.d/asterisk restart

2014년 11월 12일 수요일

nmap command

[root@localhost src]# nmap -sU -p 22222 127.0.0.1

Starting Nmap 5.51 ( http://nmap.org ) at 2014-11-12 20:39 KST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00015s latency).
PORT      STATE SERVICE
22222/udp open  unknown

Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
[root@localhost src]# nmap -p 5060 127.0.0.1

Starting Nmap 5.51 ( http://nmap.org ) at 2014-11-12 20:40 KST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000062s latency).
PORT     STATE  SERVICE
5060/tcp closed sip

Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds

install of rtpproxy

os : centos 6.5 ( 2.6.32-431.el6.x86_64 )
rtpproxy : 1.3-beta 1

cd /usr/local/src
tar -xzvf rtpproxy-1.3-beta.1.tar.gz
cd rtpproxy-1.3-beta.1
./configure
make all
make install

cp /usr/local/src/rtpproxy-1.3-beta.1/scripts/rtpproxy.init.debian /etc/init.d/rtpproxy
vi /etc/init.d/rtpproxy —-> edit
DAEMON=/usr/local/bin/rtpproxy

vi /etc/default/rtpproxy —> create
DAEMON_OPTS="-F -s udp:127.0.0.1:22222 -l 125.133.203.202/192.168.0.200 -d DBUG:LOG_LOCAL0 -u root"

chmod a+x /etc/init.d/rtpproxy
chmod -v 0755 /etc/init.d/rtpproxy
chkconfig rtpproxy on

/etc/init.d/rtpproxy start

2014년 11월 8일 토요일

김포의 5일장

김포장 : 2일·7일
마송장 : 3일·8일
양곡장 : 1일·6일
하성장 : 4일·9일

kamailio config for the 64 bit

kamailio version : 4.2.0
os version : CentOS 6.5 64bit ( 2.6.32-431.el6.x86_64 )

vi /usr/local/etc/kamailio/kamailio.cfg

# set paths to location of modules (to sources or installation folders)
#!ifdef WITH_SRCPATH
mpath="modules_k:modules"
#!else
mpath="/usr/local/lib64/kamailio/modules_k/:/usr/local/lib64/kamailio/modules/"
#!endif

2014년 11월 7일 금요일

export and import for the mysql

mysqldump -u root -ppassword igen > /home/20141107_db_backup.sql
mysql -u root -ppassword igen < /home/20141107_db_backup.sql

## for remote
mysqldump -h192.168.0.100 -u root -ppassword igen > /home/20141107_db_backup.sql
mysql -h192.168.0.100 -u root -ppassword igen < /home/20141107_db_backup.sql

port permit access by the iptables

iptables -I INPUT 1 -p tcp --dport 3306 -j ACCEPT
iptables -I OUTPUT 1 -p tcp --dport 3306 -j ACCEPT
/etc/init.d/iptables save
/etc/init.d/iptables restart
iptables -L -v

2014년 11월 6일 목요일

plantronics fw update site

http://www.plantronics.com/us/support/myheadset/updater/

basic config with CentOS7

[ network ]
ip addr show

vi /etc/sysconfig/network-scripts/ifcfg-enp5s0

ONBOOT=yes

shutdown -r now

yum install net-tools

ifconfig


[ mysql ]
yum install wget
cd /home
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum install mysql-server

yum list \*mysql\* | grep dev
yum install mysql-community-devel.x86_64

mysql -u root
mysql> use mysql;
mysql> update user set password=PASSWORD("delphi1240") where user='root';
mysql> flush privileges;
mysql> quit

mysql_secure_installation



2014년 10월 16일 목요일

asterisk stress test by sipp with hp380

일단, 핵심은 시험하는 BOX 의 File Descriptor 제한을 풀어주는 것이다

[ limits.conf add ]
vi /etc/init.d/asterisk
start() {
        ulimit -n 20000
        # Check if Asterisk is already running.  If it is, then bug out, because

[ limits.conf add ]
vi /etc/security/limits.conf
root             soft   nofile          20000
root             hard   nofile          25000

[ sip.conf in asterisk ]
[sipp]
type=friend
context=test11
host=dynamic
port=5060
user=sipp
canreinvite=no
disallow=all
allow=ulaw

[ extensions.ael in asterisk ]
context test11
{
        s => {
                Answer();
                while (1) {
                        Background(demo-instruct);
                }
                Hangup();
        }
        _X. => {
                Answer();
                while (1) {
                        Background(demo-instruct);
                }
                Hangup();
        }
}

[ sipp command ]
./sipp -sn uac asteriskipaddr -s 12 -d 1000000 -l 5000

[ etc ]
dmidecode -t 4

[ sipp install ]
tar -zxvf sipp-3.3.tar.gz
cd sipp-3.3
make

[ asterisk installl ]
yum install –y gcc
yum install –y ncurses-devel
yum install –y libtermcap-devel
yum install –y ernel kernel-devel kernel-headers
yum install –y kernel-smp-devel
yum install –y gcc-c++
yum install –y openssl-devel
yum install –y zlib-devel

yum install –y unixODBC-devel
yum install –y libtool
yum install –y libxml2-devel
yum install sqlite-devel
yum install –y make

./configure ( only 32bit )
./configure --libdir=/usr/lib64  ( only 64bit )
make
make install

make config
chkconfig asterisk on

2014년 7월 18일 금요일

initialize oracle sequence

SELECT LAST_NUMBER FROM USER_SEQUENCES WHERE SEQUENCE_NAME = 'JUMIN_SEQ';

ALTER SEQUENCE JUMIN_SEQ INCREMENT BY -999998;

SELECT JUMIN_SEQ.NEXTVAL FROM DUAL;

ALTER SEQUENCE JUMIN_SEQ INCREMENT BY 1;

SELECT JUMIN_SEQ.NEXTVAL FROM DUAL;

2014년 6월 12일 목요일

batch command with RegAsm.exe

c# 으로 개발한 ActiveX dll 을 배포하기 위해 엄청난 삽질을 했다. 다른 삽질도 많았지만, 최고의 삽질이었다

inf 파일에 필요한 파일 복사와 RegAsm 에 등록하는 batch 명령을 수행할 파일을 지정하고, batch 파일에는 아래와 같은 명령을 수행하도록 해서 겨우 배포 했다

Start /d C:\Windows\Microsoft.NET\Framework\v2.0.50727\ /b RegAsm.exe /codebase /tlb c:\CTIClientX\CTIClientX.dll

2014년 6월 5일 목요일

sip response code

100 - Trying
180 - Ringing
181 - Call is being forwarded
183 - Session Progressing
200 - OK
202 - Accecptable
300 - Multiple Choices
301 - Moved Permanently
302 - Moved Temporarlly
401 - Unauthorized
406 - Not Acceptable
407 - Proxy Authentication Required
480 - Temporarily unavailable
486 - Busy Hear
487 - Request Terminated
488 - Not Acceptable Hear
502 - Bad Gateway
503 - Service Unavaliable
600 - Busy Eventwhere
603 - Decline

2014년 6월 4일 수요일

sip call pickup with asterisk

asterisk version : 11.6.1

1. sip.conf 에서 각각의 extension 에 아래와 같이 추가 설정 ( 묶고 싶은 내선번호 끼리 )
callgroup = 1
pickupgroup = 1

2. features.conf 파일에서 아래의 내용의 주석을 해제하고, 원하는 번호를 입력 한다 ( 변경하지 않으면 *8 이다. sip hardphone 에서는 *8# 을 발신하면 된다. 난 **# 이다
pickupexten = **

2014년 5월 20일 화요일

REMOTE HOST IDENTIFICATION HAS CHANGED

ssh-keygen -R 100.100.100.100

2014년 5월 13일 화요일

multi open for eclipse on the mac

/Users/pointermans/Documents/Work/adt-bundle-mac-x86_64-20140321/eclipse/Eclipse.app/Contents/MacOS/eclipse &

2014년 4월 30일 수요일

get all keys and values of SharedPreferences

            SharedPreferences prefb = getSharedPreferences(getResources().getString(R.string.app_name), Context.MODE_PRIVATE);
            Map<String,?> keys = prefb.getAll();

            for (Map.Entry<String,?> entry : keys.entrySet()){
                Log.d(TAG, "SharedPreferences::" + entry.getKey() + "::" + entry.getValue().toString());
            }

2014년 4월 24일 목요일

how to service registering the service for runnable jar file on centos

vi /etc/init.d/astmiddleware

#! /bin/sh
### BEGIN INIT INFO
# Provides:          musesoft
# Required-Start:    $local_fs
# Required-Stop:     $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# X-Interactive:     false
# Short-Description: service init script
# Description:       Start/stop an service script
### END INIT INFO

DESC="astmiddleware"
NAME=astmiddleware
#DAEMON=

do_start()
{
   echo "starting!";
}

do_stop()
{
   echo "stopping!"
}

case "$1" in
      start)
            cd /usr/local/src/astmiddleware
            /usr/bin/java -jar astmiddleware.jar &
            ;;
      stop)
            killall -v java
            ;;
esac
exit 0

chmod a+rx /etc/init.d/astmiddleware
chkconfig --add /usr/local/src/astmiddleware

chkconfig --list

chkconfig --del astmiddleware

2014년 4월 21일 월요일

kill process by the command

ps -aux | grep astm*

9181 ?        Sl     4:05 java -jar astmiddleware.jar
19225 pts/1    Tl     0:04 java -jar astmiddleware.jar
19670 pts/1    S+     0:00 grep astmiddleware.jar

kill -9 9181
kill -9 19225

2014년 4월 17일 목요일

android release packaging by the console

./gradlew clean assembleRelease

/Users/pointermans/Documents/Work/adt-bundle-mac-x86_64-20140321/sdk/platform-tools/adb uninstall com.iteras.iGen

/Users/pointermans/Documents/Work/adt-bundle-mac-x86_64-20140321/sdk/platform-tools/adb install -r  app/build/outputs/apk/app-release.apk

2014년 3월 27일 목요일

asterisk codecs.conf for use speex codec

os : centos 6.5
asterisk : 11.6.1
requirements : speex-1.2rc1 installed & asterisk remake

*Table 4:* Quality versus bit-rate
Mode Bit-rate (bps) mflops Quality/description
0 250 N/A No transmission (DTX)
1 2,150 6 Vocoder (mostly for comfort noise)
2 5,950 9 Very noticeable artifacts/noise, good intelligibility
3 8,000 10 Artifacts/noise sometimes noticeable
4 11,000 14 Artifacts usually noticeable only with headphones
5 15,000 11 Need good headphones to tell the difference
6 18,200 17.5 Hard to tell the difference even with good headphones
7 24,600 14.5 Completely transparent for voice, good quality music
8 3,950 10.5 Very noticeable artifacts/noise, good intelligibility

vi /etc/asterisk/codecs.conf

[speex]
;0-10
quality => 4
;0-10
complexity => 4
; true / false
enhancement => true
; true / false
vad => false
; true / false
vbr => false
; 0 = off, otherwise, target bitrate in bps
abr => 8000
;0-10
vbr_quality => 5
; true / false
dtx => false

CLI>reload

origin : http://lists.digium.com/pipermail/asterisk-users/2005-January/073992.html

two nic's port forwarding in iptables

os : centos 6.5
iptables : 1.4.7

forward dest port : 9090
forward dest ip : 192.168.0.100
my machine lan : eth0 : 192.168.0.200
my machine wan : eth1 : 100.100.100.100


[ my machine work ]

vi /etc/sysctl.conf
net.ipv4.ip_forward = 1

sysctl -p /etc/sysctl.conf

cat /proc/sys/net/ipv4/ip_forward

5222, 9090, 8766

iptables -A PREROUTING -t nat -i eth1 -p tcp --dport 9090 -j DNAT --to 192.168.0.100:9090
iptables -A FORWARD -p tcp -d 192.168.0.100 --dport 9090 -j ACCEPT

iptables -t nat -A POSTROUTING -j MASQUERADE -o eth0

/etc/init.d/iptables save

[ forword rule delete ]

iptables -L FORWARD --line-numbers

Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination
1    ACCEPT     tcp  --  anywhere             192.168.0.100       tcp dpt:xmpp-client
2    ACCEPT     tcp  --  anywhere             192.168.0.100       tcp dpt:websm

iptables -D FORWARD 2

## iptables all delete
iptables -F

2014년 3월 25일 화요일

kamailio logging config in centos

vi /etc/rsyslog.conf
- edit & add
local0.* -/var/log/kamailio/kamailio.log

vi /etc/logrotate.d/kamailio
- new
/var/log/kamailio/kamailio.log {
    missingok
    size=50M
    create 0644 root root
    postrotate
  /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
    endscript
}

reboot

/usr/local/sbin/kamctl start
/usr/local/sbin/kamailio -ddddddddddddddd -D 2

2014년 3월 24일 월요일

odbc use with asterisk

asterisk build 하기전에 아래 요소들이 필요 하다
없으면 'odbc' but the engine is not available 요딴 에러가 발생 한다

yum install unixODBC unixODBC-devel libtool-ltdl libtool-ltdl-devel

2014년 3월 18일 화요일

ngrep capture

ngrep -d eth1 -itq -W byline
ngrep -W byline -d eth0 port 5060
ngrep -W byline -d eth0 port 5060 -O capture_file
ngrep -W byline -d eth0 INVITE

mysql ui tool for mac

http://www.sequelpro.com/

2014년 3월 7일 금요일

linux 에서 추가 설치했던 lan driver 삭제

머, 정확히는 잘 모르겠지만,
기존에 쓰던 via-rhine lan card 가 장착된 pc
여기서 realtek lan card 를 하나 더 장착, 8139too 로 올라온다
근데 이넘이 드라이버는 다 올라온거 같은데, rx 쪽이 전부 error 로 떨어진다
shutdown 하고, realtek 빼고, 다른 realtek 장착

lsmod | grep 8139 하니, 8139too, 8139cp 요렇게 2개 보인다

ifconfig 하면 기존 via card 만 보인다

그래서 기존 꺼 삭제 rmmod -f 8139too

[root@localhost network-scripts]# lspci | grep -i Ethernet
00:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 78)

이제 2개가 보이는데, ifconfig 하면 eth1은 없고, eth2 가 생겼다

vi /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x1106:0x3065 (via-rhine)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:16:ec:05:b9:fe", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:c0:26:73:a4:03", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:ee:b1:02:bf:3b", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

rm /etc/udev/rules.d/70-persistent-net.rules

reboot 후 다시 정리되서 eth0, eth1 이 보이고, 설정데로 ping 도 응답하기 시작 했다

아래의 부팅 후 dmesg

[root@localhost ~]# dmesg | grep eth
eth0: RealTek RTL8139 at 0xf820c000, 00:ee:b1:02:bf:3b, IRQ 16
udev: renamed network interface eth0 to eth1
eth0: VIA Rhine II at 0xf6011000, 00:16:ec:05:b9:fe, IRQ 23.
eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link 45e1.
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
eth0: no IPv6 routers present
eth1: no IPv6 routers present




2014년 3월 4일 화요일

Check linux distributions

[root@localhost ~]# find /etc/*-release | xargs cat
CentOS release 6.3 (Final)
CentOS release 6.3 (Final)
CentOS release 6.3 (Final)
[root@localhost ~]#

2014년 2월 16일 일요일

postgresql manual uninstall at OS X

[ Envirenment ]
- OS X : 10.9.1
- postgresql 8.4.19-2

[ Method ]
- 아래와 같이 처리 한다
sudo /sbin/SystemStarter stop postgresql-8.4
sudo rm -rf /Applications/PostgreSQL\ 8.4
sudo rm -rf /etc/postgres-reg.ini
sudo rm -rf /Library/StartupItems/postgresql-8.4
sudo rm -rf /Library/PostgreSQL/8.4
sudo dscl . delete /users/postgres

- reboot

[ Origin ]
- http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x

native lib 를 android studio 에 적용하는 방법

[ Envirenment ]

- Android Studio 0.4.4


[ Method ]

- 내 프로젝트에 lib 폴더를 생성해서 so 파일들이 들어 있는 armeabi, armeabi-v7a, mips, x86 등 모두를 Copy

- 내 프로젝트의 build.gradle 파일에 다음을 추 가

dependencies 안에 아래를 추가  
compile fileTree(dir: "$buildDir/native-libs", include: 'native-libs.jar')

compile fileTree(dir: 'lib', include: '*.jar')
task nativeLibsToJar(type: Zip, description: 'create a jar archive of the native libs') {
    destinationDir file("$buildDir/native-libs")
    baseName 'native-libs'
    extension 'jar'
    from fileTree(dir: 'lib', include: '**/*.so')
    into 'lib/'
}

tasks.withType(Compile) {
    compileTask -> compileTask.dependsOn(nativeLibsToJar)
}

- Source Code 에서는 아래같이 해당 lib 를 load 한다
    static
    {
        System.loadLibrary("libname");
    }

- rebuild project

2014년 2월 15일 토요일

vi and vim command



- line copy & past
yy --> p

linux 에서 group 관리

- 모든 group list
# cut -d: -f1 /etc/group

- 특정 group member list
# grep ^groupname /etc/group

- 해당 폴더(하위포함) sftpusers 그룹 지정
chown root.sftpusers -R /home/sftp/

- 해당 폴더의 사용자 권한 부여
chown jhj2091 /home/jhj2091/

- sftpusers 그룹에 사용자 추가
usermod -a -G sftpusers jhj2091

- 해당 폴더(하위포함)에 읽기/쓰기 권한 부여
chmod -R 775 /home/sftp/

2014년 2월 12일 수요일

맥에서 hidden files 보기

[ Envirenment ]
- mac OS version : 10.9.1

[ Method ]

  1. 터미널 창에서 다음을 입력
  2. defaults write com.apple.finder AppleShowAllFiles TRUE ( 대소문자 주의 후 엔터 )
  3. 메인메뉴의 Force Quit 를 선택 후 Finder 선택 후 재실행

iPhone 에 음악 넣기

[ Envirenments ]
- mac OS version : 10.9.1
- iTunes version of mac : 11.1.4
- iPhone5 : iOS 7.0.4

[ Method ]

  1. 맥에 iphone 연결
  2. iTunes 가 실행 되면 전화기 아이콘 클릭 ( 주의 마운트 해제 아이콘 클릭하면 전화기와 연결 끊김 )
  3. 먼저 Summary 탭의 options 항목에서 "sync only checked songs and videos" 와 "manually manager music and videos" 만 선택
  4. On This iPhone 탭으로 이동하고, Finder 에서 원하는 음악을 드레그 해서 끌어 놓는다





git use

[ Envirenment ]
git version of mac - 1.8.3.4
git version of linux - 1.7.1 ( remote server )
tortoisegit version of windows  - 1.9.0.msysgit.0 ( tortoisegit preview beta version )


[ Test & Method ]
각 OS 에서 터미널로 작업 한다

- git init 없이 작업 중이던 local direcotry 에서 git repository 를 구성하려고 할 때
  1. 해당 directory 로 이동하여 다음을 수행
  2. git init
  3. git add *
  4. git commit -m "커밋 내용"
- local repository 가 여기저기 흩어져 있을 때 어떻게 되는가?
일단 크게 상관 없지만, 관리상 remote 서버의 directory 구조를 따르는 것이 혼돈을 피하기 좋다

- 다른 사람이 사용하던 local repository 를 그대로 압축해서 가져 왔을 때, 내 정보로 commit 이 되는가?
일단 현재까지 사용하면 별 이상은 없지만, 숨겨진 .git 폴더등을 삭제하고 새로 init 하여 사용 한다

- window 환경, 특히 visual studio 에서 호환 문제
visual studio 에서는 포기했다. visual studio 2012 update 3 에서 자체적인 git 을 사용 할 수 있지만 remote server 는 Team Foundation 을 사용해야 한다

- git group 으로 ssh 인증으로 사용할 경우,  push 등이 될 때 group member 에게 알릴 수 있는 방법
현재로서는 redmine 같은 tracking tool 을 사용하는 것이 제일 좋은 방법인 것 같다

- git branch ( 정신바짝차려야 한다 )
git checkout -b new_git_name ( branch create )
git checkout master ( branch use )
git branch -d exist_git_name ( branch delete )

- remote git 별도 repository 구성 : 프로젝트별, 권한별 사용법
  1. git 사용자와 Group 생성
  2. su git
  3. git init --bare --shared iGen_Android.git
- remote git on local
  1. git remote -v
- local repo -> remote repo
  1. git remote add origin ssh://gitusername@111.111.111.111/git-repos/xxx.git
  2. git push origin master
- remote repo -> local repo
git clone ssh://gitusername@111.111.111.111/git-repos/xxx.git

- git 사용자 추가
  1. remote server 사용자 추가
  2. useradd pointermans
  3. passwd pointermans
  4. new password set
  5. usermod -G git pointermans
- .gitignore
  1. git rm -r --cached .
  2. git add .
  3. git commit -m "fix .gitignore"

x220, se-208db, windows7 professional k install

참, 어처구니 없네
windows7 을 다시 설치 할 일이 있어서 아래와 같은 과정을 거쳤는데,  설치를 진행 할 수 없는 증상이 발생하는 거다
  1. 3.0 지원 외장하드디스크에서 windows7 iso 파일을 복사에서 x220 노트북에 복사 -  이 때 복사속도를 높이기 위해, x220 의 왼쪽 상단의 usb port 가 3.0 을 지원하기 때문에 연결 함, 약 3.2GByte 복사하는데 약 20초 소요
  2. iso 파일을 설치 cd-rom 으로 만들기 위해서, 윈도우 버너를 사용해서 cd 를 만듬
  3. 리부팅
  4. 기본적으로 cd-rom 부팅이기 때문에 bios 화면에서 enter
  5. 설치에 필요한 기본 파일들이 복사 되고, keyboard 선택화면이 나타남 - 다음 버튼 클릭
  6. 문제는 여긴데, 여기서 장치 드라이버를 찾을 수 없다고 윈도우 메세지 창이 나타나고, 어떤 선택을 해도 드라이버 못 찾음
  7. 10분 고민
  8. 3.0 지원 외장하드디스크를 x220 의 왼쪽 하단의 2.0 usb port 에 재연결 후, 재부팅
  9. 이제 넘거감.... 된장....

2014년 1월 24일 금요일

ls command

- paging
ls | less : 많은 양의 리스트가 있을 때, 페이지 별로 표시한다. space bar 를 누르면 다음 페이지로 넘어 가며, q 를 누르면 빠져나온다

- only directory
ls -la | grep ^d : 현제 디렉토리에서 폴더만을 표시한다

2014년 1월 23일 목요일

freeswitch quick install guide on a CentOS

[ Environment ]
- CentOS 6.3
- kernel : 2.6.32-279.22.1.el6.i686
- freeswitch : 1.5.8b+git

[ Install ]

-Mandatory
yum install git autoconf automake libtool ncurses-devel libjpeg-devel

-Optional
yum install expat-devel openssl-devel libtiff-devel libX11-devel unixODBC-devel libssl-devel python-devel zlib-devel libzrtpcpp-devel alsa-lib-devel libogg-devel libvorbis-devel perl-libs gdbm-devel libdb-devel uuid-devel @development-tools

-Download
cd /usr/local/src
git clone git://git.freeswitch.org/freeswitch.git
cd freeswitch
./bootstrap.sh

-Compile the Source
./configure
make

-Install FreeSWITCH
make all install cd-sounds-install cd-moh-install

-Start FreeSWITCH
/usr/local/freeswitch/bin/freeswitch