Difference between pages "Install/pt-br/Network" and "Package:Gentoolkit"

From Funtoo
< Install(Difference between pages)
Jump to navigation Jump to search
 
 
Line 1: Line 1:
=== Configurando sua rede ===
{{Ebuild
|Summary=Collection of administration scripts for funtoo
|CatPkg=app-portage/gentoolkit
}}
{{PageNeedsUpdates}}
Gentoolkit is a collection of tools used by Gentoo Linux to administer and develop the Portage package management system. The tools are managed and installed by Portage itself; on a Gentoo Linux system one can install gentoolkit by issuing the following command:
<console>###i## emerge gentoolkit</console>


É importante assegurar-se de que você será capaz de se conectar a sua rede de área local (local-area network) depois que você reinicializar no Funtoo Linux. Há três acessos que você pode utilizar para a configuração da sua rede: NetworkManager, dhcpcd, e os scripts [[Funtoo Linux Networking]]. Aqui está como escolher qual utilizar baseado no tipo de rede você queira cofigurar.
The tools are split into two related packages: gentoolkit and gentoolkit-dev. As with the rest of Portage they are written in Python.  
Gentoolkit provides:
* eclean
* enalyze
* equery
* eread
* euse
* glsa-check
* revdep-rebuild


==== Wi-Fi ====
== equery ==
===== Utilizando o NetworkManager =====
Equery is a tool that displays  information about the installed packages on the system. equery is based on a system of modules, , running it with out arguments displays a list of options
Para sistemas laptop/mobile onde você estará utilizando Wi-Fi e conectando-se em várias redes, NetworkManager é fortemente recomendado. A versão do NetworkManager do Funtoo é totalmente funcional mesmo a partir da linda de comando, então você pode utilizá-la mesmo sim o X ou sim a o Network Manager applet. Aqui estão os passos envolvidos em configurar o NetworkManager:


<console>
<console>###i## equery</console>
(chroot) # ##i##emerge linux-firmware
(chroot) # ##i##emerge networkmanager
(chroot) # ##i##rc-update add NetworkManager default
</console>
 
Acima, instalamos linux-firmware que contem uma coleção completa de firmware disponível para muitos hardware devices incluindo adaptadores Wi-Fi, mais NetworkManager para gerenciar nossa conexão de rede. Depois adicionamos o NetworkManager ao runlevel <code>padrão (default)</code> assim ele iniciará quando o Funtoo Linux inicializar.
 
Depois que você reinicializar o Funtoo Linux, você será capaz de adicionar uma conexão Wi-Fi desse jeito:


{{Note|O comando a seguir não funcionará até que você esteja no ambiente chroot. A rasão para isso é que addwifi precisará que o dbus e o rfkill estejam instalados. Então, não se esqueça de reinializar!}}
=== equery b ===
Running equery with the b flag is useful to determine which package a file comes from.


<console>
<console>###i## equery b /usr/lib/libpam.so
# ##i##addwifi -S wpa -K 'wifipassword' mywifinetwork
* Searching for /usr/lib/libpam.so ...
sys-libs/pam-1.1.8-r2 (/usr/lib64/libpam.so)
</console>
</console>


O comando <code>addwifi</code> é utilizado para configurar e conectar a uma rede Wi-Fi WPA/WPA2 nomeada <code>mywifinetwork</code> com a senha <code>wifipassword</code>.
=== equery f ===
Essa entrada de configuração de rede é armazenada em <code>/etc/NetworkManager/system-connections</code> assim ela será lembrada no futuro. Você deverá somente precisar entrar esse comando uma vez para cada rede Wi-Fi que você se conectar.
Running equery with the f flag is useful to show all installed files from a package.


===== Utilizando wpa_supplicant =====
<console>###i## equery f domination
Se por alguma rasão você não quiser utilizar uma ferramenta tal qual NetworkManager ou <code>wicd</code>, você pode utilizar wpa_supplicant para conexões de rede sem fio.
* Searching for domination ...
 
* Contents of games-board/domination-1.1.1.5:
Primeiro, emerge wpa_supplicant:
/usr
 
/usr/games
<console>
/usr/games/bin
(chroot) ###i## emerge -a wpa_supplicant
/usr/games/bin/domination
...
</console>
</console>


Agora, edite o arquivo de configuração wpa_supplicant, localizado em /etc/wpa_supplicant/wpa_supplicant.conf.
== glsa-check ==
A syntax é muito fácil:
Glsa-check shows what potential vulnerabilities your system has.
<pre>
network={
ssid="MyWifiName"
psk="lol42-wifi"
}


network={
<console>###i## glsa-check -l
ssid="Other Network"
[A] means this GLSA was marked as applied (injected),
psk="6d96270004515a0486bb7f76196a72b40c55a47f"
[U] means the system is not affected and
}
[N] indicates that the system might be affected.
</pre>


Você precisará adicionar o <code>wpa_supplicant</code> e o <code>dhcpcd</code> ao runlevel padrão. <code>wpa_supplicant</code> conectará ao seu access point, e o <code>dhcpcd</code> adquirirá um endereço IP via DHCP:
201310-15 [N] GNU Automake: Multiple vulnerabilities ( sys-devel/automake )
 
<console>
(chroot) # ##i##rc-update add dhcpcd default
(chroot) # ##i##rc-update add wpa_supplicant default
</console>
</console>
 
{{EbuildFooter}}
==== Desktop [rede cabeada (Wired Ethernet)] ====
 
Para um desktop em casa ou workstation como rede cabeada (wired Ethernet) que utilizará DHCP, a opção mais simples e mais eficaz de abilitar conectividade com a rede é simplesmente adicionar <code>dhcpcd</code> ao runlevel padrão:
 
<console>
(chroot) # ##i##rc-update add dhcpcd default
</console>
 
Qaundo você reiniciar, <code>dhcpcd</code> executará no plano de fundo (background) e gerenciará todas as interfaces de rede e utilizará DHCP para adquirir endereço de rede a partir de um servidor DHCP.
 
==== Server (Static IP) ====
 
Para servidores, os scripts [[Funtoo Linux Networking]] são recomendados. Eles são otimizados para configurações estáticas e coisas como (virtual ethernet bridging) para configurações de virtualização. Veja o [[Funtoo Linux Networking]] para informações em como utilizar o sistema de configuração de rede baseado no template do Funtoo Linux (Funtoo Linux's template-based network configuration system).

Revision as of 12:26, March 3, 2015

Gentoolkit

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Gentoolkit is a collection of tools used by Gentoo Linux to administer and develop the Portage package management system. The tools are managed and installed by Portage itself; on a Gentoo Linux system one can install gentoolkit by issuing the following command:

root # emerge gentoolkit

The tools are split into two related packages: gentoolkit and gentoolkit-dev. As with the rest of Portage they are written in Python. Gentoolkit provides:

  • eclean
  • enalyze
  • equery
  • eread
  • euse
  • glsa-check
  • revdep-rebuild

equery

Equery is a tool that displays information about the installed packages on the system. equery is based on a system of modules, , running it with out arguments displays a list of options

root # equery

equery b

Running equery with the b flag is useful to determine which package a file comes from.

root # equery b /usr/lib/libpam.so
 * Searching for /usr/lib/libpam.so ... 
sys-libs/pam-1.1.8-r2 (/usr/lib64/libpam.so)

equery f

Running equery with the f flag is useful to show all installed files from a package.

root # equery f domination
 * Searching for domination ...
 * Contents of games-board/domination-1.1.1.5:
/usr
/usr/games
/usr/games/bin
/usr/games/bin/domination
...

glsa-check

Glsa-check shows what potential vulnerabilities your system has.

root # glsa-check -l
[A] means this GLSA was marked as applied (injected),
[U] means the system is not affected and
[N] indicates that the system might be affected.

201310-15 [N] GNU Automake: Multiple vulnerabilities ( sys-devel/automake )