Archive

Archive for the ‘debian’ Category

Debian Dell D600 dual head

Hi all,

A few months ago I configured my laptop Debian(Unstable) Dell D600 to automatically identify the second screen(VGA) and create a dual head using MergeFB.

Now you can see my xorg.conf configuration.


# xorg.conf (xorg X Window System server configuration file)## This file was generated by dexconf, the Debian X Configuration tool, using# values from the debconf database.## Edit this file with caution, and see the xorg.conf manual page.# (Type "man xorg.conf" at the shell prompt.)## This file is automatically updated on xserver-xorg package upgrades *only*# if it has not been modified since the last upgrade of the xserver-xorg# package.## If you have edited this file but would like it to be automatically updated# again, run the following command:#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"EndSection

Section "InputDevice" Identifier "Generic Keyboard" Driver  "kbd" Option  "CoreKeyboard" Option  "XkbRules" "xorg" Option  "XkbModel" "pc104" Option  "XkbLayout" "us_intl"EndSection

Section "InputDevice" Identifier "Configured Mouse" Driver  "mouse" Option  "CorePointer" Option  "Device"  "/dev/input/mice" Option  "Protocol"  "ImPS/2" Option  "Emulate3Buttons" "true"EndSection

Section "InputDevice" Identifier "Synaptics Touchpad" Driver  "synaptics" Option  "SendCoreEvents" "true" Option  "Device"  "/dev/psaux" Option  "Protocol"  "auto-dev" Option  "HorizScrollDelta" "0"EndSection

Section "Device" Identifier "ATI Technologies Inc Radeon R250 [Mobility FireGL 9000]" Driver  "radeon" BusID  "PCI:1:0:0" # option dual head Option   "MonitorLayout"                 "LCD, CRT"       Option   "CRT2Position"                  "RightOf"       #Option   "CRT2Position"                  "LeftOf"       #Option   "CRT2Position"                  "Above"       #Option   "MetaModes"                     "1400x1050-1024x768"       Option   "MetaModes"                     "1400x1050-1280x1024 1400x1050-1024x768 1400x1050-800x600"       Option   "MergedXinerama"                "on"       Option   "MergedNonRectangular"          "true"       Option   "MergedFB"                      "true"EndSection

Section "Monitor" Identifier "Generic Monitor" Option  "DPMS" HorizSync 28-70 VertRefresh 43-60EndSection

Section "Screen" Identifier "Default Screen" Device  "ATI Technologies Inc Radeon R250 [Mobility FireGL 9000]" Monitor  "Generic Monitor" DefaultDepth 16 SubSection "Display"  Modes  "1400x1050" "1280x1024" "1024x768" "800x600" EndSubSectionEndSection

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

Based on https://help.ubuntu.com/community/RadeonDriver

That’s all!! :)

Categories: debian, dica Tags:

Tech day INdT – Manaus e Joinville – Fotos

Categories: debian, evento, kernel Tags:

Tech day – INdT e UFAM

O techday – INdT e UFAM está sendo realizado na UFAM. Na trilha Core, as apresentações estão disponíveis no site do INdT.

http://osmrc.indt.org/keppler/techday_manaus_ufam_2007/

Categories: debian, evento, kernel Tags:

INDT promove Tech day em Joinville

Depois de um certo tempo de trabalha no Linux’s minix, Linus Torvalds manda um email chamando desenvolvedores para colaborar com o Linux.

“Você sente saudade dos bons dias do minix-1.1, quando homens eram homens e escreviam seus próprios device drivers? Você está sem um bom projeto e morrendo de vontade de colocar as mãos em um sistema operacional o qual possa modificar de acordo com suas necessidades? Você acha frustante quando tudo funciona bem no Minix? Sem mais noites em claro para fazer com que um programa funcione? Então esta mensagem pode ser exatamente para você. :-) ” [1]

Agora é sua vez de coloborar com o Linux. Quer saber como, venha ao INDT Techday Joinville.

Sábado, eu devo publicar a palestra que irei apresentar no Tech day Joinville.

Tema: QEMU para desenvolvimento do kernel do Linux

Referências:
[1] – http://www.vivaolinux.com.br/artigos/verArtigo.php?codigo=4409
[2] – http://www.uploadx.com/articles/linux/History_of_Linux.html
[3] – http://franciscoalecrim.blogspot.com/search?q=qemu

Categories: debian, evento, kernel Tags:

N810 : measure standard memory consumption using IA

Hi all,

Maemo gave me a discount to buy a N810 and soon I’ll do some test using the tool that I based my final project (SOM-IA + MAEMO + MEMORY). ;)

Regards,

Alecrim.

Categories: debian, maemo Tags:

Distributed ARM cross compilation ( Fast ARM Compilation )

+

You configured the ARM cross compiler and now you can compile your ARM kernel more fast using distcc.

Follow the instructions below.

Requirement:

* Configure DISTCC

* Configure ARM toolchain

After requirements:
”’You need to execute the instructions in all machines available for DISTCC_HOSTS.”’

=== ALL DISTCC_HOSTS MACHINES ===

* Directing ARM compilation to distcc

for a in /opt/cs-gcc/bin/arm-none-* ; do sudo ln -s /usr/bin/distcc `echo $a | cut -f5 -d/  | sed -e 's/none-eabi/linux/'` ; done

* Edit /etc/init.d/distcc

Change from: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11"      to: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/opt/cs-gcc/bin/"

* Restart distcc service

  /etc/init.d/distcc restart

* After all machines configured then you can your kernel

make ARCH=arm omap_h3_1710_defconfigmake ARCH=arm cleanmake ARCH=arm -j12

That’s all!!

Categories: debian, kernel, omap Tags:

Installing ARM Cross compilation

Many phones are based on OMAP 1710. Search “OMAP 1710″ on google and you will find them.

The instructions below show you how you could configure a compiler for OMAP 1710 and compile a kernel using this compiler.

Instructions
Get CodeSourcery toolchain ==> arm-2005q3-2-arm-none-eabi
* On what system will your program run? ARM EABI
* On what system will you run the tools? IA32 GNU/Linux
* Download

Untar on /opt/cs-gcc

make -p /opt/cs-gcccp TOOLCHAIN_PATH/arm-2005q3-2-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 /opt/cs-gcctar -xvjf arm-2005q3-2-arm-none-eabi-i686-pc-linux-gnu.tar.bz2

Create links from arm-none-eabi-* to arm-linux-*

cd /opt/cs-gcc/binfor a in arm-none-* ; do ln -s $a $(echo $a | sed -e 's/none-eabi/linux/') ; done

Compile your kernel

cd linux-omap-2.6 make ARCH=arm clean make ARCH=arm omap_h3_1710_defconfigmake ARCH=arm 

References:
* http://linux.omap.com/pipermail/linux-omap-open-source/2004-November/002175.html
* http://people.via.ecp.fr/~clem/nist/qt-notes.php

Categories: debian, kernel, omap Tags:

Distributed compilation (FAST COMPILATION)

Save your time!! Reduce the compilation time.

Edit and use the script below (debiandistcc_quickinstall.sh) :

—————————————————————————————–

#!/bin/bash

##########################################
# CHANGE BELOW
##########################################
SUBNETWORK=192.168.1.0/24
# name or ip from machines
MACHINES=”machineA machineB localhost”
# max number of threads — we recommend : NUMBER OF CPUs * 4 = 3 * 4 = 12
NCONCURRENCY=”12″

##########################################
# DO NOT CHANGE BELOW
##########################################

#install distcc
apt-get install distcc
apt-get install distccmon-gnome

#configure distcc
echo ‘STARTDISTCC=”true”‘>/etc/default/distcc
echo ‘ALLOWEDNETS=”$SUBNETWORK”‘>>/etc/default/distcc
echo ‘LISTENER=”0.0.0.0″‘>>/etc/default/distcc

#distcc executable
mkdir -p /usr/local/distcc/bin
cd /usr/local/distcc/bin
ln -s /usr/bin/distcc c++
ln -s /usr/bin/distcc cc
ln -s /usr/bin/distcc g++
ln -s /usr/bin/distcc gcc

#exporting distcc
echo ‘CONCURRENCY_LEVEL=$NCONCURRENCY’ >> ~/.bashrc
echo ‘DISTCC_HOSTS=”$MACHINES”‘ >> ~/.bashrc
echo ‘PATH=”/usr/local/distcc/bin:${PATH}”‘ >> ~/.bashrc
echo ‘export CONCURRENCY_LEVEL DISTCC_HOSTS PATH’ >> ~/.bashrc
source ~/.bashrc

—————————————————————————————–

Compiling kernel
* cd YOUR_KERNEL_TREE
* make clean
* make ”’-j12”’

HAPPY COMPILATION!!!

Reference:

http://distcc.samba.org/

Categories: debian, kernel Tags:

Rodando Debian dentro do Debian (PT_BR)

= Introdução =

Mais um tutorial ensinando como criar uma máquina virtual Debian dentro do Debian.

Não testei o tutorial para Ubuntu, mas o principio é o mesmo.

Entendendo a idéia geral, você poderá testar qualquer distribuição em uma máquina virtual antes de colocar na sua máquina real. ;)

= Configurando rede =

Vamos chamar a máquina virtual de “guest” e a máquina real de “host”. Uma coisa legal de fazer é conectar o guest ao host e fazer com que o guest possa navegar na internet.

Do lado host será criada uma interface tap0, que só irá aparecer quando a máquina virtual estiver funcionando. No guest a interface de ree será eth0. A máquina virtual(guest) vai passar navegar usando a interface da máquina real(host) que está conectada a web.

WEB <============> (eth0) HOST (tap0) <=============> GUEST (eth0)

Para que isto seja possívél, será necessário fazer algumas configurações na sua máquina.

== qemu-ifup ==

Neste arquivo definimos qual vai ser o ip do host na interface tap0.

Configure o arquivo /etc/qemu-ifup , como abaixo:

#!/bin/sh
sudo -p “Password for $0:” /sbin/ifconfig $1 192.168.0.1

== network_forward.sh ==

Adicione o script network_forward.sh aos seus executáveis. Este script server para compartilhar rede com a guest.

Criar o arquivo /usr/local/bin/network_forward.sh com os comandos abaixo:

modprobe iptable_nat
modprobe ip_tables
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

= Criando seu novo sistema =

Baixe a ISO do Debian 4.0:

wget http://ftp.br.debian.org/debian-cd/current/i386/iso-cd/debian-40r1-i386-CD-1.iso

Instale qemu:

apt-get install qemu

Carregar o modulo de aceleração kqemu:

modprobe kqemu

Se o kqemu não estiver instalado, deve ter pra apt-get ou então usa o module-assistant (m-a). ;)

Crie um disco do tamanho de 2Gb:

qemu-img create debian_etch.img 2G

Agora é só dar o boot e instalar como se estivesse instalando seu computador:

sudo network_forward.sh
sudo qemu -net tap -net nic -boot d -cdrom debian-40r1-i386-CD-1.iso -hda debian_etch.img

Algumas explicações:
network_forward.sh -> vai compartilhar rede com a máquina virtual(guest)
-net tap -net nic -> server para ativar a rede no emulador
-boot d -> informa ao emulador que o boot deve ser dado pelo cdrom(debian-40r1-i386-CD-1.iso)
-cdrom debian-40r1-i386-CD-1.iso -> informa que o cdrom contem o disco de instalação do debian(debian-40r1-i386-CD-1.iso)
-hda debian_etch.img -> informa que o disco a ser usado será o arquivo debian_etch.img

Lembre de configurar a interface de rede de modo manual, sendo o IP= 192.168.0.2 netmask= 255.255.255.0 gateway= 192.168.0.1 .

Ao terminar da instalação, a máquina virtual vai reiniciar e então você terá que alterar o parametro de boot para -boot c. Deste modo o guest irá dar o boot pelo disco.

sudo qemu -net tap -net nic -boot c -cdrom debian-40r1-i386-CD-1.iso -hda debian_etch.img

Algumas explicações:
-boot c -> informa ao emulador que o boot deve ser dado pelo disco(debian_etch.img)

Caso você queria montar o disco da maquina virtual, lembre de desligar a máquina virtual. Para montar o disco do guest devemos levar em consideração o offset causado pelo grub:

mkdir mnt
sudo mount -o loop,offset=32256 debian_cd.img mnt

Boa sorte!!

Categories: debian, dica Tags:

Presentation OLPC – Debian Day – Manaus

Hi all,
Last Saturday I did a presentation on Debian Day – Manaus about OLPC and Debian OLPC. You can download my presentation on my public area in OSMRC-INdT-Manaus.

Presentation, documents and pictures:

http://osmrc.indt.org/keppler/olpc/

I released a quick howto about “OLPC emulation” in portuguese that can helps you.

http://franciscoalecrim.blogspot.com/2007/08/olpc-primeiros-passos-pt-br.html



Regards,
Alecrim.

Categories: debian, olpc, pessoal Tags: