<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Chris Schuld&#039;s Blog &#187; CentOS5</title>
	<atom:link href="http://chrisschuld.com/tag/centos5/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrisschuld.com</link>
	<description>personal musings on the composition of software</description>
	<lastBuildDate>Mon, 30 Aug 2010 03:48:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to install &#8220;dig&#8221;: -bash: /usr/bin/dig: No such file or directory</title>
		<link>http://chrisschuld.com/2008/11/how-to-install-dig-bash-usrbindig-no-such-file-or-directory/</link>
		<comments>http://chrisschuld.com/2008/11/how-to-install-dig-bash-usrbindig-no-such-file-or-directory/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 00:29:58 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[bind]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=179</guid>
		<description><![CDATA[If you are missing the dig command it means you are missing a package called bind-utils.  To install this package use yum to install bind utils: yum install bind-utils Or if you do not have access to yum, maybe from a hosted VPS solution you can grab the RPM packages (this is 100% assuming you [...]]]></description>
			<content:encoded><![CDATA[<p>If you are missing the dig command it means you are missing a package called bind-utils.  To install this package use yum to install bind utils:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> bind-utils</pre></div></div>

<p>Or if you do not have access to yum, maybe from a hosted VPS solution you can grab the RPM packages (this is 100% assuming you are CentOS):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>mirror.centos.org<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">/</span>os<span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>bind-utils-9.3.4-6.P1.el5.i386.rpm</pre></div></div>

<p>Or maybe you want to install the entire bind/named system:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>mirror.centos.org<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">/</span>os<span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>bind-9.3.4-6.P1.el5.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>mirror.centos.org<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">/</span>os<span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>bind-chroot-9.3.4-6.P1.el5.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>mirror.centos.org<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">/</span>os<span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>bind-libs-9.3.4-6.P1.el5.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>mirror.centos.org<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">/</span>os<span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>caching-nameserver-9.3.4-6.P1.el5.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>mirror.centos.org<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">/</span>os<span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>bind-utils-9.3.4-6.P1.el5.i386.rpm</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2008/11/how-to-install-dig-bash-usrbindig-no-such-file-or-directory/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Building an IAXModem-based HylaFax+ server using OpenVZ</title>
		<link>http://chrisschuld.com/2008/11/building-an-iaxmodem-based-hylafax-server-using-openvz/</link>
		<comments>http://chrisschuld.com/2008/11/building-an-iaxmodem-based-hylafax-server-using-openvz/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 03:23:13 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenVZ]]></category>
		<category><![CDATA[hylafax]]></category>
		<category><![CDATA[IAXModem]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=158</guid>
		<description><![CDATA[If you happen to have a Asterisk solution for voice on your network occasionally it is nice to be able to send faxes from your network without the need of a PSTN line at your endpoint. At my company we do this by running a fax server on an OpenVZ VPS on the same subnet [...]]]></description>
			<content:encoded><![CDATA[<p>If you happen to have a Asterisk solution for voice on your network occasionally it is nice to be able to send faxes from your network without the need of a PSTN line at your endpoint.  At my company we do this by running a fax server on an OpenVZ VPS on the same subnet as our Asterisk PBX.  Here is how we build our fax server:</p>
<p>First, we build the OpenVZ VPS with CentOS and add the /dev/ptmx device (your VPS will likely already have this on it):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">vzctl create <span style="color: #000000;">1057</span> <span style="color: #660033;">--ostemplate</span> centos-<span style="color: #000000;">5</span>-i386-default <span style="color: #660033;">--config</span> vps.basic
vzctl <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #000000;">1057</span> <span style="color: #660033;">--hostname</span> fax.aztecsoftware.net <span style="color: #660033;">--save</span>
vzctl <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #000000;">1057</span> <span style="color: #660033;">--ipadd</span> 10.0.0.57 <span style="color: #660033;">--save</span>
vzctl <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #000000;">1057</span> <span style="color: #660033;">--nameserver</span> 10.0.0.15 <span style="color: #660033;">--save</span>
<span style="color: #c20cb9; font-weight: bold;">mknod</span> <span style="color: #660033;">--mode</span> <span style="color: #000000;">666</span> <span style="color: #000000; font-weight: bold;">/</span>vz<span style="color: #000000; font-weight: bold;">/</span>private<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1057</span><span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>ptmx c <span style="color: #000000;">5</span> <span style="color: #000000;">2</span></pre></div></div>

<p><em>(Note: there is a good chance the 98 UNIX device /dev/ptmx is going to already be there from your template &#8212; you can disregard any errors you get during the &#8220;forced&#8221; creation of that device)</em></p>
<p>Next, we start the VPS and enter the VE by running the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">vzctl start <span style="color: #000000;">1057</span>
vzctl enter <span style="color: #000000;">1057</span></pre></div></div>

<p>Next, we start the update and install process via yum and a few RPMs I built for <a href="http://chrisschuld.com/2008/11/updating-ghostscript-on-centos-52-ghostscript-863/">Ghostscript</a>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #660033;">-y</span> update
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> rpm-build <span style="color: #c20cb9; font-weight: bold;">make</span> libtiff-devel zlib-devel <span style="color: #c20cb9; font-weight: bold;">gcc</span> gcc-c++ pam-devel openldap-devel freeglut libjpeg-devel libICE libSM libXt cairo urw-fonts
&nbsp;
rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>chrisschuld.com<span style="color: #000000; font-weight: bold;">/</span>centos52<span style="color: #000000; font-weight: bold;">/</span>jasper-libs-1.900.1-8.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>chrisschuld.com<span style="color: #000000; font-weight: bold;">/</span>centos52<span style="color: #000000; font-weight: bold;">/</span>jasper-1.900.1-8.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>chrisschuld.com<span style="color: #000000; font-weight: bold;">/</span>centos52<span style="color: #000000; font-weight: bold;">/</span>jasper-utils-1.900.1-8.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>chrisschuld.com<span style="color: #000000; font-weight: bold;">/</span>centos52<span style="color: #000000; font-weight: bold;">/</span>jasper-devel-1.900.1-8.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>chrisschuld.com<span style="color: #000000; font-weight: bold;">/</span>centos52<span style="color: #000000; font-weight: bold;">/</span>ghostscript-fonts-<span style="color: #000000;">8.11</span>-1ht.noarch.rpm
rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>chrisschuld.com<span style="color: #000000; font-weight: bold;">/</span>centos52<span style="color: #000000; font-weight: bold;">/</span>ghostscript-<span style="color: #000000;">8.63</span>-1.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>chrisschuld.com<span style="color: #000000; font-weight: bold;">/</span>centos52<span style="color: #000000; font-weight: bold;">/</span>ghostscript-devel-<span style="color: #000000;">8.63</span>-1.i386.rpm
&nbsp;
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>root
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>internap.dl.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>sourceforge<span style="color: #000000; font-weight: bold;">/</span>hylafax<span style="color: #000000; font-weight: bold;">/</span>hylafax-5.2.7-1.src.rpm
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>internap.dl.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>sourceforge<span style="color: #000000; font-weight: bold;">/</span>hylafax<span style="color: #000000; font-weight: bold;">/</span>hylafax.spec
&nbsp;
rpm <span style="color: #660033;">-i</span> hylafax-5.2.7-1.src.rpm
rpmbuild <span style="color: #660033;">-bb</span> hylafax.spec
rpm <span style="color: #660033;">-i</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>redhat<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>hylafax-5.2.7-1.i386.rpm
chkconfig <span style="color: #660033;">--levels</span> <span style="color: #000000;">345</span> hylafax on</pre></div></div>

<p>Now, because we are on Asterisk we&#8217;ll use an IAXModem for our communication device; if you do have access to a &#8220;real&#8221; PSTN by all means use a fax-capable modem and don&#8217;t use the IAXModem because it is not a good 100% solution.  However, here is our IAXModem method:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>root
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>voxel.dl.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>sourceforge<span style="color: #000000; font-weight: bold;">/</span>iaxmodem<span style="color: #000000; font-weight: bold;">/</span>iaxmodem-1.1.1.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xzvf iaxmodem-1.1.1.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> iaxmodem-1.1.1
.<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">cp</span> iaxmodem <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>iaxmodem <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>iaxmodem
<span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>iaxmodem<span style="color: #000000; font-weight: bold;">/</span>iaxmodem
<span style="color: #7a0874; font-weight: bold;">pushd</span> .; <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>iaxmodem
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>chrisschuld.com<span style="color: #000000; font-weight: bold;">/</span>wp-content<span style="color: #000000; font-weight: bold;">/</span>uploads<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2008</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">11</span><span style="color: #000000; font-weight: bold;">/</span>ttyIAX0
<span style="color: #7a0874; font-weight: bold;">popd</span>
<span style="color: #7a0874; font-weight: bold;">pushd</span> .; <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>chrisschuld.com<span style="color: #000000; font-weight: bold;">/</span>wp-content<span style="color: #000000; font-weight: bold;">/</span>uploads<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2008</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">11</span><span style="color: #000000; font-weight: bold;">/</span>iaxmodem
<span style="color: #7a0874; font-weight: bold;">popd</span>
<span style="color: #c20cb9; font-weight: bold;">cp</span> config.ttyIAX <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>spool<span style="color: #000000; font-weight: bold;">/</span>hylafax<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>config.ttyIAX0
&nbsp;
<span style="color: #666666; font-style: italic;">### Add our local configuration differences</span>
<span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>iaxmodem<span style="color: #000000; font-weight: bold;">/</span>ttyIAX0
&nbsp;
<span style="color: #666666; font-style: italic;">### Add our local configuration differences</span>
<span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>spool<span style="color: #000000; font-weight: bold;">/</span>hylafax<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>config.ttyIAX0
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>iaxmodem
chkconfig <span style="color: #660033;">--add</span> iaxmodem
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>iaxmodem
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;iax0:2345:respawn:/usr/sbin/faxgetty ttyIAX0&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>inittab</pre></div></div>

<p>Now, we REBOOT to make sure everything comes up:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">reboot</pre></div></div>

<p>After the VE re-appears we run our fax setup program:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">faxsetup</pre></div></div>

<p>That should do 90% of the work for you &#8212; no you just have to configure the server for your needs!</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2008/11/building-an-iaxmodem-based-hylafax-server-using-openvz/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Updating Ghostscript on CentOS 5.2 (ghostscript 8.63)</title>
		<link>http://chrisschuld.com/2008/11/updating-ghostscript-on-centos-52-ghostscript-863/</link>
		<comments>http://chrisschuld.com/2008/11/updating-ghostscript-on-centos-52-ghostscript-863/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 07:46:10 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=145</guid>
		<description><![CDATA[PLEASE NOTE: I have posted an update for CentOS5.4 and GhostScript 8.70! Today I needed a newer version of ghostscript on my server pool for some back-end processing we do. Updating ghostscript for RHEL5 / CentOS 5.2 turned out to be a pain! I was nearly stucked into RPM hell! **** Warning: An error occurred [...]]]></description>
			<content:encoded><![CDATA[<p><strong>PLEASE NOTE: I have <a href="http://chrisschuld.com/2010/01/updating-ghostscript-on-centos-5-4-ghostscript-8-70/">posted an update for CentOS5.4 and GhostScript 8.70</a>!</strong></p>
<p>Today I needed a newer version of ghostscript on my server pool for some back-end processing we do.  Updating ghostscript for RHEL5 / CentOS 5.2 turned out to be a pain!  I was nearly stucked into <a href="http://www.germane-software.com/~ser/Files/Essays/RPM_Hell.html">RPM hell</a>!</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">   <span style="color: #000000; font-weight: bold;">****</span> Warning:  An error occurred <span style="color: #000000; font-weight: bold;">while</span> reading an XREF table.
   <span style="color: #000000; font-weight: bold;">****</span> The <span style="color: #c20cb9; font-weight: bold;">file</span> has been damaged.  This may have been caused
   <span style="color: #000000; font-weight: bold;">****</span> by a problem <span style="color: #000000; font-weight: bold;">while</span> converting or transfering the file.
   <span style="color: #000000; font-weight: bold;">****</span> Ghostscript will attempt to recover the data.
ERROR: <span style="color: #000000; font-weight: bold;">/</span>undefined <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>BXlevel
Operand stack:
   <span style="color: #000000;">7</span>   <span style="color: #000000;">0</span>   <span style="color: #000000;">1</span>   --dict:<span style="color: #000000;">6</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">6</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ro<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>G<span style="color: #7a0874; font-weight: bold;">&#41;</span>--   obj
Execution stack:
   <span style="color: #000000; font-weight: bold;">%</span>interp_exit   .runexec2   <span style="color: #660033;">--nostringval--</span>   <span style="color: #660033;">--nostringval--</span>   <span style="color: #660033;">--nostringval--</span>   <span style="color: #000000;">2</span>   <span style="color: #000000; font-weight: bold;">%</span>stopped_push   <span style="color: #660033;">--nostringval--</span>   <span style="color: #660033;">--nostringval--</span>   <span style="color: #660033;">--nostringval--</span>   <span style="color: #c20cb9; font-weight: bold;">false</span>   <span style="color: #000000;">1</span>   <span style="color: #000000; font-weight: bold;">%</span>stopped_push   <span style="color: #000000;">1</span>   <span style="color: #000000;">3</span>   <span style="color: #000000; font-weight: bold;">%</span>oparray_pop   <span style="color: #000000;">1</span>   <span style="color: #000000;">3</span>   <span style="color: #000000; font-weight: bold;">%</span>oparray_pop   <span style="color: #000000;">1</span>   <span style="color: #000000;">3</span>   <span style="color: #000000; font-weight: bold;">%</span>oparray_pop   <span style="color: #660033;">--nostringval--</span>   <span style="color: #660033;">--nostringval--</span>   <span style="color: #660033;">--nostringval--</span>   <span style="color: #660033;">--nostringval--</span>   <span style="color: #660033;">--nostringval--</span>   <span style="color: #660033;">--nostringval--</span>   <span style="color: #c20cb9; font-weight: bold;">false</span>   <span style="color: #000000;">1</span>   <span style="color: #000000; font-weight: bold;">%</span>stopped_push   <span style="color: #660033;">--nostringval--</span>   <span style="color: #000000; font-weight: bold;">%</span>loop_continue   <span style="color: #660033;">--nostringval--</span>
Dictionary stack:
   --dict:<span style="color: #000000;">1119</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1686</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ro<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>G<span style="color: #7a0874; font-weight: bold;">&#41;</span>--   --dict:<span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">20</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>G<span style="color: #7a0874; font-weight: bold;">&#41;</span>--   --dict:<span style="color: #000000;">107</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">200</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>L<span style="color: #7a0874; font-weight: bold;">&#41;</span>--   --dict:<span style="color: #000000;">107</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">200</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>L<span style="color: #7a0874; font-weight: bold;">&#41;</span>--   --dict:<span style="color: #000000;">104</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">127</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ro<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>G<span style="color: #7a0874; font-weight: bold;">&#41;</span>--   --dict:<span style="color: #000000;">241</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">347</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ro<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>G<span style="color: #7a0874; font-weight: bold;">&#41;</span>--   --dict:<span style="color: #000000;">18</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">24</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>L<span style="color: #7a0874; font-weight: bold;">&#41;</span>--
Current allocation mode is <span style="color: #7a0874; font-weight: bold;">local</span>
ESP Ghostscript <span style="color: #000000;">815.02</span>: Unrecoverable error, <span style="color: #7a0874; font-weight: bold;">exit</span> code <span style="color: #000000;">1</span></pre></div></div>

<p>A few google-searches later I realized that ghostscript 8.15 is &#8220;<a href="http://www.imdb.com/title/tt0302886/">old school</a>&#8221; and needed a serious update.  I always like to have the latest software (generally speaking) so I was after the latest version to date (version 8.63) to hopefully solve some problems with PDF translation:</p>
<p>First, you&#8217;ll need the jasper libraries which are not available via yum.  You can get them here <em>(i386 32bit only for now)</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">&nbsp;
rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>chrisschuld.com<span style="color: #000000; font-weight: bold;">/</span>centos52<span style="color: #000000; font-weight: bold;">/</span>jasper-libs-1.900.1-8.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>chrisschuld.com<span style="color: #000000; font-weight: bold;">/</span>centos52<span style="color: #000000; font-weight: bold;">/</span>jasper-1.900.1-8.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>chrisschuld.com<span style="color: #000000; font-weight: bold;">/</span>centos52<span style="color: #000000; font-weight: bold;">/</span>jasper-utils-1.900.1-8.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>chrisschuld.com<span style="color: #000000; font-weight: bold;">/</span>centos52<span style="color: #000000; font-weight: bold;">/</span>jasper-devel-1.900.1-8.i386.rpm</pre></div></div>

<p>Next, here are the RPMs for RHEL5/CentOS5.2 for Ghostscript <em>(i386 32bit only for now)</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">&nbsp;
rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>chrisschuld.com<span style="color: #000000; font-weight: bold;">/</span>centos52<span style="color: #000000; font-weight: bold;">/</span>ghostscript-<span style="color: #000000;">8.63</span>-1.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>chrisschuld.com<span style="color: #000000; font-weight: bold;">/</span>centos52<span style="color: #000000; font-weight: bold;">/</span>ghostscript-devel-<span style="color: #000000;">8.63</span>-1.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>chrisschuld.com<span style="color: #000000; font-weight: bold;">/</span>centos52<span style="color: #000000; font-weight: bold;">/</span>ghostscript-gtk-<span style="color: #000000;">8.63</span>-1.i386.rpm</pre></div></div>

<p><strong>*** Problem solved!</strong></p>
<p><strong>PLEASE NOTE: I have <a href="http://chrisschuld.com/2010/01/updating-ghostscript-on-centos-5-4-ghostscript-8-70/">posted an update for CentOS5.4 and GhostScript 8.70</a>!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2008/11/updating-ghostscript-on-centos-52-ghostscript-863/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Installing PBX in a Flash (PIAF) on an OpenVZ VPS</title>
		<link>http://chrisschuld.com/2008/11/installing-pbx-in-a-flash-piaf-on-an-openvz-vps/</link>
		<comments>http://chrisschuld.com/2008/11/installing-pbx-in-a-flash-piaf-on-an-openvz-vps/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 08:28:38 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenVZ]]></category>
		<category><![CDATA[PBX in a Flash]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=137</guid>
		<description><![CDATA[After digging through the Internet looking for a solution to install PBX in a Flash on an OpenVZ VPS and coming out empty handed I decided to dissect the installation myself and I came up with the following method for installing the PBX system on an OpenVZ VPS. Now, that being said I could not [...]]]></description>
			<content:encoded><![CDATA[<p>After digging through the Internet looking for a solution to install <a href="http://pbxinaflash.net/">PBX in a Flash</a> on an <a href="http://wiki.openvz.org">OpenVZ</a> VPS and coming out empty handed I decided to dissect the installation myself and I came up with the following method for installing the PBX system on an OpenVZ VPS.  Now, that being said I could not find another &#8220;working&#8221; solution so this may not be the &#8220;best&#8221; method but it is repeatable and does work.  I have a PBX running off this installation currently.</p>
<p>In this example I am going to assume the VPS is VEID 1024 whose IP address will be 10.0.0.24, running on a 10.0.0.0/24 network NAT&#8217;ed behind a router with a name server located at 10.0.0.10.</p>
<p>I am also going to assume you have <a href="http://wiki.openvz.org">OpenVZ</a> installed, if you don&#8217;t visit here: <a href="http://www.howtoforge.com/installing-and-using-openvz-on-centos5.2">http://www.howtoforge.com/installing-and-using-openvz-on-centos5.2</a></p>
<p>First, you have to create the OpenVZ VPS container using a CentOS 5 template:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>vz<span style="color: #000000; font-weight: bold;">/</span>template<span style="color: #000000; font-weight: bold;">/</span>cache
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>download.openvz.org<span style="color: #000000; font-weight: bold;">/</span>template<span style="color: #000000; font-weight: bold;">/</span>precreated<span style="color: #000000; font-weight: bold;">/</span>contrib<span style="color: #000000; font-weight: bold;">/</span>centos-<span style="color: #000000;">5</span>-i386-default.tar.gz
vzctl create <span style="color: #000000;">1024</span> <span style="color: #660033;">--ostemplate</span> centos-<span style="color: #000000;">5</span>-i386-default <span style="color: #660033;">--config</span> vps.basic
vzctl <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #000000;">1024</span> <span style="color: #660033;">--onboot</span> <span style="color: #c20cb9; font-weight: bold;">yes</span> <span style="color: #660033;">--save</span>
vzctl <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #000000;">1024</span> <span style="color: #660033;">--hostname</span> pbx.mycompany.net <span style="color: #660033;">--save</span>
vzctl <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #000000;">1024</span> <span style="color: #660033;">--ipadd</span> 10.0.0.24 <span style="color: #660033;">--save</span>
vzctl <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #000000;">1024</span> <span style="color: #660033;">--nameserver</span> 10.0.0.10 <span style="color: #660033;">--save</span>
vzctl <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #000000;">1024</span> <span style="color: #660033;">--devices</span> c:<span style="color: #000000;">4</span>:<span style="color: #000000;">9</span>:rw <span style="color: #660033;">--save</span>
vzctl start <span style="color: #000000;">1024</span>
vzctl enter <span style="color: #000000;">1024</span></pre></div></div>

<p><strong>NOTE:</strong> you will need access to 13 RPM files from the ISO version of PBX in a Flash so grab the CD so you can get access to the following files:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">c-ares-1.3.2-1.i386.rpm
ez-ipupdate-3.0.11b8-3.i386.rpm
flite-<span style="color: #000000;">1.3</span>-8.fc7.i386.rpm
flite-devel-<span style="color: #000000;">1.3</span>-8.fc7.i386.rpm
iksemel-<span style="color: #000000;">1.2</span>-13.i386.rpm
ircd-hybrid-7.2.1-1.i386.rpm
jpackage-utils-1.7.3-1jpp.2.el5.noarch.rpm
lame-<span style="color: #000000;">3.97</span>-1.fc6.rf.i386.rpm
lha-1.14i-17.i386.rpm
piafdl-<span style="color: #000000;">0.1</span>-1.noarch.rpm
piafxtras-<span style="color: #000000;">0.1</span>-1.noarch.rpm
shared-mime-info-<span style="color: #000000;">0.19</span>-5.el5.i386.rpm
MySQL-shared-compat-5.0.41-0.rhel4.i386.rpm</pre></div></div>

<p>I looked to find them all online but could not (<em>if anyone knows if they are available please let me know and I will update the site</em>); otherwise I would simply provide the URLs to each file.</p>
<p>Inside of the &#8220;fresh&#8221; VE I update the root password, copy the RPMs from the CD (see above) and the system using yum:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">passwd</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #666666; font-style: italic;">#mount the CD here or SCP the files from the CD (or many other options -- but put the 13 RPMs in /root/piaf/pbx/)</span>
<span style="color: #c20cb9; font-weight: bold;">scp</span> <span style="color: #660033;">-r</span> root<span style="color: #000000; font-weight: bold;">@</span>SOME_SYSTEM_WITH_CD_MOUNTED:<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>cdrom<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/*</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>
yum <span style="color: #660033;">-y</span> update</pre></div></div>

<p>Next, I add all of the packages necessary for PBX in a Flash.  This list comes from the <a href="http://pbxinaflash.net/downloads/">ISO CD</a> and the packages that are included across the board for the PBX in a Flash for all cases; I know that it is <strong>NOT</strong> necessary to have all of these packages; however; I just needed the PBX to work and by adding all of the packages ensures you will have every component for the initial instalation!</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> GConf2 MAKEDEV NetworkManager ORBit2 OpenIPMI OpenIPMI-libs SysVinit acpid alsa-lib alsa-utils amtu anaconda anaconda-runtime anacron apmd apr apr-util arts aspell aspell-en at atk attr audiofile audiofile-devel audit audit-libs audit-libs-python authconfig authconfig-gtk <span style="color: #c20cb9; font-weight: bold;">autoconf</span> autofs <span style="color: #c20cb9; font-weight: bold;">automake</span> avahi avahi-glib avahi-qt3 basesystem <span style="color: #c20cb9; font-weight: bold;">bash</span> <span style="color: #c20cb9; font-weight: bold;">bc</span> beecrypt <span style="color: #7a0874; font-weight: bold;">bind</span> bind-libs bind-utils binutils <span style="color: #c20cb9; font-weight: bold;">bison</span> bluez-gnome bluez-libs bluez-utils booty busybox-anaconda <span style="color: #c20cb9; font-weight: bold;">bzip2</span> bzip2-libs c-ares cairo ccid cdparanoia-libs centos-release centos-release-notes chkconfig chkfontpath comps-extras conman coolkey coreutils <span style="color: #c20cb9; font-weight: bold;">cpio</span> <span style="color: #c20cb9; font-weight: bold;">cpp</span> cpuspeed cracklib cracklib-dicts crash createrepo crontabs cryptsetup-luks cups cups-libs curl curl-devel <span style="color: #c20cb9; font-weight: bold;">cvs</span> cyrus-sasl cyrus-sasl-lib cyrus-sasl-plain db4 dbus dbus-glib dbus-python dejavu-lgc-fonts desktop-backgrounds-basic desktop-file-utils device-mapper device-mapper-multipath dhcdbd dhclient dhcp dhcpv6-client diffutils dmidecode dmraid dos2unix dosfstools dump
&nbsp;
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> e2fsprogs e2fsprogs-devel e2fsprogs-libs <span style="color: #c20cb9; font-weight: bold;">ed</span> eject elfutils elfutils-libelf elfutils-libs esound ethtool exim expat <span style="color: #c20cb9; font-weight: bold;">fbset</span> <span style="color: #c20cb9; font-weight: bold;">file</span> filesystem findutils finger firstboot firstboot-tui <span style="color: #c20cb9; font-weight: bold;">flex</span> fontconfig freetype <span style="color: #c20cb9; font-weight: bold;">ftp</span> gamin gamin-devel gamin-python <span style="color: #c20cb9; font-weight: bold;">gawk</span> <span style="color: #c20cb9; font-weight: bold;">gcc</span> gcc-c++ gd gdbm <span style="color: #c20cb9; font-weight: bold;">gettext</span> glib2 glib2-devel glibc glibc-common glibc-devel glibc-headers gmp gnome-keyring gnome-mime-data gnome-mount gnome-python2 gnome-python2-bonobo gnome-python2-canvas gnome-python2-gconf gnome-python2-gnomevfs gnome-vfs2 gnupg gnutls gnutls-utils gpm <span style="color: #c20cb9; font-weight: bold;">grep</span> groff grub gtk2 gtk2-devel gtk2-engines <span style="color: #c20cb9; font-weight: bold;">gzip</span> hal hesiod hicolor-icon-theme htdig htmlview httpd hwdata ibmasm ifd-egate imake info initscripts iproute ipsec-tools iptables iptables-ipv6 iptstate iputils irda-utils irqbalance isdn4k-utils
&nbsp;
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> joe jpackage-utils jwhois kbd kdelibs kdnssd-avahi kernel kernel-devel kernel-headers keyutils keyutils-libs keyutils-libs-devel kpartx krb5-devel krb5-libs krb5-workstation ksh kudzu lcms <span style="color: #c20cb9; font-weight: bold;">less</span> lftp libFS libICE libIDL libSM libX11 libXScrnSaver libXTrap libXau libXaw libXcomposite libXcursor libXdamage libXdmcp libXext libXfixes libXfont libXfontcache libXft libXi libXinerama libXmu libXpm libXrandr libXrender libXres libXt libXtst libXv libXxf86dga libXxf86misc libXxf86vm libacl libaio libart_lgpl libattr libbdevid-python libbonobo libbonoboui libc-client libcap libdaemon libdhcp libdhcp4client libdhcp6client libdmx libdrm libevent libfontenc libgcc libgcrypt libgcrypt-devel libglade2 libgnome libgnomecanvas libgnomeui libgomp libgpg-error libgpg-error-devel libgssapi libidn libidn-devel libjpeg libmng libnl libnotify libogg libpcap libpng libraw1394 libselinux libselinux-devel libselinux-python libsemanage libsepol libsepol-devel libstdc++ libstdc++-devel libsysfs libtermcap libtermcap-devel libtiff libtiff-devel libtool-ltdl libtool-ltdl-devel libusb libusb-devel libuser libutempter libvolume_id libvorbis libwnck libwvstreams libxkbfile libxml2 libxml2-devel libxml2-python libxslt lksctp-tools lm_sensors logrotate logwatch lsof lvm2
&nbsp;
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> m2crypto <span style="color: #c20cb9; font-weight: bold;">m4</span> mailcap mailx <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">man</span> man-pages mc mcstrans mdadm mesa-libGL mesa-libGLU metacity mgetty microcode_ctl mingetty mkbootdisk mkinitrd mkisofs <span style="color: #c20cb9; font-weight: bold;">mktemp</span> mlocate mod_perl module-init-tools mtools mtr mysql mysql-devel mysql-server <span style="color: #c20cb9; font-weight: bold;">nano</span> nash nc ncurses ncurses-devel neon net-snmp net-snmp-libs net-tools netpbm netpbm-progs newt newt-devel nfs-utils-lib <span style="color: #c20cb9; font-weight: bold;">nmap</span> notification-daemon notify-python nscd nspr nss nss-tools nss_db nss_ldap ntp ntsysv numactl oddjob oddjob openjade openldap opensp openssh openssh-clients openssh-server openssl openssl-devel
&nbsp;
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> pam pam_ccreds pam_krb5 pam_passwdqc pam_pkcs11 pam_smb pango pango-devel paps parted <span style="color: #c20cb9; font-weight: bold;">passwd</span> <span style="color: #c20cb9; font-weight: bold;">patch</span> pax pciutils pcmciautils pcre pcsc-lite pcsc-lite-libs <span style="color: #c20cb9; font-weight: bold;">perl</span> perl-Archive-Tar perl-Archive-Zip perl-BSD-Resource perl-Bit-Vector perl-Carp-Clan perl-Compress-Zlib perl-Convert-ASN1 perl-Crypt-SSLeay perl-DBD-MySQL perl-DBD-Pg perl-DBI perl-Date-Calc perl-DateManip perl-Digest-HMAC perl-Digest-SHA1 perl-HTML-Parser perl-HTML-Tagset perl-IO-Socket-INET6 perl-IO-Socket-SSL perl-IO-String perl-IO-Zlib perl-LDAP perl-NKF perl-Net-DNS perl-Net-IP perl-Net-SSLeay perl-Net-Telnet perl-SGMLSpm perl-Socket6 perl-String-CRC32 perl-URI perl-XML-Dumper perl-XML-Grove perl-XML-LibXML perl-XML-LibXML-Common perl-XML-NamespaceSupport perl-XML-Parser perl-XML-SAX perl-XML-Simple perl-XML-Twig perl-libwww-perl perl-libxml-perl perl-suidperl
&nbsp;
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php php-cli php-common php-gd php-imap php-mbstring php-mysql php-pdo php-pear php-pear-DB pinfo pirut pkgconfig pkinit-nss pm-utils policycoreutils popt portmap postfix postgresql-libs ppp prelink <span style="color: #c20cb9; font-weight: bold;">procmail</span> procps psacct psmisc pycairo pygobject2 pygtk2 pygtk2 pykickstart pyorbit pyparted python python-elementtree python-numeric python-pyblock python-sqlite python-urlgrabber pyxf86config qt quota rdate rdist readahead readline redhat-artwork redhat-logos redhat-lsb redhat-menus redhat-rpm-config rhpl rhpxl rmt rng-utils rp-pppoe rpm rpm-build rpm-libs rpm-python <span style="color: #c20cb9; font-weight: bold;">rsh</span> rsync ruby ruby-libs samba samba-common <span style="color: #c20cb9; font-weight: bold;">screen</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> selinux-policy selinux-policy-targeted
&nbsp;
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">sendmail</span> sendmail-cf setarch setup setuptool sgml-common shadow-utils slang slang-devel smartmontools sos <span style="color: #c20cb9; font-weight: bold;">sox</span> specspo speex sqlite squashfs-tools startup-notification stunnel subversion <span style="color: #c20cb9; font-weight: bold;">sudo</span> symlinks sysfsutils sysklogd syslinux system-config-date system-config-display system-config-keyboard system-config-kickstart system-config-language system-config-network system-config-network system-config-securitylevel system-config-securitylevel-tui system-config-soundcard system-config-users talk <span style="color: #c20cb9; font-weight: bold;">tar</span> tcp_wrappers tcpdump tcsh telnet termcap tftp-server <span style="color: #000000; font-weight: bold;">time</span> tmpwatch traceroute <span style="color: #c20cb9; font-weight: bold;">tree</span> ttmkfdir tzdata udev unix2dos unixODBC <span style="color: #c20cb9; font-weight: bold;">unzip</span> usbutils usermode usermode util-linux</pre></div></div>

<p>Next, I install the other RPM files from the disk:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>c-ares-1.3.2-1.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>ez-ipupdate-3.0.11b8-3.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>flite-<span style="color: #000000;">1.3</span>-8.fc7.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>flite-devel-<span style="color: #000000;">1.3</span>-8.fc7.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>iksemel-<span style="color: #000000;">1.2</span>-13.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>ircd-hybrid-7.2.1-1.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>jpackage-utils-1.7.3-1jpp.2.el5.noarch.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>lame-<span style="color: #000000;">3.97</span>-1.fc6.rf.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>lha-1.14i-17.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>piafdl-<span style="color: #000000;">0.1</span>-1.noarch.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>piafxtras-<span style="color: #000000;">0.1</span>-1.noarch.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>shared-mime-info-<span style="color: #000000;">0.19</span>-5.el5.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>MySQL-shared-compat-5.0.41-0.rhel4.i386.rpm</pre></div></div>

<p>Ok, we are ready to install the PBX software now, finally, run this command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>piafdl <span style="color: #000000;">14</span></pre></div></div>

<p>The script will ask you if you would like to use option A (to download the PBX load file from the web site; select that option and the PBX load file will download).  The installer will run for a while and will reboot your VPS when the installation is finished.</p>
<p>When the system comes back online add your external IP and local network information into the SIP configuration information in the /etc/asterisk/ folder:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>asterisk<span style="color: #000000; font-weight: bold;">/</span>sip_general_custom.conf</pre></div></div>

<p>Add these lines to the file where XXX.XXX.XXX.XXX is your public WAN IP address</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">externip</span>=XXX.XXX.XXX.XXX
<span style="color: #007800;">localnet</span>=10.0.0.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">24</span></pre></div></div>

<p>Now, restart Asterisk:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>amportal restart</pre></div></div>

<p>Next, browse to your VPS&#8217;s WAN IP address (or URL if you have one) and you should see the FreePBX admin center.</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2008/11/installing-pbx-in-a-flash-piaf-on-an-openvz-vps/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
