· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Asterisk Inst/Asterisk Centos5

AsteriskInst/AsteriskCentos5.1

* centos 5.1 을 기반으로 하는 Asterisk CD 만들기

* install Fedora core 9
  • pungi 와 revisor 을 사용하기 위함.
* local repository 를 만든다.
  • DVD iso 이용
    • CentOS-5.1-i386-bin-DVD.iso 를 이용
    • mount -o loop CentOS-5.1-i386-bin-DVD.iso tmp
    • cd tmp
    • ls
CentOS                 RELEASE-NOTES-es          RELEASE-NOTES-ro
EULA                   RELEASE-NOTES-es.html     RELEASE-NOTES-ro.html
GPL                    RELEASE-NOTES-fr          RPM-GPG-KEY-CentOS-5
NOTES                  RELEASE-NOTES-fr.html     RPM-GPG-KEY-beta
RELEASE-NOTES-cs       RELEASE-NOTES-ja          TRANS.TBL
RELEASE-NOTES-cs.html  RELEASE-NOTES-ja.html     images
RELEASE-NOTES-de       RELEASE-NOTES-nl          isolinux
RELEASE-NOTES-de.html  RELEASE-NOTES-nl.html     repodata
RELEASE-NOTES-en       RELEASE-NOTES-pt_BR
RELEASE-NOTES-en.html  RELEASE-NOTES-pt_BR.html
    • CentOS 와 repodata 디렉토리를 repository 디렉토리밑에 복사한다. (/mnt/sda8/)
  • cd iso 이용 (6장)
    • CentOS-5.1-i386-bin-1of6.iso 을 이용
    • cd 6 장일 경우 TRANS.TBL 을 어떻게?
    • repodata 는?
* pungi 를 사용하여 필요한 패키지들만을 모은다. * pungi 에 필요한 kickstart file 을 만든다.
Kickstart option
 repo (optional)

    Configures additional yum repositories that may be used as sources for package installation. Multiple repo lines may be specified.

    repo --name=<repoid> [--baseurl=<url>| --mirrorlist=<url>]

        * --name= ; The repo id. This option is required.
        * --baseurl= ; The URL for the repository. The variables that may be used in yum repo config files are not supported here. You may use one of either this option or --mirrorlist, not both.
        * --mirrorlist= ; The URL pointing at a list of mirrors for the repository. The variables that may be used in yum repo config files are not supported here. You may use one of either this option or --baseurl, not both.
  • asterisk 의 ks.cfg 에 %packages 에 있는 package list 를 넣는다.
repo --name=centos-local --baseurl=file:///mnt/sda8/
repo --name=centos --baseurl=http://ftp.daum.net/centos/5.1/os/i386/
repo --name=centos-source --baseurl=http://ftp.daum.net/centos/5.1/os/SRPMS
# repo --name=centos-updates --baseurl=http://ftp.daum.net/centos/5.1/updates/i386/
# repo --name=centos-updates-source --baseurl=http://ftp.daum.net/centos/5.1/updates/SRPMS
%packages
asterisk iso file 에 있는 ks.cfg 의 package list
%end
* iso file 을 만들기 위한 디렉토리를 만든다.
  • mount -o loop CentOS-5.1-i386-bin-1of6.iso /root/tmp
  • cp -Rp /root/tmp /root/Cent1
  • cp -Rp /root/tmp/.discinfo /root/Cent1/
  • cd /root/Cent1/CentOS
  • 이곳의 packages 를 지운 후, pungi 를 이용하여 모은 packages 를 이동시킨다.
* repodata 를 만든다.
  • cd /root/Cent1
  • discinfo=head -1 .discinfo
  • createrepo -u “media://$discinfo” -g repodata/comps.xml .
* asterisk 를 위한 파일들을 복사한다.

* iso 파일을 만든다.

점검할 사항

* ks.cfg 에 지정된 패키지지만 CentOS 5.1 에 없는 것
>      I made the mistake of updating a kernel once instead of
>  installing it. If one upgrades a kernel and there is a problem, one
> can't easily go back to the old one.  If one installs a new one, then
> one can quickly and easily go back to the old one as you have BOTH
> kernels available.  A quick reboot and one can select the working
> kernel.  I always install kernels now instead of updating them.

I understand the need to install rather than update kernels.  Yum does
this automatically for kernel, kernel-smp, kernel-bigmem,
kernel-enterprise, kernel-debug, and kernel-unsupported.
    • kernel-smp 가 smp 인 경우 default 로 설치되는 경우
  • openssl096b
    • OpenSSL 0.9.6b libraries are provided for Red Hat Enterprise Linux 3 and 4 to allow compatibility with legacy applications
    • centos 5 에서 필요한지 아닌지 모르겠음.
I'd say that the problem here is that the "standard" openssl went from
0.9.5a to 0.9.6.

To keep older apps working, redhat renamed openssl-0.9.5a to openssl095a
and moved the openssl package to openssl-0.9.6.

If /usr/lib/libcrypto.so.0.9.5a exists then you should probably get the latest
openssl-0.9.6 and install it, then try to install the openssl095a
* post install 에서 설치하는 packages
[root@localhost src]# cd mime-construct-1.9/
[root@localhost mime-construct-1.9]# perl Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite MIME::Types 0 not found.
Warning: prerequisite Proc::WaitStat 0 not found.
Writing Makefile for mime-construct
  • asterisk_src.tar.gz
    • zaptel: MODULE_PARM problem
    • 모든 drive 파일을 고치는 것은 조금....
    • zaptel 1.2.3 에서 1.2.26 으로
    • patch 찾아볼 것
#ifdef LINUX26
module_param(debug, int, 0600);
#else
MODULE_PARM(debug, "i");
#endif
  • asterisk
chan_phone.c:41:29: error: linux/compiler.h: 그런 파일이나 디렉토리가 없음
make[1]: *** [chan_phone.o] 오류 1
make[1]: Leaving directory `/usr/src/asterisk/channels'
make: *** [subdirs] 오류 1

perl

* perl
  • perl-5.8.8-10.i386.rpm
  • perl-BSD-Resource-1.28-1.fc6.1.i386.rpm
  • perl-Compress-Zlib-1.42-1.fc6.i386.rpm
  • perl-DBD-MySQL-3.0007-1.fc6.i386.rpm
  • perl-DBI-1.52-1.fc6.i386.rpm
  • perl-HTML-Parser-3.55-1.fc6.i386.rpm
  • perl-HTML-Tagset-3.10-2.1.1.noarch.rpm
  • perl-String-CRC32-1.4-2.fc6.i386.rpm
  • perl-URI-1.35-3.noarch.rpm
  • perl-XML-Parser-2.34-6.1.2.2.1.i386.rpm
  • perl-libwww-perl-5.805-1.1.1.noarch.rpm

  • perl-suidperl-5.8.8-10.i386.rpm
  • perl-CGI-Session-4.20-1.el5.rf.noarch.rpm
  • perl-Data-UUID-1.148-1.el5.rf.i386.rpm
    • festival-script.pl:require Data::UUID;
  • perl-IPC-Signal-1.00-1.2.el5.rf.noarch.rpm
  • perl-Net-Telnet-3.03-1.2.el5.rf.noarch.rpm
  • perl-Proc-WaitStat-1.00-1.2.el5.rf.noarch.rpm
  • perl-Time-HiRes-1.9715-1.el5.rf.i386.rpm

  • asterisk-perl-0.08.tar.gz

* Asterisk Management Portal (AMP) has been renamed as FreePBX on its 2.0 milestone release.

* Vicidial is a full functional outbound and inbound call center solution
  • Vicidial has two main components:
  • astGUIclient
  • Vicidial

* In order to use FreePBX and Vicidial, you need install following Perl Module
  • a revolutionary new user interface to Asterisk, freePBX 2.01

packages

* asterisk
  • alsa-utils, curl-devel, dhcp, flex
  • gd, grub, kernel
  • libcap, libpcap, libtermcap-devel, lm_sensors
  • mkisofs, newt-devel, ntp,
  • perl, perl-libwww-perl, perl-DBD-MySQL
  • perl-DBI, perl-XML-Parser, perl-suidperl
  • php-gd, php-mbstring
  • readline, readline-devel
  • subversion
  • system-config-date, system-config-keyboard
  • rpm-build, slang-devel
  • tftp-server, vsftpd
* asterisk
  • bison
  • doxygen
  • gcc, cpp, glibc-devel, libgomp
  • kernel-devel
  • openssl-devel, krb5-devel, zlib-devel
  • e2fsprogs-devel, glibc-headers, kernel-headers
  • keyutils-libs-devel, libselinux-devel,
  • libsepol-devel
* AMP
  • libtiff, libtiff-devel, libxml2, httpd
  • mysql, mysql-devel, mysql-server
  • php, php-mysql, cvs
  • ncurses-devel, audiofile-devel, curl, sox

  • Net::Telnet, IPC::Signal, Proc::WaitStat

  • mime-construct

  • asterisk-perl

* zaptel
  • kernel-devel, zlib, zlib-devel, openssl,
  • openssl-devel, bison, patch, subversion

ID
Password
Join
If it pours before seven, it has rained by eleven.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2008-07-26 15:39:34
Processing time 0.0121 sec