Archive for December, 2011

Using DPKG To Install OpenVZ On Debian

DPKG package manager to install OpenVZ, all you need to do is download the OpenVZ components, and let DPKG do the rest.

Download the lastest kernel revision level, for your particular DEBIAN distro. For me, this was:

linux-image-2.6.18-openvz-k7_028.18.1-2.6.18-12-1_i386.deb

Next,go to this URL: http://download.openvz.org/debian-systs/pool/openvz/v/

Download:

* vzctl
* vzprocps
* vzquota

and an OS template cache, from the “vzctl-ostemplate” directory. I chose DEBIAN 5.0.

vzctl-ostmpl-debian-5.0-i386-minimal_20090121_i386.deb

Open a terminal shell, and log in as “root”.(use “SU” or “SUDO”)

Create a “/vz” directory.

Continue reading “Using DPKG To Install OpenVZ On Debian” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 20, 2011 at 4:33 pm

Categories: Debian, OpenVZ   Tags:

how you can upgrade your Fedora 12 system to Fedora 13. The upgrade procedure works for both desktop and server installations.

1 Preliminary Note

log in as root, or if you log in with a regular user, type

su

to become root

2 Upgrading To Fedora 13 (Desktop)

First we must upgrade the rpm

yum update rpm

install the latest updates

yum -y update

clean the yum cache

yum clean all

during yum -y update, you should reboot the system now

reboot

After the reboot, log in as root again, either directly

su

Install preupgrade.

yum install preupgrade

Continue reading “how you can upgrade your Fedora 12 system to Fedora 13. The upgrade procedure works for both desktop and server installations.” »

Be the first to comment - What do you think?  Posted by Aniruddh - at 4:33 pm

Categories: Fedora   Tags:

How To Set Up WebDAV With MySQL Authentication On Apache2 (Ubuntu 9.10)

1 Preliminary Note

I’m using an Ubuntu 9.10 server with the hostname server1.example.com and the IP address 192.168.0.100 here.

2 Installing Apache2, WebDAV, MySQL, mod_auth_mysql

To install Apache2, WebDAV, MySQL, and mod_auth_mysql, we run

aptitude install apache2 mysql-server mysql-client libapache2-mod-auth-mysql

don’t have to specify a MySQL root password manually later on:
New password for the MySQL “root” user: < -- yourrootsqlpassword
Repeat password for the MySQL "root" user: <-- yourrootsqlpassword

Afterwards, enable the WebDAV and mod_auth_mysql modules

a2enmod dav_fs
a2enmod dav
a2enmod auth_mysql

Restart Apache

/etc/init.d/apache2 restart

3 Creating A Virtual Host

I will now create a default Apache vhost in the directory /var/www/web1/web. For this purpose, I will modify the default Apache vhost configuration in /etc/apache2/sites-available/default. To enable WebDAV, you must adjust this tutorial to your situation.

First, we create the directory /var/www/web1/web and make the Apache user (www-data) the owner of that directory

mkdir -p /var/www/web1/web
chown www-data /var/www/web1/web

back up the default Apache vhost configuration (/etc/apache2/sites-available/default) and create our own one

mv /etc/apache2/sites-available/default /etc/apache2/sites-available/default_orig
vi /etc/apache2/sites-available/default

reload Apache

/etc/init.d/apache2 reload

4 Configure The Virtual Host For WebDAV

Continue reading “How To Set Up WebDAV With MySQL Authentication On Apache2 (Ubuntu 9.10)” »

Be the first to comment - What do you think?  Posted by Aniruddh - at 4:33 pm

Categories: Apache, MySQL   Tags:

How To Install Alfresco Community 3.3 On Ubuntu Server 10.04 (Lucid Lynx)

Alfresco is the Open Source Alternative for Enterprise Content Management (ECM), providing Document Management, Collaboration, Records Management, Knowledge Management, Web Content Management and Imaging.

1. Installing Ubuntu Server 10.04

Ubuntu 10.04, follow steps in page 1 and page 2.

2. Notes

You need to enable ‘partner’ repository in /etc/apt/sources.list. Otherwise the required package sun-java6-jdk will not be installed.
The following IP address is used for the server: 192.168.1.1/255.255.255.0
Please replace the above points with your current settings.

3. Required dependencies

As root run the following command to install the required

root@dms:~# apt-get install mysql-server sun-java6-jdk imagemagick swftools openoffice.org-core openoffice.org-java-common openoffice.org-writer openoffice.org-impress openoffice.org-calc

4. Configuring JAVA_HOME variable

root@dms:~# source /etc/environment

5. Change MySQL default character set

complex language that requires UTF-8 like arabic, farsi, hebrew, etc… You’ll need to force UTF-8 support in mysql, otherwise any document with a title written in e.g. arabic language will appear as ???????

Edit /etc/mysql/my.cnf and add the following under [mysqld]:

Restart mysql

root@dms:~# /etc/init.d/mysql restart

6. Database setup for Alfresco

Continue reading “How To Install Alfresco Community 3.3 On Ubuntu Server 10.04 (Lucid Lynx)” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 19, 2011 at 3:40 pm

Categories: Ubuntu   Tags:

Fight Image Spam With FuzzyOCR And SpamAssassin On Fedora 12

It analyzes the content and properties of images to distinguish between normal mails (ham) and spam mails. FuzzyOCR tries to keep the system load low by scanning only mails that have not already been categorized as spam by SpamAssassin, thus avoiding unnecessary workscan emails for image spam with FuzzyOCR on a Fedora 12 server. FuzzyOCR is a plugin for SpamAssassin which is aimed at unsolicited bulk mail containing images as the main content carrier. Using different methods,

1 Preliminary Note

In this article I will use Fedora 12 for the base system.
if you have ISPConfig 2 installed, the directory is /home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin/), this is no problem. I will annotate where to change what.

Please make sure that your SpamAssassin version works with FuzzyOCR. For example, the FuzzyOCR version I’m going to install here (fuzzyocr-3.5.1-devel.tar.gz) requires SpamAssassin 3.1.4 or newer.

2 Install The Prerequisites For FuzzyOCR

FuzzyOCR has some prerequisites like ocrad and gocr that

yum install netpbm gifsicle giflib giflib-utils gocr ocrad ImageMagick tesseract perl-String-Approx perl-MLDBM perl-CPAN

to install the MLDBM::Sync Perl module which is not available as an RPM package. Open a Perl shell….

perl -MCPAN -e shell

install the module

install MLDBM::Sync

Type

q

3 Install FuzzyOCR

download and install the latest FuzzyOCR devel version from http://fuzzyocr.own-hero.net/wiki/Downloads. We download the devel version instead of the stable version because the FuzzyOCR developers say

cd /usr/src/
wget http://users.own-hero.net/~decoder/fuzzyocr/fuzzyocr-3.5.1-devel.tar.gz

unpack FuzzyOCR and move all FuzzyOcr* files and the FuzzyOcr directory (they are all in the FuzzyOcr-3.5.1/ directory) to /etc/mail/spamassassin

tar xvfz fuzzyocr-3.5.1-devel.tar.gz
cd FuzzyOcr-3.5.1/
mv FuzzyOcr* /etc/mail/spamassassin/

Continue reading “Fight Image Spam With FuzzyOCR And SpamAssassin On Fedora 12” »

Be the first to comment - What do you think?  Posted by Aniruddh - at 3:40 pm

Categories: Fedora   Tags:

Installing Nginx With PHP 5.3 And PHP-FPM On Ubuntu Lucid Lynx (10.04)

Nginx with PHP 5.3.3 and PHP-FPM on Ubuntu Lucid Lynx (10.04-amd64). The Lucid release is a Long-Term Support (LTS), will be supported for three years on the desktop and for five years with the server version.

Step 0 – Preliminary Notes

Step 1 – Install Nginx

apt-get install nginx

Step 2 – Install all required dependencies for this installation

apt-get install autoconf2.13 libssl-dev libcurl4-gnutls-dev libjpeg62-dev libpng12-dev libmcrypt-dev libmysql++-dev libfreetype6-dev libt1-dev libc-client-dev libbz2-dev mysql-client libevent-dev libxml2-dev

Step 3 – Download PHP

cd /usr/local/src

wget http://se.php.net/get/php-5.3.3.tar.gz/from/this/mirror

tar xzf php-5.3.3.tar.gz

Continue reading “Installing Nginx With PHP 5.3 And PHP-FPM On Ubuntu Lucid Lynx (10.04)” »

Be the first to comment - What do you think?  Posted by Aniruddh - at 3:40 pm

Categories: Ubuntu   Tags:

Postfix Monitoring With Mailgraph And pflogsumm On Debian Lenny

These graphs can be accessed with a browser, whereas pflogsumm (“Postfix Log Entry Summarizer”) can be used to send reports of Postfix activity per email.How you can monitor your Postfix mailserver with the tools Mailgraph and pflogsumm. Mailgraph creates daily, weekly, monthly, and yearly graphs of sent, received, bounced, and rejected emails and also of spam and viruses, if SpamAssassin and ClamAV are integrated into Postfix (e.g. using amavisd-new).

1 Preliminary Note

Linux system has the IP address 192.168.0.100 and hosts the web site http://www.example.com with the document root /var/www/www.example.com/web and a cgi-bin directory of /var/www/www.example.com/cgi-bin, and I will send the pflogsumm reports to the email address postmaster@example.com.

2 Mailgraph

Debian Lenny has packages for Mailgraph and pflogsumm,simply install these and also install rrdtool that stores the data which is needed by Mailgraph to draw the graphs

aptitude install rrdtool mailgraph

configure the mailgraph package

dpkg-reconfigure mailgraph

You will be asked a few questions:

Should Mailgraph start on boot? < -- Yes
Logfile used by mailgraph: <-- /var/log/mail.log

Then there's also this question:

Count incoming mail as outgoing mail?

If you have integrated a content filter like amavisd (for spam and virus scanning) into Postfix (like in this tutorial: Integrating amavisd-new Into Postfix For Spam- And Virus-Scanning),

During the installation, the system startup links for Mailgraph are created automatically, and Mailgraph also gets started automatically, so we don't need to start it manually.

cp -p /usr/lib/cgi-bin/mailgraph.cgi /var/www/www.example.com/cgi-bin

3 pflogsumm

To install pflogsumm run

aptitude install pflogsumm

pflogsumm to be run by a cron job each day and send the report to postmaster@example.com. Therefore we must configure our system that it writes one mail log file for 24 hours, and afterwards starts the next mail log so that we can feed the old mail log to pflogsumm. Therefore we configure logrotate (that’s the program that rotates our system’s log files) like this: open /etc/logrotate.conf and append the following stanza to it, after the line # system-specific logs may be configured here

vi /etc/logrotate.conf

create the script /usr/local/sbin/postfix_report.sh which invokes pflogsumm and makes it send the report to postmaster@example.com

vi /usr/local/sbin/postfix_report.sh

Continue reading “Postfix Monitoring With Mailgraph And pflogsumm On Debian Lenny” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 18, 2011 at 3:13 pm

Categories: Debian   Tags:

Installing Nginx With PHP 5.3 And PHP-FPM On Ubuntu Lucid Lynx (10.04) Without Compiling Anything

Apache is most of the time a memory hungy process, people started to look for different ways to host their website. Apache is clearly not the only webserver available. A few good examples are lighttpd and nginx. In this tutorial I will show you how to install it on your Ubuntu server. This tutorial also applies to Debian, though. There is only a very small difference

Step 0 – Preliminary Notes

In order to complete this tutorial, I assume you have installed a base system of Ubuntu Lucid (10.04). How this can be done, can be read in different tutorials. This tutorial only focusses on getting nginx+php running without much hassle.

Step 1 – Nginx

Installing nginx is the first step we have to do. This can be easily done by downloading it from the repository.

sudo apt-get install nginx

default vhost has to be changed in order to work properly

sudo vim /etc/nginx/sites-available/default

Step 2 – Installing PHP

Many sites rely on PHP for providing them dynamic content, whether this is a wiki, forum software, weblog or something entirely different.
There is no need to use DotDeb, since PHP5.3 is now officially supported in Ubuntu Lucid (10.04). Its as easy as

sudo apt-get update

resulting text should include dotdeb.

Now we’ll install PHP. In order to install PHP-FPM, we’ll have to add the PPA to it since it is not officially supported

 add-apt-repository ppa:brianmercer/php

sudo apt-get update && sudo apt-get install php5-fpm

Continue reading “Installing Nginx With PHP 5.3 And PHP-FPM On Ubuntu Lucid Lynx (10.04) Without Compiling Anything” »

Be the first to comment - What do you think?  Posted by Aniruddh - at 3:13 pm

Categories: Ubuntu   Tags:

How To Integrate ClamAV Into PureFTPd For Virus Scanning On Mandriva 2010.0

how you can integrate ClamAV into PureFTPd for virus scanning on a Mandriva 2010.0 system. In the end, whenever a file gets uploaded through PureFTPd, ClamAV will check the file and delete it if it is malware.

1 Preliminary Note

You should have a working PureFTPd setup on your Mandriva 2010.0 server, e.g. as shown in this tutorial: Virtual Hosting With PureFTPd And MySQL (Incl. Quota And Bandwidth Management) On Mandriva 2009.1 (yes, it’s for Mandriva 2009.1, but works for Mandriva 2010.0 as well).

2 Installing ClamAV

urpmi clamd clamav

create the system startup links for clamd and freshclam and start them

chkconfig clamd on
chkconfig freshclam on
/etc/init.d/clamd start

freshclam
/etc/init.d/freshclam start

3 Configuring PureFTPd

open /etc/pure-ftpd/pure-ftpd.conf and set CallUploadScript to yes

vi /etc/pure-ftpd/pure-ftpd.conf

Continue reading “How To Integrate ClamAV Into PureFTPd For Virus Scanning On Mandriva 2010.0” »

Be the first to comment - What do you think?  Posted by Aniruddh - at 3:13 pm

Categories: Security   Tags:

Install Linux Without Burning An ISO To CD/DVD – Use The ISO Downloaded To Your Hard Drive

describing here a method to install Linux without using a DVD ROM or CD Drive; I have checked it myself. There are many ways to do so you can install Linux by 1) booting from the network; 2) having an ISO image on your hard disk; 3) booting from USB; 4) installing a linux system from scratch by building your own.

I am assuming that Linux is not installed on your system and neither grub or lilo is there. This method is using an OpenSuse 10.2 Image but is same for Fedora or Debian or any other distro. There is one check point in case you used Nero to copy CD or DVD image then it might have been possible that you copied the image and it is file with dot nrg extension in that case you need to get the ISO from NRG.

I have installed by all the above methods but I am describing here the simplest one since there are many new comers who would not be able to understand other methods. Before doing all this make sure:

that you have enabled the option of viewing file extensions in View Options of folder view.
If you use Fedora or any other distribution do not use the NTFS partition to store the image although OpenSuse 10.2 can work from NTFS partition I have done it using NTFS partition only but will not suggest you to do the same.
Most important do not install Linux on the same partition on which you have the ISO from which you are installing everything since it will format that hard disk that holds the image you are using.

There is an image named openSUSE-10.2-GM-DVD-i386.iso which you would have downloaded rename it to suse.iso (not necessary to do so but will make your life simple).

Similarly for any other linux distro you might have an image of fedora or debian etc. rename it to some simple filename. The image is 3.6 GB then download the grub for dos from: http://sourceforge.net/projects/grub4dos

Before someone reads the following lines I want to inform you while you install winzip or winrar by default they are associated with ISO filetype so you may see your downloaded ISO as an icon that says it can be extracted via Winrar; just go and disable this in options tab from Winrar menu; if you want to burn the ISO directly to CS just go to Nero and select burn image to disk and select the ISO; you do not need to make it a bootable CD or DVD.

Extract the downloaded grub4dos using winzip or winrar, you will get a folder name grub – copy it to C drive then create a folder name boot in C drive of your windows partition (C drive is not necessary but makes life simple ). Now copy grldr from grub to C:

boot.ini (even if I have mentioned the README there says it all). Now different distributions of Linux have different kernel names like:

Fedora: vmlinuz and initrd.img

Suse: linux and initrd

Mandriva: vmlinuz and all.rdz

Ubuntu: vmlinuz and initrd.gz

Gentoo: gentoo and gentoo.igz

Knoppix: vmlinuz and initrd.img

Slackware: bzImage and initrd.img

Debian: vmlinuz and initrd.gz

Continue reading “Install Linux Without Burning An ISO To CD/DVD – Use The ISO Downloaded To Your Hard Drive” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 17, 2011 at 2:52 pm

Categories: Linux   Tags:

Next Page »