Tuesday, August 26, 2008

how to boot winxp if it is in another hdd

append this lines in /boot/grub/menu.lst file

title Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1
makeactive

!!done!!

Thursday, August 14, 2008

how to use ffmpeg

how to convert mpg to flv:

use this command:
ffmpeg -i input.mpg -ar 44100 output.flv

another command:
ffmpeg -i input.mpg -deinterlace -ar 44100 -r 25 -qmin 3 -qmax 6 output.flv

how to extract audio from mpg:
ffmpeg -i "/path/to/file.mpg" -f flac "/path/to/newfile.flac"

list open ports and unix sockets

To do this I use netstat command to list all open ports: $ sudo netstat -tuplen to list open ports and unix sockets: $ sudo netstat -...