Integrate ClamAV Into PureFTPd For Virus Scanning On Ubuntu 12.04

This explains  integrate ClamAV into PureFTPd for virus scanning on an Ubuntu 12.04 system.a file gets uploaded through PureFTPd, ClamAV will check the file and delete it if it is malware.

1 Preliminary Note

PureFTPd setup on your Ubuntu 12.04 server

you are logged in as root

sudo su

should run all the steps as root user

2 Installing ClamAV

ClamAV can be installed as show below

apt-get install clamav clamav-daemon clamav-data

Run

freshclam

Download the latest virus signatures and starts the ClamAV daemon

/etc/init.d/clamav-daemon start

 

3 Configuring PureFTPd

create the file /etc/pure-ftpd/conf/CallUploadScript which contains string yes

echo "yes" > /etc/pure-ftpd/conf/CallUploadScript

create the file /etc/pure-ftpd/clamav_check.sh it wil be usefull when file uploaded through PureFTPd

Continue reading “Integrate ClamAV Into PureFTPd For Virus Scanning On Ubuntu 12.04” »

Be the first to comment - What do you think?  Posted by Aniruddh - August 8, 2012 at 6:01 pm

Categories: Ubuntu   Tags:

Headless VirtualBox Installation With phpvirtualbox

Phpvirtualbox is a web-based VirtualBox front-end written in PHP that allows you to access and control remote VirtualBox instances.It is a nice replacement for the VirtualBox GUI if you run VirtualBox on headless servers.I do not issue any guarantee that this will work.

1 Preliminary Note

Headless VirtualBox is already installed on the local OpenSUSE 12.1 server
running all the steps in this notes are with root privileges so lo gin as root

2 Installing phpvirtualbox

Create system user as vbox  and add to vboxusers

useradd -m vbox -G vboxusers

password for the vbox user

passwd vbox

Create the file /etc/default/virtualbox and put the line VBOXWEB_USER=vbox in it (so that the VirtualBox SOAP API which is called vboxwebsrv runs as the user vbox)

Continue reading “Headless VirtualBox Installation With phpvirtualbox” »

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

Categories: virtual box, Virtualization   Tags:

Purpose of Always Use Nginx With Microcaching

How hard is to push out as much as possible from your webserver(s).In daily work as a hosting engineer that means I fairly often get the same question, “Wow, cool website, but can it cope with big-time traffic?

The “normal” situation

A “normal” website running under Apache with mod_php should be able to put out 20 requests per second with ease like 50 requests per second the solution is to drop Apache, because as it is right now Apache just isn’t cutting it anymore

Nginx

Set up your website on Nginx and you run a quick loadtest you don’t get much more than Apache It’s real simple, it’s due to the fact that Nginx doesn’t have a php module built and  need a speciel fastcgi processor to process the php pages. we can use php-fpm as it is better than spawn-cgi for better performance Use microcaching

What is Microcaching?

Microcaching means  user requests the page it caches it so the next request for any other will come from cache, and with 100 users requesting within 5 seconds only 1 in 20 users will have to build up the full page

Continue reading “Purpose of Always Use Nginx With Microcaching” »

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

Categories: Nginx, Web Server   Tags:

Install MyUnity On Linux Mint 13

you can install MyUnity, the extended Unity desktop configuration tool, on Linux Mint 13. MyUnity can usually only be used on Ubuntu operating systems, however you can get it to run under Mint as well with a little source-file customization

1 Preliminary Note

MyUnity was originally designed to work only with Ubuntu systems none have occured to me until now though.
you have already installed the Unity desktop. If not, install it by entering the following into a terminal

sudo apt-get install ubuntu-desktop

while installing will be asked which login-manager you would like to use. mdm is the one Mint 12 uses by default, lightdm is the one Ubuntu uses.

2 Downloading MyUnity Source Files

want to modify one of MyUnity’s source files already installed any version of MyUnity you need to uninstall it first.

sudo apt-get remove myunity

change to the Downloads directory

cd ~/Downloads

Log in

su

download the myunity sources and install the tools

wget https://launchpad.net/myunity/trunk/3.0/+download/myunity-3.1.5.tar.gz
tar -zxvf myunity-3.1.5.tar.gz
cd ./myunity-3.1.5/
apt-get install gambas2-dev gambas2-gb-gtk gambas2-gb-form gambas2-gb-gtk-ext build-essential vim-nox

3 Compiling

appropriate source file so that it recognizes our operating system as Ubuntu 12.04

Open Main.module and look for the line Uversion = Right$(Tmp_split[1], 5  replace it with following codes

vi Main.module
[...]
Uversion = "12.04" ’Uversion = Right$(Tmp_split[1], 5)
[...]
ready to compile
make
make install
exit
To run MyUnity
myunity



Be the first to comment - What do you think?  Posted by Aniruddh - at 2:08 am

Categories: Linux   Tags:

To Install Cinnamon Desktop On Fedora 17

It shows how you can install Linux Mint’s Cinnamon desktop on Fedora 17. Fedora’s default desktop at the moment is GNOME 3

1 Update Sources

Need to check if your system is up to date and install the latest updates Before you can install Cinnamon to open the menu type terminal
Inside the terminal, log in as root

Su

Continue reading “To Install Cinnamon Desktop On Fedora 17” »

Be the first to comment - What do you think?  Posted by Aniruddh - at 1:57 am

Categories: Fedora   Tags:

Using And Installing OpenVZ On CentOS 6.3

multiple Virtual Private Servers (VPS) by the use of OpenVZ on the same hardware, similar to Xen and the Linux Vserver projectThe OpenVZ kernel patch is licensed under the GPL license, and the user-level tools are under the QPL license

 

1 Installing OpenVZ

To Install of OpenVZ wwant to add OpenVZ repository to yum

cd /etc/yum.repos.d

wget http://download.openvz.org/openvz.repo
rpm –import http://download.openvz.org/RPM-GPG-Key-OpenVZ

 

open openvz.repo

 

vi openvz.repo

 

[...]
[openvz-kernel-rhel6]
name=OpenVZ RHEL6-based kernel
#baseurl=http://download.openvz.org/kernel/branches/rhel6-2.6.32/current/
mirrorlist=http://download.openvz.org/kernel/mirrors-rhel6-2.6.32
enabled=1
gpgcheck=1
gpgkey=http://download.openvz.org/RPM-GPG-Key-OpenVZ


 Continue reading “Using And Installing OpenVZ On CentOS 6.3” »

Be the first to comment - What do you think?  Posted by Aniruddh - at 1:55 am

Categories: CentOS, OpenVZ, Virtualization   Tags:

Using Rex To Automate Your Datacentre

I actually “hate” to be honest  in my day to day work I come across a lot automate is the better thing to do a task more than once. To automate process I have confusion what tool going to use for that Puppet, Chef, CFEngine etc.

 

Things like Puppet, Chef etc. come along and when you look at their documentation, well, it’s huge and takes a lot of time to install and configure properly.thi automation thing is used to do that on 40-50 servers.

Rex

Rex is a lightweight framework and small I got excited and saw the possibilities of using it. The big advantage to Rex from your “master” server can use your ssh keys so you don’t have to install daemons on your target servers.

How Rex is structured

After creating rex project after installation check the install docs: http://rexify.org/get/index.html rexify should be used a new folder will be created with very clean structure.

  • All your hosts and usernames and passwords will be there in file Rexfile
  • perl module (.pm file) will be there in the lib folder so you can test if your connection with your server group is working

 

Continue reading “Using Rex To Automate Your Datacentre” »

Be the first to comment - What do you think?  Posted by Aniruddh - at 1:53 am

Categories: Automation, CentOS   Tags:

Installing Apache2 With PHP5 And MySQL Support On CentOS 6.3

LAMP stands for Linux, Apache, MySQL, PHP.this method show how to install an Apache2 webserver on a CentOS 6.3 server with PHP5 support (mod_php) and MySQL support.

1 Preliminary Note

the hostname used server1.example.com with the IP address 192.168.0.100. These settings may difer for others want to replace them appropriate.

2 Installing MySQL 5

Installation of MySQL

yum install mysql mysql-server

Then we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server:

Continue reading “Installing Apache2 With PHP5 And MySQL Support On CentOS 6.3” »

Be the first to comment - What do you think?  Posted by Aniruddh - at 1:42 am

Categories: Apache, CentOS, Web Server   Tags:

How To Upgrade Kubuntu 10.04 (Lucid Lynx) To 10.10 (Maverick Meerkat)

The new Kubuntu 10.10 (Maverick Meerkat) has just been released. This guide shows how you can upgrade your Kubuntu 10.04 desktop installation to Kubuntu 10.10.

1 Upgrade
Go to Applications > System

and open a terminal

In the terminal

sudo su

Then open /etc/update-manager/release-upgrades

vi /etc/update-manager/release-upgrades

and change the line Prompt=lts to Prompt=normal

Close the terminal

Now go to Applications > System > Software Management

KPackageKit opens. In KPackagekit, go to Software Updates. You should find a message there that a distribution upgrade is available

Click on Continue to confirm that you want to do the distribution upgrade

A window with the release notes for 10.10 comes up. Click on Upgrade

The upgrade tool is now being downloaded, and the upgrade is being prepared

Continue reading “How To Upgrade Kubuntu 10.04 (Lucid Lynx) To 10.10 (Maverick Meerkat)” »

Be the first to comment - What do you think?  Posted by Aniruddh - July 10, 2012 at 8:16 pm

Categories: Linux, Ubuntu   Tags:

Apache Server Setup with Mod_Fcgid, PHP5 on CentOS 6

This document explains how to setup Apache web server with mod_fcgid, which is high performance alternative to mod_cgi or mod_cgid, it starts a sufficient number instances of the CGI program to handle concurrent requests, and these programs remain running to handle further incoming requests.

1. Make sure SELinux is disabled before starting

open SELinux configuration on vim editor (/etc/sysconfig/selinux)

vi  /etc/sysconfig/selinux

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

Save the file and reboot the machine
2. Setup EPEL repository as mod_fcgid is not available in default CentOS repository

Continue reading “Apache Server Setup with Mod_Fcgid, PHP5 on CentOS 6” »

Be the first to comment - What do you think?  Posted by Aniruddh - January 1, 2012 at 11:08 pm

Categories: Apache, CentOS   Tags:

« Previous PageNext Page »