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

(Difference between pages)
 
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
+
}}
+
{{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 }}
+
<console>###i## mysql -u root -p</console>
  
== Installation ==
+
<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>
  
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.
+
=== webapp-config ===
<console>
+
{{note| <code>webapp-config</code> is currently broken for drupal so you must run it your self:}}
# ##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}}
+
To run <code>webapp-config</code>, you must know the version number of the webapp you're installing.  To find the version number:
  
=== Emerging the package ===
+
<console>###i## equery l drupal</console>
<console>
+
###i## emerge x11-drivers/nvidia-drives
+
</console>
+
  
When the installation is complete run '''modprobe''' nvidia module to read kernel memory.
+
then run something similar to this, making sure to replace the version number with your current drupal version.
  
<console>
+
<console>###i## webapp-config -I -h localhost -u root -d /drupal drupal 7.31</console>
###i## lsmod | grep nvidia
+
</console>
+
If an update before remove the old module
+
<console>
+
###i## rmmod nvidia
+
###i## modprobe nvidia
+
</console>
+
  
=== Testing your Video Card ===
+
=== web install ===
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.
+
Start your web server, and database.
<console>
+
$ ##i##glxinfo | grep direct
+
$ ##i##  direct rendering: yes
+
</console>
+
  
== Configuring ==
+
If you are using apache 2.4, or newer run this sed command.
=== Loading at boot ===
+
<console>###i## sed -i 's\Order allow,deny\Require all granted\' /var/www/localhost/htdocs/drupal/.htaccess</console>
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 ===
+
point your browser @ http://localhost/drupal/install.php
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.
+
{{file|name=/etc/X11/xorg.conf|body=
+
Section "Device"
+
    Identifier    "nvidia"
+
    Driver        "nvidia"
+
    VendorName    "NVIDIA Corporation"
+
    BoardName      "[Name] [Model]"
+
EndSection
+
}}
+
  
=== Enabling NVIDIA Support ===
+
== Maintenance Mode Access ==
Include the use flag in '''nvidia''' in <tt>/etc/make.conf</tt> so due to applications that make use of this advantage may withdraw.
+
If you suddenly find your self locked out of your drupal cms because it is in maintenence mode:
<console>
+
# ##i##nano /etc/make.conf
+
USE="nvidia"
+
</console>
+
  
=== Enabling OpenGL/OpenCL ===
+
http://localhost/drupal/user
As a requirement, make sure that the Xorg server is not in use during this change. To enable OpenGL and OpenCL.
+
 
<console>
+
== Troubleshooting ==
###i## eselect opengl set nvidia
+
If you are having problems logging into the admin console flush your browser cache.
###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

www-apps/drupal


Source Repository:Gentoo Portage Tree
Homepage

Summary: PHP-based open-source platform and content management system



Drupal


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

Install

# emerge drupal

MySQL

Warning

default "changeme" passwords are insecure, change them!

To create a database for drupal to interact with:

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

# equery l drupal

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

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

# 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