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

From Funtoo
Jump to navigation Jump to search
(Created page with "Para sistemas x86-64 bits:")
(Updating to match new version of source page)
(33 intermediate revisions by 2 users not shown)
Line 6: Line 6:
{{InstallNavigation|num=14|prev=Kernel|next=Network}}</noinclude>
{{InstallNavigation|num=14|prev=Kernel|next=Network}}</noinclude>


Essas instruções de instalação mostram como usar o GRUB para inicializar usando o BIOS/MBR (herdado) ou o UEFI/GPT com boot-update a partir da versão 1.7.2.
=== boot.conf Configuration ===


Primeiro, instale <code>boot-update</code>. Isso também causa a instalação de <code>grub-2</code> e {{c|efibootmgr}}, pois esses pacotes são dependências:
Essas instruções de instalação mostram como usar o GRUB para inicializar usando o BIOS/MBR (legado) ou o UEFI/GPT.


<console>
Observe que ({{c | 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) # ##i##emerge boot-update
</console>


Então, edite <code>/etc/boot.conf</code> usando {{c|nano}} e especifique "<code>Funtoo Linux genkernel</code>" como a configuração <code>padrão</code> no topo do arquivo, substituindo "<code>Funtoo Linux</code>". Além disso, se você não estiver usando o memtest86+, remova essa entrada no boot.conf para evitar erros.
<div class="mw-translate-fuzzy">
{{console|body=
(chroot) ###i## emerge -av grub
}}
</div>
 
<div class="mw-translate-fuzzy">
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 ====
 
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 {{c|nomodeset}} parameter in {{c|/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 [[Package:NVIDIA_Linux_Display_Drivers|the NVIDIA Linux Display Drivers page]] for information on how to get these drivers set up.
 
;If using Nouveau...: {{c|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 {{c|nomodeset}} from {{c|params}} in {{f|/etc/make.conf}}. {{c|nomodeset}} prevents the kernel from changing graphics modes at boot.  This option is in {{c|/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 {{c|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 :)


<code>/etc/boot.conf</code> deverá se parecer com isso:
{{c|/etc/boot.conf}} deverá se parecer com isso:


<div class="mw-translate-fuzzy">
{{file|name=/etc/boot.conf|body=
{{file|name=/etc/boot.conf|body=
boot {
boot {
generate grub
generate grub
default "Funtoo Linux genkernel"  
default "Funtoo Linux"  
timeout 3  
timeout 3  
}
}
</div>


"Funtoo Linux" {
"Funtoo Linux" {
Line 32: Line 59:
kernel kernel[-v]
kernel kernel[-v]
initrd initramfs[-v]
initrd initramfs[-v]
params += real_root=auto
}


"Funtoo Linux better-initramfs" {
        # IMPORTANT: Most users -- remember to REMOVE nomodeset below!
kernel vmlinuz[-v]
 
initrd /initramfs.cpio.gz
params += real_root=auto rootfstype=auto nomodeset
}
}
}}
}}


Se você está inicializando um kernel personalizado, por favor leia o manual de <code>boot.conf</code> para informações sobre as várias opções disponíveis para você.
Se você está inicializando um kernel personalizado, por favor leia o manual de {{c|man boot.conf}} para informações sobre as várias opções disponíveis para você.
 
=== Intel Microcode ===
 
{{c|ego boot}} will ensure that you have the most recent Intel CPU microcode installed on your system if you emerge the
following packages:
 
{{console|body=
%chroot% ##i##emerge intel-microcode iucode_tool
}}
 
This is not necessary for AMD systems.


==== Estilo Antigo (BIOS) MBR ====
==== 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 {{c|/boot/grub/grub.cfg}} que o GRUB usará para inicializar seu sistema:
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 {{c|/boot/grub/grub.cfg}} que o GRUB usará para inicializar seu sistema:


<console>
<div class="mw-translate-fuzzy">
{{console|body=
(chroot) # ##i##grub-install --target=i386-pc --no-floppy /dev/sda
(chroot) # ##i##grub-install --target=i386-pc --no-floppy /dev/sda
(chroot) # ##i##boot-update
(chroot) # ##i##ego boot update
</console>
}}
</div>


==== Estilo Novo (UEFI) Entrada no Boot ====  
==== 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.
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-64 bits:
Para sistemas x86-64bit:


<console>
<div class="mw-translate-fuzzy">
{{console|body=
(chroot) # ##i##mount -o remount,rw /sys/firmware/efi/efivars
(chroot) # ##i##grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
(chroot) # ##i##grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
(chroot) # ##i##boot-update
(chroot) # ##i##ego boot update
</console>
}}
</div>


For x86-32bit systems:
Para sistemas x86-32 bits:


<console>
<div class="mw-translate-fuzzy">
{{console|body=
(chroot) # ##i##mount -o remount,rw /sys/firmware/efi/efivars
(chroot) # ##i##grub-install --target=i386-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
(chroot) # ##i##grub-install --target=i386-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
(chroot) # ##i##boot-update
(chroot) # ##i##ego boot update
</console>
}}
</div>


==== First Boot, and in the future... ====  
==== Primeira Inicialização, e no futuro... ====  


OK -- you are almost ready to boot!  
OK -- Você está quase pronto para reinicializar!  


You only need to run <code>grub-install</code> when you first install Funtoo Linux, but you need to re-run <code>boot-update</code> every time you modify your <code>/etc/boot.conf</code> file or add new kernels to your system. This will regenerate {{c|/boot/grub/grub.cfg}} so that you will have new kernels available in your GRUB boot menu, the next time you reboot.
<div class="mw-translate-fuzzy">
Observe que você somente precisa executar o <code>grub-install</code> durante a instalação do Funtoo Linux, todas as vezes
que for atualizar ou adicionar um novo kernel basta reexecutar o <code>boot-update</code> após atualizar manualmente seu arquivo <code>/etc/boot.conf</code>. Esse comando regenera {{c|/boot/grub/grub.cfg}} e você terá novas opções no menu do GRUB na próxima vez que reiniciar.
</div>
<noinclude>{{InstallNavigation|num=14|prev=Kernel|next=Network|align=right}}</noinclude>

Revision as of 22:06, October 10, 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 >

boot.conf Configuration

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

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

A seguir, edite /etc/boot.conf usando nano e especifique "Funtoo Linux genkernel" como a configuração default no topo do arquivo, substituindo "Funtoo Linux". Além disso, se você não estiver usando o memtest86+, remova essa entrada no boot.conf para evitar erros.

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 >