Blogs

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

В Минске была конференция по технологиям JBoss.

    В Минске была проведена конференция по JBoss технологиям и здесь вы можете скачать и простмотреть часть презентаций.
  • Моя презентация "JBoss Tools & JBoss Developer Studio"
  • Visual Page Editor в JBoss Tools рассказывали Егор Родцевич и Юра Жишко

SVN properties

To get file processed correctly after svn checkout or when we view file in repository using browser we should set svn properties to this file.
For viewing files in svn using browser mime type is very important

# possible variant image/png text/css
svn propset svn:mime-type text/html test.html

More mime types
To get executable right under unix, linux
svn propset svn:executable ON somescript

To view setted property use
svn proplist vpe-news-3.1.0.CR2.html --verbose

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

How to add svn ignore property to folder

    If you want add some folder to svn ignore, you should follow next steps
  • First check status of folder
    svn stat <folder_name>
    ?       test
  • Next add svn ignore to folder
    svn propset svn:ignore target <folder_name>
    svn ci <folder_name> -m"Folder has been marked for ignoring"
  • Check folder status again
    svn stat <folder_name>
    #nothing should be printed

How to determinate version of glibc library under Ubuntu Linux

    To determinate glibc version you can by following steps:
  • #1 at any distributive you can cal library as a programm
    /lib/libc.so.6 

    Result:
    GNU C Library (EGLIBC) stable release version 2.10.1, by Roland McGrath et al.
    Copyright (C) 2009 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
    PARTICULAR PURPOSE.
    Compiled by GNU CC version 4.4.1.
    Compiled on a Linux >>2.6.24-23-server<< system on 2009-10-07.
    Available extensions:

Installation mozilla thunderbird 3.0 mail client on Ubuntu 9.10(Karmic Koala)

    For installation mozilla thunderbird 3.0 mail client on Ubuntu you need to do following steps
  • Add mozilla daily repository to you sources list
    gksudo gedit /etc/apt/sources.list
    #and add following lines
    deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu karmic main
    deb-src http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu karmic main

    If you use another dist of ubuntu, change karmic to jaunty, hardy, karmic and intrepid
  • Import GPG key
     

Connect to openvpn server using Linux Ubuntu 9.10(Karmic Koala)

    Here steps for conection to vpn server
  • Ininitialy install open vpn client for ubuntu
    sudo apt-get install openvpn
  • Then run following command from terminal
    sudo openvpn openvpn-config.ovpn

    Have fun!

Mount ftp share under Ubuntu linux

    To mount a ftp share under ubuntu linux, you need perfom following actions
  • install ftp file system support
    sudo apt-get install curlftpfs
  • run mount command
    sudo curlftpfs -o allow_other,iocharset=utf8,codepage=cp1251  ftp://hudson.eltegra.by/common /home/mareshkau/Desktop/Share/ftp/

My Eurotur Alboms

Syndicate content