Saturday, April 19, 2008

Hi all,
Now I have my own domain
so this is my last post here ...

My new blog/domain is

Thanks and
God bless you ... :P

Friday, March 28, 2008

Installing the Maemo in MMC card

Installing the rootfs in MMC card
Booting your Nokia tablet from the MMC card

= Becoming root =

Install the following packages:
* becomeroot
* osso-xterm

After installed these packages, start the Xterm and run the following command line:
$ sudo gainroot

= Creating the MMC big partition =

# sfdisk /dev/mmcblk0 <<> ;

# sfdisk -l /dev/mmcblk0

Disk /dev/mmcblk0: 61440 cylinders, 4 heads, 16 sectors/track
Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/mmcblk0p1 0+ 61439 61440- 1966079+ 83 Linux
/dev/mmcblk0p2 0 - 0 0 0 Empty
/dev/mmcblk0p3 0 - 0 0 0 Empty
/dev/mmcblk0p4 0 - 0 0 0 Empty

= Formating the MMC partition =

# mke2fs /dev/mmcblk0p1

= Cloning the whole original system =

== Modules dependences ==

# insmod /mnt/initfs/lib/modules/2.6.21-omap1/mbcache.ko
# insmod /mnt/initfs/lib/modules/2.6.21-omap1/ext2.ko

== Mounting the MMC card ==

# mount -t ext2 /dev/mmcblk0p1 /media/mmc1

== Mounting the flash ==
# mount -t jffs2 -o ro /dev/mtdblock4 /floppy

== Cloning from flash to MMC ==

Before continuing it is better to close internet connection...

# tar cf - -C /floppy . | tar xvf - -C /media/mmc1

== Setting the new rootfs ==

# chroot /mnt/initfs cal-tool --set-root-device mmc
# shutdown -r now


Ragner Magalhães

Tuesday, March 25, 2008

Using mencoder to save your webcam stream

this is to save your webcam stream:

mencoder tv:// -tv driver=v4l2:width=60:height=40:fps=60:device=/dev/video0 -nosound -ovc
lavc -lavcopts vcodec=mjpeg -o test.avi

You just need mplayer with v4l2 support compiled in.

Using mplayer to watch your webcam

This is to watch your webcam in the mplayer:

mplayer tv:// -tv driver=v4l2:width=60:height=40:fps=90:device=/dev/video0 -nosound

You just need mplayer with v4l2 support compiled in.

Wednesday, January 9, 2008

Debian nVidia Dual Head

Linux + Debian + nVidia + Dual Head + VGA + DVI

Olá Pessoal,
Hoje vou mostrar como usar dois monitores(Dual Head) no Debian com nVidia.

~$ cat /etc/X11/xorg.conf

Section "Module"
Load "bitmap"
Load "dbe"
# Sem "dri"
Load "ddc"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "v4l"
Load "vbe"


Section "Device"
Identifier "nVidia Corporation NV34GL [Quadro FX 500/600 PCI]"
Driver "nvidia"
BusID "PCI:1:0:0"
# Dual Head
Option "TwinView" "True"

Section "Monitor"
Identifier "DELL 1908FP"
Option "DPMS"
HorizSync 30-65
VertRefresh 50-75

Section "Screen"
Identifier "Default Screen"
Device "nVidia Corporation NV34GL [Quadro FX 500/600 PCI]"
Monitor "DELL 1908FP"
DefaultDepth 16
Option "DPMS"
# Dual Head
Option "TwinView" "true"
# Sync/Refresh de cada monitor
Option "HorizSync" "DFP-0: 30-65; DFP-1: 30-65"
Option "VertRefresh" "DFP-0: 50-75; DFP-1: 50-75"
# Segundo monitor do lado direito do primeiro.
Option "TwinViewOrientation" "DFP-1 RightOf DFP-0"
# Resolução de cada monitor
Option "MetaModes" "DFP-0: 1280×1024, DFP-1: 1280×1024"
# Dois monitores LCD(pode ser crt)
Option "ConnectedMonitor" "lcd,lcd"
SubSection "Display"
Depth 16
Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
SubSection "Display"
Depth 24
Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"



Wednesday, January 2, 2008

Converting Youtube Video to the Creative Zen Vision:M

Hi all,
today I will teacher you how to convert youtube's videos
.flv format to Creative Zen Vision:M's videos .avi format
using the mencoder Linux/Debian command.

# mencoder file1.flv -o test1.avi -vf scale=320:240 -oac mp3lame -ovc xvid -xvidencopts bitrate=800

If you get any
error message from codec xvid, you need compile the MPlayer with xvid codec support.

Get the Mplayer source code and the "Binary Codec Packages"

Extract the "Codecs" and put it in the directory /usr/lib/win32
Extract the MPlayer source code in some directory.

Install the libxvidcore-dev Package From
#mirros multimidia
deb etch main
deb etch main contrib non-free

# apt-get update
# apt-get install libxvidcore-dev

Compile the Mplayer
Into the MPlayer source directory run:
../MPlayer-1.0rc1$ ./configure --prefix=/usr/local --enable-gui --enable-xvid --enable-largefiles --enable-menu --enable-gif --enable-png --enable-jpeg --with-win32libdir=/usr/lib/win32
../MPlayer-1.0rc1$ make

And as root run:
../MPlayer-1.0rc1# make install

Try again:

# mencoder file1.flv -o test1.avi -vf scale=320:240 -oac mp3lame -ovc xvid -xvidencopts bitrate=800

God bless you ... :D