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

From Funtoo
Jump to navigation Jump to search
(Updating to match new version of source page)
(8 intermediate revisions by one other user not shown)
Line 5: Line 5:


{{InstallNavigation|num=14|prev=Kernel|next=Network}}</noinclude>
{{InstallNavigation|num=14|prev=Kernel|next=Network}}</noinclude>
=== 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.
Essas instruções de instalação mostram como usar o GRUB para inicializar usando o BIOS/MBR (legado) ou o UEFI/GPT.
Line 10: Line 12:
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ó:
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ó:


<div class="mw-translate-fuzzy">
{{console|body=
{{console|body=
(chroot) ###i## emerge -av grub
(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.
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 :)


{{c|/etc/boot.conf}} 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 {
Line 24: Line 50:
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 rootfstype=auto
 
        # 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 {{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
}}
}}


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ê.
This is not necessary for AMD systems.


==== Old School (BIOS) MBR ====
==== Old School (BIOS) MBR ====


<div class="mw-translate-fuzzy">
==== Estilo Antigo (BIOS) MBR ====
</div>
<div class="mw-translate-fuzzy">
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:
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
<console>
{{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
ou (se for o caso)
(chroot) # ##i##ego boot update
(chroot) # ##i##ego boot update
</console>
}}
</div>  
</div>


<div class="mw-translate-fuzzy">
==== New School (UEFI) Boot Entry ====  
==== Estilo Novo (UEFI) Entrada no Boot ====
</div>


<div class="mw-translate-fuzzy">
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.
</div>
 
Para sistemas x86-64bit:


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Para sistemas x86-64 bits:
{{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##ego boot update
}}
</div>
</div>


Line 73: Line 107:


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
<console>
{{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
ou (se for o caso)
(chroot) # ##i##ego boot update
(chroot) # ##i##ego boot update
</console>
}}
</div>
</div>


Line 89: Line 122:
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.
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>
</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 >