FAQ/pt-br

Esta FAQ é uma coleção de perguntas e respostas coletadas da lista de discussão gentoo-dev e IRC.

Introdução
Por favor note que muitas destas perguntas são respondidas na documentação e nos guias oficiais do Gentoo. Está é apenas uma lista das questões mais frequentes. Por favor leia a documentação e/ou as páginas de manual (man pages) para obter um maior entendimento de como o Gentoo e o GNU/Linux funcionam, e para obter respostas para questões que possam não estar respondidas aqui.

Como se pronuncia Gentoo e o que significa?
Gentoo é pronunciado "gen-tu" (o "g" de "Gentoo" é pronunciado como o "g" em "gentil" e "oo" como um longo "u"). É o nome de uma espécie de pinguim. O nome científico do pinguim Gentoo é Pygoscelis papua. Esse nome foi dado ao pinguim pelos habitantes das Ilhas Falkland (Malvinas).

O que faz do Gentoo diferente?
O Gentoo usa um sistema similar aos "portes" do BSD chamado Portage. O Portage é um sistema de gerenciamento de pacotes de software que permite grande flexibilidade em instalar e manter o software de um sistema Gentoo. Ele provê suporte para opções em tempo de compilação (através das "USE flags"), dependências condicionais, sumarização pré-instalação de pacotes, instalação segura (através do uso de "caixas de areia" (sandboxing)) e desinstalação de software, perfis de sistema, proteção de arquivo de configuração entre muitos outros recursos.

Com o Gentoo você pode construir seu sistema inteiro a partir do código-fonte, escolhendo suas próprias otimizações. Você tem controle completo sobre quais pacotes são ou não são instalados. O Gentoo o provê com um grande número de escolhas, de modo que você pode pode instalar o Gentoo de acordo com suas próprias preferências, o que faz o Gentoo ser chamado de "meta-distribuição".

O Gentoo é ativamente desenvolvido. A distribuição toda usa um estilo rápido de desenvolvimento: correções (patches) de pacotes são rapidamente integradas na "árvore" principal, a documentação é atualizada com base diaria, novos recursos do Portage são adicionados com frequencia, e lançamentos oficiais ocorrem duas vezes por ano.

Tudo está muito instável e eu estou usando otimizações -O9 -ffast-math -fomit-frame-pointer. O que acontece?
Não se dê ao trabalho de usar nada acima de  uma vez que não são suportadas pelas versões atuais do gcc. Otimizações muito agressivas as vezes fazem com que o compilador "enxugue" o código assembly ao ponto de ele não fazer mais o mesmo.

Por favor tente compilar com as CFLAGS  antes de reportar um bug.

Como troco a senha do root (ou de outro usuário)?
Você pode usar  para trocar a senha do usuário com o qual você está logado. Como root, você pode trocar a senha de qualquer outro usuário usando o comando. Para outras opções e usos, por favor use.

Como adiciono um usuário normal?
O comando  criará um usuário chamado "nome_usuario". Entretanto, esse método não dá ao usuário vários dos direitos que você pode querer dar a ele, então, o comando a seguir é preferido:

Isso vai criar um usuário chamado "nome_usuario". A opção  adiciona o usuário ao grupo   e assim o permite acessar dispositivos de som. A opção  adiciono o usuário ao grupo , o que permite ao usuário executar o comando. Isso, por sua vez, permite ao usuário ganhar privilegios de.

Por que um usuário não pode fazer para root?
Por razões de segurança, os usuários podem apenas fazer  para root se eles pertencerem ao grupo wheel. Para adicionar um usuário ao grupo whell, execute o seguinte comando como root:

Posso atualizar o Gentoo de uma versão para outra sem reinstalar?
Na verdade, não há diferença entre as diversas versões depois delas estarem instaladas. O Gentoo versão 1.4 e as mais recentes são baseadas no  (ou maior). Dessa forma, executando  irá atualizar seu sistema inteiro com o "último Gentoo". As difenças entre as versões individuais ficam nas midias de instalação e nos pacotes pré-compilados. Veja o Guia de Atualização do Gentoo para maiores informações sobre perfis e seu papel na atualização.

Note também que o comando  atualiza os pacotes que você instalou bem como suas dependências, mas não as dependências de compilação (pacotes que são necessários durante a compilação mas não quando o software é instalado). Para atualizar esses também, adicione a opção  option.

Meu kernel não dá boot, que deve fazer?
Você não precisa refazer todos os passos da instalação, mas é necessário investigar o kernel e todos os passos relacionados a ele. Suponha que você instalou o Gentoo em (/boot) e  (/) com  sendo área de swap.

Boot from the Install CD and wait until you receive a prompt.

Now first mount all partitions:

Then we chroot into our Gentoo environment and configure the kernel:

Now (de)select anything you have (de)selected wrongly at your previous attempt. Then quit and compile your kernel:

Now copy over your bzImage file, overwriting your previous one:

If you use LILO, rerun lilo -- GRUB users should skip this:

Now exit the chroot and reboot.

If, on the other hand, the problem lies with your bootloader configuration, follow the same steps, but instead of configuring/compiling your kernel, you should reconfigure your bootloader (recompilation isn't necessary).

My proxy requires authentication, what do I have to do?
To have Portage automatically use this scheme, define it in :

Como gravo um arquivo ISO?
Você precisa gravar o arquivo em "modo bruto" (raw mode). Isso significa não apenas gravar o arquivo no CD, mas interpretar o arquivo como um CD completo.

Existem muitas ferramentas de gravação disponíveis; explicar todas elas seria um "trabalho de Sísifo". Entretanto, descrever umas poucas ferramentas mais populares não machuca:


 * With EasyCD Creator you select,  . Then you change the   to  . Then locate the ISO file and click  . When you click on   the ISO image will be burned correctly onto the CD-R.


 * With Nero Burning ROM, cancel the wizard which automatically pops up and select  from the   menu. Select the image you want to burn and click  . Now hit the   button and watch your brand new CD being burnt.


 * With cdrecord, you simply type  (replace  with your CD-RW drive's device path) followed by the path to the ISO file.


 * With K3B, select  >   >  . Then you can locate your ISO file within the 'Image to Burn' area. Finally click.


 * With Mac OS X Panther, launch  from, select   from the   menu, select the mounted disk image in the main window and select   in the   menu.


 * With Mac OS X Jaguar, launch  from, select   from the   menu, select the ISO and click the   button.

What CD/stage should I use for my CPU?
First you need to find out what CPU you use. Suppose it's a Pentium-M. Then you need to find out what CPU it is, instruction-wise, compatible with. You may need to consult the CPU's vendor website for this, although consulting a search engine of your choice should be at least as efficient.

If you are uncertain, take a "lower" CD/stage file, for instance a i686 or even generic x86 (or the equivalent in your arch). This will ensure that your system will work, but may not be as fast as further optimizations.

Please note that many more options exist than those for which Gentoo builds binary stages. Please see the GCC guide for setting.

I can't get online after rebooting. What is wrong?
First you need to check if your network card is discovered properly by the kernel. Run  and look for eth0 or wlan0 (in case of certain wireless network cards). You might need to load specific kernel modules for the kernel to properly detect the network card. If that is the case, make sure that these kernel modules are listed in.

If you have forgotten to include support for your network card in your kernel, you will need to reconfigure your kernel.

If your network card is found by your kernel, but you have set your networking configuration to use DHCP, you might have forgotten to. You will need to reboot with your installation CD to install.

Information on how to rescue your system using the installation CD is available here as well.

I want to boot Windows from GRUB or LILO but it shows only black screen. What should I do?
This is a known problem. Windows refuses to boot when it isn't installed on the first hard drive and shows a black/blank screen. To handle this, you will have to "fool" Windows into believing that it is installed on the first hard drive with a little tweak in your boot loader configuration. Please note that in the below example, Gentoo is installed on (first disk) and Windows on  (second one). Adjust your config as needed.

This will make Windows believe it is installed on the first hard drive and boot without problems. More information can be found in the GRUB documentation and in, depending on the boot loader you're using.

How do I Install Gentoo Using a Stage1 or Stage2 Tarball?
The Gentoo Handbook only describes a Gentoo installation using a stage3 tarball. However, Gentoo still provides stage1 and stage2 tarballs. This is for development purposes (the Release Engineering team starts from a stage1 tarball to obtain a stage3) but shouldn't be used by users: a stage3 tarball can very well be used to bootstrap the system. You do need a working Internet connection.

Bootstrapping means building the toolchain (the C library and compiler) for your system after which you install all core system packages. To bootstrap the system, perform a stage3 installation. Before you start the chapter on Configuring the Kernel, modify the script to suit your needs:

After modifications, run the script.

Next, rebuild all core system packages with the newly built toolchain. We need to rebuild them since the stage3 tarball already offers them:

Now you can continue with Configuring the Kernel.

Gerenciamento de Pacotes

In what form are the packages stored?
Packages aren't "stored" per se. Instead, Gentoo provides a set of scripts which can resolve dependencies, fetch source code, and compile a version of the package specifically for your needs. We generally only build binaries for releases and snapshots. The Gentoo Ebuild HOWTO covers the contents of an ebuild script in detail.

For full ISO releases, we create a full suite of binary packages in an enhanced  format, which is   compatible with meta-information attached to the end of the file. These can be used to install a working (though not fully optimized) version of the package quickly and efficiently.

It is possible to create RPMs (Red Hat package manager files) using Gentoo's Portage, but it is not currently possible to use already existing RPMs to install packages.

I want to perform the ./configure step myself. Can I?
Yes, but it is not trivial, nor is it recommended. Since the method to do this requires a good understanding of Portage internals and commands, it is instead recommended that you patch the ebuild to do whatever it is that you want and place it in a Portage overlay (that's why overlays exist). This is much better for maintainability, and usually easier. See the Ebuild HOWTO for more information.

What if rsync doesn't work for me?
If you're behind a firewall that doesn't permit rsync traffic, then you can use  which will fetch and install a Portage snapshot for you through regular HTTP. See this section for information on downloading source files and Portage snapshots via a proxy.

I have only slow modem connection at home. Can I download sources somewhere else and add them to my system?
Definitely. You can run  to see what programs are going to be installed. To find out the sources for those packages and where to download the sources from, you can run. Download sources and bring them on any media home. Put the sources into and then simply run. Be warned, however, that this is a tedious process.

Source tarballs are collecting in /usr/portage/distfiles/. Is it safe to delete these files?
Deleting these files will have no negative impact on day-to-day performance. However, it might be wise to keep the most recent version of the files; often several ebuilds will be released for the same version of a specific piece of software. If you have deleted the archive and you upgrade the software it will be necessary to download them from the internet again.

You can use the  script from  to manage the contents of  and a few other locations. Please read  to learn more about its usage, as well as the Gentoolkit Guide.

What's in /var/tmp/portage? Is it safe to delete the files and directories in /var/tmp/portage?
During compilation, Gentoo saves the sources of the package in. These files and folder are usually deleted upon a successful merge, but this sometimes fails. It is safe to clean out all contents of this directory if emerge is not running. Just to be sure, always  before cleaning out this directory.

How do I set up an International Keyboard Layout?
Edit the  variable in. To have console working correctly with extended characters in your keymap you might also need to set up variables  and   in your  (for further information on localising your environment, refer to our localization guide). Then, either, or restart the keymaps and consolefont scripts:

DNS name resolution works for root only
has the wrong permissions;  it as follows:

Why can't my user use their own crontab?
You need to add that user to the  group.

How do I get numlock to start on boot?
If you work in command line, you only need to.

Each GUI provides different tools for this sort of thing; please check the help section or online manuals for assistance.

How do I have my terminal cleared when I log out?
To have your terminal cleared, add  to your  script:

If you want this to happen automatically when you add a new user, do the same for the :

ReiserFS and filesystem corruption issues -- how to fix them, etc
If your ReiserFS partition is corrupt, try booting the Gentoo Install CD and run  on the corrupted filesystem. This should make the filesystem consistent again, although you may have lost some files or directories due to the corruption.

Where can I report bugs?
Use our Bugzilla. If you are unsure if your problem is an actual bug, you can visit #gentoo on the Freenode IRC server.

How often are new releases made?
Gentoo's packages are usually updated shortly after the main authors release new code. As for when Gentoo itself makes new stage/profile/ISO releases, check our Release Engineering Project page. New releases are announced on the gentoo-announce mailing list. See this section for more information.

My speaker beeps like crazy. How do I disable console beeps?
Console beeps can be turned off using setterm, like this:

If you would like to turn off the console beeps on boot, you need to put this command in. However, this only disables beeps for the current terminal. To disable beeps for other terminals, pipe the command output to the target terminal, like this:

You need to replace with the terminal you would like to disable console beeps for.

Where can I find more information about Gentoo Linux?
The official Gentoo documentation can be found at http://www.gentoo.org/doc/en/.

Can I buy a CD of Gentoo Linux?
If you are not able to download and burn an installation CD yourself, you might find one through one of our licensed stores. However, most stores have dropped offering CDs and DVDs as these installation media quickly become obsolete.

You can find the licensed stores on our Get Gentoo! page.

This FAQ hasn't answered my question. What do I do now?
A good first step is to browse through the relevant documentation, failing that, the various Gentoo Linux mailing lists listed on Google. To search through the Gentoo mailing lists, just enter "site:lists.gentoo.org foo" to search for "foo". If all else fails, or you just want to hang out with Gentoo folks, visit us on the #gentoo Freenode IRC channel.