Howto

Capture video of a desktop under linux using ffmpeg

The easiest way to capture linux desktop which I know

#determinate screen resolution
xdpyinfo | grep 'dimensions:'|awk '{print $2}'
#how to grab you display where 0.0, same as the DISPLAY environment variable
ffmpeg -f x11grab -i :0.0 /tmp/out.mpg
#here we grub display, -r will be used to set the output file to 25 fps.
ffmpeg -f x11grab -s `xdpyinfo | grep 'dimensions:'|awk '{print $2}'` -r 25 -i :0.0 -sameq videoOutput.mpg

It works fast and result video file isn't big

Import RF sources as eclipse projects in JBoss Tools

    To import RF as eclipse project into workspace you need to do following steps
  • Download RF from SVN repository
    svn co http://anonsvn.jboss.org/repos/richfaces/root 
  • Then install library
    cd root
    mvn install -Dmaven.test.skip=true -P components,trunk 
  • Then add sources and make projects eclipse projects
    mvn eclipse:eclipse -Dmaven.test.skip=true -P components,trunk 
  • Import projects from root folder into eclipse

Howto create a windows install usb flash from linux

Howto create a windows install usb flash from linux

  • First variant
    #install ntfs progs
    sudo apt-get install gparted ntfsprogs
    #format flash as ntfs
    sudo mkfs.ntfs /dev/<flash_path>
    #mount an iso image
    sudo mkdir /media/iso
    sudo mount win.iso /media/iso -t udf -o loop
    #copy files from iso to flash
    cp -R /media/iso/*  <flash_drive_path>
  • Second variant
    umount <path>
    #sudo dd if=<path to iso> of=<path to flash device>
    #Example
    sudo dd if=en_windows_vista_with_service_pack_1_x64_dvd_x14-29595.iso of=/dev/sdb4
Syndicate content