{"id":124,"date":"2018-06-12T10:07:41","date_gmt":"2018-06-12T10:07:41","guid":{"rendered":"https:\/\/hegars83.wordpress.com\/?p=124"},"modified":"2018-06-14T16:55:08","modified_gmt":"2018-06-14T16:55:08","slug":"centos-install-and-basic-setup","status":"publish","type":"post","link":"https:\/\/blog.hegars.com\/?p=124","title":{"rendered":"CentOS basic setup"},"content":{"rendered":"<p><b>CentOS Install and basic setup<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>Install from CD<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>Install Xentools<\/b><\/p>\n<p><span style=\"font-weight: 400;\"># mkdir \/media\/cdrom<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># mount \/dev\/xvdd \/media\/cdrom<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># \/media\/cdrom\/Linux\/install.sh<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># reboot <\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Set Hostname<\/b><\/p>\n<p><span style=\"font-weight: 400;\"># vim \/etc\/sysconfig\/network<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Edit HOSTNAME= to hostname.domain<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Enable Network at boot<\/b><\/p>\n<p><span style=\"font-weight: 400;\"># vi \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Edit ONBOOT= to yes<\/span><\/p>\n<p><span style=\"font-weight: 400;\">or<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># sed -i s\/ONBOOT=no\/ONBOOT=yes\/g \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">#service network restart<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Disable selinux<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Disable SELinux by changing \u201cenforcing\u201d to \u201cdisabled\u201d in \/etc\/selinux\/config. <\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\"># vi \/etc\/selinux\/config<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Edit SELINUX=enforcing to SELINUX=disabled \u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">or<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># ping <\/span><\/p>\n<p><span style=\"font-weight: 400;\"># reboot<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Disable Firewall<\/b><\/p>\n<p><span style=\"font-weight: 400;\"># service iptables save<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># service iptables stop<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># chkconfig iptables off<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\"># service ip6tables save<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># service ip6tables stop<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># chkconfig ip6tables off<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Install Network config scripts<\/b><\/p>\n<p><span style=\"font-weight: 400;\"> # yum install system-config-network*<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Install VIM<\/b><\/p>\n<p><span style=\"font-weight: 400;\"># yum install vim<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Install Web tools<\/b><\/p>\n<p><span style=\"font-weight: 400;\"># yum install wget w3m<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Install network tools<\/b><\/p>\n<p><span style=\"font-weight: 400;\"># yum install tcpdump<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Install NTP<\/b><\/p>\n<p><span style=\"font-weight: 400;\"># yum install ntp<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># chkconfig ntpd on<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># ntpdate au.pool.ntp.org<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># service ntpd start<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Install MySQL<\/b><\/p>\n<p><span style=\"font-weight: 400;\"># yum install mysql-server <\/span><\/p>\n<p><span style=\"font-weight: 400;\"># service mysqld start <\/span><\/p>\n<p><span style=\"font-weight: 400;\"># chkconfig &#8211;levels 235 mysqld on \u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># mysqladmin -u root password \u2018[setpassword]\u2019 <\/span><\/p>\n<p><span style=\"font-weight: 400;\"># mysql -u root -p <\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Install Apache<\/b><\/p>\n<p><span style=\"font-weight: 400;\"># yum install httpd<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># chkconfig &#8211;levels 235 httpd on<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Install VSFTPD<\/b><\/p>\n<p><span style=\"font-weight: 400;\"># yum install vsftpd<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># chkconfig vsftpd on<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># <\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Setup logging and conf<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Fixing the home dir issue.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">getsebool -a | grep ftp<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">setsebool -P ftp_home_dir on<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">fixing \u201c426 Failure writing network stream\u201d.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">use_sendfile=NO.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Install PHP<\/b><\/p>\n<p><span style=\"font-weight: 400;\"># yum install php php-mysql <\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Install JRE<\/b><\/p>\n<p><span style=\"font-weight: 400;\"># wget jre-7u25-linux-i586.rpm<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># rpm -Uvh jre-7u25-linux-i586.rpm <\/span><\/p>\n<p><span style=\"font-weight: 400;\"># java -version <\/span><\/p>\n<p><span style=\"font-weight: 400;\"> \u00a0<\/span><\/p>\n<p><b>Install phpMyadmin<\/b><\/p>\n<p><span style=\"font-weight: 400;\"># rpm -ivh http:\/\/ftp.jaist.ac.jp\/pub\/Linux\/Fedora\/epel\/6\/i386\/epel-release-6-8.noarch.rpm \u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># yum update <\/span><\/p>\n<p><span style=\"font-weight: 400;\"># yum install phpMyAdmin <\/span><\/p>\n<p><span style=\"font-weight: 400;\"># service httpd restart <\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Comment out Deny alls<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># vim \/etc\/httpd\/conf.d\/phpMyAdmin.conf<\/span><\/p>\n<p><b>Install openssl<\/b><\/p>\n<p><span style=\"font-weight: 400;\"># yum install openssl openssl-devel<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Install Webmin<\/b><\/p>\n<p><span style=\"font-weight: 400;\"># wget http:\/\/prdownloads.sourceforge.net\/webadmin\/webmin-1.650-1.noarch.rpm<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># rpm -Uvh webmin-1.630-1.noarch.rpm<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Install Splunk<\/b><\/p>\n<p><span style=\"font-weight: 400;\"># rpm -Uvh splunk-5.0.4-172409.i386.rpm <\/span><\/p>\n<p><span style=\"font-weight: 400;\"># \/opt\/splunk\/bin\/splunk start<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># \/opt\/splunk\/bin\/splunk enable boot-start<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># chkconfig &#8211;list | grep splunk<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><b>Install OpenFire<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\"># yum install nss-softokn-freebl.i686yum install glibc.i686 <\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Install the database from<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\/opt\/openfire\/resources\/database\/openfire_mysql.sql<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\"># mysql -u root -p<\/span><\/p>\n<p><span style=\"font-weight: 400;\">mysql&gt; create database openfire;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">mysql&gt; use openfire;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Database Changed<\/span><\/p>\n<p><span style=\"font-weight: 400;\">mysql&gt; show tables;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Empty set (0.00 sec)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">mysql&gt; source openfire_mysql.sql;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Query OK, 0 rows affected (0.01 sec)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">etc&#8230;.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">mysql&gt; show tables;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| Tables_in_openfire \u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofExtComponentConf \u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofGroup \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofGroupProp \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofGroupUser \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofID \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofMucAffiliation \u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofMucConversationLog |<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofMucMember \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofMucRoom \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofMucRoomProp \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofMucService \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofMucServiceProp \u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofOffline \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofPresence \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofPrivacyList \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofPrivate \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofProperty \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofPubsubAffiliation \u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofPubsubDefaultConf \u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofPubsubItem \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofPubsubNode \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofPubsubNodeGroups \u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofPubsubNodeJIDs \u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofPubsubSubscription |<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofRemoteServerConf \u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofRoster \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofRosterGroups \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofSASLAuthorized \u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofSecurityAuditLog \u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofUser \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofUserFlag \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofUserProp \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofVCard \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">| ofVersion \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|<\/span><\/p>\n<p><span style=\"font-weight: 400;\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<\/span><\/p>\n<p><span style=\"font-weight: 400;\">34 rows in set (0.00 sec)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">mysql&gt; exit<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Bye<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\"># <\/span><span style=\"font-weight: 400;\">chown daemon:daemon \/opt\/openfire\/conf\/openfire.xml<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># service openfire start<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># chkconfig &#8211;level 235 openfire on<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><b>Install Asterisk<\/b><\/p>\n<p><a href=\"http:\/\/blogs.digium.com\/2012\/11\/05\/how-to-install-asterisk-11-on-centos-6\/\"><span style=\"font-weight: 400;\">http:\/\/blogs.digium.com\/2012\/11\/05\/how-to-install-asterisk-11-on-centos-6\/<\/span><\/a><\/p>\n<p><span style=\"font-weight: 400;\">For this install I am using Asterisk 11.0.0 and will be compiling from source on CentOS 6.3. This tutorial should also work on Fedora and RHEL (Red Hat Enterprise Linux) systems with little or no modification.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">First, you will want to be sure that your server OS is up to date.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">yum update -y<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Disable SELinux by changing \u201cenforcing\u201d to \u201cdisabled\u201d in \/etc\/selinux\/config. Use a text editor or copy and paste this command.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">sed -i s\/SELINUX=enforcing\/SELINUX=disabled\/g \/etc\/selinux\/config<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">After you update and disable SELinux, you\u2019ll need to reboot.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">reboot<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Next, you will want to resolve basic dependencies. (<\/span><a href=\"https:\/\/wiki.asterisk.org\/wiki\/display\/AST\/System+Requirements\"><span style=\"font-weight: 400;\">More information on Asterisk dependencies<\/span><\/a><span style=\"font-weight: 400;\">.)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">yum install -y make wget openssl-devel ncurses-devel \u00a0newt-devel libxml2-devel kernel-devel gcc gcc-c++ sqlite-devel libuuid-devel<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Change into the \/usr\/src\/ directory to store your source code.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">cd \/usr\/src\/<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Download the source tarballs. These commands will get the current release of DAHDI 2.6, libpri 1.4 and Asterisk 11.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">wget http:\/\/downloads.asterisk.org\/pub\/telephony\/dahdi-linux-complete\/dahdi-linux-complete-current.tar.gz<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">wget http:\/\/downloads.asterisk.org\/pub\/telephony\/libpri\/libpri-1.4-current.tar.gz<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">wget http:\/\/downloads.asterisk.org\/pub\/telephony\/asterisk\/asterisk-11-current.tar.gz<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Extract the files from the tarballs.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">tar zxvf dahdi-linux-complete*<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">tar zxvf libpri*<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">tar zxvf asterisk*<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">kernel sources for RHEL<\/span><\/p>\n<p><span style=\"font-weight: 400;\">yum install kernel-devel-`uname -r`<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">For the next set of commands it is important to follow the proper order: DAHDI first, then libpri, then Asterisk.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Install DAHDI.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">cd \/usr\/src\/dahdi-linux-complete*<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">make &amp;&amp; make install &amp;&amp; make config<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Install libpri.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">cd \/usr\/src\/libpri*<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">make &amp;&amp; make install<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Change to the Asterisk directory.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">cd \/usr\/src\/asterisk*<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">In the next step, running the \u201cconfigure\u201d script will vary depending on whether your system is 32-bit or 64-bit. (Watch the video for more details.) When the menuselect command runs, select your options, then choose \u201cSave and Exit\u201d and the install will continue.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Install Development packages for app_mysql use<\/span><\/p>\n<p><span style=\"font-weight: 400;\">yum install mysql-devel<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Install Subversion and MP3 sources<\/span><\/p>\n<p><span style=\"font-weight: 400;\">yum install subversion<\/span><\/p>\n<p><span style=\"font-weight: 400;\">.\/contrib\/scripts\/get_mp3_source.sh<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Use this command if you are installing Asterisk on 32bit CentOS.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">.\/configure &amp;&amp; make menuselect &amp;&amp; make &amp;&amp; make install<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Use this command if you are installing Asterisk on 64bit CentOS.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"> &amp;&amp; make &amp;&amp; make install<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Optional: <\/b><span style=\"font-weight: 400;\">If <\/span><span style=\"font-weight: 400;\">.\/configure &#8211;libdir=\/usr\/lib64 &amp;&amp; make menuselect<\/span><span style=\"font-weight: 400;\">you ran into errors you will want to clean the install directory before recompiling.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">make clean &amp;&amp; make distclean<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Once you have an error-free install, copy the sample files from the configs subdirectory into \/etc\/asterisk.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">make samples<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Then add the Asterisk start script to the \/etc\/init.d\/ directory<\/span><\/p>\n<p><span style=\"font-weight: 400;\">make config<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Start DAHDI.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">service dahdi start<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Start Asterisk.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">service asterisk start<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Connect to the Asterisk CLI.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">asterisk -rvvv<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">And now you have Asterisk 11 running on CentOS 6! If you\u2019d like to continue configuring Asterisk you can check out this <\/span><a href=\"https:\/\/wiki.asterisk.org\/wiki\/display\/AST\/Basic+PBX+Functionality\"><span style=\"font-weight: 400;\">guide to setting up basic pbx functionality<\/span><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><b>ODBC<\/b><\/p>\n<p><span style=\"font-weight: 400;\">yum install unixODBC unixODBC-devel mysql-connector-odbc php-odbc libtool-ltdl libtool-ltdl-devel<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS Install and basic setup &nbsp; Install from CD &nbsp; Install Xentools # mkdir \/media\/cdrom # mount \/dev\/xvdd \/media\/cdrom # \/media\/cdrom\/Linux\/install.sh # reboot &nbsp; Set Hostname # vim \/etc\/sysconfig\/network Edit HOSTNAME= to hostname.domain &nbsp; Enable Network at boot # vi \/etc\/sysconfig\/network-scripts\/ifcfg-eth0 Edit ONBOOT= to yes or # sed -i s\/ONBOOT=no\/ONBOOT=yes\/g \/etc\/sysconfig\/network-scripts\/ifcfg-eth0 &nbsp; #service network restart [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[4,6],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/124"}],"collection":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=124"}],"version-history":[{"count":2,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/124\/revisions"}],"predecessor-version":[{"id":172,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/124\/revisions\/172"}],"wp:attachment":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}