Emulating the XO/lang-pt

From OLPC
< Emulating the XO
Revision as of 14:23, 29 October 2007 by 143.107.161.178 (talk) (Comparison of alternatives)
Jump to: navigation, search
  Please copy/paste "{{Translationlist | xx | origlang=en | translated={{{translated}}}}}" (where xx is ISO 639 language code for your translation) to Emulating the XO/lang-pt/translations HowTo [ID# 74083]  +/-  
modify 

This tutorial is under translation

laptop-in-laptop

Simulando um XO

Emuladores permitem você rodar uma "máquina virtual" com uma (razoavelmente poderosa) máquina hospedeira. Aqui há alguns emuladores de sistemas disponiveis que podem ser utilizados para rodar um OLPC-XO emulado.

O melhor depende da sua plataforma e propósito - veja #Comparison of alternatives. Há atualmente certa discordancia sobre qual recomendar.

O disco de imagem dos arquivos *img.bz2 trabalha fora da caixa com o Qemu. Se você quiser usar o VirtualBox ou WMWare, você pode converter os arquivos baixados para vmdk (formato de disco de máquina virtual), entendido por ambos VirtualBox e VMWare, com os comandos

  bunzip2 <filename>.img.bz2
  qemu-img convert <filename>.img  -O vmdk <filename>.vmdk

Perceba que você tem que ter as ferramentas Qemu instaladas para realizar o passo acima.

Simulando o display 1200x900 do XO

Os emuladores listados tem sucessos variados emulando o display de alta resuolução dos XOs. VMWare chega perto, mas não atinge a resolução correta; particulamente quando emulando a aparencia do browser ( o browser faz sua própria escala de imagem). Tenha certeza da calibração utilizando alguma imagem do seu trabalho com alguem que tenha um XO verdadeiro antes de confiar no emulador para seu futuro trabalho.

Para ter 1200x900, use uma tela X remota. Veja Ajuda e dicas, em ingles e Como selecionar desenvolvimento em emulação linux pegando 1200x900, em inglês. MitchellNCharity 11:06, 9 October 2007 (EDT)

Simulando um Desktop de desenvolvedor

Most core developers use Fedora 7 or Ubuntu Feisty desktops which are running sugar-jhbuild to track the latest developments in the code-base. This allows you to integrate into the core development process, but can be a considerable maintenance headache due to the fragile nature of the build process.

You can readily run a simulated Fedora/Ubuntu desktop in emulation. This setup is not substantially different from running a regular Linux desktop using sugar-jhbuild.

Note: This approach is really only recommended for those who want to work on core components of the environment, activity developers are probably better off using an official image.

Note: Previously we have attempted to provide LiveCD and Developer Images for download. Manpower issues have meant that these images have fallen far behind the official images, thus they are no longer a recommended approach for developers. If you are interested in volunteering to maintain the LiveCD or Developer Images, please contact Mike Fletcher.

Comparison of alternatives

Um laptop OLPC é um hardware personalizado que roda um linux Red Hat básico, rodando o Sugar. Mas e se você não tem um laptop olpc de verdade? Aqui estão algumas opções, onde cada uma pode ser usada de duas maneiras.

plataforma propósito recomendação
Ubuntu jogos & desenvolvimento imagem do disco do XO no Qemu. Veja Guia rápido de emulação do XO.
Ubuntu 32-bit desenvolvimento central Sugar com sugar-jhbuild e Sugar no Ubuntu
Fedora jogos & desenvolvimento imagem do disco do XO no Qemu. Veja Guia rápido de emulação do XO. Talvez também em VirtualBox?
Fedora 32-bit desenvolvimento central Sugar com sugar-jhbuild e Instalando Sugar
Gentoo 32-bit desenvolvimento central Sugar com sugar-jhbuild em F7 no qemu. Ou Sugar no linux Gentoo (mais invasivo, menos estável).
Outros linux & FreeBSD jogos & desenvolvimento imagem do disco do XO no Qemu. Veja Guia rápido de emulação do XO. Talvez também em VirtualBox?
Windows jogos & desenvolvimento imagem de disco simulando xo, no VirtualBox, VMWare, ou QEMU no Windows.
Mac jogos & desenvolvimento imagem de disco simulando xo, em Qemu ou VMWare. Veja Emulating the XO/Quick Start/Mac, em inglês. Talvez também em VirtualBox? Veja também Mac.
Mac com VMWare desenvolvimento central Fedora 7 no VMWare e Sugar com sugar-jhbuild, som e rede funcionam. Veja Mac]
Mac com Parallels jogos imagem de disco simulando xo, rede funciona depois de manualmente inserir "dhclient eth0", som não funciona (Build 593).
Mac com Parallels desenvolvimento central rode Ubuntu 32-bit, e Sugar com sugar-jhbuild. Veja Mac. F7 pode ser melhor - veja abaixo

Discussão:

  • F7 é melhor que o Ubuntu para sugar-jhbuild? Se sim, poderia a recomendação para Mac Parallels ser F7 ao invés do Ubuntu, apesar do ultimo ter uma faixa gravada no /Mac? MitchellNCharity 10:33, 20 September 2007 (EDT)
    • Sim, você terá menos problemas com o Fedora 7, uma vez que você estiver trabalhando com Parallels (que é mais díficil que o Ubunto, eu acho). Eu uso o F7 porque tenho que poder fazer RPMs. Bert 08:33, 25 September 2007 (EDT)
  • QEMU ou VirtualBox ou VMWare?

Build recommendations

For running XO disk images on an emulator, some builds are better than others, and the most recent one will not always work. Here is a summary of current status. Please add your own experiences here, and in User Feedback on Images.

LATEST has been working on qemu lately. TamTam sound doesn't work #1978.

611 has been run on qemu, but has not been extensively tested. MitchellNCharity 12:16, 3 October 2007 (EDT)

Build 593 is reported[1] to boot on VMWare.

Build 557 is reported to work on VirtualBox and VMWare.

Overview

This is the old introduction section. It needs to be updated. Eg, the LiveCd is currently not a useful alternative. And "just use the latest build" isn't good advice, as a more selective approach has been needed. MitchellNCharity 23:36, 19 September 2007 (EDT)

One way to run oplc software is using an emulator on your pc. See Getting started programming for other options.

Note Category:Emulation and Help and tips.

For play, you can use LiveCd or Quick Start.

For development, you can use LiveCd, or qemu (as in quick start, but with a different image), or perhaps one of the Developer Images other than the LiveCd. An alternate approach is to attempt installing sugar. See Getting started programming for a comparison.

A common development approach is to use QEMU with kqemu acceleration. See Quick Start for the basics. Though for development, we will use a different .img, one with a few extra utility programs. See OS images, including latest stable build.

Instead of qemu, you can run VMware, and there are additional options on a Mac.

Please report your experiences in User Feedback on Images. There is a Virtualization Common Room.

There are limitations with XO disk images.

The LATEST-STABLE-BUILD versus LATEST build distinction is mostly of interest to people running on actual XO's. In emulation, developers should usually use LATEST. And when STABLE is old, non-developers probably should too.



See also