Difference between pages "Package:Feh" and "Emerge/pt-br"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
 
Line 1: Line 1:
{{Ebuild
== Principiando com o emerge ==
|Summary=A fast, lightweight imageviewer using imlib2
Emerge é o front-end para o gerenciador de Portage do funtoo. Com o emerge é fácil instalar, atualizar ou remover pacotes.
|CatPkg=media-gfx/feh
|Maintainer=
|Homepage=http://feh.finalrewind.org/
}}
=== What is feh? ===


<blockquote>
=== Atualizar a Base de Dados de Pacote ===
feh is an X11 image viewer aimed mostly at console users. Unlike most other viewers, it does not have a fancy GUI, but simply displays images. It is controlled via commandline arguments and configurable key/mouse actions.[http://feh.finalrewind.org/ Feh homepage]
'''Sincronize base de dados de pacote local. Isso atualizará sua arvore Portage local com a ultima versão do Funtoo ebuilds.'''
</blockquote>
<console>
###i## emerge --sync
</console>


== USE-Flags ==
=== Buscar pacotes ===
'''Busca pacotes por nome.'''
<console>
###i## emerge -s firefox
###i## emerge --search firefox
</console>


;<code>curl</code>: Add support for the Client-Side URL transfer library.
'''Busca pacotes pode descrição.'''
;<code>debug</code>: Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces, see http://www.gentoo.org/proj/en/qa/backtraces.xml.
<console>
;<code>exif</code>: Add support for reading EXIF headers from JPEG and TIFF images.
###i## emerge -S web browser
;<code>xinerama</code>: Add support for the xinerama X11 extension, which is mandator if you work in a multiple monitor setup.
###i## emerge --searchdesc web browser
</console>


== Installing feh ==
=== Install packages ===
After adding your USE flags (or not) to <tt>/etc/portage/package.use/feh</tt>, you can emerge feh:
'''Instalar pacote.'''
<console>
<console>
###i## emerge feh
###i## emerge firefox
</console>
</console>


== Using feh ==
'''Instalar múltiplos pacotes.'''
=== Set desktop background ===
<console>
<tt>feh</tt> has several options for setting your desktop background:
###i## emerge firefox thunderbird
* <tt>--bg-center</tt>: Center the image file on the background. If the image file is smaller in resolution than the screen resolution, it will have black borders around it.
</console>
* <tt>--bg-scale</tt>: Fit the image to the background without repeating it, cutting parts of the image off, or using black borders. Because of these changes, the aspect ratio is not preserved.
* <tt>--bg-fill</tt>: Similar to <tt>--bg-scale</tt> except that it tries to fill the image to the screen while maintaining its aspect ratio. This may result in parts of the image being cut off.
* <tt>--bg-max</tt>: Similar to <tt>--bg-fill</tt>, except that scales the image to the maximum size that fits the screen. This leads to black borders on one side.
* <tt>--bg-tile</tt>: Tile the image across the screen.


Here is an example:
'''Instalar pacotes. Pedir por confirmação antes de realizar quaisquer alterações. Exibe saída em verbose.'''
<console>
<console>
###i## feh --bg-scale ~/path/to/picture.jpg
###i## emerge -av firefox
###i## emerge --ask firefox
</console>
</console>


=== Source fehbg to set your wallpaper in Openbox ===
=== Remove packages ===
After you have run <tt>feh</tt> one time, the directory of the image file is stored in <tt>~/.fehbg</tt>. This file can be sourced in your <tt>.config/openbox/autostart</tt> to load the picture instead of typing out <tt>feh --bg-scale /picture/location.jpg</tt>:
'''Remove package.'''
<console>
###i## emerge -C firefox
###i## emerge --unmerge firefox
</console>


{{file|name=~/.config/openbox/autostart|desc= |body=
'''Remove package. Ask for confirmation before performing any changes.'''
...
<console>
~/.fehbg &
###i## emerge -aC firefox
...
</console>
}}


=== Change wallpaper automatically ===
'''Remove orphaned packages. Ask for confirmation before performing any changes.'''
With the help of a simple bash script, feh can be configured to automatically change the desktop background. To accomplish this task, we have to create the bash script. Open up your favorite editor and create a script that looks something like the following, where <code>sleep 1m</code> can be configured to any time interval that you want.
<console>
###i## emerge -a --depclean
</console>
 
=== Update packages ===
'''Update all packages.'''
<console>
###i## emerge -uDN @world
</console>
 
'''Update all packages. Ask for confirmation before performing any changes. Show verbose output.'''
<console>
###i## emerge -uavDN @world
</console>
 
'''When upgrading to a new version of perl, it is necessary to also run <code>perl-cleaner</code> afterwards:'''
<console>
###i## emerge -auvDN @world
###i## perl-cleaner --all
</console>


{{File|name=WallpaperShuffle|desc= |body=
{{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.}}
<syntaxhighlight lang="bash"
#!/bin/bash
</syntaxhighlight>
}}
{{PageNeedsUpdates}}
{{EbuildFooter}}

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.

root # emerge --sync

Buscar pacotes

Busca pacotes por nome.

root # emerge -s firefox
root # emerge --search firefox

Busca pacotes pode descrição.

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

Install packages

Instalar pacote.

root # emerge firefox

Instalar múltiplos pacotes.

root # emerge firefox thunderbird

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

root # emerge -av firefox
root # emerge --ask firefox

Remove packages

Remove package.

root # emerge -C firefox
root # emerge --unmerge firefox

Remove package. Ask for confirmation before performing any changes.

root # emerge -aC firefox

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

root # emerge -a --depclean

Update packages

Update all packages.

root # emerge -uDN @world

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

root # emerge -uavDN @world

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

root # emerge -auvDN @world
root # 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.