Difference between revisions of "Install/Bootloader/pt-br"

From Funtoo
Jump to navigation Jump to search
Line 16: Line 16:
}}
}}


<div class="mw-translate-fuzzy">
Em seguida, edite {{c | /etc/boot.conf}} usando {{c | nano}} e especifique "{{c | Funtoo Linux genkernel}}" como a configuração {{c | default}} na parte superior do arquivo, substituindo {{c | "Funtoo Linux"}}.  
A seguir, edite {{c|/etc/boot.conf}} usando {{c|nano}} e especifique "{{c|Funtoo Linux genkernel}}" como a configuração {{c|default}} no topo do arquivo, substituindo {{c|"Funtoo Linux"}}. Além disso, se você não estiver usando o memtest86+, remova essa entrada no boot.conf para evitar erros.
</div>


==== NVIDIA Graphics Card Users ====
==== NVIDIA Graphics Card Users ====

Revision as of 13:02, November 13, 2019

Other languages:
English • ‎Türkçe • ‎español • ‎português do Brasil • ‎русский • ‎中文(中国大陆)‎

Guia de Instalação: Gerenciador de Arranque

Install Guide, Chapter 14 < Prev Next >

Configuração de boot.conf

Estas instruções de instalação mostram como usar o GRUB para inicializar usando BIOS (legado) ou UEFI.

Observe que ( ego boot) é instalado por padrão, mas o GRUB não é, já que não é necessário para todos os sistemas Funtoo Linux (como containers, por exemplo). Mas para inicializar em "bare metal", GRUB é o gerenciador de inicialização recomendado e melhor suportado, então você precisa instala-ló:

chroot # emerge -av grub

Em seguida, edite /etc/boot.conf usando nano e especifique " Funtoo Linux genkernel" como a configuração default na parte superior do arquivo, substituindo "Funtoo Linux".

NVIDIA Graphics Card Users

If you have NVIDIA graphics and plan to set up a graphical environment, you have a couple of choices when it comes to graphics drivers -- the proprietary NVIDIA drivers provided by NVIDIA corporation itself, or the Open Source Nouveau drivers. If you don't know which to choose, we recommend starting with the proprietary NVIDIA drivers first for optimal performance on a wider range of hardware.

If using proprietary NVIDIA graphics...
It is safe to leave the nomodeset parameter in /etc/boot.conf as the proprietary drivers handle setting the graphics mode themselves. However, you will need to blacklist the nouveau modules so they do not load upon boot. See the NVIDIA Linux Display Drivers page for information on how to get these drivers set up.
If using Nouveau...
nomodeset should be should be removed as explained in the Other Graphics Cards section below.

Other Graphics Cards

Most users, particularly those who plan on setting up a graphical environment, will want to eventually remove nomodeset from params in /etc/make.conf. nomodeset prevents the kernel from changing graphics modes at boot. This option is in /etc/boot.conf by default for a couple of good reasons:

  • For users with HiDPI (4K+) displays: when the kernel automatically changes graphics modes, the console font can be tiny and unreadable.
  • For users with incompatible graphics cards: Some graphics cards don't handle mode setting properly and this can result in a blank screen after reboot.

Disabling mode setting is therefore a good, safe option for initial installs of Funtoo Linux, but most users will want to remove this option.

This is because essentially all graphics drivers (the big exception being the proprietary NVIDIA drivers) rely on mode setting to set the graphics mode of your display. So most users will need to remove it, and run ego boot update and reboot before they set up X or Wayland. Otherwise, X will not be able to initialize the display. Of course, you can also choose to remove it now and then you won't need to remember to remove it later :)

/etc/boot.conf deverá se parecer com isso:

   /etc/boot.conf
boot {
	generate grub
	default "Funtoo Linux" 
	timeout 3 
}
</div>

"Funtoo Linux" {
	kernel bzImage[-v]
}

"Funtoo Linux genkernel" {
	kernel kernel[-v]
	initrd initramfs[-v]

        # IMPORTANT: Most users -- remember to REMOVE nomodeset below!

	params += real_root=auto rootfstype=auto nomodeset
}

Se você está inicializando um kernel personalizado, por favor leia o manual de man boot.conf para informações sobre as várias opções disponíveis para você.

Intel Microcode

ego boot will ensure that you have the most recent Intel CPU microcode installed on your system if you emerge the following packages:

chroot # emerge intel-microcode iucode_tool

This is not necessary for AMD systems.

Old School (BIOS) MBR

Ao usar a inicialização do BIOS/MBR no "estilo antigo", execute os seguintes comandos para instalar o GRUB no seu MBR e, em seguida, gere o arquivo de configuração /boot/grub/grub.cfg que o GRUB usará para inicializar seu sistema:

(chroot) # grub-install --target=i386-pc --no-floppy /dev/sda
(chroot) # ego boot update

New School (UEFI) Boot Entry

Ao usar a inicialização do UEFI/GPT no "estilo novo", execute os seguintes comandos, dependendo se seu sistema é 32 ou 64 bits. Esse comando adiciona o GRUB como uma entrada na BIOS UEFI.

Para sistemas x86-64bit:

(chroot) # mount -o remount,rw /sys/firmware/efi/efivars
(chroot) # grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
(chroot) # ego boot update

Para sistemas x86-32 bits:

(chroot) # mount -o remount,rw /sys/firmware/efi/efivars
(chroot) # grub-install --target=i386-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
(chroot) # ego boot update

Primeira Inicialização, e no futuro...

OK -- Você está quase pronto para reinicializar!

Observe que você somente precisa executar o grub-install durante a instalação do Funtoo Linux, todas as vezes que for atualizar ou adicionar um novo kernel basta reexecutar o boot-update após atualizar manualmente seu arquivo /etc/boot.conf. Esse comando regenera /boot/grub/grub.cfg e você terá novas opções no menu do GRUB na próxima vez que reiniciar.

Install Guide, Chapter 14 < Prev Next >