Installing to CentOS 4.4 x86_64

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Installing to CentOS 4.4 x86_64

Postby kchung » Fri Dec 15, 2006 6:06 pm

This is a log of how I install Vicicidal a server using CentOS 4.4 x86_64 onto a Dell E510. It has a X100P as a timing source, 2 SATA drives which I'll softRAID1 and uses SIP.

This post will be edited as I add more steps.

Installing VICIDIAL 2.0.2b3 on CentOS 4.4 x86_64

Phase 0
Download and burn installation DVD
Boot DVD, peform media check is recommended but optional.

Select Language (English) and Keyboard (U.S. English)

Installation Type Server
Manually partition with Disk Druid

Create a software RAID partion on /dev/sda and /dev/sdb, 100MB each, named /dev/sda1 and /dev/sdb1.
Create a RAID device with /dev/sda1 and /dev/sdb1, named /dev/md0 with mount point /boot, file system type ext3 and RAID Level RAID1.

Create a software RAID partion on /dev/sda and /dev/sdb, with remaining space, named /dev/sda2 and /dev/sdb2.
Create a RAID device with /dev/sda2 and /dev/sdb2, named /dev/md1, file system type physical volume (LVM) and RAID Level RAID1.

Create a Volume Group named VolGroup00 with Logical Volume Named LogVol00, mount point /, file system type ext3 and Size being max minus swap size (74080MB, 2048MB swap) and a Logical Volume Named LogVol01, file system type swap and Size being max size (2048MB)

Set boot loader password

Use DHCP for IP/Netmask, set hostname manually to xxvicidial01.xxx.xxx (do your own name)

Enable Firewall, with SSH, http, https, and ftp open. Disable SELinux.

Additional Language support to English (USA)

Set the server's time zone (America/Los_Angeles)

Set root password


Package Group Selection

+Editors
+vim-enhanced
Server Configuration Tools
+system-config-boot
+system-config-httpd
-system-config-nfs
Web Server
-php-ldap
-squid
-Windows File Server
+FTP Server
+MySQL Database
+Development Tools
+subversion
+System Tools
-OpenIPMI-tools
-bluez-pin
-ckermit
-nmap
-open
-openldap clients
-samba-client
-xdelta
-zsh
-Printing Support

required packages:
kernel_devel or kernel_smp_devel
gcc
httpd
php-mysql
mysql-server
mysql-devel
screen
sox
ncurses-devel
ntp
zlib-devel
libpng-devel
subversion
newt
openssl

vi /etc/php.ini, upload_max_filesize = 200M
service mysqld start
service httpd start
ntsysv: httpd, mysqld
Finish the install

login as root
cmd: yum update
Let yum finish updating and reboot.


BASE_INSTALL.txt Phase one:
Used Asterisk 1.2.14, Zaptel 1.2.12 and Libpri 1.2.4 instead
Instead of 'modprobe wct1xxp', i used 'modprobe wcfxo' due to the X100P

1. perl -MCPAN -e shell # type in the command line
2. You will then go through CPAN setup, just hit ENTER for most prompts except
for the mirrors list, you will want to select at least 4 mirrors
- yes for manual configuration
- enter for the next 22 prompts
- for the "make install options" it's a good idea to add UNINST=1
- enter for the next 5 prompts
- select your continent and country
- select a few cpan mirrors
- enter for the next 2 prompts


Install asterisk-perl (.8), LAME (v3.97), mpg123 (.61), ttyload (0.4.4), iftop (.17), ploticus (2.33, comment out XOBJ= and XLIBS=), mtop (.6.6)

Install:
Asterisk 1.2.14,
Zaptel 1.2.12
Libpri 1.2.4
Last edited by kchung on Thu Dec 21, 2006 5:45 pm, edited 12 times in total.
kchung
 
Posts: 208
Joined: Fri Aug 04, 2006 5:28 pm

Postby Op3r » Fri Dec 15, 2006 10:01 pm

When I am installing Centos

Manual Partition of the drives.

always making sure that /var gets 70% (for recordings)

removing all the packages, meaning I am using barebone server.

removing firewall and selinux

restricting ssh and sudoers.

using yum to install packages necessary

load the perl modules

asterisk

then vicidial :D

then do the mysql entries and its done
Last edited by Op3r on Fri Dec 15, 2006 10:48 pm, edited 1 time in total.
Get paid for US outbound Toll Free calls. PM me.
Op3r
 
Posts: 1432
Joined: Wed Jun 07, 2006 7:53 pm
Location: Manila

Postby mflorell » Fri Dec 15, 2006 10:34 pm

Thank you very much for posting this, could you post to the VICIDIAL Wiki?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby ramindia » Sat Dec 16, 2006 12:43 am

Hi kchung

can you just clarify some thing on SATA 2

I had some time back for recordings iam using SATA 2 hardidsk

but after 10 agents voice start breaking, then i see the problem with SATA2 and replaced with IDE harddisk worked great, for low recordings,
after the list recomended for 15K SCSI, iam not yet gone for it
since its bit expensive compare to SATA or IDE

so using SATA2 in Raid level does not have any problem on recording ?

Ram
ramindia
 
Posts: 688
Joined: Wed Oct 11, 2006 4:06 am
Location: India

Postby kchung » Sat Dec 16, 2006 4:24 pm

This is a new server install, so I dunno yet. It's intel ICH7 Chipset w/ intergrated SATA.

As Op3r mentioned, he does stuff a little different so please don't consider this writeup as a definitive guide; I'm just logging what I'm doing so it's reproducible for *me*. I'm more of a Windows guy with decent experience in Linux, so again, don't consider this definitive.

As soon as this finalize, I'll post it into the wiki.
kchung
 
Posts: 208
Joined: Fri Aug 04, 2006 5:28 pm

Postby Op3r » Sat Dec 16, 2006 8:55 pm

kchung,

I am just wondering, you didint encounter any problems when you enable the firewall?

I guess we do things differently. and it also helps improve our techniques.
Get paid for US outbound Toll Free calls. PM me.
Op3r
 
Posts: 1432
Joined: Wed Jun 07, 2006 7:53 pm
Location: Manila

Postby kchung » Sun Dec 17, 2006 2:32 am

haha, i haven't gotten to that point yet! Remember, this is more of a running log in this format!

What troubles did you see?
kchung
 
Posts: 208
Joined: Fri Aug 04, 2006 5:28 pm

Postby gardo » Sun Dec 17, 2006 8:50 am

I also use CentOS 4.4 x86_64. I have enabled firewall with the following ports openned:

5060 udp : sip
4569 udp : iax
222 tcp: ssh (non-standard - for security reasons)
10000 - 20000 udp : rtp ports
http://goautodial.com
Empowering the next generation contact centers
gardo
 
Posts: 1926
Joined: Fri Sep 15, 2006 10:24 am
Location: Manila, 1004

Postby vctor » Sun Dec 17, 2006 10:02 pm

We have the same method as Op3r, we do not need to enable firewall since we do the security outside of the vicidial system, so it is exclusive of that function only.
vctor
 
Posts: 49
Joined: Tue Jun 13, 2006 9:32 pm

Postby Koymack » Wed Jan 03, 2007 1:26 am

Thanks guys for your posts... Just in time as I am trying to install astGUI using CentOS....

KCHUNG.... Is there an update on your post?... from where you ended what should i do next?...
Koymack
 
Posts: 21
Joined: Mon Dec 18, 2006 8:18 pm

Postby kchung » Wed Jan 03, 2007 11:43 am

Been a little busy over the holidays plus 2.0.2. I've actually revised things a little bit on my end. What to do next? Follow the rest of the scratchinstall doc! I've actually been editing the scratch_install to make it a CentOS minimal install version, but haven't figured out why ploticus won't compile so that's my roadblock.
kchung
 
Posts: 208
Joined: Fri Aug 04, 2006 5:28 pm

Postby Koymack » Wed Jan 03, 2007 4:37 pm

I have a question though... why am i getting this error while INSTALLING PERL:

cpan[14]> install DBI
Running install for module DBI
Running make for T/TI/TIMB/DBI-1.53.tar.gz
Can't call method "can" without a package or object reference at (eval 515) line 2904.

and i always get this ERROR when i install other modules....
Koymack
 
Posts: 21
Joined: Mon Dec 18, 2006 8:18 pm

may be better a minimal installation

Postby omar » Tue Jan 16, 2007 5:21 pm

May be is better a minimal installation of centos, then you can follow the instructions of scratch install.
don't forget the requeriments for installing asterisk on centos
omar
 
Posts: 77
Joined: Wed Dec 13, 2006 2:05 pm

Postby Koymack » Wed Jan 17, 2007 2:07 pm

actually that's how i was able to resolve this...

I installed CentOS with nothing installed in the SERVER packages and followed CAREFULLY the SCRATCH install... :D :D
Koymack
 
Posts: 21
Joined: Mon Dec 18, 2006 8:18 pm

Errors during the installation on CENTOS

Postby omar » Wed Jan 17, 2007 9:21 pm

Koymack wrote:actually that's how i was able to resolve this...

I installed CentOS with nothing installed in the SERVER packages and followed CAREFULLY the SCRATCH install... :D :D

Did you have any problems during the installation process, because I have

1. SUBPHASE 3.2: Installing Perl Modules
When I want to install
cpan> force install DBD::mysql
I get de following error:
perl Makefile.PL --help
Warning: No success on command[/usr/bin/perl Makefile.PL]
Running make test
CPAN: YAML loaded ok
Make had some problems, won't test
Running make install
Make had some problems, won't install
Failed during this command:
CAPTTOFU/DBD-mysql-4.001.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL' returned status 512

I know that I need mysqlclientlibs, but how to know if I have it. (I installed mysql like scratch_install)

2. SUBPHASE 3.3: Installing other utilities PLOTICUS
# cd /usr/local
# wget http://ploticus.sourceforge.net/downloa ... src.tar.gz
# gunzip pl232src.tar.gz
# tar xvf pl232src.tar
# cd pl232src/src/
# make clean
# make
# make install

I get an error too, but ploticus isn't very important

3. SUBPHASE 3.3: Installing other utilities MTOP
# cd /usr/local
# wget http://superb-east.dl.sourceforge.net/s ... 6.6.tar.gz
# gunzip mtop-0.6.6.tar.gz
# tar xvf mtop-0.6.6.tar
# cd mtop-0.6.6
# cpan
Cpan[1]> install Curses
Cpan[1]> install Getopt::Long
Cpan[1]> install Net::Domain
Cpan[1]> quit
# perl Makefile.PL
# make
# make install
# /usr/local/bin/mtop --dbuser=root --seconds=3

I get an error to, this is:
[root@HTT mtop-0.6.6]# perl Makefile.PL
Warning: prerequisite DBD::mysql 0 not found.
Writing Makefile for mtop
[root@HTT mtop-0.6.6]#


Even if it is optional, I thing is important

PD. For your system is working any autodialing method?
omar
 
Posts: 77
Joined: Wed Dec 13, 2006 2:05 pm

Postby ramindia » Thu Jan 18, 2007 1:39 am

Hi


I have insallted on Centos with vici Dial, works perfectly for the Scartch_install, using manual dial, but i have other problems, so shifted to FC5, works great.

Centos i have followed below steps
Install everything from CentOS, and start using Scratch_install document,
install only required components,
since most of the rpms already installed

ram
ramindia
 
Posts: 688
Joined: Wed Oct 11, 2006 4:06 am
Location: India

Postby palito » Fri Jan 19, 2007 1:33 am

ramindia wrote:I have insallted on Centos with vici Dial, works perfectly for the Scartch_install, using manual dial, but i have other problems, so shifted to FC5, works great.


Hi ramindia. What other problems did you encounter?
palito
 
Posts: 18
Joined: Tue Jan 16, 2007 4:03 pm

Postby prabhakar_asterisk » Mon Jan 22, 2007 5:10 am

hi
i had lot of problem and errors whilst installing centos with predefined packages but when i used centos with no packages and used the yum install (Edwin (op3r) helped out in installing ) it installs perfectly fine and mostly importantly vicidial works fine..i even tried with FC ..yum method seems simple and less time consuming.
cheers
prabhakar




Edited by op3r for misspelling of my nick :)
prabhakar_asterisk
 
Posts: 79
Joined: Sun Aug 06, 2006 11:09 pm

Postby palito » Mon Jan 22, 2007 5:52 am

Did you try to install from the full CentOS distribution, or the "Server" version (one CD, no graphical interfase) distribution of CentOS?
palito
 
Posts: 18
Joined: Tue Jan 16, 2007 4:03 pm

Postby prabhakar_asterisk » Wed Jan 24, 2007 4:20 am

i used centos server cd.i had some problem with full distribution..
while installing remove all the packages in customization
prabhakar_asterisk
 
Posts: 79
Joined: Sun Aug 06, 2006 11:09 pm


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 53 guests