Who's Online

8 visitors online now
2 guests, 6 bots
Powered by Visitor Maps

We Recommend:

Debian GNU/Linux

CENTOS Linux
The next version of Ubuntu is coming soon

SquidGuard Add/remove websites by Asim Abbas

This article covers the steps needed to create a mechanism, for squidguard, to allow or block custom websites.

Paste the below mentioned lines.

[root@gateway ~]# vi allowweb.sh

#!/bin/bash cd /usr/local/squidGuard/db/whitelist/ echo -n “Plz enter the site name which you want to allow ” read -e web1 echo $web1  >> domains echo “Enter another web name . . . → Read More: SquidGuard Add/remove websites by Asim Abbas

3 in1 Disk Monitring / Add new Swap / boot system without any physical media by Asim Abbas

Many system administrators don’t know that Self-Monitoring, Analysis and Reporting Technology (SMART) is built in to most modern ATA and SCSI hard disks.

By:Syed Asim Abbas E-Mail: asimabbas31@gmail.com

Disk Self Monitoring with SMART:

[root@power root]# fdisk -l

Disk /dev/sda: 60.0 GB, 60011642880 bytes 255 heads, 63 sectors/track, 7296 cylinders Units = cylinders of 16065 * . . . → Read More: 3 in1 Disk Monitring / Add new Swap / boot system without any physical media by Asim Abbas

Skype on Fedora 13 – 64 bit – x86_64

Most of the explanation is already at : http://www.wbitt.com/my-howtos/139-skype-on-fedora-11-64-bit-x8664.html

Download Skype for Linux. You will probably not find a 64 bit version. Download 32 bit version: skype-2.1.0.81-fc10.i586.rpm

Then install the following :

yum -y install pulseaudio-libs.i686 pulseaudio-libs-devel.i686 alsa-plugins-pulseaudio.i686 \ libv4l.i686   libXv.i686 libXv-devel.i686 libXScrnSaver.i686  libXScrnSaver-devel.i686    \ dbus-qt.i686 dbus-qt-devel.i686 qt.i686 qt-devel.i686

Now install skype:

yum -y . . . → Read More: Skype on Fedora 13 – 64 bit – x86_64

Tip: Remove Multiple RPMs with similar file name by Amit Kumar

You can remove multiple RPMs with similar file name by help of rpm command.

Use the rpm’s command -e (for remove) with the –allmatches option

“rpm –e  –allmatches <package-to-be-removed>”

i.e.:

“rpm -e –allmatches kernel-2.4.25-8tr”

The –allmatches allows you to match all rpms with a given expression.

Hits:591

Virtual PC Simulator by Amit Kumar

Virtual PC simulator can simulate up to 9 PC’s. It is not the traditional PC , it just a program for Linux & Windows and only few network commands can we used it it. But VPCS can give you a big hand when you study the Cisco devices in the Dynamips. VPCS can replace the . . . → Read More: Virtual PC Simulator by Amit Kumar

Video streaming using flowplayer by Asim Abbas

The purpose of this document is to create a web streaming using apache,php and flowplayer. Streaming is not a rocket science just add flowplayer in your code and enjoy .flv based video streaming server.

Video streaming using flowplayer

By Syed Asim Abbas asimabbas31@gmail.com Date : 10-May-2010

Required packages

Mysql (User choice if you waana use . . . → Read More: Video streaming using flowplayer by Asim Abbas

Vsftpd auth with mysql by Asim Abbas

vsftpd authentication with mysql . By Asim Abbas.

[root@fileserver ~]# cat /etc/redhat-release CentOS release 5 (Final)

[root@fileserver ~]# rpm -qa |grep mysql libdbi-dbd-mysql-0.8.1a-1.2.2 mysql-5.0.22-2.1 mysql-bench-5.0.22-2.1 mysql-devel-5.0.22-2.1 mod_auth_mysql-3.0.0-3.1 mysql-server-5.0.22-2.1 mysql-connector-odbc-3.51.12-2.2 php-mysql-5.1.6-5.el5

[root@fileserver ~]# rpm -qa |grep vsftpd vsftpd-2.0.5-10.el5

wget http://rpm.pbone.net/index.php3/stat/26/dist/54/size/339076/name/pam_mysql-0.7-0.4.rc1.fc8.src.rpm

[root@fileserver ~]# rpmbuild –rebuild /tmp/pam_mysql-0.7-0.4.rc1.fc8.src.rpm Installing /tmp/pam_mysql-0.7-0.4.rc1.fc8.src.rpm

[root@fileserver ~]# rpm -ivh /usr/src/redhat/RPMS/i386/pam_mysql-0.7-0.4.rc1.i386.rpm Preparing…                ########################################### [100%] 1:pam_mysql              . . . → Read More: Vsftpd auth with mysql by Asim Abbas

Boot Linux without using any booting device by Asim Abbas

To boot system with  without cdrom, network or any booting device. Just copy the ISO image on your linux server and perform the following steps.

[root@power ~]# mkdir /mnt/tmp

mount Iso image.

[root@power ~]# mount -o loop /data/fc4/FC4-i386-disc1.iso /mnt/tmp

[root@power ~]# mkdir /boot/mylinux

cp /mnt/tmp/isolinux/vmlinuz /boot/mylinux

cp /mnt/tmp/isolinux/initrd.img /boot/mylinux/initrdMy.img

then add following lines to /etc/grub.conf

. . . → Read More: Boot Linux without using any booting device by Asim Abbas

DRBD Three-Nodes Howto (Beta Version) by Asim Abbas

DRBD for 3 nodes howto (Beta Version) By Syed Asim Abbas

We have installed 3 nodes drbd, but it is not reliable as two DRBD server setup. We are facing some issues after the installation.

[root@drbd1 ~]# yum install drbd83 kmod-drbd83 [root@drbd2 ~]# yum install drbd83 kmod-drb83 [root@drbd3 ~]# yum install drbd83 kmod-drb83

Insert the . . . → Read More: DRBD Three-Nodes Howto (Beta Version) by Asim Abbas

Linux audit files by Asim Abbas

Linux Auditing Howto. By Syed Asim Abbas How to audit file events such as read / write etc? How can you use audit to see who changed a file in Linux?

Installation

[root@power tmp]# yum install audit

Loaded plugins: refresh-packagekit Setting up Install Process Resolving Dependencies –> Running transaction check

Run service

[root@power tmp]# service . . . → Read More: Linux audit files by Asim Abbas