Welcome to Srini's blog

Wednesday, March 31, 2010

Set date in Linux

Cmd to set date in linux machine is date -s"Wed mar 31 23:42:00".

Wednesday, March 24, 2010

Men Vs Woman -- Some funny things about Humans

BRAIN PROCESS
Women --Multiple process, Women's brains designed to concentrate multiple task at a time. Women can Watch a TV and Talk over phone and cook the new recipe.
Men -- Single Process, Men's brain designed to concentrate only one work at a time. Men can not watch a TV and talking in phone same time. He stops the TV while Talking. He can either watch TV or talk over phone or cook.

LANGUAGE
Women -- She can easily learn many languages. Her brain set up. But can not find the solutions to problems. 3 year old gal has three times higher vocabulary than 3 year old boy.
Men -- He can not easily learn languages; he can easily solve the problems.

ANALYTICAL SKILL
Women -- If a complex map is viewed by women, she can not understand it. She can not understand the details of the map easily. For her it is dump of lines in a paper.
Men -- His brain has lot of space for handling the analytical process. So easily he can analyze and find the solution for a process. He can design (blue print) a map of a building easily.

CAR DRIVING
Women -- She take a long time to recognize the object direction/ speed. Her single process mind stops the audio in the car (if any), then concentrating only on the driving.
Men -- While driving a car, men's analytical spaces are used in his brain. He can drive a car fastly. If he see an object at long distance, immediately his brain classifies the object (bus or van or car) direction and speed of the object and driving accordingly. You can often watch, while men driving the car fastly, the women sit next to him will shout, "GO SLOW" , "CARE FULL", "AAHHH", "OHH GOD.." ..etc..

LIE
Women -- Many times, when men lie to women face to face, they got caught easily. Her super natural brain observe the facial expression 70%, and the body language 20% and the words comes from mouth 10%. So he is easily caught while lieing.
Men -- Men's brain does not have this. Women easily lie to men face to face. So guys, While lieing to your girls, use phone, or letter or close all the lights or cover your/her face with blanket. Don't lie face to face.

MAP
Men -- can easily locate the place in a complex map. His analytical brain does this. While watching a cricket match in a stadium with full of crowd, men can leave his seat to T shop and keeps everything in his mind and comes back to his seat without problems. He uses his analytical skills space of brain.
Women -- Women can't do this. They often lost their way to their seat.

PROBLEM
Women -- End of Day, if women have lot of problems, her brain can not classify the problems. She wants someone to her that. After telling everything to a person she goes happily to bed. She does not worry about the problem solved or not.
Men -- End of day, if men have lot of problems, his brain clearly classifies the problems and put into individual rooms of brain, the problems in individual room of brain and finding the solution one by one. You can see many guys looking on the sky's for a long times. If you disturb him, he gets irritated.

WANTS
Women -- want relationship, friends, family...etc...
Men -- want status, success, solutions, big process... etc...

UNHAPPY
Women -- If women unhappy with their relations, she can not concentrate on work.
Men -- If men unhappy with their work, he can not concentrate on the relations.

SPEECH
Women -- use indirect languages in speech.Hillary asked Bill, "Bill do you like to have a cup of coffee?" This means, Hillary really want a cup of coffee.
In the morning......."Darling, do you think, will it be good to have an Omlette for breakfast"
Men -- use direct language. "Hillary, I want to have a cup of coffee, Pls stop the car when you see a coffee shop".In the morning...."Darling,
Can you please prepare an omelet for breakfast".

HANDLING EMOTION
Women -- talk a lot without thinking, if they are in emotion.
Men -- act a lot without thinking. That's why many of prisoners are men all over the world.

LIFE
Women -- She want everything in life.
Men -- Life is very easy to men. One good job, one alcohol bottle is enough for him.

Note : Ofcourse this is not my personal opinion. I got this funny mail from a frnd.

Tuesday, March 23, 2010

'rdesktop' installation in Linux

'rdesktop' is an open source client for Microsoft's proprietary RDP protocol, capable of natively speaking Remote Desktop Protocol (RDP) in order to present the user's Windows desktop. Supported servers include Windows 2000 Server, Windows Server 2003, Windows Server 2008, Windows XP, Windows Vista and Windows NT Server 4.0.
rdesktop Support for the features available in RDP 5.1 and RDP 6 have not yet been implemented, but officially documented on MSDN.

rdesktop currently runs on most UNIX based platforms with the X Window System, and other ports should be fairly straightforward.rdesktop is released under the GNU Public Licence (GPL). rdesktop is a Sourceforge project.

Installation procedure : we have 2 installations procedures, among them procedure 2 is easier than 1 as per my opinion.
Procedure 1 :
1. Download the latest rdesktop source from sourceforge.
2. Copy the rdektop tar file into /tmp location and untar this using the cmd tar -xzvf rdesktop-1.6.0.tar.
3. Go to /tmp/rdesktop/ and run the cmds
i. ./configure
ii. make
iii. make install
It will install the rdesktop.

Procedure 2 :
1. Type the cmd yum -y install rdesktop
it will give an error as "Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=extras error was
[Errno 4] IOError:
Error: Cannot find a valid baseurl for repo: extras"
.
It means If you are running with proxy then you need to set proxy settings using cmds
i. echo 'proxy=http://proxy-ip:port/' >> /etc/yum.conf -- It will add the entry in yum conf file.
2. Now try the step 1, it will install 'redesktop' properly.

cmd to launch remote machine is : rdesktop rdpserver-ip
possbile options are
-u : username
-p : password
-d : domain
-E : encryption
-4 : RDP server version 4
-5 : RDP server version 5

Note : rdesktop installation is meaningful only if you are using GUI version of linux.

Monday, March 22, 2010

Skype 4.2 for Download

Skype released their new version 4.2 on 10th Mar 2010. There are no major enhancements from last version. they fixed the issues under payments, installations and security categories . Download skype4.2

NFS Server/Client configuration in Linux

NFS : The Network File System (NFS) was developed to allow machines to mount a disk partition on a remote machine as if it were a local disk. It allows for fast, seamless sharing of files across a network.

NFS Server configuration :
1. Create a dir which you want to mount i.e /home/nfs/sharepath.
2. We need to edit the /etc/exports file to add the dir path which you want to mount. add entry like
/home/nfs/sharepath *(rw,no_root_squash,no_all_squash,async,insecure)
here
i.* is to allow all ips
ii.rw -- read/write, ro -- readonly
iii. no_root_squash -- By default, any file request made by user root on the client machine is treated as if it is made by user nobody on the server
iv. no_all_squash -- If only part of a volume is exported, a routine called subtree checking verifies that a file that is requested from the client is in the appropriate part of the volume. If the entire volume is exported, disabling this check will speed up transfers
v. async -- telling a client machine that a file write is complete.
3.Restart nfs service using the cmd service nfs restart
4.Allow nfs port to connnect remotely in iptables or stop the iptables.

NFS client Config :
1. Create dir which you want to mount remote dir. i.e /home/nfs/remote_sharepath
2. Mount the path using the following cmd
mount remote_host_ip:/home/nfs/sharepath /home/nfs/remote_sharepath
3. Now create a sampe text file in NFS client mounted path(/home/nfs/remote_sharepath) and check the NFS server mount path and vise versa.

Friday, March 19, 2010

Configure Auto-reply mail option in Outlook

When you are going for vacation then it will be useful if you set auto-reply for your mail account, So that senders will know you are out of work. And if it is emergency then they will find useful info in your auto-reply msg and will take appropriate actions.

Follow the below steps to configure auto-reply
Step A :
1. Start a new message.
2. Type the Subject(Auto-Reply) and message of your auto-reply.
3. Select File --> Save As... from the menu. Make sure Outlook Template is selected under Save as type
4. Click Save.
Step B :
1. Select Tools --> Rules and Alerts from the menu in the main Outlook window.
2. Click New Rule
3. Select check messages when they arrive from Start from a blank rule and Click Next.
4. Check Where my name is in the To box under Select action(s) and Click Next.
5. Check reply using a specific template under Select action(s) and
6. Click on a specific template under Edit the rule description.
7. Select User Templates and browse the template saved previously by you(Step-A) and Click Open and Click Next.
8. Check Except if it is an Out of Office message under Select exception(s) and Click Next.
9. Give the Name of the auto-reply rule and Check the turn on this rule
10. Click Finish.

Note : Please kindly observe that all the above steps are for outlook -2007

Wednesday, March 17, 2010

Ugadi celebrations ...

Hi All belated తెలుగు సంవత్సర శుభాకాంక్షలు . This weekend I went to my home village and spent 2 days with frnds and parents. After a long time I played vollaball with my frnds. This year i am missing my village teerdtham(Jatara) which is scheduled on 18th of this month.
I celebrated this ugadi in my sister's home at with my cousin srinu's family and my uncle family. Yesterday we spent the day with lot of discussions. Actually I unexpectedly went to thr with some personal work. Yesterday's lunch&dinner specials are 'Naatucodi biryani, chicken fry, Fish fry and Fish soop and chicken jonts. Because of Jyothi, Rupa, Chanti and jaya aunt yesterday we had a tasty meal. Thanks my dear sisters.

Wednesday, March 10, 2010

Happy B'day SAM

Today my frnd Sampurna's birthday .. Happy B'day Sam. One good news to this B'day is she will become a bride soon. Advanced happy married life too Sam.I Think this B'day
is very special to her from last 2 decades, 2 tons.. no.. no.. 2,3,4,.....x tons of happyness in one day.. Contrats Sam. I think Sam's frnds exiting to see the engagement pics,....Hey sam I would like to see engagement photos, please post me ASAP. Enjoy this movement, I am Wishing You a Wonderful Beginning...on the journey to a lifetime of love, and A wish for a lifetime of beautiful tomorrow's..... Cheers,...

Enabling telnet service in Linux

By default telnet service is disabled because of security concerns. Still you want to enable telnet follow the steps

1.Go to /etc/xinetd.d/
2.Open krb5-telnet file . It is like
# default: off
# description: The kerberized telnet server accepts normal telnet sessions,
# but can also use Kerberos 5 authentication.
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/kerberos/sbin/telnetd
log_on_failure += USERID
disable = yes
}

3.Edit the file as 'disable = no' and save the file
4.Restart the xinetd server using cmd /etc/init.d/xinetd restart
5.Now check the telnet access by using cmd telnet IP 23 from any machine
6.Still you may not be access telnet due to Ip tables not allowing the port 23
Now you can follow one of the 2 steps below.
i. Edit the IP tables to allow 23 port
a. go to /etc/sysconfig/iptables and add the below entry
-A INPUT -i ppp0 -p tcp -m tcp --sport 513:65535 --dport 23 -m state --state NEW,ESTABLISHED -j ACCEPT
(OR)
ii. Stop the iptables using cmd stop iptables
7. Thts it....

Note : Before enabling telnet service please go thru the security concerns...

Friday, March 5, 2010

Win 2003 server TS permission issue

Today I got an issue with windows 2003 server. I have admin rights on this box and i created a user for some testing purpose. Every time I am connecting to this box remotely thru mstsc with admin privileges. for new user which is created today I am not able to login remotely thru rdp session , I got error as
"To log on to this remote computer, you must be granted the allow log on through Terminal Services right. By default, members of the Remote Desktop User group have this right ...."

A quick googling I got sol and its worked. Solution is very simple.I am posting the sol here.

Go to Administrator Tools -->Terminal Services configuration -->right-click on RDP-tcp --> properties --> Permission and add the user here to work out ..

Note : By default, only Administrators are allowed log on to the DomainController. If you want to some other users to access the DomainController using TS, try the above setting with admin privileges only.
Gud luck ..

Wednesday, March 3, 2010

Happy wedding day AKKA

Today my second sister's marriage anniversary. I wish you very happy married life akka. njoy the year with full of happiness.