Archive for January, 2008

debian: configurando timweb

Tuesday, January 29th, 2008

Algumas vezes utilizo o TimWeb para navegar e segui o tutorial disponível no wiki do ubuntu para configuração.

http://wiki.ubuntubrasil.org/TimWeb

Funciona perfeitamente no Debian.

Abaixou copiei o tutorial para ter um backup online.

Flw

“”"
- Não conecte o modem ainda
- wget http://sfair.org/public/files/huawei.out
- chmod +x huawei.out
- conecte o modem
- sudo ./huawei.out
- ls -la /dev/*USB*
- sudo touch /etc/wvdial.conf
- sudo gedit /etc/wvdial.conf

      [Dialer Defaults]      Modem = /dev/ttyUSB0      Baud = 3600000      Init1 = ATZ      Init2 = ATQ0 V1 E1 S0=0 &C1 &D2      Init3 =      Area Code =      Phone = *99#      Username = ppp      Password = ppp      Ask Password = 0      Dial Command = ATDT      Stupid Mode = 1      Compuserve = 0      Force Address =      Idle Seconds = 0      DialMessage1 =      DialMessage2 =      ISDN = 0      Auto DNS = 1

- sudo wvdial
- caso não navegue, tente novamente

“”"

retirado de http://wiki.ubuntubrasil.org/TimWeb

Debian: Impressora: configurando Xerox Phaser 7760 GX

Monday, January 28th, 2008


Debian: Impressora: configurando 7760 GX
——

Olá pessoal,
Aqui no meu trabalho tem algumas/várias impressoras espalhadas e escolhi um para configurar no Debian/Lenny.

Na minha opinião o configurador padrão do Gnome não é tão bom, por isto estou utilizando um outro configurador.

system-config-printer - printer configuration GUI

# apt-get install cupsys system-config-printer

Baixar drivers para impressoras Xeror no Linux

http://www.support.xerox.com/go/results.asp?Xtype=download&prodID=4500&Xlang=en_US&Xcntry=USA&source=XOG&prodName=Phaser%204500

Descompactar em área conhecida

tar -xvzf LinuxCupsPrinterPkg.tar.gz

Abrir o aplicativo

$ system-config-printer

tela 1 - Clique em New printer –>

tela 2 - Coloque o nome da impressora e clique em avancar –>

tela 3 - Selecione a impressora e clique em avançar –>

tela 4, 5 e 6- Selecione “Provide PPD file”, selecione drivers referente a impressora e clique em avançar –>

tela 7 - Confirmar criação de impressora –>

tela 8 - inserir senha de root–>

tela 9 - Printer1 pronta para imprimir–>

Abra o Gedit e teste um impressão qualquer.

PS: Configurar impressara Xeror Phaser 4500 é o mesmo princípio.

Flw

Proposta de Palestra para o FISL 9.0 – 2008

Monday, January 21st, 2008

Proposta de Palestra para o FISL 9.0 – 2008
Autor: Francisco Keppler Silva Alecrim

Curriculum

Formado em Ciência de Computação pela Universidade Federal do Amazonas, onde trabalhou com administração de servidores Linux e Voz sobre IP. Desenvolvedor do Instituto Nokia de Tecnologia, onde trabalha com automação de testes e desenvolvimento do kernel do Linux na plataforma OMAP.

Proposta de palestra

Título:

Configurando um ambiente de desenvolvimento no computador pessoal para a plataforma Linux OMAP.

Público alvo:

Desenvolvedores interessados em iniciar desenvolvimento no kernel do Linux em ambiente embarcado, baseado na plataforma OMAP.

Descrição:

Os microprocessadores OMAP são de propriedade da Texas Instrument e foram desenvolvidos com o objetivo de serem utilizados com aplicações multimídia. A utilização de microprocessadores OMAP pode ser vista em telefones celulares, smartphones, PDAs e handhelds. Algumas das arquiteturas OMAP são dual-core contendo um processador de propósito geral ARM e um ou mais DSP. Os microprocessadores são lançados no mercado em plataformas de desenvolvimento, deste modo, as empresas interessadas podem testar e desenvolver softwares utilizando o processador presente na plataforma de desenvolvimento, antes de iniciarem a fabricação dos futuros dispositivos baseados no OMAP.
O OSK(OMAP5912 Starter Kit) é um exemplo de conjunto que permite o contato com uma plataforma de desenvolvimento OMAP. O OMAP5912 é indicado para terminais portáteis de dados, como dispositivos médicos portáteis e pontos de verificação de preço. A linha de microprocessadores que é indicada para handsets and PDAs possui outras plataformas de desenvolvimento, como o OMAP1611, OMAP1710 e OMAP2420. Todas as plataformas citadas possuem portes do kernel Linux,sendo os procedimentos para teste e utilização do kernel Linux em uma plataforma de desenvolvimento OMAP são muito semelhantes.
A configuração de um ambiente de desenvolvimento para a plataforma OMAP será abordada nesta palestra, incluindo atividades de configuração de u-boot, cross-compiler e kernel OMAP. Além disso, ferramentas que facilitam o trabalho com a comunidade são também apresentadas como o Git, Ctags, Cscope e Vim.
Durante a palestra será realizada uma apresentação do OSK com o kernel do Linux, expondo também a minha experiência de trabalho com a comunidade do Linux-OMAP.
Resumo:

Os microprocessadores OMAP são utilizados em diversos dispositivos móveis como telefones celulares, PDAs, smartphones e handhelds. Esta apresentação descreve os procedimentos de configuração e utilização do kernel Linux em uma plataforma de desenvolvimento OMAP, com demonstrações em um OSK(OMAP5912 Starter Kit).

Referências:

http://en.wikipedia.org/wiki/Texas_Instruments_OMAP

http://www.ti-estore.com/Merchant2/merchant.mvc?Screen=PROD&Product_Code=TMDSOSK5912

http://www.muru.com/linux/omap/

http://focus.ti.com/general/docs/wtbu/wtbugencontent.tsp?templateId=6123&navigationId=11988&contentId=4638

http://en.wikipedia.org/wiki/ARM_architecture

http://tree.celinuxforum.org/CelfPubWiki/OSK

http://elinux.org/OSK

aprendendo linux kernel

Monday, January 14th, 2008

Inicie a leitura do Linux Device Drivers (http://lwn.net/Kernel/LDD3/);

Aprenda a compilar um kernel (http://www.falkotimme.com/howtos/debian_kernel2.6_compile/);

Aprenda a testar um kernel de maneira segura,
usando Qemu(http://franciscoalecrim.blogspot.com/2007/08/howto-debian-qemu-running-debian-inside.html);

if (você achar muito ruim fazer isto, fica difícil. você vai ter que fazer isto várias vezes, melhor se acostumar){
ret=-1;
goto erro;
}

Aprenda a trabalhar com modulos, hello_world
(http://osmrc.indt.org/keppler/techday_joinville_2007/ && http://tldp.org/LDP/lkmpg/2.6/html/index.html);

Aprenda um pouco sobre procfs
(http://osmrc.indt.org/keppler/techday_joinville_2007/);

Aprenda sobre drivers
(http://www.freesoftwaremagazine.com/articles/drivers_linux?page=0%2C0);

Aprenda git (http://www.kernel.org/pub/software/scm/git/docs/tutorial.html);

Nao esqueça de continuar lendo o livro
(http://lwn.net/Kernel/LDD3/);

erro:
Vlw!!!
return ret;

customizing fluxbox

Wednesday, January 9th, 2008


Hi all,

Recently I changed my desktop manager from Gnome to Fluxbox.

Good bye Gnome!!! Welcome Fluxbox!!

The reasons:
* lightweight
**working with kernel development and using a laptop, it’s really important.

* Highly configurable
**after many years, my gnome was very customized and the shortcuts are very familiar.

Below I describe the main steps.

Install and start fluxbox.

$ sudo apt-get install fluxbox

The first contact with fluxbox is really hard and the most difficult part is configure the shortlkeys.

==== Keys(~/.fluxbox/keys)====

# Created by Francisco Alecrim # Based on: http://darkshed.net/files/rcs/fluxbox/keys.html# Syntax :  [ ] key [key key] :command 

# HELPING YOU# Mod1 = Tab# Mod4 = SuperKey(AKA window key)

# Mouse optionsOnDesktop Mouse1 :HideMenusOnDesktop Mouse2 :WorkspaceMenuOnDesktop Mouse3 :RootMenu#OnDesktop Mouse4 :NextWorkspace#OnDesktop Mouse5 :PrevWorkspace

################################## Application switch + operation#################################

Mod1 F1 :RootMenuMod1 F2 :ExecCommand fbrunMod1 F4 :CloseMod1 F5 :MinimizeMod1 F10 :MaximizeF11 :MaximizeMod1 Tab :NextWindowMod1 Shift Tab :PrevWindowShift Control Mod1 Right :TakeToNextWorkspace 1Shift Control Mod1 Left :TakeToPrevWorkspace 1

Shift Mod1 Left           :MoveTo 0 * LeftShift Mod1 Right          :MoveTo 0 * RightShift Mod1 Up             :MoveTo * 0 UpperShift Mod1 Down           :MoveTo * 0 LowerShift Mod1 1            :SetHead 1Shift Mod1 2            :SetHead 2

# Workspace switchControl Mod1 Right :NextWorkspaceControl Mod1 Left :PrevWorkspace

# Applicartion LauncherF1 :ExecCommand gnome-terminalF2 :ExecCommand xfeControl Mod1 x :ExecCommand xmmsControl Mod1 g :ExecCommand gaimControl Mod1 f :ExecCommand firefoxControl Mod1 t :ExecCommand thunderbirdControl Mod1 l :ExecCommand xlock

# XMMS keysMod4 z :ExecCommand xmms -rMod4 x :ExecCommand xmms -pMod4 c :ExecCommand xmms -uMod4 v :ExecCommand xmms -sMod4 b :ExecCommand xmms -f

#Mod1 Tab :NextWindow#Mod1 Shift Tab :PrevWindow#Mod1 F1 :Workspace 1#Mod1 F2 :Workspace 2#Mod1 F3 :Workspace 3#Mod1 F4 :Workspace 4#Mod1 F5 :Workspace 5#Mod1 F6 :Workspace 6#Mod1 F7 :Workspace 7#Mod1 F8 :Workspace 8#Mod1 F9 :Workspace 9#Mod1 F10 :Workspace 10#Mod1 F11 :Workspace 11#Mod1 F12 :Workspace 12

==== Define start up script (~/.fluxbox/init)====

Define the path to your start up script inside .fluxbox/init

Varible: rootCommand

alecrim@alecrim ~ $ cat .fluxbox/init | grep rootCommandsession.screen0.rootCommand: ~/.fluxbox/autostart.sh

Create you startup script. Below you can see mine.

alecrim@alecrim ~ $ cat ~/.fluxbox/autostart.sh#!/bin/bash

# Disable beep soundxset -b

# Wallpaperfbsetbg -f  /home/alecrim/pessoal/image/paisagem/Grassy2.jpg

# IMgaim &

alecrim@alecrim ~ $ chmod +x ~/.fluxbox/autostart.sh

==== Define style (~/.fluxbox/style/snow)====

Snow style from http://customize.org/fluxbox

style.name: SnowFlowstyle.author: snkmchnbstyle.date: 12/23/07style.credits: Wallpaper: "Flow" by iTivo @ http://customize.org/wallpapers/55509style.comments: Part of the "12 Days of Christmas" theme pack

toolbar:   raised gradient verticaltoolbar.color:   rgb:c7/dd/betoolbar.colorTo:  rgb:57/98/94

toolbar.button:   raised gradient verticaltoolbar.button.color:  rgb:57/98/94toolbar.button.colorTo:  rgb:09/0b/17toolbar.button.picColor: rgb:ff/ff/ff

toolbar.button.pressed:  sunken gradient verticaltoolbar.button.pressed.color: rgb:09/0b/17toolbar.button.pressed.colorTo: rgb:57/98/94

toolbar.clock:   sunken gradient verticaltoolbar.clock.color:  rgb:09/0b/17toolbar.clock.colorTo:  rgb:57/98/94toolbar.clock.textColor: rgb:ff/ff/ff

toolbar.label:   sunken gradient verticaltoolbar.label.color:  rgb:09/0b/17toolbar.label.colorTo:  rgb:57/98/94toolbar.label.textColor: rgb:ff/ff/ff

toolbar.windowLabel:  parentrelativetoolbar.windowLabel.color: rgb:c7/dd/betoolbar.windowLabel.colorTo: rgb:57/98/94toolbar.windowLabel.textColor: rgb:c7/dd/be

toolbar.justify:  center

menu.title:   raised gradient verticalmenu.title.color:  rgb:57/98/94menu.title.colorTo:  rgb:09/0b/17menu.title.textColor:  rgb:ff/ff/ffmenu.title.justify:  center

menu.frame:   raised gradient diagonalmenu.frame.color:  rgb:c7/dd/bemenu.frame.colorTo:  rgb:57/98/94menu.frame.textColor:  rgb:ff/ff/ffmenu.frame.justify:  center

menu.hilite:   sunken gradient verticalmenu.hilite.color:  rgb:09/0b/17menu.hilite.colorTo:  rgb:57/98/94menu.hilite.textColor:  rgb:ff/ff/ff

menu.bullet:   emptymenu.bullet.position:  right

window.title.focus:  raised gradient verticalwindow.title.focus.color: rgb:c7/dd/bewindow.title.focus.colorTo: rgb:57/98/94window.title.unfocus:  raised vertical gradientwindow.title.unfocus.color: rgb:c7/dd/bewindow.title.unfocus.colorTo: rgb:57/98/94

window.label.focus:  sunken gradient verticalwindow.label.focus.color: rgb:09/0b/17window.label.focus.colorTo: rgb:57/98/94window.label.focus.textColor: rgb:ff/ff/ffwindow.label.unfocus:  parentrelativewindow.label.unfocus.color: rgb:c7/dd/bewindow.label.unfocus.colorTo: rgb:57/98/94window.label.unfocus.textColor: rgb:ff/ff/ff

window.button.focus:  raised gradient verticalwindow.button.focus.color: rgb:57/98/94window.button.focus.colorTo: rgb:09/0b/17window.button.focus.picColor: rgb:ff/ff/ffwindow.button.unfocus:  parentrelativewindow.button.unfocus.color: rgb:c7/dd/bewindow.button.unfocus.colorTo: rgb:57/98/94window.button.unfocus.picColor: rgb:ff/ff/ffwindow.button.pressed:  sunken gradient verticalwindow.button.pressed.color: rgb:09/0b/17window.button.pressed.colorTo: rgb:c7/dd/be

window.frame.focusColor: rgb:c7/dd/bewindow.frame.unfocusColor: rgb:57/98/94

window.handle.focus:  raised gradient diagonalwindow.handle.focus.color: rgb:c7/dd/bewindow.handle.focus.colorTo: rgb:57/98/94window.handle.unfocus:  raised gradient diagonalwindow.handle.unfocus.color: rgb:50/54/58window.handle.unfocus.colorTo: black

window.grip.focus:  raised gradient verticalwindow.grip.focus.color: rgb:57/98/94window.grip.focus.colorTo: rgb:09/0b/17window.grip.unfocus:  raised gradient verticalwindow.grip.unfocus.color: rgb:57/98/94window.grip.unfocus.colorTo: rgb:09/0b/17

window.justify:   coenter

borderColor:   rgb:57/98/94

bevelWidth:   2borderWidth:   1handleWidth:   5

*Font:                         nu-9

==== Define background ====

I configure it using the fluxbox wiki howto.

$ fbsetbg -i

   display doesn't set the wallpaper properly. Transparency for fluxbox   and apps like aterm and xchat won't work right with it. Consider    installing feh, wmsetbg (from windowmaker) or Esetroot (from Eterm) and   I'll use them instead.

$ sudo apt-get install feh

...

$ fbsetbg -i

feh is a nice wallpapersetter. You won't have any problems.

$ fbsetbg -f  /home/alecrim/pessoal/image/paisagem/Grassy2.jpg

==== File manager ====

$ sudo apt-get install xfe

Based on:
http://darkshed.net/files/rcs/fluxbox/keys.html
http://fluxbox-wiki.org/index.php/Howto_set_the_background

Debian Dell D600 dual head

Wednesday, January 9th, 2008

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!! :)