Monday, June 28, 2010

View, Start, Stop, Pause, Restart a service in Windows

Hi here I am giving you the commands which you should use them from the command line prompt in windows.

There are many a times when you want to know what are the services running while you have logged in to your computer.

Use this command which display a list of services that are running on your computer:

net start

To start a new service, use:

net start

To stop a running service, use:

net stop

To pause a service, use:

net pause

To restart a service, use:

net continue

Hope this is helpful :-)

Saturday, June 19, 2010

Installing gnuplot on windows

You can install gnuplot on windows easily to plot the graphs.

Download gnuplot from this

There is no need to run any exe file but directly copy them to some directory on your system and then make a shortcut to wgnuplot.

It is also useful to install ghostview which allows you to view postscript graphs made with gnuplot. You need gs860w32.exe and gs49w32.exe (or higher?).

Instructions for installing ghostview can be found here;

http://pages.cs.wisc.edu/~ghost/gsview/

Friday, June 11, 2010

Identify the ports in linux

For socket programming, you need to use the port. If you want to identify the ports which are active, you can use the following commands. Generally in linux, the ports from 0 to 1023 are reserved and can be accessed only as a root user.

For checking the information about the port, you can use netstat

If you want to know more about this command, you can check its man page
$ man netstat

But for quick reference, you can use any of these for the appropriate purpose.

For finding the open ports:
$ netstat --listen

For finding the open ports and established TCP connections:
$ netstat -vatn

For checking information about a port,
$ netstat -anp | grep <port>

For identifying the ports already in use:
$ netstat -atnp | grep LISTEN

Tuesday, March 9, 2010

How to mount Windows[NTFS] from Linux

Initially login as the root user.

Then type this command on the console:-

$ fdisk -l

This command shows what are the different disks present on our machine. They generally follow this particular format: /dev/sda[number]

$ mount -t ntfs /dev/sda[number of the disk which you want to mount] [directory on the root from which you will access the mounted disk files say for ex: mountedDir]

Then for viewing the mounted files just type as usual,

$ cd mountedDir

You will be able to access the files of the disk which was mounted.

For unmounting the disk, just simply type this on the console:

$ unmount mountedDir

Hope this will be helpful.

Finding the system information in Linux

These days am using Fedora more than Windows so trying to learn more about that. For finding out the details related to your system, you can use the following commands.

First login in to the root account.

Then, you can run these commands:

% /usr/sbin/dmidecode -t baseboard

This will give details of the motherboard


% /usr/sbin/dmidecode -t processor

This will dump the information about the processor.

Other keywords which are available which can be used as options for ‘t’ are

  1. bios
  2. system
  3. chassis
  4. memory
  5. cache
  6. connector
  7. slot
A easy method to find all the information abuot your cpu, you can execute this command:

$ cat /proc/cpuinfo

Hope this will be helpful.

Wednesday, June 17, 2009

Summer'09

After saying a tearful gudbye to my buddies, life in the hostel became so boring and gloomy. Always someone used to visit me atleast once a day for some reason. But now in the morning when some one knocks on the door, I eagerly go and open it dreaming if my friends are back to the hostel to surprise me, but when I open Aayamma comes and asks like "amma room cleaning..." huh..Poor me!

So these summer days began with many memories. Being converted from 4-yr course to Dual degree course with a purpose, I sometimes encourage myself not to lost in thoughts and not get discouraged. Afterall this is part and parcel of life. But certainly we do have many emotions. Really miss my BTech days. Hoping for a brightful year to come my way and all my friends.

Miss you all.

Saturday, May 9, 2009

Time to say gud bye to all my friends....

I was enjoying the music and suddenly this song was on the track -- "Friends are Friends Forever" song by Michael W Smith. I really enjoyed this song and I wanted to dedicate this song to all my wonderful buddies.... The lyrics were written by Deborah D Smith.
The song goes like this...


Packing up the dreams God planted
In the fertile soil of you
I can't believe the hopes He's granted
Means a chapter of your life is through

But we'll keep you close as always
It won't even seem you've gone
'Cause our hearts in big and small ways
Will keep the love that keeps us strong

And friends are friends forever
If the Lord's the Lord of them
And a friend will not say never
'Cause the welcome will not end
Though it's hard to let you go
In the Father's hands we know
That a lifetime's not too long
To live as friends

And with the faith and love God's given
Springing from the hope we know
We will pray the joy you live in
Is the strength that now you show

We'll keep you close as always
It won't even seem you've gone
'Cause our hearts in big and small ways
Will keep the love that keeps us strong

And friends are friends forever
If the Lord's the Lord of them
And a friend will not say never
'Cause the welcome will not end
Though it's hard to let you go
In the Father's hands we know
That a lifetime's not too long
To live as friends

And friends are friends forever
If the Lord's the Lord of them
And a friend will not say never
'Cause the welcome will not end
Though it's hard to let you go
In the Father's hands we know
That a lifetime's not too long
To live as friends

To live as friends

Though it's hard to let you go
In the Father's hands we know
That a lifetime's not too long
To live as friends

No a lifetime's not too long
To live as friends


Will miss you all :( :( :(