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

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
m (fix some stuff)
 
Line 1: Line 1:
{{Ebuild
{{Ebuild
|Summary=NVIDIA accelerated graphics driver
|Summary=PHP-based open-source platform and content management system
|CatPkg=x11-drivers/nvidia-drivers
|CatPkg=www-apps/drupal
|Repository=Funtoo Overlay
|Maintainer=
|Overlay=Funtoo
|Homepage=http://drupal.org/
}}
}}
== Introduction ==
Drupal is a powerful [[Web-server-stack]] web application that can be used to craft custom websites, for example: http://www.whitehouse.gov
NVIDIA have proprietary graphics drivers for Linux under binary blob. The alternative open source driver is {{Package|x11-drivers/xf86-video-nouveau}}.


== Preparing to Install ==
== 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 [http://www.nvidia.com/object/IO_32667.html 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.


<console>
<console>
###i## echo “>x11-drivers/nvidia-drivers-340” >> /etc/portage/package.mask
###i## emerge drupal
</console>
</console>


=== The required kernel options ===
=== MySQL ===
{{warning|default "changeme" passwords are insecure, change them!}}


{{kernelop|desc=
To create a database for drupal to interact with:
[*] Enable loadable module support
 
}}
<console>###i## mysql -u root -p</console>
{{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
}}


{{tip|An alternative is to [[uvesafb|uvesafb]] framebuffer, which can be installed in parallel with nvidia-drivers }}
<pre>
mysql> CREATE DATABASE IF NOT EXISTS `drupal` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
mysql> CREATE USER 'drupal'@'localhost' IDENTIFIED BY 'changeme';
mysql> GRANT LOCK TABLES, SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `drupal`.* TO 'drupal'@'localhost' IDENTIFIED BY 'changeme';
mysql> \q
</pre>


== Installation ==
=== webapp-config ===
{{note| <code>webapp-config</code> is currently broken for drupal so you must run it your self:}}


Upgrade and/or configure <tt>VIDEO_CARDS</tt> variable to <tt>nvidia</tt> in <tt>/etc/make.conf</tt>. This will serve to while you are installing the Server X, the correct version of nvidia-drivers to be provided for you.
To run <code>webapp-config</code>, you must know the version number of the webapp you're installing. To find the version number:
<console>
# ##i##nano /etc/make.conf
VIDEO_CARDS="nvidia"
</console>


{{note|Installing to the driver with the option in '''gtk''' use flags will make it installed the <tt>media-video/nvidia-settings</tt> which is a graphical tool for monitoring and various settings for your video card}}
<console>###i## equery l drupal</console>


=== Emerging the package ===
then run something similar to this, making sure to replace the version number with your current drupal version.
<console>
###i## emerge x11-drivers/nvidia-drives
</console>


When the installation is complete run '''modprobe''' nvidia module to read kernel memory.
<console>###i## webapp-config -I -h localhost -u root -d /drupal drupal 7.31</console>


<console>
=== web install ===
###i## lsmod | grep nvidia
Start your web server, and database.
</console>
If an update before remove the old module
<console>
###i## rmmod nvidia
###i## modprobe nvidia
</console>


=== Testing your Video Card ===
If you are using apache 2.4, or newer run this sed command.
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## sed -i 's\Order allow,deny\Require all granted\' /var/www/localhost/htdocs/drupal/.htaccess</console>
<console>
$ ##i##glxinfo | grep direct
$ ##i##  direct rendering: yes
</console>


== Configuring ==
point your browser @ http://localhost/drupal/install.php
=== Loading at boot ===
To automate the loading of the module when you boot your system, add '''nvidia''' in modules variable.
<console>
# ##i##nano /etc/conf.d/modules
modules="nvidia"
</console>


=== Integration with X Server ===
== Maintenance Mode Access ==
When your X server is installed find, and there's <tt>/etc/X11/xorg.conf</tt> you can run the nvidia-xconfig which will set in xorg.conf to identify the video card among other possible configurations.
If you suddenly find your self locked out of your drupal cms because it is in maintenence mode:
{{file|name=/etc/X11/xorg.conf|body=
Section "Device"
    Identifier    "nvidia"
    Driver        "nvidia"
    VendorName    "NVIDIA Corporation"
    BoardName      "[Name] [Model]"
EndSection
}}


=== Enabling NVIDIA Support ===
http://localhost/drupal/user
Include the use flag in '''nvidia''' in <tt>/etc/make.conf</tt> so due to applications that make use of this advantage may withdraw.
<console>
# ##i##nano /etc/make.conf
USE="nvidia"
</console>


=== Enabling OpenGL/OpenCL ===
== Troubleshooting ==
As a requirement, make sure that the Xorg server is not in use during this change. To enable OpenGL and OpenCL.
If you are having problems logging into the admin console flush your browser cache.
<console>
###i## eselect opengl set nvidia
###i## eselect opencl set nvidia
</console>


[[Category:Video Cards]]
== External Resources ==
[[Category:First Steps]]
* https://wiki.gentoo.org/wiki/Drupal
* [http://youtu.be/-cUWFLBZU5I?list=PL15BE2E8313A4E809  youtube tutorial playlist]
{{EbuildFooter}}
{{EbuildFooter}}

Revision as of 09:45, September 30, 2014

Drupal

   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.

Drupal is a powerful Web-server-stack web application that can be used to craft custom websites, for example: http://www.whitehouse.gov

Install

root # emerge drupal

MySQL

   Warning

default "changeme" passwords are insecure, change them!

To create a database for drupal to interact with:

root # mysql -u root -p
mysql> CREATE DATABASE IF NOT EXISTS `drupal` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
mysql> CREATE USER 'drupal'@'localhost' IDENTIFIED BY 'changeme';
mysql> GRANT LOCK TABLES, SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `drupal`.* TO 'drupal'@'localhost' IDENTIFIED BY 'changeme';
mysql> \q

webapp-config

   Note
webapp-config is currently broken for drupal so you must run it your self:

To run webapp-config, you must know the version number of the webapp you're installing. To find the version number:

root # equery l drupal

then run something similar to this, making sure to replace the version number with your current drupal version.

root # webapp-config -I -h localhost -u root -d /drupal drupal 7.31

web install

Start your web server, and database.

If you are using apache 2.4, or newer run this sed command.

root # sed -i 's\Order allow,deny\Require all granted\' /var/www/localhost/htdocs/drupal/.htaccess

point your browser @ http://localhost/drupal/install.php

Maintenance Mode Access

If you suddenly find your self locked out of your drupal cms because it is in maintenence mode:

http://localhost/drupal/user

Troubleshooting

If you are having problems logging into the admin console flush your browser cache.

External Resources