How-To Compile and Use Xvidcap

Compile Gvidcap!

Get the last stable source code archive on xvidcap Sourceforge project page or download it from the CVS:

$ cvs -z3 co -P xvidcap

Install required dependencies:

$ urpmi gcc automake libgtk+2-devel ffmpeg-devel liblame0-devel

Dirty compile:

$ make distclean [optional]
➟ Read more

Qemu: How-To Share Network Access With the Ghest OS

Qemu Network Sharing

Create a file /etc/qemu-ifup that contain:

sudo modprobe tun
sudo /sbin/ifconfig $1 up netmask broadcast

# IP masquerade
sudo echo "1" > /proc/sys/net/ipv4/ip_forward
sudo /sbin/iptables -N nat
sudo /sbin/iptables -t …
➟ Read more

Qemu Commands

Some useful command to help running and setup qemu…

  • Create an empty compressed 10 Go disk image (in qcow2 format):

    $ qemu-img create -f qcow2 /home/kevin/qemu-disk-image.qcow 10G
  • Boot on your machine’s CD-Rom in qemu with previous disk image as primary HDD:

    $ qemu -cdrom /dev/cdrom -hda …
➟ Read more

How-To Mount a File System Binary Image

Obtain a Binary Image

We have a USB key with a file system on it, and we want to save its content. We do a binary image using:

$ dd if=/dev/sda1 of=/home/kevin/usb_key.img

Mount the Image File

Get informations about the file system of the image …

➟ Read more