Search This Blog

Monday, April 23, 2012

Thursday, January 12, 2012

Anbarasu is inviting you to join 99labels

The secret is out!
 
Anbarasu thinks you should join 99labels!
You get shopping credit of Rs.500 in your account upon joining. Join Now

Hi,

Your friend Anbarasu wants you to join the fun shopping adventure called 99labels! When you accept this invitation, you enter a world of fantastic and unbelievable brand shopping through exclusive private Sales, all at member prices of upto 90% of f on tag prices!Membership is absolutely free, but by invitation only--and you've been invited! Don't miss this chance to get in and get started with your very own smart brand shopping spree.

You can also invite your friends, family and only your chosen ones to become members of 99labels. You decide who gets in, and only members have access to events, to the great brands, and to the fun! When any of your referred friends make their first purchase, you get shopping credit of Rs 750, That's endless amounts of potential shopping money just waiting for you!We'll see you at 99labels, and do feel free to contact us with any other questions at support@99labels.com

Very warmly,

Team99

support@99labels.com
99 Helpline :  011 - 47569999,011 - 47569999 (Toll Free)

Follow us
© 2010 Ninety Nine Labels Pvt. Ltd.

Anbarasu is inviting you to join 99labels

The secret is out!
 
Anbarasu thinks you should join 99labels!
You get shopping credit of Rs.500 in your account upon joining. Join Now

Hi,

Your friend Anbarasu wants you to join the fun shopping adventure called 99labels! When you accept this invitation, you enter a world of fantastic and unbelievable brand shopping through exclusive private Sales, all at member prices of upto 90% of f on tag prices!Membership is absolutely free, but by invitation only--and you've been invited! Don't miss this chance to get in and get started with your very own smart brand shopping spree.

You can also invite your friends, family and only your chosen ones to become members of 99labels. You decide who gets in, and only members have access to events, to the great brands, and to the fun! When any of your referred friends make their first purchase, you get shopping credit of Rs 750, That's endless amounts of potential shopping money just waiting for you!We'll see you at 99labels, and do feel free to contact us with any other questions at support@99labels.com

Very warmly,

Team99

support@99labels.com
99 Helpline :  011 - 47569999,011 - 47569999 (Toll Free)

Follow us
© 2010 Ninety Nine Labels Pvt. Ltd.

Thursday, April 14, 2011

Who is Anna Hazare?

1. Who is Anna Hazare?
An ex-army man. Fought 1965 Indo-Pak War

2. What's so special about him?
He built a village Ralegaon Siddhi in Ahamad Nagar district, Maharashtra
3. So what?
This village is a self-sustained model village. Energy is produced in the village itself from solar power, biofuel and wind mills.
In 1975, it used to be a poverty clad village. Now it is one of the richest village in India. It has become a model for self-sustained, eco-friendly & harmonic village.

4. Ok,...?
This guy, Anna Hazare was awarded Padma Bhushan and is a known figure for his social activities.

5. Really, what is he fighting for?
He is supporting a cause, the amendment of a law to curb corruption in India.
6. How that can be possible?
He is advocating for a Bil, The Lok Pal Bill (The Citizen Ombudsman Bill), that will form an autonomous authority who will make politicians (ministers), beurocrats (IAS/IPS) accountable for their deeds.

8. It's an entirely new thing right..?
In 1972, the bill was proposed by then Law minister Mr. Shanti Bhushan. Since then it has been neglected by the politicians and some are trying to change the bill to suit thier theft (corruption).

7. Oh.. He is going on a hunger strike for that whole thing of passing a Bill ! How can that be possible in such a short span of time?
The first thing he is asking for is: the government should come forward and announce that the bill is going to be passed.
Next, they make a joint committee to DRAFT the LOK PAL BILL. 50% goverment participation and 50% public participation. Because you cant trust the government entirely for making such a bill which does not suit them.

8. Fine, What will happen when this bill is passed?
A LokPal will be appointed at the centre. He will have an autonomous charge, say like the Election Commission of India. In each and every state, Lokayukta will be appointed. The job is to bring all alleged party to trial in case of corruptions within 1 year. Within 2 years, the guilty will be punished. Not like, Bofors scam or Bhopal Gas Tragedy case, that has been going for last 25 years without any result.

9. Is he alone? Whoelse is there in the fight with Anna Hazare?
Baba Ramdev, Ex. IPS Kiran Bedi, Social Activist Swami Agnivesh, RTI activist Arvind Kejriwal and many more.
Prominent personalities like Aamir Khan is supporting his cause.

10. Ok, got it. What can I do?
At least we can spread the message. How?
Putting status message, links, video, changing profile pics.
At least we can support Anna Hazare and the cause for uprooting corruption from India.
At least we can hope that his Hunger Strike does not go in vain.
At least we can pray for his good health.

Saturday, January 29, 2011

How to remove Active Desktop Recovery screen

  1. Go to Run and type regedit
  2. Now navigate to this path – HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\SafeMode\Components
  3. You would find a key named DeskHtmlVersion
  4. Right click the key and select Modify
  5. Under the label Base, select the radio button Decimal
  6. Change Value data to 0
  7. Click OK

Monday, November 8, 2010

configure postfix mail server.



This article explains how to setup a small mail server very fast on fedora system.

After following this tutorial, you will have : (1) MTA - postfix (2) SMTP authentication -

CYRUS SASL (3) IMAP and POP3 - Dovecot (4) Webmail - squirrelmail



(1) Firstly, we need to install packages needed. Login as root and install the packages using

YUM. Type the following command :

# yum install postfix dovecot cyrus-sasl cyrus-sasl-devel cyrus-sasl-plain cyrus-sasl-lib

squirrelmail

Even if we have any of the packages already installed, it will just skip the installed ones.

Now, change the default mail transport agent, MTA. Type the following command and

choose postfix.

# system-switch-mail

Add postfix and dovecot and httpd (optionally if you choose to install the webmail) to

startup by

 # chkconfig --add postfix    and
 # chkconfig --add dovecot

and add these services to init levels 3 and 5 by

 # chkconfig --levels 35 postfix on
 # chkconfig --levels 35 dovecot on


(2) Configure postfix

The main configuration file for postfix lies in /etc/postfix/main.cf and change the following

values.

myhostname = mail.<your-real-internet-hostname-or-ipaddress>.com

This will be the address that will receive the mails.


mydomain = <real-domain-name>.com

This will be the domain your mails appear to be sent from.


init_interfaces = all

The address used for receiving the mail.


mydestination = $myhostname, $mydomainname, localhost, localhost.localdomain

Specify all hostnames pointing at your IP address but don't specify the domains here.


home_mailbox =  Maildir/

This is the path to save the mails to. The mailbox will store the mails to

/var/spool/mail/user or /var/mail/user. But Maildir/ will store mail in each user's home

directory (/home/user/Maildir).


Save the file and restart postfix.


# /etc/init.d/postfix restart


(3) Test your configurations.

Run the following command and check /root/Maildir/new for a message.

echo "Hello" | mail root


(4) Configure dovecot

Install dovecot and go to /etc/dovecot.conf file and change the following line :

protocols = imap pop3. Just remove the pound sign from the beginning of the line.

Restart dovecot.

Test :  # echo "Hello" | mail <username>


(5) Start Apache for webmail and dovecot.

# /etc/init.d/httpd restart
# /etc/init.d/dovecot restart


Test : Open your browser and go to  http://<your-hostname>.com/webmail and log in with

your user other than root.After logging in, you will have a new mail in  your mailbox.


(6) Enable SMTP authentication.

Edit the /etc/postfix/main.cf file and add this lines at the botton of the file.

smtpd_sasl_auth_enable = yes

smtpd_sasl_security_options = noanonymous

smtpd_sasl_local_domain = $myhostname

broken_sasl_auth_clients = yes

smtpd_recepient_restrictions = permit_sasl_auththenticated, check_relay_domains

Now, start saslauthd daemon and restart postfix.

# /etc/init.d/saslauthd restart
# /etc/init.d/postfix restart


(7) Open your email client (thunderbird,et cetera) and set your account as follows:

Incoming

Name : Your name
Email address : <non-root-user>@<your-real-internet-hostname>.com
Account password :
Server type = POP
Incoming server = mail.<your-domain>.com


Outgoing

Description : Something
Server Address : mail.<your-domain>.com
Port : 25
Check "My SMTP server requires authentication"
Username : <non-root-user>@<your-real-internet-hostname>.com
Password:
Choose "PLAIN" for authentication type.


If you want to receive root's mail to non-root user mailDir, edit the /etc/aliases file and

uncomment the root line to look like this.

root: <non-root-user>

# /etc/init.d/postfix restart

Tuesday, October 19, 2010

Snaptu: Your Willpower Is as Strong as You Think It Is, Study Says [Distractions]

"Your ability to focus on one thing without succumbing to distractions may test your willpower, but according to a recent study performed by a team of..."


Click here to read the full story

--
This email was sent to you from Snaptu mobile application.

Squid+Dansguardian+ClamAV

I'll explain here how to setup a web proxy with antivirus capabilities

We will use these tools : Squid + ClamAV + a patched version of DansGuardian

We will be needing following tools to get this task done

Squid : www.squid-cache.org
ClamAV : www.clamav.net
DansGuardian : dansguardian.org

Note: You can download Squid rpm from the default RHEL/CentOS repo.

Requirements for Squid:

Squid should be running on port 3128

should only entertain request from localhost

/etc/squid/squid.conf :
http_port 3128
acl localhost src 127.0.0.0/255.0.0.0
http_access allow localhost
http_access deny all

Install DansGuardian with the antivirus plugin from SecurityTeam.us repo :

Install the SecurityTeamUS repo :
rpm -ihv http://repo.securityteam.us/repository/redhat/securityteamus-repo-latest.rpm

Install DansGuardian-av and its dependencies (included on SecurityTeamUS) :

yum install dansguardian-av


Output :
Setting up Install Process
Setting up repositories
SecurityTeamUS 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 30 kB 00:00
SecurityTe: ################################################## 68/68
Added 68 new packages, deleted 0 old in 0.88 seconds
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for dansguardian-av to pack into transaction set.
dansguardian-av-2.8.0.6-1 100% |=========================| 24 kB 00:00
---> Package dansguardian-av.i386 0:2.8.0.6-1 set to be updated
--> Running transaction check
--> Processing Dependency: libclamav.so.1 for package: dansguardian-av
--> Processing Dependency: clamd for package: dansguardian-av
--> Processing Dependency: libesmtp.so.5 for package: dansguardian-av
--> Processing Dependency: libesmtp for package: dansguardian-av
--> Processing Dependency: clamav for package: dansguardian-av
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for libesmtp to pack into transaction set.
libesmtp-0.8.12-1.i386.rp 100% |=========================| 4.9 kB 00:00
---> Package libesmtp.i386 0:0.8.12-1 set to be updated
---> Downloading header for clamd to pack into transaction set.
clamd-0.88.7-1.i386.rpm 100% |=========================| 4.7 kB 00:00
---> Package clamd.i386 0:0.88.7-1 set to be updated
---> Downloading header for clamav to pack into transaction set.
clamav-0.88.7-1.i386.rpm 100% |=========================| 7.4 kB 00:00
---> Package clamav.i386 0:0.88.7-1 set to be updated
--> Running transaction check
--> Processing Dependency: clamav-db = 0.88.7-1 for package: clamav
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for clamav-db to pack into transaction set.
clamav-db-0.88.7-1.i386.r 100% |=========================| 2.6 kB 00:00
---> Package clamav-db.i386 0:0.88.7-1 set to be updated
--> Running transaction check
.
Dependencies Resolved
.
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
dansguardian-av i386 2.8.0.6-1 SecurityTeamUS 309 k
Installing for dependencies:
clamav i386 0.88.7-1 SecurityTeamUS 944 k
clamav-db i386 0.88.7-1 SecurityTeamUS 7.3 M
clamd i386 0.88.7-1 SecurityTeamUS 64 k
libesmtp i386 0.8.12-1 SecurityTeamUS 176 k
.
Transaction Summary
=============================================================================
Install 5 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 8.8 M
Is this ok [y/N]: y

.
Start ClamAV daemon :
service clamd start

By default, clamd should listen on 127.0.0.1:3310

Set up DansGuardian-av this way :
reportinglevel = 3
languagedir = '/etc/dansguardian/languages'
language = 'ukenglish'
loglevel = 3
logexceptionhits = on
logfileformat = 1
loglocation = '/var/log/dansguardian/access.log'
filterip =
filterport = 8080
proxyip = 127.0.0.1
proxyport = 3128
nonstandarddelimiter = on
usecustombannedimage = 1
custombannedimagefile = '/etc/dansguardian/transparent1x1.gif'
filtergroups = 1
filtergroupslist = '/etc/dansguardian/filtergroupslist'
bannediplist = '/etc/dansguardian/bannediplist'
exceptioniplist = '/etc/dansguardian/exceptioniplist'
banneduserlist = '/etc/dansguardian/banneduserlist'
exceptionuserlist = '/etc/dansguardian/exceptionuserlist'
showweightedfound = on
weightedphrasemode = 0
urlcachenumber = 3000
urlcacheage = 900
phrasefiltermode = 2
preservecase = 0
hexdecodecontent = 0
forcequicksearch = 0
reverseaddresslookups = off
reverseclientiplookups = off
createlistcachefiles = on
maxuploadsize = -1
maxcontentfiltersize = 256
usernameidmethodproxyauth = on
usernameidmethodident = off
preemptivebanning = on
forwardedfor = off
usexforwardedfor = off
logconnectionhandlingerrors = on
maxchildren = 120
minchildren = 8
minsparechildren = 4
preforkchildren = 6
maxsparechildren = 32
maxagechildren = 500
ipcfilename = '/tmp/.dguardianipc'
urlipcfilename = '/tmp/.dguardianurlipc'
pidfilename = '/var/run/dansguardian.pid'
nodaemon = off
nologger = off
daemonuser = 'nobody'
daemongroup = 'nobody'
softrestart = off
virusscan = on
virusengine = 'clamav'
tricklelength = 32768
forkscanlength = 32768
firsttrickledelay = 10
followingtrickledelay = 10
maxcontentscansize = 41904304
virusscanexceptions = on
urlcachecleanonly = on
virusscannertimeout = 60
notify = 2 # will notify the admin only
emaildomain = 'domain.be'
postmaster = 'admin@domain.be'
emailserver = '127.0.0.1:25'
downloaddir = '/tmp/dgvirus'
clmaxfiles = 1500
clmaxreclevel = 3
clmaxfilesize = 10485760
clblockencryptedarchives = off
cldetectbroken = off
clamdsocket = '127.0.0.1:3310'

This is my configuration, please review it to match your needs

Make sure dansguardian will start at boot :
chkconfig dansguardian on

Start DansGuardian :
service dansguardian start

Now, you can set up your browser preference to use the antivirus web proxy (IP:8080)

If you want to set dansguardian as a transparent proxy :
1. Edit /etc/squid/squid.conf and add :
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

2. Type this at the command prompt (where your local subnet is 10.0.0.0/24 and your LAN interface is eth0) :
iptables -t nat -A PREROUTING -i eth0 -s 10.0.0.0/24 -p tcp --dport 80 -j REDIRECT --to-port 8080

3. Save your iptables configuration, type :
iptables-save > /etc/sysconfig/iptables

Squid logs can be tailed here :
tail -f /var/log/squid/access.log

DansGuardian logs can be tailed here :
tail -f /var/log/dansguardian/access.log


Sunday, October 17, 2010

Weird facts about technology:

  • It’s impossible for your computer to be infected by a virus, just from opening an email message.
  • 70% of virus writers actually work under a contract for an organization.
  • Bulletproof vests, fire escapes, windshield wipers, and laser printers were all invented by women.
  • Leonardo DA Vinci invented the scissors.
  • Close to 60% of the radiation that comes from a mobile phone goes directly to the users head.
  • The web, not indexed by search engines is said to be 500 times bigger than the current size of the indexed web.
  • The original URL for Yahoo was was http://akebono.stanford.edu/
  • The name of the search engine Alta Vista came into existence when the word Vista was misinterpreted as “Alta Vista” on a white board.
  • Up until the 14th of September, 1995, domain registration was free.
  • The average person receives around 30 emails a day, 3 of these being spam.
  • Billions of hours are wasted online, spent, waiting for content to download.
  • The first “modern” computer was built in 1941 by Konrad Zuse in World War 2. He looked to funding from the Germans but was denied because they did not expect the war to last beyond Christmas.

 

Wednesday, September 8, 2010

Wonderfull Inspiration Story

Study this small story; hope it makes a big difference

professor began his class by holding up a glass with some water in it. He held it up for all to see & asked the students
"how much do you think this glass weighs?", '50gms! '100gms!' …..'125gms' …the students answered.

"i really don't know unless i weigh it," said the professor, "but, my question is:

what would happen if i held it up like this for a few minutes?"

nothing…the students said.

'Ok what would happen if i held it up like this for an hour?' the professor asked.

'Your arm would begin to ache' said one of the student

"you're right, now what would happen if i held it for a day?"

"your arm could go numb; you might have severe muscle stress & paralysis & have to go to hospital for sure!"

ventured another student & all the students laughed very good. But during all this, did the weight of the glass change?"

asked the professor. 'No'. Was the answer.

"then what caused the arm ache & the muscle stress?"

the students were puzzled.

"what should i do now to come out of pain?" asked professor again.

"put the glass down!" said one of the students

"exactly!" said the professor.

Life's problems are something like this. Hold it for a few minutes in your head & they seem ok.

Think of them for a long time & they begin to ache.

Hold it even longer & they begin to paralyze you. You will not be able to do anything…

It's important to think of the challenges or problems in your life, but even more important is to 'put them down' at the end of every day before you go to sleep…

That way, you are not stressed, you wake up every day fresh &strong & can handle any issue, any challenge that comes your way!
So, when you leave office/college/ workplace today, remember to put the glass down!

Tuesday, July 20, 2010

How to Extend LVM partition online?


One Logical Volume named lv1 is created under vg0. The Initial Size of that Logical Volume is
100MB. Now you required the size 500MB. Successfully make the size of that Logical Volume 500M
without losing any data. As well as size should be increased online.


Answer: In RHEL 4 LVM (Logical Volume Manager) is Version 2. The new feature added is online
extend. In previous version you should unmount the device.
1. Verify the size of Logical Volume: lvdisplay /dev/vg0/lv1
2. Verify the Size on mounted directory: df -h or df -h mounted directory name
3. Use : lvextend -L+400M /dev/vg0/lv1
4. ext2online -d /dev/vg0/lv1 to bring extended size online.
5. Again Verify using lvdisplay and df -h command.
Explanation: The Feature of LVM is dynamically resize the partition. If you resize data, it will not be
lost. LVM Concepts Multiple Physical Disks belongs to the physical group. Using multiple disks
belonging to physical group we can create on the Volume group. Under that Volume Group we can
create multiple Logical Volume and only these Logical Volumes we can use. As well as we can
increase and decrease the size of Logical Volume by using lvextend, lvresize etc.

Thursday, July 15, 2010

Firewall settings for VMware Server 2

If you are running a firewall and VMware Server 2, there are 2 main ports you will need to create firewall exceptions for.

These are:

TCP: 8333
TCP: 902

8333 allows https access to the VMware infrastructure web access.
902 allows the VMware server console to connect.

These are the default ports, if during configuration you specified non default ports you will need to create exceptions for these and not the values stated above.

Tuesday, July 13, 2010

HOWTO: Configure YUM to work behind a proxy



If you are running your Redhat/Centos or Fedora machine in an enterprise environment you may be sitting behind a network proxy server like squid.

If you try and update or install software it will fail with timeouts or errors contacting the repository mirrors.

To configure YUM to work with your proxy server you need to add the following line to your /etc/yum.conf file.

Anonymous proxy configuration:
proxy=http://yourproxyip:port/

If your proxy server requires authentication add the following lines to your /etc/yum.conf file instead.

proxy=http://yourproxyip:port/
proxy_username=youruser
proxy_password=yourpassword

 You will be able to update and install software now, give it a go!

Monday, July 12, 2010

HOWTO: force a immediate reboot of a remote Linux machine

Occasionally as a Linux administrator you will be in the situation where working on a remote server and you are left with no option but to force a reboot the system. This may be for a number of reasons, but where I have found it most frequent is when working on Linux clusters in a remote location.

When the "reboot" or "shutdown" commands are executed daemons are gracefully stopped and storage volumes unmounted.
This is usually accomplished via scripts in the /etc/init.d directory which will wait for each daemon to shut down gracefully before proceeding on to the next one. This is where a situation can develop where your Linux server fails to shutdown cleanly leaving you unable to administer the system until it is inspected locally. This is obviously not ideal so the answer is to force a reboot on the system where you can guarantee that the system will power cycle and come back up. The method will not unmount file systems nor sync delayed disk writes, so use this at your own discretion.

To force the kernel to reboot the system we will be making use of the magic SysRq key.

The magic_SysRq_key provides a means to send low level instructions directly to the kernel via the /proc virtual file system.


To enable the use of  the magic SysRq option type the following at the command prompt:

 

    echo 1 > /proc/sys/kernel/sysrq

Then to reboot the machine simply enter the following:

 

    echo b > /proc/sysrq-trigger

Voilà! Your system will instantly reboot.

Wednesday, July 7, 2010

Get the latitude and longitude of Google Maps

I got this little trick because I needed it myself for my sister website WeirdGlobeNews.com. To grab the latitude and longitude from the Google Maps center, do the following steps.

  1. Go to Google Maps, enter your search term (Such as "Amsterdam, The Netherlands") and press Enter.
  2. Now go to your address bar in your browser en copy the following code and press Enter
    javascript:void(prompt('',gApplication.getMap().getCenter()));
  3. A JavaScript popup box will appear, showing the latitude and longitude of the center point of your map.
    (52.373812, 4.890951)
  4. If you're using Firefox, you can turn this into an bookmark. Create a new bookmark and copy the JavaScript code in the Location. Now you can always get the coördinates with just the press of one button.

Kick everybody out a MSN conversation


Are you also a user of Windows Live Messenger (formerly known as MSN Messenger)? And don't you hate it when you're invited into a conversation with 10+ people, just because others think "it's fun"? It'll slow your computer down big time. Here's a tip on how to kick all users out of the conversation.

  1. In the conversation screen, type the following code and press Enter.
    .pif
  2. That's it! Everybody will be kicked from the conversation.

Give Windows your own brand name


Here's a little trick where you can change the manufacturer etc. from your PC. You can find these when you right-click on "My Computer" and select Properties. Hit the "Support information" button and you'll see the information.

  1. Open Notepad and copy the following code.
    [General]
    * Manufacturer=Your name here
    * Model=Your model here
    * [Support Information]
    * Line1=Your name here
    * Line2=Your address here
    * Line3=Your email address here
  2. Change the lines into the things you want to be displayed ("Your name here" will be "Marco" or something).
  3. Save the file as oeminfo.ini
  4. Place the oeminfo.ini in C:\WINDOWS\system32 and you're done.