Experience with Xubuntu

February 7th, 2010 Dhaval Thakar No comments

In my previous post I have expressed my love to use Linux on my OLD COMPUTER, which is Celeron 1.1Ghz with 256 MB Ram.
For a long time I have used Fedora on this computer, but with the latest versions I have experienced limitation of my pc. Since I use Laptop at home for most of the time, I never cared to find better Linux OS for my old desktop and continued using SliTaz.
Using Slitaz / Puppy linux was always option but I was looking for a OS on which I can run latest version of Firefox & Google Chrome with ofcourse openoffice & torrent clients. With the other light weight version of Linux OS it is difficult to find latest softwares.
Till now I ignored using Xubuntu, as it being light version of Ubuntu I was under impression it will not perform on my old computer. Having free time I thought of giving try to Xubuntu. Unlike my expectation it runs fast enough to not letting me realize that I am using old computer.
Seems like it was worth trying Xubuntu, which eventually made me keep it installed.

Try it.

Minimum system requirements

You need 192 MB RAM to run the Live CD or 128 MB RAM to install. The Alternate Install CD only requires you to have 64 MB RAM at install time.
To install Xubuntu, you need 2.0 GB of free space on your hard disk.
Once installed, Xubuntu can run with starting from 192 (or even just 128) MB RAM, but it is strongly recommended to have at least 256 MB RAM.

Wpad file for Multiple Networks

January 25th, 2010 Dhaval Thakar No comments

WPAD.DAT

Many of us use this proxy configuration file to automate proxy configuration for users.

It is easy to configure wpad.dat for single network, but for some reason if you wish to use same wpad.dat file for multiple networks following might help you.


function FindProxyForURL(url, host)
{
if (shExpMatch(url, "http://localhost*")) { return "DIRECT"; }
if (shExpMatch(url, "https://127.0.0.1*")) { return "DIRECT"; }
if (shExpMatch(url, "https://192.168.2*")) { return "DIRECT"; }
//this is for networks
if (isInNet(myIpAddress(), "192.168.10.0", "255.255.255.0"))
return "PROXY 192.168.10.20:3128";
else
return "PROXY 192.168.2.20:3128";
}

Apache Web using POP3 Auth

January 21st, 2010 Dhaval Thakar No comments

One fine day one the project leader asked that he we to share files over internet to employees, he was looking for some auth system where only existing employee can login. Since we have hosted mail server & no auth system in office the convenient way we found was to use POP3 Auth.

Following is the configuration I am sharing to use pop3 auth for web site running over apache.
Install Auth mechanism.
Refer

cpan
install Apache::AuthPOP3
install Net::POP3

Apache configuration

httpd.conf

ServerName userweb.linuxreaders.com
DocumentRoot /home/userweb
DirectoryIndex index.html
PerlModule Apache::AuthDBI

AuthName "Enter your Email ID & Password"
AuthType Basic
PerlAuthenHandler Apache::AuthPOP3
PerlSetVar        MailHost pop.linuxreaders.com
#PerlSetVar        UserMap pop3user1=>realname1,pop3user2=>realname2
Require valid-user

Resize LVM -Centos

January 18th, 2010 Dhaval Thakar No comments

Here We are sharing guide to resize LVM size.

create new partition

ADD PHYSICAL VOLUME

pvcreate /dev/new_partition

Verify new physical volume

pvdisplay
Or
pvscan

Extend existing VOLUME GROUP

vgextend VolGroup00 /dev/xvda3

make sure vg free size is = new partition size using vgdisplay command

Extend existing LVM by adding new partition

lvextend /dev/VolGroup00/LogVol00 /dev/xvda3

make sure lv size is increased, use lvdisplay

RESIZE FILE SYSTEM

resize2fs /dev/VolGroup00/LogVol00

Easiest way for Interface Bonding – CentOS

January 12th, 2010 Dhaval Thakar No comments

There is preferred way of bonding using ifcfg- files.
But I prefer following method as it is very easy to setup.

Here I am using 192.168.3.2 for the bond0.
eth0 & eth1 are used for bonding.
We’ll enter following lines in /etc/rc.local

modprobe bonding mode=balance-rr miimon=100
ifconfig bond0 192.168.3.2 netmask 255.255.255.0 up
ifenslave bond0 eth0
ifenslave bond0 eth1
route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.3.1

To verify bonding

cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.4.0 (October 7, 2008)

Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:19:5b:fd:0f:e7

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:16:76:d2:c7:8d
Get Adobe Flash playerPlugin by wpburn.com wordpress themes