Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

spacer

Archive for the Linux Category

08.2.2010

Converting Elastix Asterisk Linux to HyperV virtual machine

This tutorial will enable you to create or migrate an elastix asterisk voip server on a HyperV virtual machine.

This uses the latest stable version of elastix (1.6 at time of writing), but I expect the v2 beta should work with the same methods.

Download the Elastix 1.6 ISO from http://www.elastix.org/en/downloads.html
Create a new virtual machine in hyperv, [...]

07.16.2010

How to install a VMWare tools on Linux centos elastix virtual machine

The instructions here
http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html
presume  that the CD-ROM mounts with no problem.
if you have not already done so you need to shut down the linux virtual machine, add hardware and add CDROM to the virtual machine.
power up the virtual machine and you should see the CD/DVD Drive 1 listed.

Now in the menu on the right Install VMWare

Press [...]

06.5.2010

Setup Samba on linux centos server

To install samba on CentOS
At the command shell enter
yum install samba
You will receive a couple of prompts to download the packages – press y to confirm.
Configuring Samba:
cd /etc/samba
mv smb.conf smb.conf.backup
vi smb.conf
Paste content below in to your vi:
[global]
workgroup = wrkgrp
netbios name = smbserver
security = SHARE
load printers = No
default service = global
path = /home
available = No
encrypt passwords = [...]

06.5.2010

Script to backup Asterisk folders

The key folders to backup for asterisk are
/etc/asterisk
/var/log/asterisk
/var/lib/asterisk
/var/spool/asterisk
/usr/lib/asterisk
/var/lib/mysql
/usr/local/tomcat/webapps
You can use this script to back them up into one gz file.
ora=`date ‘+%Y.%m.%d-%H.%M.%S’`
tar zcf etc-asterisk-$ora.tar.gz /etc/asterisk
tar zcf var-log-asterisk-$ora.tar.gz /var/log/asterisk
tar zcf var-lib-asterisk-$ora.tar.gz /var/lib/asterisk
tar zcf var-spool-asterisk-$ora.tar.gz /var/spool/asterisk
tar zcf usr-lib-asterisk-$ora.tar.gz /usr/lib/asterisk
tar zcf var-lib-mysql-$ora.tar.gz /var/lib/mysql
tar zcf usr-local-tomcat-$ora.tar.gz /usr/local/tomcat/webapps
# make one big file of them all
tar zcf asterisk-backup-$ora.tgz *$ora*
rm -f $ora.tar.gz
Also found [...]

06.1.2010

How to install webmin to manage a linux centos server

Login as root
cd /root
mkdir webmin
cd webmin
wget http://internap.dl.sourceforge.net/sourceforge/webadmin/webmin-1.260-1.noarch.rpm
rpm -Uvh webmin*
WebMin runs its own web server on port 10000.
To start WebMin, issue this command: /etc/webmin/start.
You access it with a web browser pointed to the IP address of your Asterisk box at that port address, e.g. http://192.168.0.108:10000
For more good setup info see http://nerdvittles.com/index.php?p=123

05.30.2010

How to Backup and restore Elastix Asterisk configuration on Cent OS to another server

I recently found this method of doing the backup/restore
http://www2.elastix.org/en/component/kunena/116-security/47135-how-to-backup-elastix-for-migration.html?Itemid=58
A few things to be aware of

Make sure the Elastix version is the same or higher than the version that you are transferring the backup .tar file from. Otherwise if you try to transfer to an earlier version the extensions will not transfer across correctly.
you have to [...]

10.3.2009

Editing firewall.local settings in Linux CentOS

Short method:

Login as the root user – I use putty for windows to connect to the linux server from my desktop
after logging in enter ls – you may have a firewall script to edit the iptables. For this example we have one called firewall.local
Copy the file using cp firewall.local firewall.todaysdate to you have a copy [...]