Category: Linux

SIP: Kamilio on Centos7

SIP: Kamilio on Centos7

Quick guide from my old notebooks to deploy Kamilio on a Centos 7 Box with minimal configuration

– Disable SELinux
Install base packages
– yum -y groupinstall Base
Perform server update
– yum -y update
Install Extra Packages for Enterprise Linux
– yum -y install epel-release
Install Database Service
– yum install mariadb-server mariadb php php-mysql php-gd php-curl
Configure Database Service to Start on Boot
– systemctl start mariadb
– systemctl enable mariadb
Check database service is now running
– systemctl status mariadb
Configure Database Root Password
– mysql_secure_installation
Add Kamailio’s Repo
– nano /etc/yum.repos.d/kamailio.repo
[kamailio]
name=RPMs for Kamailio on CentOS 7
type=rpm-md
baseurl=http://rpm.kamailio.org/stable/CentOS_7/
gpgcheck=1
gpgkey=http://rpm.kamailio.org/stable/CentOS_7/repodata/repomd.xml.key
enabled=1
Do system update
– yum update
Install Kamailio Packages
– yum install -y kamailio kamailio-ldap kamailio-mysql kamailio-postgres kamailio-debuginfo kamailio-xmpp kamailio-unixodbc kamailio-utils kamailio-tls kamailio-outbound kamailio-gzcompress kamailio-presence
Configure Kamailio to use the local mySQL Instance
– nano /etc/kamailio/kamctlrc
DBENGINE variable is set to MySQL. Remove the pound symbol to uncomment it.
Create Database for Kamilio
– kamdbctl create
Enter Y for each question
Edit /etc/kamailio/kamailio.cfg to configure Kamailio
– nano /etc/kamailio/kamailio.cfg
Add the following lines just below #!KAMAILIO.
#!define WITH_MYSQL
#!define WITH_TLS
#!define WITH_AUTH
#!define WITH_USRLOCDB
#!define WITH_NAT
#!define WITH_PRESENCE
#!define WITH_ACCDB
Start Kamailio Service
– service kamailio start
Configure Kamailio service to start on boot
– systemctl enable kamailio
You are now up and running

Advertisements
Debian: Jessie Workstation Build

Debian: Jessie Workstation Build

A Quick guide on how I build my workstation environment using Debian Linux. Firstly I always use minimal installation the reason for this is to make the installation of Debian as small as possible and add applications and packages as I need them.

Selected Utilities in Debian Installer

basedebianinstall

Update Your Debian Installation

apt-get update -y && apt-get upgrade -y

Install Open VM Tools (Optional)

apt-get install -y open-vm-tools

Install SSH Client

apt-get install -y ssh

Install X Windows

apt-get install -y <code>apt-get install xserver-xorg xinit<strong>
</strong></code>

Install Cinnamon

apt-get install -y cinnamon <code>lightdm
</code>

Install Gnome Terminal

apt-get install -y gnome-terminal

Install LibreOffice

apt-get install -y libreoffice

Install Chrome

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
dpkg -i google-chrome-stable_current_amd64.deb

Install Clementine

add-apt-repository ppa:me-davidsansome/clementine
apt-get update
apt-get install clementine
Debian: Download all dependancies using apt-get

Debian: Download all dependancies using apt-get

I manage from time to time servers that are sat in a pretty restricted DMZ and when I need to download and install packages I tend to have to download them on another machine first and then perform the installation on the hosts that need the packages. So below is a small snippet that I use to download the package and all of its dependencies ready to transferred to the server that they will be installed on

aptitude clean
aptitude --download-only install <your_package_here>
cp /var/cache/apt/archives/*.deb <your_directory_here>