Difference between pages "Fonts" and "Emerge/pt-br"

(Difference between pages)
 
(Install packages)
 
Line 1: Line 1:
{{PageNeedsUpdates | Explain reason}}
+
== Principiando com o emerge ==
 +
Emerge é o front-end para o gerenciador de Portage do funtoo. Com o emerge é fácil instalar, atualizar ou remover pacotes.
  
== Install the packages ==
+
=== Atualizar a Base de Dados de Pacote ===
Linux font quality is a chronic issue, by default fonts configuration far from ideal look. This can solved by rebuilding <tt>media-libs/fontconfig</tt> with the infinality USE flag, which applies the infinality patch set. Infinality patches were previously available only in the lcd-filtering overlay and have now been merged into the main Funtoo portage tree.
+
'''Sincronize base de dados de pacote local. Isso atualizará sua arvore Portage local com a ultima versão do Funtoo ebuilds.'''
 +
<console>
 +
###i## emerge --sync
 +
</console>
  
 +
=== Buscar pacotes ===
 +
'''Busca pacotes por nome.'''
 
<console>
 
<console>
###i## echo "media-libs/fontconfig infinality" >> /etc/portage/package.use
+
###i## emerge -s firefox
###i## emerge -uN fontconfig
+
###i## emerge --search firefox
 
</console>
 
</console>
== Advanced configuration ==
 
=== Fontconfig ===
 
==== Default configuration ====
 
  
 +
'''Busca pacotes pode descrição.'''
 
<console>
 
<console>
###i## eselect fontconfig enable 10-antialias.conf
+
###i## emerge -S web browser
###i## eselect fontconfig enable 10-autohint.conf 
+
###i## emerge --searchdesc web browser
###i## eselect fontconfig enable 10-hinting.conf 
+
</console>
###i## eselect fontconfig enable 10-hinting-slight.conf 
+
###i## eselect fontconfig enable 10-sub-pixel-rgb.conf 
+
###i## eselect fontconfig enable 11-lcdfilter-default.conf 
+
###i## eselect fontconfig enable 70-no-bitmaps.conf 
+
###i## eselect fontconfig disable 10-hinting-full.conf 
+
###i## eselect fontconfig disable 10-hinting-medium.conf 
+
###i## eselect fontconfig disable 10-no-sub-pixel.conf 
+
###i## eselect fontconfig disable 10-sub-pixel-bgr.conf 
+
###i## eselect fontconfig disable 10-sub-pixel-vbgr.conf 
+
###i## eselect fontconfig disable 10-sub-pixel-vrgb.conf 
+
###i## eselect fontconfig disable 10-unhinted.conf</console>
+
===Linux configuration ===
+
  
Same as default configuration except:
+
=== Install packages ===
 +
'''Instalar pacote.'''
 
<console>
 
<console>
###i## eselect fontconfig enable 21-hinting-small-aquabase-slight.conf
+
###i## emerge firefox
###i## eselect fontconfig enable 21-hinting-small-browallia-slight.conf 
+
###i## eselect fontconfig enable 22-hinting-courier-italic-slight.conf
+
 
</console>
 
</console>
=== Infinality’s configuration ===
 
  
Same as default configuration except:
+
'''Instalar múltiplos pacotes.'''
 
<console>
 
<console>
###i## eselect fontconfig enable 15-hinting-tt-instructed-full.conf
+
###i## emerge firefox thunderbird
###i## eselect fontconfig enable 20-hinting-small-fonts-slight.conf 
+
###i## eselect fontconfig enable 21-hinting-small-aquabase-slight.conf 
+
###i## eselect fontconfig enable 21-hinting-small-browallia-slight.conf 
+
###i## eselect fontconfig enable 22-hinting-courier-italic-slight.conf 
+
###i## eselect fontconfig enable 25-hinting-small-arial-black-slight.conf
+
 
</console>
 
</console>
=== Windows configuration ===
 
  
Same as default except:
+
'''Instalar pacotes. Pedir por confirmação antes de realizar quaisquer alterações. Exibe saída em verbose.'''
 
<console>
 
<console>
###i## eselect fontconfig disable 10-autohint.conf
+
###i## emerge -av firefox
###i## eselect fontconfig disable 10-hinting-slight.conf 
+
###i## emerge --ask firefox
###i## eselect fontconfig enable 10-hinting-full.conf 
+
###i## eselect fontconfig enable 15-hinting-non-tt-instructed-slight.conf 
+
###i## eselect fontconfig enable 20-hinting-small-fonts-slight.conf 
+
###i## eselect fontconfig enable 21-hinting-small-aquabase-slight.conf 
+
###i## eselect fontconfig enable 21-hinting-small-browallia-slight.conf 
+
###i## eselect fontconfig enable 22-hinting-courier-italic-slight.conf 
+
###i## eselect fontconfig enable 25-hinting-small-arial-black-slight.conf
+
 
</console>
 
</console>
=== OSX configuration ===
 
  
Same as default configuration except:
+
=== Remove packages ===
 +
'''Remove package.'''
 
<console>
 
<console>
###i## eselect fontconfig disable 10-autohint.conf
+
###i## emerge -C firefox
###i## eselect fontconfig disable 10-hinting.conf 
+
###i## emerge --unmerge firefox
###i## eselect fontconfig disable 10-hinting-slight.conf 
+
###i## eselect fontconfig enable 10-unhinted.conf 
+
###i## eselect fontconfig enable 15-hinting-tt-instructed-none.conf
+
 
</console>
 
</console>
== Freetype ==
 
Freetype can be configured through environment variables (see <tt>/etc/env.d/99lcdfilter</tt> for a list of the variables and their description). Those variables can be overridden on a per-user basis by either redefining them in a startup file (such as <tt>~/.bash_profile</tt>) or by sourcing the <tt>/usr/lib/ft-settings.sh</tt> script with the desired style in parameter (you can, of course, source the script from a startup file).
 
  
usage: source ft-settings.sh <style>
+
'''Remove package. Ask for confirmation before performing any changes.'''
 +
<console>
 +
###i## emerge -aC firefox
 +
</console>
  
 +
'''Remove orphaned packages. Ask for confirmation before performing any changes.'''
 
<console>
 
<console>
Possible styles: 
+
###i## emerge -a --depclean
  default      - Use default settings.  A compromise that should please most people 
+
</console>
  osx          - Simulate OSX rendering 
+
  ubuntu      - Simulate UBUNTU rendering 
+
  linux        - Generic Linux style - no snapping or certain other tweaks 
+
  windows      - Simulate Windows rendering 
+
  vanilla      - Just subpixel hinting
+
  
Infinality styles: 
+
=== Update packages ===
  classic      - Infinality rendering circa 2010. No snapping 
+
'''Update all packages.'''
  nudge        - CLASSIC with lightly stem snapping and tweaks 
+
<console>
  push        - CLASSIC with medium stem snapping and tweaks 
+
###i## emerge -uDN @world
  shove        - Full stem snapping and tweaks without sharpening 
+
  sharpened    - Full stem snapping, tweaks, and Windows-style sharpening 
+
  infinality  - Settings used by Infinality
+
 
</console>
 
</console>
== LibXft ==
 
Only legacy programs still use libXft. The default configuration is defined in <tt>/usr/share/X11/app-defaults/Xft</tt>. It can be overriden on a per-user basis in the <tt>~/.Xresources</tt> or <tt>~/.Xdefaults</tt> files:
 
  
{{file|name=~/.Xdefaults|desc= |body=
+
'''Update all packages. Ask for confirmation before performing any changes. Show verbose output.'''
Xft.antialias:  1
+
<console>
Xft.autohint:  0 
+
###i## emerge -uavDN @world
Xft.dpi:        96 
+
</console>
Xft.hinting:    1 
+
 
Xft.hintstyle:  hintfull 
+
'''When upgrading to a new version of perl, it is necessary to also run <code>perl-cleaner</code> afterwards:'''
Xft.lcdfilter:  lcddefault 
+
<console>
Xft.rgba:       rgb
+
###i## emerge -auvDN @world
}}
+
###i## perl-cleaner --all
 +
</console>
  
[[Category:HOWTO]]
+
{{Note|This requirement of running <code>perl-cleaner</code> will eventually go away, once all perl-related ebuilds are updated to EAPI 5. EAPI 5 is a version of the Ebuild specification that supports smart updating of perl-related bits.}}

Revision as of 16:52, February 7, 2015

Principiando com o emerge

Emerge é o front-end para o gerenciador de Portage do funtoo. Com o emerge é fácil instalar, atualizar ou remover pacotes.

Atualizar a Base de Dados de Pacote

Sincronize base de dados de pacote local. Isso atualizará sua arvore Portage local com a ultima versão do Funtoo ebuilds.

# emerge --sync

Buscar pacotes

Busca pacotes por nome.

# emerge -s firefox
# emerge --search firefox

Busca pacotes pode descrição.

# emerge -S web browser
# emerge --searchdesc web browser

Install packages

Instalar pacote.

# emerge firefox

Instalar múltiplos pacotes.

# emerge firefox thunderbird

Instalar pacotes. Pedir por confirmação antes de realizar quaisquer alterações. Exibe saída em verbose.

# emerge -av firefox
# emerge --ask firefox

Remove packages

Remove package.

# emerge -C firefox
# emerge --unmerge firefox

Remove package. Ask for confirmation before performing any changes.

# emerge -aC firefox

Remove orphaned packages. Ask for confirmation before performing any changes.

# emerge -a --depclean

Update packages

Update all packages.

# emerge -uDN @world

Update all packages. Ask for confirmation before performing any changes. Show verbose output.

# emerge -uavDN @world

When upgrading to a new version of perl, it is necessary to also run perl-cleaner afterwards:

# emerge -auvDN @world
# perl-cleaner --all
Note

This requirement of running perl-cleaner will eventually go away, once all perl-related ebuilds are updated to EAPI 5. EAPI 5 is a version of the Ebuild specification that supports smart updating of perl-related bits.