Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fedora - Install an NVIDIA GPU on almost any machine

#1
Install an NVIDIA GPU on almost any machine

<div style="margin: 5px 5% 10px 5%;"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/07/install-an-nvidia-gpu-on-almost-any-machine.png" width="517" height="155" title="" alt="" /></div><div><p>Whether for research or recreation, installing a new GPU can bolster your computer’s performance and enable new functionality across the board. This installation guide uses Fedora 28’s brand-new third-party repositories to install NVIDIA drivers. It walks you through the installation of both software and hardware, and covers everything you need to get your NVIDIA card up and running. This process works for any UEFI-enabled computer, and any modern NVIDIA GPU.</p>
<p><span id="more-21714"></span></p>
<h2 id="markdown-header-preparation">Preparation</h2>
<p>This guide relies on the following materials:</p>
<ul>
<li>A machine that is <a href="https://whatis.techtarget.com/definition/Unified-Extensible-Firmware-Interface-UEFI" rel="nofollow">UEFI</a> capable. If you’re uncertain whether your machine has this firmware, run <em>sudo dmidecode -t 0</em>.  If “UEFI is supported” appears anywhere in the output, you are all set to continue. Otherwise, while it’s technically possible to update some computers to support UEFI, the process is often finicky and generally not recommended.</li>
<li>A modern, UEFI-enabled NVIDIA card</li>
<li>A power source that meets the wattage and wiring requirements for your NVIDIA card (see the Hardware &amp; Modifications section for details)</li>
<li>Internet connection</li>
<li>Fedora 28</li>
</ul>
<h2 id="markdown-header-our-set-up">Example setup</h2>
<p>This example installation uses:</p>
<ul>
<li>An Optiplex 9010 (a fairly old machine)</li>
<li>NVIDIA <a href="https://www.cnet.com/products/pny-geforce-gtx-xlr8-gaming-1050-ti-overclocked-edition-graphics-card-gf-gtx-1050-ti-4-gb/specs/" rel="nofollow">GeForce GTX 1050 Ti XLR8 Gaming Overclocked Edition 4GB GDDR5 PCI Express 3.0</a> graphics card</li>
<li>In order to meet the power requirements of the new GPU, the power supply was upgraded to an <a href="https://www.evga.com/products/product.aspx?pn=100-B1-0600-KR" rel="nofollow">EVGA – 80 PLUS 600W ATX 12V/EPS 12V</a>. This new PSU was 300W above the minimum recommendation, but simply meeting the minimum recommendation is sufficient in most cases.</li>
<li>And, of course, Fedora 28.</li>
</ul>
<h2 id="markdown-header-hardware-modifications">Hardware and modifications</h2>
<h3 id="markdown-header-psu">PSU</h3>
<p>Open up your desktop case and check the maximum power output printed on your power supply. Next, check the documentation on your NVIDIA GPU and determine the minimum recommended power (in watts). Further, take a look at your GPU and see if it requires additional wiring, such as a 6-pin connector. Most entry-level GPUs only draw power directly from the motherboard, but some require extra juice. You’ll need to upgrade your PSU if:</p>
<ol>
<li>Your power supply’s max power output is below the GPU’s suggested minimum power. <strong>Note:</strong> According to some NVIDIA card manufacturers, pre-built systems may require more or less power than recommended, depending on the system’s configuration. Use your discretion to determine your requirements if you’re using a particularly power-efficient or power-hungry setup.</li>
<li>Your power supply does not provide the necessary wiring to power your card.</li>
</ol>
<p>PSUs are straightforward to replace, but make sure to take note of the wiring layout before detaching your current power supply. Additionally, make sure to select a PSU that fits your desktop case.</p>
<h3 id="markdown-header-cpu">CPU</h3>
<p>Although installing a high-quality NVIDIA GPU is possible in many old machines, a slow or damaged CPU can “bottleneck” the performance of the GPU. To calculate the impact of the bottlenecking effect for your machine, click <a title="Home: The Bottle Necker" href="http://thebottlenecker.com" rel="nofollow">here</a>. It’s important to know your CPU’s performance to avoid pairing a high-powered GPU with a CPU that can’t keep up. Upgrading your CPU is a potential consideration.</p>
<h4 id="markdown-header-motherboard">Motherboard</h4>
<p>Before proceeding, ensure your motherboard is compatible with your GPU of choice. Your graphics card should be inserted into the PCI-E x16 slot closest to the heat-sink. Ensure that your setup contains enough space for the GPU. In addition, note that most GPUs today employ PCI-E 3.0 technology. Though these GPUs will run best if mounted on a PCI-E 3.0 x16 slot,  performance should not suffer significantly with an older version slot.</p>
<h2 id="markdown-header-installation">Installation</h2>
<p id="markdown-header-1-open-up-a-terminal-and-update-your-package-manager-if-you-have-not-done-so-already-by-running">1. First, open up a terminal, and update your package-manager (if you have not done so already), by running:</p>
<div class="codehilite">
<pre>sudo dnf update </pre>
</div>
<p id="markdown-header-2-next-reboot-with-the-simple-command">2. Next, reboot with the simple command:</p>
<div class="codehilite">
<pre>reboot </pre>
</div>
<p>&lt;!– Authors left out code or an app in this step, so since it's optional… </p>
<h4 id="markdown-header-3-optional-if-youd-like-check-your-systems-current-gpu-performance-to-compare-against"><span style="width: 0px;overflow: hidden;line-height: 0" class="mce_SELRES_start"></span>3. (Optional) If you’d like, check your system’s current GPU performance to compare against:<br />
To verify that your NVIDIA card performs better than your current setup, you may want to record your current GPU’s performance before installation. To do so, scroll down to the “Run GLMark2” section under “Verification.” Record your current GLMark2 score, then proceed to the next steps.<br />
–&gt;</p>
<p id="markdown-header-4-after-reboot-install-the-fedora-28-workstation-repositories">3. After reboot, install the Fedora 28 workstation repositories:</p>
<div class="codehilite">
<pre>sudo dnf install fedora-workstation-repositories </pre>
</div>
<p id="markdown-header-5-enable-the-nvidia-driver-repository">4. Next, enable the NVIDIA driver repository:</p>
<div class="codehilite">
<pre>sudo dnf config-manager --set-enabled rpmfusion-nonfree-nvidia-driver </pre>
</div>
<p>5. Then, reboot again.</p>
<p id="markdown-header-6-after-the-reboot-verify-the-addition-of-the-repository-via-the-following-command">6. After the reboot, verify the addition of the repository via the following command:</p>
<div class="codehilite">
<pre>sudo dnf repository-packages rpmfusion-nonfree-nvidia-driver info </pre>
</div>
<p>If several NVIDIA tools and their respective specs are loaded, then proceed to the next step. If not, you may have encountered an error when adding the new repository and you should give it another shot.</p>
<p id="markdown-header-7-login-connect-to-the-internet-and-open-the-software-app-click">7. Login, connect to the internet, and open the software app. Click <em>Add-ons&gt; Hardware Drivers&gt; NVIDIA Linux Graphics Driver&gt; Install.</em></p>
<p>Then, reboot once again.</p>
<p id="markdown-header-8-after-reboot">8. After reboot, go to ‘Show Applications’ on the side bar, and open up the newly added NVIDIA X Server Settings application. A GUI should open up, and a dialog box will appear with the following message:</p>
<p><img class="alignnone" title="NVIDIA X Sever Prompt" src="http://www.sickgaming.net/blog/wp-content/uploads/2018/07/install-an-nvidia-gpu-on-almost-any-machine.png" alt="NVIDIA X Server Prompt" width="517" height="155" /></p>
<p>Take the application’s advice, but before doing so, ensure you have your NVIDIA GPU on-hand and are ready to install. <strong>Please note</strong> that running <em>nvidia xconfig</em> as root and powering off <em>without installing your GPU immediately  </em>may cause drastic damage. Doing so may prevent your computer from booting, and force you to repair the system through the reboot screen. A fresh install of Fedora may fix these issues, but the effects can be much worse.</p>
<p>If you’re ready to proceed, enter the command:</p>
<div class="codehilite">
<pre>sudo nvidia-xconfig </pre>
</div>
<p>If the system prompts you to perform any downloads, accept them and proceed.</p>
<p id="markdown-header-9-once-this-process-is-complete-close-all-applications-and-shut-down-the-computer">9. Once this process is complete, close all applications and <strong>shut down</strong> the computer. Unplug the power supply to your machine. Then, press the power button once to drain any residual power to protect yourself from electric shock. If your PSU has a power switch, switch it off.</p>
<p id="markdown-header-10-install-the-graphics-card">10. Finally, install the graphics card. Remove the old GPU and insert your new NVIDIA graphics card into the proper PCI-E x16 slot, with the fans facing down. If there is no space for the fans to ventilate in this position, place the graphics card face up instead, if possible. When you have successfully installed the new GPU, close your case, plug in the PSU, and turn the computer on. It should successfully boot up.</p>
<p><strong>NOTE:</strong> To disable the NVIDIA driver repository used in this installation, or to disable all fedora workstation repositories, consult <a href="https://fedoraproject.org/wiki/Workstation/Third_Party_Software_Repositories" rel="nofollow">The Fedora Wiki Page</a>.</p>
<h2 id="markdown-header-verification">Verification</h2>
<p id="markdown-header-1-verify-installation">1. If your newly installed NVIDIA graphics card is connected to your monitor and displaying correctly, then your NVIDIA driver has successfully established a connection to the GPU.</p>
<p>If you’d like to view your settings, or verify the driver is working (in the case that you have two GPUs installed on the motherboard), open up the NVIDIA X Server Settings app again. This time, you should not be prompted with an error message, and information on the X configuration file and your NVIDIA GPU should be available (see screenshot below).</p>
<p><img class="alignnone" title="NVIDIA X Server Settings" src="http://www.sickgaming.net/blog/wp-content/uploads/2018/07/install-an-nvidia-gpu-on-almost-any-machine-1.png" alt="NVIDIA X Server Settings" width="841" height="453" /></p>
<p>Through this app, you may alter your X configuration file should you please, and may monitor the GPU’s performance, clock speed, and thermal information.</p>
<p id="markdown-header-2-test-performance">2. To ensure the new card is working at capacity, a GPU performance test is needed. GL Mark 2, a benchmarking tool that provides information on buffering, building, lighting, texturing, etc, offers an excellent solution. GL Mark 2 records frame rates for a variety of different graphical tests, and outputs an overall performance score (called the glmark2 score).</p>
<p><strong>Note:</strong> <em>glxgears</em> will only test the performance of your screen or monitor, not the graphics card itself. Use GL Mark 2 instead.</p>
<p id="markdown-header-run-glmark2">To run GLMark2:</p>
<ol>
<li>Open up a terminal and close all other applications</li>
<li><em>sudo dnf install glmark2</em></li>
<li><em>glmark2</em></li>
<li>Allow the test to run to completion for best results. Check to see if the frame rates match your expectation for your NVIDA card. If you’d like additional verification, consult the web to determine if a glmark2 benchmark has been previously conducted on your NVIDA card model and published to the web. Compare scores to assess your GPUs performance.</li>
<li>If your framerates and/or glmark2 score are below expected, consider potential causes. CPU-induced bottlenecking? Other issues?</li>
</ol>
<p id="markdown-header-3-if-the-diagnostics-look-good-enjoy-using-your-new-gpu">Assuming the diagnostics look good, enjoy using your new GPU.</p>
<h2 id="markdown-header-references">References:</h2>
<ul>
<li><a href="https://www.howtoforge.com/tutorial/linux-gpu-benchmark/" rel="nofollow">How to benchmark your GPU on Linux</a></li>
<li><a href="https://www.pcworld.com/article/2913370/components-graphics/how-to-install-a-graphics-card.html" rel="nofollow">How to install a graphics card</a></li>
<li><a href="https://fedoraproject.org/wiki/Workstation/Third_Party_Software_Repositories" rel="nofollow">The Fedora Wiki Page</a></li>
<li><a href="http://thebottlenecker.com/" rel="nofollow">The Bottlenecker</a></li>
<li><a href="https://whatis.techtarget.com/definition/Unified-Extensible-Firmware-Interface-UEFI" rel="nofollow">What Is Unified Extensible Firmware Interface (UEFI)</a></li>
</ul>
</div>
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016