How To Find Web Server Type Running On A Linux Or Windows Machine?

0 comments

How to find web server type running on a Linux or windows machine? Is there any linux command to get the details?
Ans :
Yes its possible in Linux by using curl(client for URL) command. To find which web server is running on a machine use blow command.

#curl -I www.linuxnix.com
# curl -I itig

HTTP/1.1 200 OK
Via: 1.1 us-PROXY1, 1.1 us-PROXY2
Connection: close
Proxy-Connection: close
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Date: Mon, 14 Jun 2010 03:26:55 GMT
Content-Type: text/html; charset=utf-8
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.1.6
Set-Cookie: b2933756b1f0288a74dd630e51954bff=5sl7jaqpgliambi2fq7q3ailv6; path=/
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Last-Modified: Mon, 14 Jun 2010 03:26:55 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache

In the above out put we can see server as Apache 2.2.3.

cURL is an excelent tool to do many thing such as

1. File transfers(FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS, FILE, IMAP, SMTP, POP3 and RTSP)
2. Can understand SSL certificates
3. Can understand Proxies
4. Can understand Cookies
5. User+password authentication (Basic, Digest, NTLM, Negotiate, kerberos...)
6. File transfer resume
7. Proxy tunneling etc..

  • Like the post? Please Subscribe to free RSS feed to get updates
  • How To Play WMV,WMA, MP3 Files In Linux?

    0 comments

    By default most of the Linux systems will not support any of the mention formates. In order to play these files in Linux we require to install mplayer or vlc. My favourite one is VLC(VideoLAN Client). With which you can play most of the media files and even we can play streaming video and audio files. VLC uses ffmpeg codecs back end to convert/play many formats.

    VLC support below formats :
    3GP(.3gp) ==> 3rd generation phone format, This video format is good for mobile phones.

    AIFF/ASF(.asf, .wmv) ==> These are windows proprietary format, ASF(Active Streaming Format) is used for streaming purpose and wmv(Windows media video) for playing windows videos.

    AU(.au) ==> Simple Audio file introduced by Sun micro systems.

    AVI(.avi) ==>AVI(Audio video interleave) ==> This is one more format developed by MS. Due to separation of Audio and Video the file size is less when compared to normal WMV files, So most of the times when you download movies from torrents they are in AVI.

    FLV (.flv) ==> FLash Video, which is used for streaming again. For example the popular video site Youtube.com uses this format to play videos for users.

    MOV(.mov) ==> Movie file format which is default format in Mac OS.

    MP4(.mp4) ==> Compressed format for Audio, The songs which are stored in mp4 occupies less space then mp3. So many users when they want to listen to songs on their mobile phones uses this format to store songs.

    OGG(.ogm, .ogg) ==>Again a streaming video/audio format MKV(.mkv, .mka).

    MPEG-2/TS(.ts, .mpg) ==> A Video format.

    MPEG-2/ES, PS, PVA, MP3(.mpg, .mp3, .mp2) ==> Audio format
    NSC(.nsc)
    NSV(.nsv)
    Nut(.nut)

    Real(.ra, .ram, .rm, .rv , .rmbv) ==> Real media formats, previous versions did not support will. But now this format is supported well.

    Raw(a52, dts, aac, flac, .dv, .vid)
    True Audio Codec(.tta, .tac)
    Ty Tivo(.ty)
    Wav(.wav, .dts)
    Xa(.xa)

    To install in VLC in Redhat :
    #rpm -ivh vlc


    To install vlc in Ubuntu :
    apt-get install vlc

    Once you install vlc will be there in applications -->Sound and Video in menu. Just open any mp3/video file with VLC and enjoy.

    These days people are using VLC extensively for playing their Video/Audio files. This download counts are huge.

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Archive

    Translate this page

     

    The Linux Juggernaut | Copyright 2006-2009 Surendra Kumar Anne | Surendra's Home Page | Give us feedback how we are doing, Click here