Difference between revisions of "Installing Trixbox 2.0 in CentOS VE"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
m (formating)
m (Reverted edits by 122.49.210.50 (Talk) to last version by Kir)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
 
Here is what I did to installed Trixbox 2.0 in a CentOS VE.  I found quite a bit of information scattered over the web and even one in the OpenVZ Forum.  Note that my installation doesn't use any hardware such as Zaptel.  I still see a warning about "can't load zaptel", but I have still been able to use my VEs.  Yes, I have installed several of these.
 
Here is what I did to installed Trixbox 2.0 in a CentOS VE.  I found quite a bit of information scattered over the web and even one in the OpenVZ Forum.  Note that my installation doesn't use any hardware such as Zaptel.  I still see a warning about "can't load zaptel", but I have still been able to use my VEs.  Yes, I have installed several of these.
 +
 +
'''Alternatively''', there is a precreated VE template with Trixbox already created: http://www.justinshipley.com/trixbox-200-pre-installed-template-added/
  
 
== Basic Steps ==
 
== Basic Steps ==
Line 17: Line 19:
 
== Detailed Steps ==
 
== Detailed Steps ==
 
# Create VE from CentOS Template.
 
# Create VE from CentOS Template.
#* eg. vzctl create 204 --ostemplate centos-4-i386-default --config vps-basic
+
#* eg.  
 +
vzctl create 204 --ostemplate centos-4-i386-default --config vps-basic
 +
--You will need to create a template using the tools (vzpkgcache -f)
 +
eg.
 +
vzsplit -n 25 -f NAME<
 +
This creates stats for 25 virtual servers all sharing equal resources.
 +
 
 +
--Also set an ip and nameserver using the following:
 +
vzctl set 204 --ipadd XXX.XXX.XXX.XXX --save
 +
vzctl set 101 --nameserver XXX.XXX.XXX.XXX --save
 
# Add character device /dev/tty9 to VE
 
# Add character device /dev/tty9 to VE
#* eg. vzctl set 204 --devices c:4:9:rw --save
+
#* eg.
 +
vzctl set 204 --devices c:4:9:rw --save
 
#* NOTE: If you are using zaptel or capi, then you will need to add those devices to the VE.  One of the links in the resource section will show you how to do this.
 
#* NOTE: If you are using zaptel or capi, then you will need to add those devices to the VE.  One of the links in the resource section will show you how to do this.
 
# Install rpmforge & apt
 
# Install rpmforge & apt
 
#* You may check for the most recent release of rpmforge and apt.
 
#* You may check for the most recent release of rpmforge and apt.
## Intall RPMFORGE
+
## Install RPMFORGE
#* SITE="http://dag.wieers.com/packages/rpmforge-release/"
+
SITE="http://dag.wieers.com/packages/rpmforge-release/"
#* rpm -Uvh ${SITE}/rpmforge-release-0.3.6-1.el4.rf.i386.rpm  
+
rpm -Uvh ${SITE}/rpmforge-release-0.3.6-1.el4.rf.i386.rpm  
 
## Install APT
 
## Install APT
##* STIE="http://dag.wieers.com/packages/apt/"
+
SITE="http://dag.wieers.com/packages/apt/"
##* rpm -Uvh ${SITE}/apt-0.5.15lorg3.2-1.el4.rf.i386.rpm  
+
rpm -Uvh ${SITE}/apt-0.5.15lorg3.2-1.el4.rf.i386.rpm  
 
# Add DAG repository for yum
 
# Add DAG repository for yum
#* wget http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
+
wget http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
#* rpm --import RPM-GPG-KEY.dag.txt
+
rpm --import RPM-GPG-KEY.dag.txt
#* mkdir -p /etc/yum.repos.d
+
mkdir -p /etc/yum.repos.d
 
#* Create a file /etc/yum.repos.d/dag.repo, with:
 
#* Create a file /etc/yum.repos.d/dag.repo, with:
#*:  [dag]
+
  [dag]
#*:  name=Dag RPM Repository for Red ht Enterprise Linux
+
  name=Dag RPM Repository for Red ht Enterprise Linux
#*:  baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
+
  baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
#*:  gpgcheck=1
+
  gpgcheck=1
#*:  enabled=1
+
  enabled=1
 
# Install yum
 
# Install yum
 
## Try installing yum via apt-get
 
## Try installing yum via apt-get
##* apt-get update
+
apt-get update
##* apt-get install yum
+
apt-get install yum
 
## If that failed, then try doing the easy way. :)
 
## If that failed, then try doing the easy way. :)
 
##: Install a newer rpm (rpm-4.3.3-18_nonptl.i386.rpm) which you can find in Google.
 
##: Install a newer rpm (rpm-4.3.3-18_nonptl.i386.rpm) which you can find in Google.
##* rpm -Uvh rpm-4.3.3-18_nonptl.i386.rpm
+
rpm -Uvh rpm-4.3.3-18_nonptl.i386.rpm
##* rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4
+
rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4
##* SITE=http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS
+
SITE=http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS
##*: rpm -Uvh ${SITE}/yum-2.4.3-1.c4.noarch.rpm ${SITE}/libxml2-python-2.6.16-6.i386.rpm ${SITE}/python-elementtree-1.2.6-4.2.1.i386.rpm  ${SITE}/python-sqlite-1.1.7-1.2.i386.rpm  ${SITE}/rpm-python-4.3.3-18_nonptl.i386.rpm  ${SITE}/python-urlgrabber-2.9.8-2.noarch.rpm ${SITE}/centos-release-4-4.2.i386.rpm ${SITE}/sqlite-3.3.3-1.2.i386.rpm
+
rpm -Uvh ${SITE}/yum-2.4.3-1.c4.noarch.rpm ${SITE}/libxml2-python-2.6.16-6.i386.rpm \
##*: NOTE: the whole thing is just one long command, use '\' to break it up.
+
  ${SITE}/python-elementtree-1.2.6-4.2.1.i386.rpm  ${SITE}/python-sqlite-1.1.7-1.2.i386.rpm \
 +
   ${SITE}/rpm-python-4.3.3-18_nonptl.i386.rpm  ${SITE}/python-urlgrabber-2.9.8-2.noarch.rpm \
 +
  ${SITE}/centos-release-4-4.2.i386.rpm ${SITE}/sqlite-3.3.3-1.2.i386.rpm
 +
 
 +
--Note You may need to download and install (rpm -Uvh) dependencies before you can get Yum to work. The dependencies will be listed in the error messages if the install doesnt complete correctly. Wget dependencies from here: http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/
 +
 
 +
 
 
# Install speex and libspeex-devel
 
# Install speex and libspeex-devel
#* rpm -Uvh ${SITE}/speex-1.0.4-4.i386.rpm ${SITE}/speex-devel-1.0.4-4.i386.rpm
+
  rpm -Uvh ${SITE}/speex-1.0.4-4.i386.rpm ${SITE}/speex-devel-1.0.4-4.i386.rpm
 +
-Note You may need to download and install (rpm -Uvh) dependencies before you can get Speex to work (Mainly LibOOG and LibOOG-devel). The dependencies will be listed in the error messages if the install doesnt complete correctly. Wget dependencies from here: http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/
 +
 
 
# Download [http://www.trixbox.org Trixbox 2.0] tar.gz file (not ISO) and extract to /var/trixbox_load
 
# Download [http://www.trixbox.org Trixbox 2.0] tar.gz file (not ISO) and extract to /var/trixbox_load
 
# Change to /var/trixbox_load
 
# Change to /var/trixbox_load
#* mkdir /var/trixbox_load
+
mkdir /var/trixbox_load
#* tar zxf trixbox-2.0.tar.gz -C /var/trixbox_load/
+
tar zxf trixbox-2.0.tar.gz -C /var/trixbox_load/
 
#  Run install.sh script
 
#  Run install.sh script
 
## I find that I need to run this script several time, 2 or 3, and that it is best to reboot before running the first time.
 
## I find that I need to run this script several time, 2 or 3, and that it is best to reboot before running the first time.
##* cd /var/trixbox_load/
+
cd /var/trixbox_load/
##* ./install.sh
+
./install.sh
 +
 
 +
revisions made by Fiberhaus
 +
 
 +
== External links ==
 +
Links where I got my info:
  
== Resources - Links where I got my info. ==
+
* http://www.trixbox.org/modules/newbb/viewtopic.php?topic_id=7992&forum=1
# http://www.trixbox.org/modules/newbb/viewtopic.php?topic_id=7992&forum=1
+
* http://www.trixbox.org/modules/newbb/viewtopic.php?viewmode=thread&topic_id=4622&forum=2&post_id=33831#33831
# http://www.trixbox.org/modules/newbb/viewtopic.php?viewmode=thread&topic_id=4622&forum=2&post_id=33831#33831
+
* http://helpdesk.peoplehost.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=45&nav=0,6
# http://helpdesk.peoplehost.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=45&nav=0,6
+
* http://wiki.garylaw.net/doku.php?id=technical:unix:linux:yum
# http://wiki.garylaw.net/doku.php?id=technical:unix:linux:yum
+
* http://rpm.pbone.net/index.php3 (use this to find any rpm)
# http://rpm.pbone.net/index.php3 (use this to find any rpm)
+
* http://www.trixbox.org/modules/newbb/viewtopic.php?topic_id=8352&forum=1&viewmode=flat&order=ASC&start=10&
# http://www.trixbox.org/modules/newbb/viewtopic.php?topic_id=8352&forum=1&viewmode=flat&order=ASC&start=10&
+
* http://www.eukhost.com/forums/showthread.php?t=837 (how to create zaptel & capi devices for your VE)
# http://www.eukhost.com/forums/showthread.php?t=837 (how to create zaptel & capi devices for your VE)
 
  
 
[[Category:HOWTO]]
 
[[Category:HOWTO]]

Latest revision as of 09:11, 15 January 2010

Introduction[edit]

Here is what I did to installed Trixbox 2.0 in a CentOS VE. I found quite a bit of information scattered over the web and even one in the OpenVZ Forum. Note that my installation doesn't use any hardware such as Zaptel. I still see a warning about "can't load zaptel", but I have still been able to use my VEs. Yes, I have installed several of these.

Alternatively, there is a precreated VE template with Trixbox already created: http://www.justinshipley.com/trixbox-200-pre-installed-template-added/

Basic Steps[edit]

Here are the basic steps with details later:

  1. Create VE from CentOS Template.
  2. Add character device /dev/tty9 to VE
  3. Install rpmforge & apt
  4. Add DAG repository
  5. Install yum
  6. Install speex and libspeex-devel
  7. Download Trixbox 2.0 tar.gz file (not ISO) and extract to /var/trixbox_load
  8. Change to /var/trixbox_load and run install.sh script
  NOTE: You may need to run the script several times.  Just seems like YUM doesn't 
        install all the packages at the same time.  I am not sure what's up here.

Detailed Steps[edit]

  1. Create VE from CentOS Template.
    • eg.
vzctl create 204 --ostemplate centos-4-i386-default --config vps-basic

--You will need to create a template using the tools (vzpkgcache -f) eg.

vzsplit -n 25 -f NAME<

This creates stats for 25 virtual servers all sharing equal resources.

--Also set an ip and nameserver using the following:

vzctl set 204 --ipadd XXX.XXX.XXX.XXX --save
vzctl set 101 --nameserver XXX.XXX.XXX.XXX --save
  1. Add character device /dev/tty9 to VE
    • eg.
vzctl set 204 --devices c:4:9:rw --save
    • NOTE: If you are using zaptel or capi, then you will need to add those devices to the VE. One of the links in the resource section will show you how to do this.
  1. Install rpmforge & apt
    • You may check for the most recent release of rpmforge and apt.
    1. Install RPMFORGE
SITE="http://dag.wieers.com/packages/rpmforge-release/"
rpm -Uvh ${SITE}/rpmforge-release-0.3.6-1.el4.rf.i386.rpm 
    1. Install APT
SITE="http://dag.wieers.com/packages/apt/"
rpm -Uvh ${SITE}/apt-0.5.15lorg3.2-1.el4.rf.i386.rpm 
  1. Add DAG repository for yum
wget http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
rpm --import RPM-GPG-KEY.dag.txt
mkdir -p /etc/yum.repos.d
    • Create a file /etc/yum.repos.d/dag.repo, with:
  [dag]
  name=Dag RPM Repository for Red ht Enterprise Linux
  baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
  gpgcheck=1
  enabled=1
  1. Install yum
    1. Try installing yum via apt-get
apt-get update
apt-get install yum
    1. If that failed, then try doing the easy way. :)
      Install a newer rpm (rpm-4.3.3-18_nonptl.i386.rpm) which you can find in Google.
rpm -Uvh rpm-4.3.3-18_nonptl.i386.rpm
rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4
SITE=http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS
rpm -Uvh ${SITE}/yum-2.4.3-1.c4.noarch.rpm ${SITE}/libxml2-python-2.6.16-6.i386.rpm \
 ${SITE}/python-elementtree-1.2.6-4.2.1.i386.rpm  ${SITE}/python-sqlite-1.1.7-1.2.i386.rpm \
 ${SITE}/rpm-python-4.3.3-18_nonptl.i386.rpm  ${SITE}/python-urlgrabber-2.9.8-2.noarch.rpm \
 ${SITE}/centos-release-4-4.2.i386.rpm ${SITE}/sqlite-3.3.3-1.2.i386.rpm

--Note You may need to download and install (rpm -Uvh) dependencies before you can get Yum to work. The dependencies will be listed in the error messages if the install doesnt complete correctly. Wget dependencies from here: http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/


  1. Install speex and libspeex-devel
 rpm -Uvh ${SITE}/speex-1.0.4-4.i386.rpm ${SITE}/speex-devel-1.0.4-4.i386.rpm

-Note You may need to download and install (rpm -Uvh) dependencies before you can get Speex to work (Mainly LibOOG and LibOOG-devel). The dependencies will be listed in the error messages if the install doesnt complete correctly. Wget dependencies from here: http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/

  1. Download Trixbox 2.0 tar.gz file (not ISO) and extract to /var/trixbox_load
  2. Change to /var/trixbox_load
mkdir /var/trixbox_load
tar zxf trixbox-2.0.tar.gz -C /var/trixbox_load/
  1. Run install.sh script
    1. I find that I need to run this script several time, 2 or 3, and that it is best to reboot before running the first time.
cd /var/trixbox_load/
./install.sh

revisions made by Fiberhaus

External links[edit]

Links where I got my info: