Archive for November, 2008

Extract Audio Tracks From Video Files For Free.

If you want to extract just the audio track from video and still maintain the quality of the audio track, then you need to use Video MP3 Extractor from GeoVid.

This tiny program will install in seconds and will allow you to tracks from any video encoded in AVI, ASF, WMV formats and output the file in MP3 format and it is released as freeware.

[caption id="attachment_78" align="aligncenter" width="300" caption="Video MP3 Extractor"]Video MP3 Extractor[/caption]

You can use this program to rip your favorite song in MP3 format from downloaded videos from Youtube, as mentioned in this previous post.

  • Share/Bookmark

Comments (1)

Retrieve Your Public IP Address From The Command Line.

There are many reasons that you want to know your public IP address and getting that is easy by visiting some of the sites that allow you to view that information, but what if you wanted to do it from the command line? What if you wanted to script that? To upload the result to a web page? Or to email it?

There is a quick and easy way of doing it from the command line.

In Linux or any other UNIX based system, open terminal window or ssh to your server and type the following at the command prompt.

wget -qO - http://www.whatismyip.org

In Windows, if you haven’t done already, download and wget from this location, extract it to your c:\Windows or C:\Windows\system32 folder and then open a command line box and type the same command in the above in the command box.

On Linux/UNIX systems, curl http://www.whatismyip.org has the same result for the wget command above.

  • Share/Bookmark

Comments (17)

Convert And Download Youtube Videos Online.

While it is not new that Youtube videos can be downloaded to a local drive, now you can convert the format to a Windows or Mac friendly formats even before downloading the videos to your local drive.

This has been done using expensive software in the past, but now it is done online, and for free.

To do this, you can visit http://www.vixy.net/ provide the link to the Youtube video that you want to download, choose the format that you want to download that video in, which currently supports AVI for Windows (Divx+MP3), MOV Windows and Mac (MPEG4+MP3), MP4 for iPod (MPEG4+AAC), 3GP for mobile devices (MPEG4+AAC), or MP3 (Audio only), which means that you can even rip sounds, sound effects, and songs from the posted youtube videos.

Please note that on Windows, in order to play the AVI files you must have a DIVX or XVID codec installed.

I recommend installing XVID codec package for Windows from this location.

  • Share/Bookmark

Comments (5)

How To Find Files And Folders In Linux.

This is “find” command tutorial.

The command find will search location you specify for files that match the supplied search criteria.

The search is recursive which means that find will search the location that you specify and all the subdirectories that it find in there.

If you type

# find –help

You’ll see the help text which starts by listing:

Usage: find [path...] [expression]

Default path is the current directory; default expression is -print
expression may consist of: operators, options, tests, and actions.

To simplify it, look at it like this.

find path criteria action

Examples:

# find / -name httpd

Will located any file or folder named httpd searching recursivley from the root path and downwards.

Depending on your configuration, that might take a while since you are searching the whole OS installation.

On my Cent OS server the output looks like.

/var/log/httpd
/var/lock/subsys/httpd
/usr/include/httpd
/usr/lib/httpd
/usr/sbin/httpd
/etc/logrotate.d/httpd
/etc/rc.d/init.d/httpd
/etc/sysconfig/httpd
/etc/httpd

Please note that if find doesn’t locate any matching files, there will be no output.
You also will see an error message on each directory that you don’t have access permissions to.

You can specify as many places as you want to search in, for example:

# find /var $HOME /bin -name history

This will search /var, your home directory and /bin for files name history.

You can use wildcards in the file name argument.

# find / -name mail\*log

This will search the whole system for any file with a name that begins with mail and ends with log.

Another way of specifying wildcards in your search is

# find / -name ‘*.log’

This will find all the files in your system that have the .log extension.

If you want to find more than one type of files, use the following:

# find / -name ‘*.log’ -o -name ‘*.pid’

This will find all the log and pid files on your system.

To find a list of the directories, use the -type specifier. Here’s an example:

# find . -type d

This is a basic tutorial, as find is very customizable and powerful command.

Please refer to the full usage of find by typing.

# man find

In your shell.

  • Share/Bookmark

Comments (12)

Killing Remote Tasks In Dos Or PowerShell.

PSkill is part of Microsoft’s Sysinternals collection of free tools.

You can get PSKill as a part of PsTools collection from here.

To use pskill you either have to be in DOS command (cmd) window or download and install PowerShell.

Usage: pskill [-t] [\\computer [-u username [-p password]]] <process ID | name>
-t      Kill the process and its descendants.
-u     Specifies optional user name for login to remote computer.
-p     Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password.

process ID | name    The process or processes to be killed.

-Help   Displays the supported options.

For example

>pskill \\home-computer firefox

You can also use pslist (with the same syntax) to list processes on the remote or local computer and then use the resulting name and ID of the processes in pskill.

  • Share/Bookmark

Comments (4)