Archive for August, 2011


AsteriskNow – How To Change The Default FreePBX Password


AsteriskNow is a full blow free turnkey PBX Linux distribution based on CentoOS that can be used in many different types of telephony applications. It is very easy to install and initially setup however changing the default freepbx password can be a bit challenging since there is no link or menu anywhere in the interface to do so!

The default username and password for the FreePBX database and Web frontend are freepbx/fpbx. Having no clear way of changing this leaves a very large security hole open on your newly created PBX system! Here is how you can do it manually via the command line.

Continue reading ‘AsteriskNow – How To Change The Default FreePBX Password’

Xen Cloud Platform (XCP) – XenCenter Snapshot Issue


When using XenCenter in conjunction with XCP you will find that you are unable to take snapshots of your virtual machines in XenCenter. XenCenter will spew up an error saying “Snapshots require XenServer 5.5 or later”.

This seems very strange since XCP is based on XenServer 5.6.0-fp1. It turns out that the XCP xapi needs to be patched to fool XenCenter into thinking that XCP is 5.6.0. Here is how you do it.

Continue reading ‘Xen Cloud Platform (XCP) – XenCenter Snapshot Issue’

Gentoo – IRC Server


Want to host your own IRC server on your gentoo box? Well here is how:

emerge -av ngircd
cd /etc/ngircd/

Continue reading ‘Gentoo – IRC Server’

Gentoo – Getting Sound With Alsa


In order to get sound working in Gentoo you need to set up ALSA. If you have not set up your kernel with ALSA support you will need to do so, see here for more information. Recompile your kernel with ALSA support and your sound card built in. Then do the following:

Continue reading ‘Gentoo – Getting Sound With Alsa’

Gentoo – TeamSpeak 2 Server


In this guide I will discuss how to set up a Teamspeak 2 Server on Gentoo Linux. Teamspeak is a very popular tool used by gamers and online collaborators to provide an online group oriented voice chat environment. First thing you need to do is log in as root, then type:

emerge -av teamspeak2-server-bin

Continue reading ‘Gentoo – TeamSpeak 2 Server’

Gentoo – Protecting Web Directories With .htaccess


In this guide I will show you how to protect your localhost web root with .htaccess and .htpasswd files. By doing this a username and password will be required to enter the site. Let’s get started! As root do the following:

  • touch /var/www/localhost/htdocs/.htaccess
  • touch /etc/apache2/httpd-passwords

Continue reading ‘Gentoo – Protecting Web Directories With .htaccess’

Gentoo – SSMTP (Sending Mail)


Now that I finished showing you how to set up your LAMP server you are probably going to want to set up sendmail/ssmtp so that some of your new fancy websites can take advantage of it for their email services. Lets get started!

We are going to be using ssmtp which will replace sendmail as the MTA for the server. So as root type

emerge -av ssmtp

Once that completes we need to edit two config files.

Continue reading ‘Gentoo – SSMTP (Sending Mail)’

Gentoo – PHP


In a previous guide I discussed how to set up an Apache web server on your Gentoo box. In this part I will show you how to set up PHP so it works with Apache and MySQL which will allow you to host dynamic content rich websites on your web server. Plus by having MySQL, Apache, and PHP installed and working together you have access to a whole slew of web based tools that make managing your server much simpler.

In order to install PHP we must do the following as root:

echo "dev-lang/php  gd" >> /etc/portage/package.use

Save the file and type:

emerge -av php

PHP will take a while to compile even on a very fast PC so take a break and go do something for a half hour to an hour …

Continue reading ‘Gentoo – PHP’

Gentoo – Apache Web Server


In a previous guide I discussed how to set up MySQL on your Gentoo Linux box. One great use for MySQL is to combine it with an Apache web server and PHP to create content rich, dynamic websites. In this guide I will discuss how to set up an Apache web server with vhosts support.

Installing Apache is pretty straight forward, there are a few configuration files that need to be edited but nothing to difficult. First lets install apache:

emerge -av apache

Continue reading ‘Gentoo – Apache Web Server’

Gentoo – MYSQL Database Server


In this guide I will discuss how to setup a basic MySQL database server on Gentoo.

To install MySQL on your Gentoo system log in as root and type

emerge -av mysql

This will take some time to compile so you may wanna go grab a snack and watch some TV or something.

15 to 30 mins later …

Continue reading ‘Gentoo – MYSQL Database Server’