Monthly Archive for January, 2010

Watch your webcam in console!

Wow! I really love linux! I feel that with every minute spent inside linux my love to this OS grows up! It’s so outrageous! You can do almost everything!!!

Today, I was really shocked with the abilities of the mplayer!
Here’s a short video of what I’ve done:

So, here’s a list of what I was doing with it (everything is done in tty-conole->[Ctrl]+[Alt]+[F5]):

  1. I wondered if I can watch films in console. That’s real! You just have to specify the special output driver. It’s the ASCII-Art driver:
    mplayer -vo aa nameOfYourFile.avi
    You can enjoy colour video in console, just replace aa driver with the Colour ASCII-Art driver caca!
  2. I felt it’s not enough! So, I tried to watch my web-cam in console! Obviously, mplayer is able to do it! You just need to specify the tv:// protocol, instead of filename:
    mplayer tv:// -vo caca
  3. Here’s the first problem. The output is alright, but that stats information always updates, and the video is blinking:( So, it makes impossible for you to watch your wab-cam normally. I started to investigate the mplayer’s man page:
    man mplayer
    it’s so huge! (read it if you want :) )
    I quickly found the solution! Here is it: the parameter -really-quiet:
    mplayer tv:// -vo caca -really-quiet
  4. But that was not enough! I wish I can watch the web-cam, as I look at mirror! I found the parameter -flip. But it just turns everything upside-down. The real solution for that is the video-filter Mirror! Specify it & enjoy:
    mplayer tv:// -vo caca -vf mirror -really-quiet
  5. There’s one more improvement, you can do to your output. You can make it better by specifing the font. The smaller the font – the better’s the output. I usually use Uni1-VGA8:
    setfont Uni1-VGA8

That’s all, folks! Go and watch your favourite videos in console!

arp-attacks in our hostel

Happy New Year 2 everyone in this world!
Let al your dreams come true in this 0x7DA year!!!

Right after the NY celebration I wanted to crawl the web & get in touch with my friends. I was really disappointed when I saw our local gateway down…No ping queries were successful:(
I put ping -t and returned to celebration!
At 02 AM ping succeeded!
The situation repeated several times…

But I really wanted to wish best wishes to my mates!
So I started to investigate… The computer was overfilled with ARP-queries :( They changed the real MAC-address of the gateway, so the computer sent packets into wrong place.

The solution is simple:

Make your ARP table entries static!
Under Windows You can do it in the following way:

  1. Run “cmd”; [Start->Run->type “cmd” into it]
  2. type in command line:
    arp -s Gateway.Or.Another.Computer It-s-MAC-Address
  3. For instance if computer’s ip is;
  4. It’s MAC-address is 00-11-22-33-44-55;
  5. So you should type into command-line:
    arp -s 00-11-22-33-44-55

Best Wishes!!!

Hosted by EOMY.NET