Difference between pages "Package:Irssi" and "Package:NVIDIA Linux Display Drivers"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
m (corrected a minor typo (drives to drivers))
 
Line 1: Line 1:
{{Ebuild
{{Ebuild
|Summary=A modular textUI IRC client with IPv6 support.
|Summary=NVIDIA accelerated graphics driver
|CatPkg=net-irc/irssi
|CatPkg=x11-drivers/nvidia-drivers
|Maintainer=
|Repository=Funtoo Overlay
|Homepage=http://www.irssi.org/
|Overlay=Funtoo
}}
}}
== Introduction ==
NVIDIA have proprietary graphics drivers for Linux under binary blob. The alternative open source driver is {{Package|x11-drivers/xf86-video-nouveau}}.


=== Description ===
== Preparing to Install ==
irssi is a small command line IRC client based on ncurses. It's a great thing to use when you SSH into a server, or just simply for your main IRC client.  
=== Hardware compatibility and driver versions ===
Currently, there are five versions of meta 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 out the official page of the NVIDIA [http://www.nvidia.com/object/IO_32667.html complete list of supported GPUs].


=== Installation ===
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.
The install of irssi is pretty straight forward. There are not many USE flags, but one that is worth looking at is the {{c|SSL}} flag. This enables you to use SSL when connecting to servers.  
 
{{console|body=
<console>
###i## echo "net-irc/irssi ssl" >> /etc/portage/package.use
###i## echo “>x11-drivers/nvidia-drivers-340” >> /etc/portage/package.mask
###i## emerge irssi
</console>
}}
 
=== Using irssi ===
=== The required kernel options ===
Using irssi initially can be a little intimidating if you're not used to command line programs. To first start irssi, you just simply run:
{{console|body=
$ ##i##irssi
}}
There are flags you can pass to the command line while starting irssi, such as:
{{console|body=
$ ##i##irssi -n mynick -c irc.freenode.org
}}
This would connect you to Freenode with the nick 'mynick'. Or alternatively you can just run the {{c|irssi}} command and connect via SSL if you need to:
{{file|body=
/connect -ssl irc.freenode.org
}}
This will automatically connect you over port 6697.


When you have connected to the server of your choice, you can join a channel simply by:
{{kernelop|desc=
{{file|body=
[*] Enable loadable module support
/j #funtoo
}}
}}
If you want to leave any channel you've entered you can use the {{c|part}} command:
{{kernelop|desc=
{{file|body=
[*] MTRR (Memory Type Range Register) support
/part #funtoo reasons...
}}
}}
There are a few ways of navigating through your channels, you can use {{c|alt+<nowiki>{1-9}{q-p}</nowiki>}}, or alternatively you can use the {{c|window}} command that is in irssi:
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.
{{file|body=
{{kernelop|desc=
/window 1
Device Drivers --->
/window 2
      Graphics support --->
/window 3
            <*> Support for frame buffer devices --->
                  <> NVIDIA Framebuffer Support
                  <> NVIDIA Riva support
}}
}}
For as many channels you are apart of.


When you're ready to leave, you can simply type in:
{{tip|An alternative is to [[uvesafb|uvesafb]] framebuffer, or vesa framebuffer which can be installed in parallel with nvidia-drivers }}
{{file|body=
/exit
}}
Which will close out connections to the IRC networks you've joined, and take you back to your console window.
=== Themes and scripts ===
==== Scripts ====
There are a few things you can do to make irssi look a little bit better and add some cool features. There are a few plugins that are pretty useful, such as {{c|fnotify.pl}} which is a script that utilizes {{f|libnotify}} to send you popup notifications for when your nick is pinged or you are sent a private message.


{{file|name=fnotify.pl|lang=perl|desc=fnotify.pl|body=
== Installation ==
# todo: grap topic changes


use strict;
Upgrade and/or configure <code>VIDEO_CARDS</code>  variable to <code>nvidia</code> in <code>/etc/[[make.conf]]</code>. This will serve to while you are installing the Server X, the correct version of nvidia-drivers to be provided for you.
use vars qw($VERSION %IRSSI);
<console>
# ##i##nano /etc/make.conf
VIDEO_CARDS="nvidia"
</console>


use Irssi;
{{note|Installing to the driver with the option in '''gtk''' use flags will make it installed the <code>media-video/nvidia-settings</code> which is a graphical tool for monitoring and various settings for your video card}}
$VERSION = '0.0.3';
%IRSSI = (
authors    => 'Thorsten Leemhuis',
contact    => 'fedora@leemhuis.info',
name        => 'fnotify',
description => 'Write a notification to a file that shows who is talking to you in which channel.',
url        => 'http://www.leemhuis.info/files/fnotify/',
license    => 'GNU General Public License',
changed    => '$Date: 2007-01-13 12:00:00 +0100 (Sat, 13 Jan 2007) $'
);


#--------------------------------------------------------------------
=== Emerging the package ===
# In parts based on knotify.pl 0.1.1 by Hugo Haas
<console>
# http://larve.net/people/hugo/2005/01/knotify.pl
###i## emerge x11-drivers/nvidia-drivers
# which is based on osd.pl 0.3.3 by Jeroen Coekaerts, Koenraad Heijlen
</console>
# http://www.irssi.org/scripts/scripts/osd.pl
#
# Other parts based on notify.pl from Luke Macken
# http://fedora.feedjack.org/user/918/
#
#--------------------------------------------------------------------


#--------------------------------------------------------------------
When the installation is complete run '''modprobe''' nvidia module to read kernel memory.
# Private message parsing
#--------------------------------------------------------------------


sub priv_msg {
<console>
my ($server,$msg,$nick,$address,$target) = @_;
###i## lsmod | grep nvidia
filewrite($nick." " .$msg );
</console>
}
If an update before remove the old module
<console>
###i## rmmod nvidia
###i## modprobe nvidia
</console>


#--------------------------------------------------------------------
=== Testing your Video Card ===
# Printing hilight's
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>
$ ##i##glxinfo | grep direct
$ ##i##  direct rendering: yes
</console>


sub hilight {
== Configuring ==
    my ($dest, $text, $stripped) = @_;
=== Loading at boot ===
    if ($dest->{level} & MSGLEVEL_HILIGHT) {
To automate the loading of the module when you boot your system, add '''nvidia''' in modules variable.
filewrite($dest->{target}. " " .$stripped );
<console>
    }
# ##i##nano /etc/conf.d/modules
}
modules="nvidia"
</console>


#--------------------------------------------------------------------
=== Integration with X Server ===
# The actual printing
When your X server is installed find, and there's <code>/etc/X11/xorg.conf</code> you can run the nvidia-xconfig which will set in xorg.conf to identify the video card among other possible configurations.
#--------------------------------------------------------------------


sub filewrite {
<console>###i## nvidia-xconfig</console>
my ($text) = @_;
# FIXME: there is probably a better way to get the irssi-dir...
        open(FILE,">>$ENV{HOME}/.irssi/fnotify");
print FILE $text . "\n";
        close (FILE);
}


Irssi::signal_add_last("message private", "priv_msg");
{{file|name=/etc/X11/xorg.conf|body=
Irssi::signal_add_last("print text", "hilight");
Section "Device"
 
    Identifier    "nvidia"
#- end
    Driver        "nvidia"
    VendorName    "NVIDIA Corporation"
    BoardName      "[Name] [Model]"
EndSection
}}
}}
Another very useful script is for colored nicks, to better tell people apart. Which can be found at [http://scripts.irssi.org irssi scripts] called {{f|nickcolor.pl}}. 


When you have the scripts you would like you would put them into {{f|~/.irssi/scripts}} and set a link to {{f|~/.irssi/scripts/autorun}}.
=== Enabling NVIDIA Support ===
{{console|body=
Include the use flag in '''nvidia''' in <code>/etc/[[make.conf]]</code> so due to applications that make use of this advantage may withdraw.
$ ##i##wget -O ~/.irssi/scripts/nickcolor.pl http://scripts.irssi.org/scripts/nickcolor.pl
<console>
$ ##i##cd ~/.irssi/scripts/autorun
# ##i##nano /etc/make.conf
$ ##i##ln -s ~/.irssi/scripts/nickcolor.pl .
USE="nvidia"
$ ##i##ln -s ~/.irssi/scripts/fnotify.pl .
</console>
}}
You can do this for as many scripts as you've chosen to use. They will automatically load when you start irssi. You can also manually load scripts:
{{file|body=
/load ~/.irssi/scripts/fnotify.pl
Irssi: Loaded script fnotify
}}
Whichever works best for you is what you should do.
==== Themes ====
You can choose from many themes on the [http://irssi.org/themes irssi themes] page if you don't like the default look of it. Once you've chosen the theme you like, you can simply put it in your {{f|~/.irssi/}} directory and when you start irssi simply run:
{{file|body=
/set theme mycooltheme
}}
And there you have it, the theme you have chosen is now there.
=== Conclusion ===
irssi is a great IRC client, and really helpful if you spend a lot of time in a terminal emulator or on a server.


== External Resources ==
=== Enabling OpenGL/OpenCL ===
[http://www.irssi.org/documentation Further documentation]
As a requirement, make sure that the Xorg server is not in use during this change. To enable OpenGL and OpenCL.
<console>
###i## eselect opengl set nvidia
###i## eselect opencl set nvidia
</console>


[[Category:Video Cards]]
[[Category:First Steps]]
{{EbuildFooter}}
{{EbuildFooter}}
[[Category:IRC]]

Revision as of 08:36, January 23, 2015

NVIDIA Linux Display Drivers

   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.

Introduction

NVIDIA have proprietary graphics drivers for Linux under binary blob. The alternative open source driver is x11-drivers/xf86-video-nouveau.

Preparing to Install

Hardware compatibility and driver versions

Currently, there are five versions of meta 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 out the official page of the NVIDIA complete list of supported GPUs.

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.

root # echo “>x11-drivers/nvidia-drivers-340” >> /etc/portage/package.mask

The required kernel options

[*] Enable loadable module support
[*] 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.

Device Drivers --->
      Graphics support ---> 
            <*> Support for frame buffer devices --->
                  <> NVIDIA Framebuffer Support
                  <> NVIDIA Riva support
   Tip

An alternative is to uvesafb framebuffer, or vesa framebuffer which can be installed in parallel with nvidia-drivers

Installation

Upgrade and/or configure VIDEO_CARDS variable to nvidia 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.

root # nano /etc/make.conf
VIDEO_CARDS="nvidia"
   Note

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

Emerging the package

root # emerge x11-drivers/nvidia-drivers

When the installation is complete run modprobe nvidia module to read kernel memory.

root # lsmod | grep nvidia

If an update before remove the old module

root # rmmod nvidia
root # modprobe nvidia

Testing your Video Card

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.

user $ glxinfo | grep direct
user $   direct rendering: yes

Configuring

Loading at boot

To automate the loading of the module when you boot your system, add nvidia in modules variable.

root # nano /etc/conf.d/modules
modules="nvidia"

Integration with X Server

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.

root # nvidia-xconfig
   /etc/X11/xorg.conf
Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "[Name] [Model]"
EndSection

Enabling NVIDIA Support

Include the use flag in nvidia in /etc/make.conf so due to applications that make use of this advantage may withdraw.

root # nano /etc/make.conf
USE="nvidia"

Enabling OpenGL/OpenCL

As a requirement, make sure that the Xorg server is not in use during this change. To enable OpenGL and OpenCL.

root # eselect opengl set nvidia
root # eselect opencl set nvidia