sábado, março 31

Oracle Open World (Latin América)

Durante os dias 27, 28 e 29 de Marco ocorreu em São Paulo a Oracle Open World. O evento apresentou solucões e tendências não apenas da própria Oracle, como também de parceiros como a IBM, SUN, HP, Dell além da gaúcha Acão informática.

O evento foi uma grande oportunidade para a Oracle apresentar produtos vindos das suas últimas aquisicões em 2006 e principalmente 2005. Essas compras deixaram a Oracle muito mais agressiva no mercado de solucões integradas de software. Como mostrou o Cyro Diehl, hoje a Oracle já está presente em pequenas e médias empresas, "hoje temos Oracle Applications em escritórios de advocacias e padarias", disse Diehl.

Gostaria de ressaltar uma iniciativa da Oracle Education Fundation - www.think.com - empresa sem fins lucrativos criada pela Oracle para incentivar a educacão. A idéia é uma comunidade online, onde alunos e professores podem entrar e aprender com base na colaboracão mútua. Para ter acesso as ferramentas interativas, websites, email, há muito espaço para criar e compartilhar idéias. As escolas precisam se cadastrar junto à instituicão, que então libera o acesso aos professores e alunos. Os pais e professores tem um excelênte controle de conteúdo, deixando assim esse sistema de aprendizado muito seguro.

Para quem não esteve presente, existem diversas entrevistas disponíveis no site do TVOracle http://oracle.corptv.com.br As entrevistas de Cyro Diehl - think.com, Javier Cordeiro - Fusões e o video de coletiva realizada com o presidente mudial Charles Philips são bacanas.

segunda-feira, março 19

Vim Tips

Hello! Vim is a great editor (the best text editor in my opinion). But at first look it seems crazy and very confuse.

Vertical selection:
Many people know the visual selection, but Vim has also the vertical selection:

CTRL + v

produces this:

vertical selection example.
bla bla bla bla bla bla
ble ble ble ble ble ble
bli bli bli bli bli bli
blo blo blo blo blo
blu blu blu blu blu

Auto indent on past:
When you past any content copied from another application (ie. firefox), vim automatically indent each line, but it's useless. So you can change this configuration while past:
:set paste
then... past your text...

segunda-feira, março 12

How to install UML with kernel 2.6 (and use in production!)

My friend Francisco try to install uml on debian sarge, and I think so it was hard to he as hard to me. And becase that little story I made this how to.

I named host the computer that will runing another uml machines, and virtual user mode machines I called umlhosts.

First you need to install debian sarge on host, and I think so you know how do this, but if you don't, download Debian Net Install from this link, and follow this instructions. We also need create one commom user, here called ernexto on host. This user will run virtual machines.

With host machine running, install User Mode Linux, these are the basic steps:

1. Install uml-utilities package:

apt-get install uml-utilities;
2. Install user_mode_linux package:
This package exists only in debian testing (etch), so if you're installing on etch host, you don't need change apt sources.list file, but my friend Xico is installing on Sarge... type all these commands! hehehe
cd /etc/apt;
cp sources.list sources.list.backup;
echo "deb http://http.us.debian.org/debian testing main contrib non-free" >> /etc/apt/sources.list;
apt-get update;
apt-get install user-mode-linux;
mv sources.list.backup sources.list;
3. Install bridge:
If you need use network in umlhosts, you need this package. Exists many ways to put network working, you can learn more at UML official site.
apt-get install bridge-utils;
4. Download one filesystem:
At uml site, you can download many filesystems. Redhat, debian, slack and others are available. We are going to download Debian 3.0 filesystem from this link. After download, unzip the file using
bunzip2 Debian-3.0r0.ext2.bz2
5. Running it!
Now we have all that we need to running many uml virtual hosts without network configuration. You can test the uml installation typing these commands:
linux ubd0=Debian-3.0r0.ext2;
You will see the commom linux initialization screen, services wake up, and if all occured successful, the login screen. You can logging it using username: root, and blank password.

6. Setup network:
You can normal shutdown the umlhost. We use tun/tap devices to run virtual network. Tun/tap is good for security reasons, becase use preconfigured devices. We will create one tun/tap device, called tap0, belongs to ernexto.
tunctl -u ernexto
echo 1 > /proc/sys/net/ipv4/ip_forward
route add -host 172.16.0.51 dev tap0
echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp
arp -Ds 172.16.0.50 eth0 pub

brctl addbr br0
ifconfig eth0 0.0.0.0 promisc up
ifconfig tap0 0.0.0.0 promisc up
ifconfig br0 172.16.0.50 netmask 255.255.0.0 up
brctl stp br0 off
brctl setfd br0 1
brctl sethello br0 1
brctl addif br0 eth0
brctl addif br0 tap0

7. Finish
With tap device configured, you can run umlhost again, now starting with eth0 device.
linux.uml ubd0=Debian,eth0=tap0
After loggin in umlhost, configure network normally, using command ifconfig eth0. You can set default gatway to host ip.

For more information, see links bellow, or send mail to me.
http://user-mode-linux.sourceforge.net
http://www.debian.org

quarta-feira, fevereiro 28

Quem é que joga a fumaca pro alto...

Last week Eric Raymond published a post in Fedora devel list wich the subject "Goodbye fedora". In the message he wrote why is migrating to Ubuntu. Significant reasons to migrate from fedora includes "technical and political levels", he said. The Fedora mail list received many messages explain about the Raymond's problems and why Fedora is a good system. This is going to be one of the longest threads in the mail list history. You can read the Raymond's message following these link https://www.redhat.com/archives/fedora-devel-list/2007-February/msg01006.html

In my opinion, rpm package dependeces are very crazy, and new yum (up2date on RH) are good, but apt-get of the Debian is the best choice. I instaled to test fedora 6 on my laptop without problems. I just liked the 3d desktop of Gnome, nothing more.

The Debian Etch (testing version) are stable to desktops. You can install easily. The net-install cd have just 180 Mb and at the end of the installation you have a up to date system. The stable version (Sarge) is the best option to servers, and it is really stable.

Debian Sarge on servers and Debian Etch on desktops!!!


segunda-feira, fevereiro 26

Monitoramento com snmp e rrdtool

Logo depois que um sistema qualquer é implantado, como por exemplo um novo servidor, surge a necessidade de realizar um monitoramento dos novos serviços que estão rodando. Cada serviço tem suas particularidades, e o monitorá-los nos permite perceber essas características, como a taxa de crescimento do uso da banda da internet, ou os horarios em que os usuarios mais utilizam o banco de dados da empresa.

Com esses dados podemos "prever" algumas coisas importantes. Quando será necessário incrementar o link da internet é uma delas! Para realizar essas tarefas, existe o snmp. porém ele por si só é um tanto complexo. Aí surge o rrdtool (http://oss.oetiker.ch/rrdtool/)

Semelhante ao conhecido mrtg, ele nos permite gerar gráficos a partir dos dados obtidos com o snmp. Mas pode faz além disso: como os dados são inseridos através de scripts, você pode monitorar praticamente qualquer coisa que resulte um número. A primeira tela abaixo, é do site oficial http://oss.oetiker.ch/rrdtool/ e a segunda mostra o load de um servidor de ftp que estou criando...

Outra ferramenta muito boa é o cacti (www.cacti.org). Desenvido em php, este é uma front-end completo para o rrdtool. Ele consegue obter os dados diretamente de snmp, além de script em python/perl/shell ou qualquer outra coisa executável. Na internet você ainda encontra diversos plugins que aumentam a sua capacidade.

quinta-feira, novembro 30

Oracle Unbreakable Linux

In last month, oracle has announced enterprise support for her linux, named "Unbreakable Linux". This way, Oracle offers the same support level that provides for its database product.

Historically, first commertial database for linux was Oracle and the company affirms that your employees contributes for Kernel development

The company is offering free trial for all customers. Starting from October,1º and ending on January 31, 2007. If you use RHES3 or RHES4 just need download "Up2date" from Oracle and you receive bug fixes and new versions from Oracle.
I instaled Oracle Linux in last week, and posted a screenshot of the installation. See a preview below:

segunda-feira, novembro 20

UML - Linux in another linux

Wich UML, you can run one linux inside another!
There are several things you can do wich UML. It's very usefull for testing upgrades in your servers, kernel development, or just for funny.
To do this, basic steps are:

  • Download and install Uml package (uml-utilities user-mode-linux)
  • Download kernel sources and apply correspondent Uml kernel patch
  • Compile kernel for architecture=uml
  • Download any filesystem from UserModeLinux page.
  • Run!!!
At uml pages you can download many distros (redhat, debian, slackware), but you can make your own filesystem! Many tools are avaliable for that. It's possible run graphicaly X or just command line.
I post few links bellow where you can find good documentation and "how to", and links for other tools necessary for run virtual network.

http://user-mode-linux.sourceforge.net/UserModeLinux-HOWTO.html - The main site. It have step-by-step how-to, very recommended for
http://user-mode-linux.sourceforge.net - This is official page. You will find many documentation here.
http://user-mode-linux.sourceforge.net/networking.html - How to running network in virtual machine. I'm using TUN/TAP and it's working fine.

domingo, setembro 3

Debian Installer / modo grafico!

O pessoal do Debian lancou há pouco tempo a versão do próximo Instalador, agora rodando também em modo Gráfico. Para uma distribuição que suporta 13 arquiteturas (oficialmente), iniciar um ambiente gráfico antes mesmo da instalaçao não é uma tarefa muito simples.

Pelo que pude perceber, as telas e opções são semelhantes, se não as mesmas, da atual instalação em modo texto, com a "facilidade" de utilizar o mouse em um ambiente "mais agradável".

Isso é uma evolução interessante e (ao que parece) o Debian está focando em novos usuários domésticos e no uso em desktop. Acredito que esse interesse seja reforçado pelo sucesso do Ubuntu. Ainda assim, as perguntas continuam bem mais complexas que a instalação do Fedora Core 5, por exemplo. O novo instalador será adicionado na próxima versão.

Segundo o cronograma, a nova versão estável do Debian, o Etch, sairá ainda esse ano!!! No site oficial, existem notícias de que o Sarge sai de linha em Dezembro.

Mesmo assim, eu ainda vou continuar usando o bem e velho modo texto mais algum tempo...

quinta-feira, fevereiro 2

Cachoeira



Foto da cachoeira que visitei no final de semana de aniversário. Abraços para o pessoal que estava presente (em ordem crescente de altura): Fernanda, Joelma, Paula, Xico e Eduardo.

sexta-feira, agosto 12

opa...

Só passei que pra dizer um oi...
A amanhã tem Cachorro Grande!!!

"Se vc fôôôr... não vai se arrempende...
mas se não fôôôr... o que é que vão dizeeeer..."