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
name=RPMs for Kamailio on CentOS 7
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_NAT
#!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

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


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>

Install Cinnamon

apt-get install -y cinnamon <code>lightdm

Install Gnome Terminal

apt-get install -y gnome-terminal

Install LibreOffice

apt-get install -y libreoffice

Install Chrome

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>