Difference between pages "Package:NVIDIA Linux Display Drivers" and "Emerge/pt-br"

(Difference between pages)
 
(Principiando com o emerge)
 
Line 1: Line 1:
{{Ebuild
+
== Principiando com o emerge ==
|Summary=NVIDIA accelerated graphics driver
+
Emerge é o front-end para o gerenciador de Portage do funtoo. Com o emerge é fácil instalar, atualizar ou remover pacotes.
|CatPkg=x11-drivers/nvidia-drivers
+
|Maintainer=Ricardo Bastos
+
|Repository=Funtoo Overlay
+
|Overlay=Funtoo
+
}}
+
== Introduction ==
+
NVidia have proprietary graphics drivers for Linux under binary blob. The alternative open source driver is nouveau.
+
  
== Preparing to Install ==
+
=== Atualizar a Base de Dados de Pacote ===
=== Hardware compatibility and driver versions ===
+
'''Sync local package database. This will update your local Portage tree with the latest Funtoo ebuilds.'''
Currently there are five meta versions of nVidia Linux drivers each of which supports a specific group of GPUs. To check the type of driver that is related to your video card, check the link on this page of the official nVidia:
+
<console>
 +
###i## emerge --sync
 +
</console>
  
[http://www.nvidia.com/object/IO_32667.html www.nvidia.com/object/IO_32667.html]
+
=== Search packages ===
 +
'''Search packages by name.'''
 +
<console>
 +
###i## emerge -s firefox
 +
###i## emerge --search firefox
 +
</console>
  
If you have identified as your driver version 337.25, for example, you need the mask(s) driver(s) latest(s) to which you want to install.
+
'''Search packages by description.'''
 +
<console>
 +
###i## emerge -S web browser
 +
###i## emerge --searchdesc web browser
 +
</console>
  
 +
=== Install packages ===
 +
'''Install package.'''
 
<console>
 
<console>
###i## echo “>x11-drivers/nvidia-drivers-340” >> /etc/portage/package.mask
+
###i## emerge firefox
 
</console>
 
</console>
  
=== The required kernel options ===
+
'''Install multiple packages.'''
 
+
{{kernelop|desc=
+
[*] Enable loadable module support
+
}}
+
{{kernelop|desc=
+
[*] MTRR (Memory Type Range Register) support
+
}}
+
To we made a successful compilation of the legacy nVidia driver, we set before the removal of the native framebuffer drivers into the kernel in order to avoid conflicts for x86 and AMD64 processors, in this case.
+
{{kernelop|desc=
+
Device Drivers >
+
  Graphics support >
+
    <*> Support for frame buffer devices >
+
      <> nVidia Framebuffer Support
+
      <> nVidia Riva support
+
}}
+
 
+
{{fancytip| An alternative is to [[uvesafb|uvesafb]] framebuffer, which can be installed in parallel with nvidia-drivers }}
+
 
+
== Installation ==
+
 
+
Upgrade and/or configure VIDEO_CARDS variable in /etc/make.conf. This will serve to while you are installing the Server X, the correct version of nvidia-drivers to be provided for you.
+
 
<console>
 
<console>
# ##i##nano /etc/make.conf
+
###i## emerge firefox thunderbird
VIDEO_CARDS="nvidia"
+
 
</console>
 
</console>
  
{{fancynote| Installing to the driver with the option in '''gtk''' use flags will make it installed the media-video/nvidia-settings which is a graphical tool for monitoring and various settings for your video card}}
+
'''Install package. Ask for confirmation before performing any changes. Show verbose output.'''
 
+
=== Emerging the package ===
+
 
<console>
 
<console>
###i## emerge x11-drivers/nvidia-drives
+
###i## emerge -av firefox
 +
###i## emerge --ask firefox
 
</console>
 
</console>
  
When the installation is complete run '''modprobe''' nvidia module to read kernel memory.
+
=== Remove packages ===
 
+
'''Remove package.'''
 
<console>
 
<console>
###i## lsmod | grep nvidia
+
###i## emerge -C firefox
 +
###i## emerge --unmerge firefox
 
</console>
 
</console>
If an update before remove the old module
+
 
 +
'''Remove package. Ask for confirmation before performing any changes.'''
 
<console>
 
<console>
###i## rmmod nvidia
+
###i## emerge -aC firefox
###i## modprobe nvidia
+
 
</console>
 
</console>
  
=== Testing your Video Card ===
+
'''Remove orphaned packages. Ask for confirmation before performing any changes.'''
To test your video card run the glxinfo program, which is part of the mesa-progs package. This will check if direct rendering is enabled.
+
 
<console>
 
<console>
$ ##i##glxinfo | grep direct
+
###i## emerge -a --depclean
$ ##i## direct rendering: yes
+
 
</console>
 
</console>
  
== Configuring ==
+
=== Update packages ===
=== Loading at boot ===
+
'''Update all packages.'''
To automate the loading of the module when you boot your system, add '''nvidia''' in modules variable.
+
 
<console>
 
<console>
# ##i##nano /etc/conf.d/modules
+
###i## emerge -uDN @world
modules="nvidia"
+
 
</console>
 
</console>
  
=== Integration with X Server ===
+
'''Update all packages. Ask for confirmation before performing any changes. Show verbose output.'''
When your X server is installed find, and there's /etc/X11/xorg.conf you can run the nvidia-xconfig which will set in xorg.conf to identify the video card among other possible configurations.
+
<console>
{{file|name=/etc/X11/xorg.conf|body=
+
###i## emerge -uavDN @world
Section "Device"
+
</console>
    Identifier    "nvidia"
+
    Driver        "nvidia"
+
    VendorName    "NVIDIA Corporation"
+
    BoardName      "[Name] [Model]"
+
EndSection
+
}}
+
 
+
=== Enabling support nVidia ===
+
Include the use flag in '''nvidia''' /etc/portage/make.conf so due to applications that make use of this advantage may withdraw.
+
  
=== Enabling OpenGL/OpenCL ===
+
'''When upgrading to a new version of perl, it is necessary to also run <code>perl-cleaner</code> afterwards:'''
As a requirement, make sure that the Xorg server is not in use during this change. To enable OpenGL and OpenCL.
+
 
<console>
 
<console>
###i## eselect opengl set nvidia
+
###i## emerge -auvDN @world
###i## eselect opencl set nvidia
+
###i## perl-cleaner --all
 
</console>
 
</console>
  
[[Category:Video Cards]]
+
{{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.}}
[[Category:First Steps]]
+
{{EbuildFooter}}
+

Revision as of 16:43, 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

Sync local package database. This will update your local Portage tree with the latest Funtoo ebuilds.

# emerge --sync

Search packages

Search packages by name.

# emerge -s firefox
# emerge --search firefox

Search packages by description.

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

Install packages

Install package.

# emerge firefox

Install multiple packages.

# emerge firefox thunderbird

Install package. Ask for confirmation before performing any changes. Show verbose output.

# 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.