Difference between revisions of "Conversão de instalação Gentoo para Funtoo/pt-br"

From Funtoo
Jump to navigation Jump to search
Line 1: Line 1:
==Requisitos==
==Requisitos==
{{Warning|This method is unsupported by Funtoo. Follow the guide at your own risk.}}
{{Warning|Este método não é suportado por Funtoo. Siga o guia por sua conta e risco.}}
* Instalação padrão Gentoo
* Instalação padrão Gentoo
* Ebuild '''git''' compilado (instalado)
* Ebuild '''git''' compilado (instalado)

Revision as of 18:45, August 5, 2015

Requisitos

   Warning

Este método não é suportado por Funtoo. Siga o guia por sua conta e risco.

  • Instalação padrão Gentoo
  • Ebuild git compilado (instalado)
  • portage com versão 2.2 ou superior instalado
  • Stage3 oficial Funtoo


Migrando Portage para padrão Funtoo com GIT

Mova o diretório portage do Gentoo para um outro diretório:

root # cd /usr
root # mv portage portage-old

obtenha a última versão do portage Funtoo:

root # wget http://ftp.osuosl.org/pub/funtoo/funtoo-current/snapshots/portage-latest.tar.xz
root # tar xf portage-latest.tar.xz 
root # rm portage-latest.tar.xz
root # chown portage.portage -R /usr/portage
root # cd /usr/portage
root # git checkout funtoo.org


Atualize o python

Adicione as flags do python ao make.conf:

root # echo 'USE="python_abis_2.7 python_abis_3.3"' >> /etc/portage/make.conf
root # echo 'PYTHON_ABIS="2.7 3.3"' >> /etc/portage/make.conf


Compile o python nas versões 2.7 e 3.3:

root # emerge -u python:2.7 python:3.3

Defina a versão atual do python como 3.x:

root # eselect python set python3.3


Atualize o portage

root # emerge portage

Faça o downgrade do PAM e do OpenRC:

root # emerge -C pam openrc
root # emerge pam && emerge openrc

Atualize a base de gentoo para Funtoo:

root # emerge sys-apps/baselayout app-portage/gentoolkit

Atualize as versões oficiais para o novo padrão:

root # emerge -u system

Atualize o gentoolkit:

root # emerge app-portage/gentoolkit


Atualize o portage Funtoo

Atualize o repositório:

root # emerge --sync

ou

root # eix-sync


Recompile todas as dependências

Deps. Python

root # emerge -av $(equery d python | grep -o -E "dev-python/[A-Za-z0-9]+(-[A-Za-z]([A-Za-z0-9]*))*")

Deps. Perl

root # perl-cleaner --all
root # emerge -av $(equery d perl | grep -o -E "dev-perl/[A-Za-z0-9]+(-[A-Za-z]([A-Za-z0-9]*))*")


Adaptação da interface de rede

Remova qualquer script de init do Gentoo:

root # rm -f /etc/init.d/net.* /etc/conf.d/net

Recompile os scripts de rede:

root # emerge openrc

Siga a documentação oficial para configurar sua rede:

http://www.funtoo.org/Funtoo_Linux_Networking


Grub 2

Atualize para o novo Grub-2

root # emerge -C sys-boot/grub && emerge sys-boot/boot-update sys-boot/grub
root # boot-update


Corrija os pacotes da lista "world" do portage

Atualize os ebuilds que tiveram mudanças de flags:

root # emerge --update --deep --newuse world

PS: Se ocorrerem erros com ebuilds no "world", porém forem "inexistentes" (na árvore do Portage atual Funtoo) basta removê-los manualmente editando tal lista (world) do Portage. :))

root # vi /var/lib/portage/world


Atualize o profile

Verifique quais as opções disponíveis:

root # emerge app-admin/eselect
root # eselect profile list


Currently available arch profiles:
  [1]   funtoo/1.0/linux-gnu/arch/x86-64bit
  [2]   funtoo/1.0/linux-gnu/arch/pure64
Currently available build profiles:
  [3]   funtoo/1.0/linux-gnu/build/stable
  [4]   funtoo/1.0/linux-gnu/build/current
  [5]   funtoo/1.0/linux-gnu/build/experimental
Currently available flavor profiles:
  [6]   funtoo/1.0/linux-gnu/flavor/minimal
  [7]   funtoo/1.0/linux-gnu/flavor/core
  [8]   funtoo/1.0/linux-gnu/flavor/desktop
  [9]   funtoo/1.0/linux-gnu/flavor/workstation
Currently available mix-ins profiles:
  [10]  funtoo/1.0/linux-gnu/mix-ins/audio
  [11]  funtoo/1.0/linux-gnu/mix-ins/console-extras
  [12]  funtoo/1.0/linux-gnu/mix-ins/dvd
  [13]  funtoo/1.0/linux-gnu/mix-ins/gnome
  [14]  funtoo/1.0/linux-gnu/mix-ins/kde
  [15]  funtoo/1.0/linux-gnu/mix-ins/mate
  [16]  funtoo/1.0/linux-gnu/mix-ins/media
  [17]  funtoo/1.0/linux-gnu/mix-ins/print
  [18]  funtoo/1.0/linux-gnu/mix-ins/python3-only
  [19]  funtoo/1.0/linux-gnu/mix-ins/rhel5-compat
  [20]  funtoo/1.0/linux-gnu/mix-ins/server-db
  [21]  funtoo/1.0/linux-gnu/mix-ins/server-mail
  [22]  funtoo/1.0/linux-gnu/mix-ins/server-web
  [23]  funtoo/1.0/linux-gnu/mix-ins/X
  [24]  funtoo/1.0/linux-gnu/mix-ins/xfce
  [25]  funtoo/1.0/linux-gnu/mix-ins/vmware-guest


Selecione o profile "stable":

root # eselect profile add 1
root # eselect profile set-build 3
root # eselect profile set-flavor 7


Ajuste a versão do GCC

Liste as versões do GCC disponíveis:

root # gcc-config -l
 * gcc-config: Active gcc profile is invalid!

 [1] x86_64-pc-linux-gnu-4.6.3

Selecione a versão desejada:

gcc-config 1
. /etc/profile


Atualize o sistema

Recompile todos os ebuilds usando o novo profile:

root # emerge -vauDN world

Atualize todos os ebuilds:

root # emerge -vD world

Remova os ebuilds obsoletos:

root #  emerge --depclean


Recompile as bibliotecas (libs) corrompidas:

root # emerge @preserved-rebuild
root # revdep-rebuild


Reboot e voilá! você agora possui um sistema Funtoo.

root # shutdown -r now