Linux

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

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/

Recursively Remove .svn Directories in Linux

Recursively Remove .svn Directories in Linux

rm -rf `find . -type d -name .svn`

Eclipse buttons, some shortcuts not woks under Ubuntu 9.10(Karmic Koala)

Problem
Some buttons not react on mouse clicks under Ubuntu 9.10, shortcust like CTRL+SHIFT+T not works to, Updates not works for eclipse.
Solution
set following environment variable

export GDK_NATIVE_WINDOWS=1
#and than run eclipse
./eclipse

You should run eclipse at the same terminal window where set GDK_NATIVE_WINDOWS=1
Useful links
Details of problem

Ubuntu 9.10(Karmic Koala) x32 bit Ram Limitation solution

By default ubuntu 9.10 can use only 2989MB(3GB) memmory. If you have more than 3GB, you should install x64 version of ubuntu or add PAE support in kernel;
To add PAE support you can recompile kernel or
install kernel from server version of ubuntu. It's easiest way.

sudo apt-get update
sudo apt-get install linux-headers-server linux-image-server linux-server

To see amount of available memory you can use a following comand
mareshkau@mareshkau:~$ free -m
             total       used       free     shared    buffers     cached

Ubuntu 9.10(Karmic Koala) Windows Workgroup configuration

To join in windows workgroup you can use following way:

  • Install samba and system-config-samba
    sudo apt-get install samba system-config-samba
  • Run system-config-samba
    sudo system-config-samba
    and from Preferences->Server setting enter work group name


Have a fun.

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