android bsd linux unix & open-source world


FreeBSD: How To Install Lighttpd with PHP5-FastCGI and MySQL Support in FreeBSD 8

In this article I'll show you how to install and configure Lighttpd web server on FreeBSD 8.1 with PHP5 support (through FastCGI) and MySQL support.

1. FreeBSD port tree update

Update FreeBSD ports using the following command:

portsnap fetch update

Once is done, we can proceed with the next step.

Print This Post Print This Post

How To Set Up an OpenBSD Router – Step-by-Step Tutorial

This article is a step-by-step guide about how to set up OpenBSD system that will act as a network router that takes advantage of the OpenBSD's PF packet filter.

1. OpenBSD Installation

Install OpenBSD by using this tutorial.

Now that you have OpenBSD installed, lets proceed with the next step.

2. OpenBSD Network Configuration

The network interface is configured at boot time using the /etc/hostname.if files, where if will be replaced by the full name of your interface, for the example above, /etc/hostname.xl0.

The layout of this file is simple:

address_family   address   netmask   broadcast   [other options]

Print This Post Print This Post

How To Install and Integrate eAccelerator into PHP5

eAccelerator is an open source PHP accelerator, optimizer, and dynamic content cache which provides a bytecode cache. eAccelerator increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.

1. Install prerequisites

There is no eAccelerator package in the official repositories, therefore we must compile and install it from the sources. Before we can do this, we need to install some prerequisites.

Print This Post Print This Post

Tip of the day: How to remove duplicate entries in a file without sorting

GNU awk is a programming language that is designed for processing text-based data, either in files or data streams, and was created in the 1970s at Bell Labs.

To remove duplicate entries without sorting them, enter:

gawk '!x[$0]++' filename
Print This Post Print This Post

How To Install mp3 playback and multimedia support in Ubuntu 10.04 (Lucid Lynx )

Ubuntu is a computer operating system based on the Debian GNU/Linux and is distributed as free and open source software with additional proprietary software available.

Ubuntu is composed of many software packages, of which the vast majority are distributed under a free software license. The main license used is the GNU General Public License which, along with the GNU Lesser General Public License, explicitly declares that users are free to run, copy, distribute, study, change, develop and improve the software.

Multimedia support like MP3, avi, 3gp , DVD Video Playback are not available in Ubuntu 10.04 LTS (Lucid Lynx) due to patent, copyright, or license restrictions.

To get mp3 and other multimedia support on your Ubuntu 10.04 LTS (Lucid Lynx) , use the following commands:

sudo wget -O /etc/apt/sources.list.d/medibuntu.list$(lsb_release -cs).list
sudo gpg --keyserver --recv-keys 2EBC26B60C5A2783
sudo gpg --armor --export 2EBC26B60C5A2783 | sudo apt-key add -
sudo apt-get update
sudo apt-get --allow-unauthenticated install medibuntu-keyring
sudo apt-get update

To install non-free codecs, enter:

Print This Post Print This Post