Friday, December 5, 2014

How to know on which port a process is running in Windows

Windows is providing an GUI (called Resource Monitor) to know the information about running processes.

1. Click on Windows icon and open "Run"

2, Type "resmon.exe" and press Enter.

You should see an application like below:




3. Now click on "Network" tab and click on last section available "Listening Ports".

4. This shows all the ports list. You can sort them in ascending/descending order and check for required port.



Kill the process with Process ID:

From above UI, we can get the process ID (PID) of a process running.
Now with that PID, use below command to kill the process.

taskkill /PID <PID> /F

If it says, you require admin priviliges for this, then open Command prompt as administrator.

Friday, April 25, 2014

Browing unix directories and editing files using Notepad++

Suppose you want to copy a text from your unix system to windows system and you dont have a terminal opened in windows for the unix box, then the only way is to write data to a temp file in unix system and open that file in windows using winscp. Making changes to that file from windows involves a bit of work.

We can use our favorite Notepad++ to do this job, where we can browse, open and edit the files in the same window.

1. Open Notepad++
2. In Menu, choose "Plugins" --> NppFTP --> Show NppFTP Window
3. It will open a window on the right side of notepad++ window.
4. Click on Settings icon, then select "Profile Settings"


5.  Click on "Add New" to define a new profile for a unix system. Give a name to the profile.


6. Select the created profile and give Hostname, Username, Password values.
Select "Ask for password" checkbox, if you want to enter the password everytime you make a change to remote file.
You can give the initial directory to be shown as well, when the connection is established.
7. Click Close
8. Now click on "(Dis)connect" icon and select the created profile, to browse that unix directory.




Now you can open any file directly in notepad and edit it.



Tuesday, April 15, 2014

Recording desktop screen using vlc media player

It is very easy to record the screen using vlc.

Steps:

1. Open VLC media player

2. Select "Media" in file menu, and then click "Stream..."

3. Select 4th tab "Capture Device"

4. Select "Capture Mode" as "Desktop"

5. By default "Desired frame rate for capture." will be "1.00f/s", i.e., it takes one screenshot for one second. So if you do an activity for 1 minute, your video will be made up of 60 screenshots.
For better view of video, select the frame rate as 10.00f/s

6. In the bottom right of window, you can see an option called "Stream". Click the down arrow available beside "Stream" option.



7. Select "Convert"

8. In the "Destination file" field, browser (or) give full file path to be created

9. Click on "Start"



10. Now your video recording will be started.
Minimize the vlc player and do whatever activities you want.

11. Once you are done with the recording, close the VLC media player.


12. Now you can see that a media file will be created with the specified name, which is your recorded video.

Good luck...

Monday, October 1, 2012

Linux/Cent OS 6: Getting error when trying to take screen shot in cent os 6

After the fresh Cent OS 6 installation, people may get the following error, when "Print Screen" key is pressed:

There was an error running gnome-screenshot:
Failed to execute child process "gnome-screenshot" (No such file or directory)

To solve this, gnome-utils need to be installed, which can be done by running the following command from terminal(as a root).
yum install gnome-utils -y

Saturday, September 29, 2012

Linux: To know whether the system is 32-bit or 64-bit

There are several ways to find this:

1)The kernel version can be found by, using "uname -m" command.
$ uname -a

i686      -->  32-bit
i386      -->  32-bit ==> so, ix86 --> 32-bit

x86_64  -->  64-bit


2) by using the getconf command as below
$ getconf LONG_BIT
This straight away returns 32 or 64.

Linux/CentOS: way to install vlc player on Cent OS 6

way to install vlc player on Cent OS 6


1) Install RPMForge repository as:
(To know the kernel version, check here)

in 64-bit:

rpm -ivh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

in 32-bit:

rpm -ivh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

2) Now, install VLC as:

yum install vlc
------------------

Monday, April 23, 2012

Forgot Admin password? Performing Recovery Console in an easy way

While performing the Recovery of Windows OS, it asks for the administrator password.
If u dont know/forgot it, then u can follow the below steps to escape from it.

First boot in to the windows, as mentioned in the post http://sureshmuchenthula.blogspot.in/2012/04/to-boot-into-windows-after-removing.html

Then, Start > Run > type "regedit"
Now, navigate to the below section.
HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows NT > CurrentVersion > Setup > RecoveryConsole

Here, change the value of DWORD to 1. Then restart the windows and perform the Repair option. When it asks for the administrator password, just press "Enter". 
That's it.