Instalando o Gentoo GNU/Linux

Eu sempre fui a favor de compartilhar conhecimento e uma coisa que me chama atenção é que a comunidade brasileira de Linux não costuma usar Gentoo, portanto, não se encontra muito conteúdo feito por brasileiros, foi por isso que resolvi fazer esse artigo, e também, pra desmistificar a instalação do sistema.

[ Hits: 30.511 ]

Por: Gabriel Melo em 29/06/2015


Linguagem, make.conf e kernel



Dentro do novo sistema, vamos configurar a linguagem do sistema para pt-BR.

# echo "pt_BR ISO-8859-1" >> /etc/locale.gen
# echo "pt_BR.UTF-8 UTF-8" >> /etc/locale.gen
# locale-gen

Agora, o arquivo 02locale:

# nano /etc/env.d/02locale

LANG="pt_BR.UTF-8"
LC_COLLATE="C"

Salve e feche.

Vamos atualizar as configurações novas.

# env-update && source /etc/profile

Agora vamos configurar a parte mais importante do Gentoo GNU/Linux, o make.conf. Eu não vou entrar em detalhes, mas recomendo ler a documentação que vai dar pra entender bastante:

# nano /etc/portage/make.conf

CFLAGS="-march=native -fomit-frame-pointer -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
FEATURES="parallel-fetch collision-protect"
ACCEPT_KEYWORDS="amd64"
MAKEOPTS="-s -j5" # se usar um quad-core, deixe -j5, o truque é usar o número de núcleos do seu computador + 1.
ACCEPT_LICENSE="*"
AUTOCLEAN="yes"
LINGUAS="pt_BR.UTF-8 pt_BR.ISO8859-1 pt_BR.iso8859-1 pt_BR pt-BR"

Salve e feche.

Vamos atualizar o repositório:

# emerge --sync

Agora, vamos baixar o kernel do Gentoo:

# emerge -av gentoo-sources

Eu vou usar o genkernel pra compilar o kernel, acho mais prático e fácil. Então, vamos instalar:

# emerge genkernel

Agora vamos configurar e compilar o kernel:

# genkernel --menuconfig --install all

Não vou ensinar a configurar um kernel, mas não tem mistério, basta selecionar os módulos de acordo com teu hardware.

Confira se está tudo certo, o kernel, o initramfs e o system.map:

# ls /boot

Kernel instalado, vamos para o terceiro passo.

Página anterior     Próxima página

Páginas do artigo
   1. Particionando, montando partições, baixando o Stage 3 e entrando no sistema
   2. Linguagem, make.conf e kernel
   3. Configurações do sistema, aplicativos essenciais, wireless e GRUB
   4. Primeiro boot, atualizando o sistema e instalando o X
Outros artigos deste autor
Nenhum artigo encontrado.
Leitura recomendada

MetaTrader 5 facilita instalação em Linux

eDonkey para Linux

Enviando mensagens para celulares TIM através de script

Ferramentas de monitoria de tráfego

Monitorando o servidor Jabber 2 com o Bandersnatch

  
Comentários
[1] Comentário enviado por pulgovisk em 29/06/2015 - 17:38h

Os link's dos stage's não estão trocados?

[2] Comentário enviado por zezaocapoeira em 29/06/2015 - 17:57h

Salve mano . Parabéns pelo trabalho .

Obrigado pela atenção , salve !!!

[3] Comentário enviado por removido em 29/06/2015 - 18:43h

Parece-me que chegou a minha hora de testar o Gentoo.
Agora vai! Parabéns.

--
http://s.glbimg.com/po/tt/f/original/2011/10/20/a97264_w8.jpg

Encryption works. Properly implemented strong crypto systems are one of the few things that you can rely on. Unfortunately, endpoint security is so terrifically weak that NSA can frequently find ways around it. — Edward Snowden

[4] Comentário enviado por xerxeslins em 30/06/2015 - 08:20h


Parabéns pelo artigo!

[5] Comentário enviado por xerxeslins em 30/06/2015 - 08:22h


[1] Comentário enviado por pulgovisk em 29/06/2015 - 17:38h

Os link's dos stage's não estão trocados?


Foi corrigido. Obrigado!

[6] Comentário enviado por zhushazang em 01/07/2015 - 20:51h

Muito bom. Old School Mode.

Parabéns

---
Hail Hydra!

[7] Comentário enviado por biel-gentoo em 01/07/2015 - 21:55h


[2] Comentário enviado por zezaocapoeira em 29/06/2015 - 17:57h

Salve mano . Parabéns pelo trabalho .

Obrigado pela atenção , salve !!!


Opa, valeu.

[8] Comentário enviado por removido em 01/07/2015 - 23:25h

Favoritado!!!

A liberdade indocil e domada pela propria desgraça -William Shakespeare

[9] Comentário enviado por asdf2 em 03/07/2015 - 00:22h


Belo artigo, valeu demais

[10] Comentário enviado por albfneto em 03/07/2015 - 19:40h

Muito bom esse artigo.
favoritado
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
Albfneto,
Ribeirão Preto, S.P., Brasil.
Usuário Linux, Linux Counter: #479903.
Distros Favoritas: [i] Sabayon, Gentoo, OpenSUSE, Mageia e OpenMandriva[/i].

[11] Comentário enviado por fabiomattes2011 em 14/08/2015 - 07:55h

Alguem sabe me dizer o que eu fiz de errado nessa parte:

# emerge linux-firmware

* This package will overwrite one or more files that may belong to other
* packages (see list below). You can use a command such as `portageq
* owners / <filename>` to identify the installed package that owns a
* file. If portageq reports that only one package owns a file then do
* NOT file a bug report. A bug report is only useful if it identifies at
* least two or more packages that are known to install the same file(s).
* If a collision occurs and you can not explain where the file came from
* then you should simply ignore the collision since there is not enough
* information to determine if a real problem exists. Please do NOT file
* a bug report at http://bugs.gentoo.org unless you report exactly which
* two packages install the same file(s). See
* http://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how to
* solve the problem. And once again, please do NOT file a bug report
* unless you have completely understood the above message.
*
* package sys-kernel/linux-firmware-20150206 NOT merged
*
* Detected file collision(s):
*
* /lib/firmware/whiteheat_loader.fw
* /lib/firmware/whiteheat.fw
* /lib/firmware/kaweth/trigger_code_fix.bin
* /lib/firmware/kaweth/new_code_fix.bin
* /lib/firmware/kaweth/new_code.bin
* /lib/firmware/kaweth/trigger_code.bin
* /lib/firmware/r128/r128_cce.bin
* /lib/firmware/cis/SW_555_SER.cis
* /lib/firmware/cis/SW_8xx_SER.cis
* /lib/firmware/cis/SW_7xx_SER.cis
* /lib/firmware/cis/COMpad4.cis
* /lib/firmware/cis/COMpad2.cis
* /lib/firmware/cis/MT5634ZLX.cis
* /lib/firmware/cis/RS-COM-2P.cis
* /lib/firmware/radeon/RV620_pfp.bin
* /lib/firmware/radeon/RV770_pfp.bin
* /lib/firmware/radeon/RV730_me.bin
* /lib/firmware/radeon/RS780_pfp.bin
* /lib/firmware/radeon/R200_cp.bin
* /lib/firmware/radeon/R600_pfp.bin
* /lib/firmware/radeon/R520_cp.bin
* /lib/firmware/radeon/RV635_pfp.bin
* /lib/firmware/radeon/RV710_pfp.bin
* /lib/firmware/radeon/RV730_pfp.bin
* /lib/firmware/radeon/RV610_pfp.bin
* /lib/firmware/radeon/RV630_me.bin
* /lib/firmware/radeon/RS690_cp.bin
* /lib/firmware/radeon/R420_cp.bin
* /lib/firmware/radeon/RS780_me.bin
* /lib/firmware/radeon/R300_cp.bin
* /lib/firmware/radeon/RV630_pfp.bin
* /lib/firmware/radeon/RV670_me.bin
* /lib/firmware/radeon/RV610_me.bin
* /lib/firmware/radeon/R600_me.bin
* /lib/firmware/radeon/R100_cp.bin
* /lib/firmware/radeon/RV670_pfp.bin
* /lib/firmware/radeon/RV770_me.bin
* /lib/firmware/radeon/RS600_cp.bin
* /lib/firmware/radeon/RV635_me.bin
* /lib/firmware/radeon/RV620_me.bin
* /lib/firmware/radeon/RV710_me.bin
* /lib/firmware/matrox/g200_warp.fw
* /lib/firmware/matrox/g400_warp.fw
* /lib/firmware/qlogic/1280.bin
* /lib/firmware/qlogic/12160.bin
* /lib/firmware/qlogic/1040.bin
* /lib/firmware/advansys/38C1600.bin
* /lib/firmware/advansys/mcode.bin
* /lib/firmware/advansys/3550.bin
* /lib/firmware/advansys/38C0800.bin
*
* Searching all installed packages for file collisions...
*
* Press Ctrl-C to Stop
*
* None of the installed packages claim the file(s).
*
* Package 'sys-kernel/linux-firmware-20150206' NOT merged due to file
* collisions. If necessary, refer to your elog messages for the whole
* content of the above message.

[12] Comentário enviado por biel-gentoo em 14/08/2015 - 12:52h


[11] Comentário enviado por fabiomattes2011 em 14/08/2015 - 07:55h

Alguem sabe me dizer o que eu fiz de errado nessa parte:

# emerge linux-firmware

* This package will overwrite one or more files that may belong to other
* packages (see list below). You can use a command such as `portageq
* owners / &lt;filename&gt;` to identify the installed package that owns a
* file. If portageq reports that only one package owns a file then do
* NOT file a bug report. A bug report is only useful if it identifies at
* least two or more packages that are known to install the same file(s).
* If a collision occurs and you can not explain where the file came from
* then you should simply ignore the collision since there is not enough
* information to determine if a real problem exists. Please do NOT file
* a bug report at http://bugs.gentoo.org unless you report exactly which
* two packages install the same file(s). See
* http://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how to
* solve the problem. And once again, please do NOT file a bug report
* unless you have completely understood the above message.
*
* package sys-kernel/linux-firmware-20150206 NOT merged
*
* Detected file collision(s):
*
* /lib/firmware/whiteheat_loader.fw
* /lib/firmware/whiteheat.fw
* /lib/firmware/kaweth/trigger_code_fix.bin
* /lib/firmware/kaweth/new_code_fix.bin
* /lib/firmware/kaweth/new_code.bin
* /lib/firmware/kaweth/trigger_code.bin
* /lib/firmware/r128/r128_cce.bin
* /lib/firmware/cis/SW_555_SER.cis
* /lib/firmware/cis/SW_8xx_SER.cis
* /lib/firmware/cis/SW_7xx_SER.cis
* /lib/firmware/cis/COMpad4.cis
* /lib/firmware/cis/COMpad2.cis
* /lib/firmware/cis/MT5634ZLX.cis
* /lib/firmware/cis/RS-COM-2P.cis
* /lib/firmware/radeon/RV620_pfp.bin
* /lib/firmware/radeon/RV770_pfp.bin
* /lib/firmware/radeon/RV730_me.bin
* /lib/firmware/radeon/RS780_pfp.bin
* /lib/firmware/radeon/R200_cp.bin
* /lib/firmware/radeon/R600_pfp.bin
* /lib/firmware/radeon/R520_cp.bin
* /lib/firmware/radeon/RV635_pfp.bin
* /lib/firmware/radeon/RV710_pfp.bin
* /lib/firmware/radeon/RV730_pfp.bin
* /lib/firmware/radeon/RV610_pfp.bin
* /lib/firmware/radeon/RV630_me.bin
* /lib/firmware/radeon/RS690_cp.bin
* /lib/firmware/radeon/R420_cp.bin
* /lib/firmware/radeon/RS780_me.bin
* /lib/firmware/radeon/R300_cp.bin
* /lib/firmware/radeon/RV630_pfp.bin
* /lib/firmware/radeon/RV670_me.bin
* /lib/firmware/radeon/RV610_me.bin
* /lib/firmware/radeon/R600_me.bin
* /lib/firmware/radeon/R100_cp.bin
* /lib/firmware/radeon/RV670_pfp.bin
* /lib/firmware/radeon/RV770_me.bin
* /lib/firmware/radeon/RS600_cp.bin
* /lib/firmware/radeon/RV635_me.bin
* /lib/firmware/radeon/RV620_me.bin
* /lib/firmware/radeon/RV710_me.bin
* /lib/firmware/matrox/g200_warp.fw
* /lib/firmware/matrox/g400_warp.fw
* /lib/firmware/qlogic/1280.bin
* /lib/firmware/qlogic/12160.bin
* /lib/firmware/qlogic/1040.bin
* /lib/firmware/advansys/38C1600.bin
* /lib/firmware/advansys/mcode.bin
* /lib/firmware/advansys/3550.bin
* /lib/firmware/advansys/38C0800.bin
*
* Searching all installed packages for file collisions...
*
* Press Ctrl-C to Stop
*
* None of the installed packages claim the file(s).
*
* Package 'sys-kernel/linux-firmware-20150206' NOT merged due to file
* collisions. If necessary, refer to your elog messages for the whole
* content of the above message.


Remove o "collision-protect" do make.conf.

[13] Comentário enviado por sculy em 24/08/2015 - 22:00h

Ficou muito bom o artigo cara ;)

Simples o suficiente e completo o suficiente!

[14] Comentário enviado por cometti em 07/10/2015 - 12:35h

Muito simples e facil!

Eu so removeria o collision-protect do make.conf.

[15] Comentário enviado por spylinux em 29/10/2015 - 23:46h


[12] Comentário enviado por biel-gentoo em 14/08/2015 - 12:52h


[11] Comentário enviado por fabiomattes2011 em 14/08/2015 - 07:55h

Alguem sabe me dizer o que eu fiz de errado nessa parte:

# emerge linux-firmware

* This package will overwrite one or more files that may belong to other
* packages (see list below). You can use a command such as `portageq
* owners / &amp;lt;filename&amp;gt;` to identify the installed package that owns a
* file. If portageq reports that only one package owns a file then do
* NOT file a bug report. A bug report is only useful if it identifies at
* least two or more packages that are known to install the same file(s).
* If a collision occurs and you can not explain where the file came from
* then you should simply ignore the collision since there is not enough
* information to determine if a real problem exists. Please do NOT file
* a bug report at http://bugs.gentoo.org unless you report exactly which
* two packages install the same file(s). See
* http://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how to
* solve the problem. And once again, please do NOT file a bug report
* unless you have completely understood the above message.
*
* package sys-kernel/linux-firmware-20150206 NOT merged
*
* Detected file collision(s):
*
* /lib/firmware/whiteheat_loader.fw
* /lib/firmware/whiteheat.fw
* /lib/firmware/kaweth/trigger_code_fix.bin
* /lib/firmware/kaweth/new_code_fix.bin
* /lib/firmware/kaweth/new_code.bin
* /lib/firmware/kaweth/trigger_code.bin
* /lib/firmware/r128/r128_cce.bin
* /lib/firmware/cis/SW_555_SER.cis
* /lib/firmware/cis/SW_8xx_SER.cis
* /lib/firmware/cis/SW_7xx_SER.cis
* /lib/firmware/cis/COMpad4.cis
* /lib/firmware/cis/COMpad2.cis
* /lib/firmware/cis/MT5634ZLX.cis
* /lib/firmware/cis/RS-COM-2P.cis
* /lib/firmware/radeon/RV620_pfp.bin
* /lib/firmware/radeon/RV770_pfp.bin
* /lib/firmware/radeon/RV730_me.bin
* /lib/firmware/radeon/RS780_pfp.bin
* /lib/firmware/radeon/R200_cp.bin
* /lib/firmware/radeon/R600_pfp.bin
* /lib/firmware/radeon/R520_cp.bin
* /lib/firmware/radeon/RV635_pfp.bin
* /lib/firmware/radeon/RV710_pfp.bin
* /lib/firmware/radeon/RV730_pfp.bin
* /lib/firmware/radeon/RV610_pfp.bin
* /lib/firmware/radeon/RV630_me.bin
* /lib/firmware/radeon/RS690_cp.bin
* /lib/firmware/radeon/R420_cp.bin
* /lib/firmware/radeon/RS780_me.bin
* /lib/firmware/radeon/R300_cp.bin
* /lib/firmware/radeon/RV630_pfp.bin
* /lib/firmware/radeon/RV670_me.bin
* /lib/firmware/radeon/RV610_me.bin
* /lib/firmware/radeon/R600_me.bin
* /lib/firmware/radeon/R100_cp.bin
* /lib/firmware/radeon/RV670_pfp.bin
* /lib/firmware/radeon/RV770_me.bin
* /lib/firmware/radeon/RS600_cp.bin
* /lib/firmware/radeon/RV635_me.bin
* /lib/firmware/radeon/RV620_me.bin
* /lib/firmware/radeon/RV710_me.bin
* /lib/firmware/matrox/g200_warp.fw
* /lib/firmware/matrox/g400_warp.fw
* /lib/firmware/qlogic/1280.bin
* /lib/firmware/qlogic/12160.bin
* /lib/firmware/qlogic/1040.bin
* /lib/firmware/advansys/38C1600.bin
* /lib/firmware/advansys/mcode.bin
* /lib/firmware/advansys/3550.bin
* /lib/firmware/advansys/38C0800.bin
*
* Searching all installed packages for file collisions...
*
* Press Ctrl-C to Stop
*
* None of the installed packages claim the file(s).
*
* Package 'sys-kernel/linux-firmware-20150206' NOT merged due to file
* collisions. If necessary, refer to your elog messages for the whole
* content of the above message.

Remove o "collision-protect" do make.conf.


Eu segui estas dicas do Fitzcarraldo, e consegui instalar o linux-firmware com o q eu precisava, sem precisar remover o collision-protect:

https://fitzcarraldoblog.wordpress.com/2012/09/08/how-to-install-the-linux-firmware-package-in-gento...


Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts