<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ubuntu on csegura</title><link>https://blog.romheat.net/tags/ubuntu/</link><description>Recent content in Ubuntu on csegura</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 24 Sep 2022 05:17:17 +0100</lastBuildDate><atom:link href="https://blog.romheat.net/tags/ubuntu/index.xml" rel="self" type="application/rss+xml"/><item><title>Nvidia Drivers on Ubuntu 20.04 (work notes)</title><link>https://blog.romheat.net/posts/2022/22_09_24_nvidia_ubuntu_2004/</link><pubDate>Sat, 24 Sep 2022 05:17:17 +0100</pubDate><guid>https://blog.romheat.net/posts/2022/22_09_24_nvidia_ubuntu_2004/</guid><description>&lt;h1 id="install-nvidia-drivers-ubuntu-2004--2204">Install nvidia drivers ubuntu 20.04 / 22.04&lt;/h1>
&lt;p>hypervisor.cpuid.v0 -&amp;gt; FALSE in vmware&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>sudo apt install build-essential libglvnd-dev
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>First Disable nouveau &amp;amp; enable unsuported GPU’s for open source drivers:&lt;/p>
&lt;ol>
&lt;li>Go to: /etc/modprobe.d/&lt;/li>
&lt;li>Make a file: blacklist-nvidia-nouveau.conf&lt;/li>
&lt;li>Put this in the file:&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>blacklist nouveau
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>options nouveau modeset&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#ae81ff">0&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ol start="4">
&lt;li>Make a other “nvidia.conf” file and put this in the file: options nvidia&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>NVreg_OpenRmEnableUnsupportedGpus&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#ae81ff">1&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ol start="5">
&lt;li>Updat kernel init ram fs:&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>sudo update-initramfs -u
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ol start="6">
&lt;li>Uninstall intel microcode&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>sudo dpkg -l | grep intel
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>sudo apt purge intel-microcode
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>sudo update-grub
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ol start="9">
&lt;li>Reboot&lt;/li>
&lt;li>Go to the Nvidia site to the page to download the driver that you want.&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>mkdir tmp &amp;amp; cd tmp
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>wget https://es.download.nvidia.com/XFree86/Linux-x86_64/515.76/NVIDIA-Linux-x86_64-515.76.run
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ol start="11">
&lt;li>Copy the URL of the download butten and past it behind wget to download it to the current folder&lt;/li>
&lt;li>Sudo chmod 700 the file&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>sudo chmod &lt;span style="color:#ae81ff">700&lt;/span> NVIDIA*
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ol start="14">
&lt;li>Run the install file: sudo .\filename.run -m=kernel-open&lt;/li>
&lt;li>After the instalation reboot the server&lt;/li>
&lt;li>Test with nvidia-smi&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>sudo apt install nvidia-driver-470-server
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>sudo apt install nvidia-utils-470-server
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>sudo lshw -C display
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> *-display
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> description: VGA compatible controller
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> product: SVGA II Adapter
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> vendor: VMware
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> physical id: f
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> bus info: pci@0000:00:0f.0
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> version: &lt;span style="color:#ae81ff">00&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> width: &lt;span style="color:#ae81ff">32&lt;/span> bits
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> clock: 33MHz
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> capabilities: vga_controller bus_master cap_list rom
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> configuration: driver&lt;span style="color:#f92672">=&lt;/span>vmwgfx latency&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#ae81ff">64&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> resources: irq:16 ioport:1070&lt;span style="color:#f92672">(&lt;/span>size&lt;span style="color:#f92672">=&lt;/span>16&lt;span style="color:#f92672">)&lt;/span> memory:e8000000-efffffff memory:fe000000-fe7fffff memory:c0000-dffff
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> *-display UNCLAIMED
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> description: VGA compatible controller
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> product: NVIDIA Corporation
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> vendor: NVIDIA Corporation
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> physical id: &lt;span style="color:#ae81ff">0&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> bus info: pci@0000:0b:00.0
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> version: a1
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> width: &lt;span style="color:#ae81ff">64&lt;/span> bits
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> clock: 33MHz
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> capabilities: pm msi pciexpress vga_controller cap_list
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> configuration: latency&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#ae81ff">64&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> resources: memory:fc000000-fcffffff memory:d0000000-dfffffff memory:e4000000-e5ffffff ioport:5000&lt;span style="color:#f92672">(&lt;/span>size&lt;span style="color:#f92672">=&lt;/span>128&lt;span style="color:#f92672">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>List Drivers&lt;/p></description></item><item><title>Docker Ubuntu (work notes)</title><link>https://blog.romheat.net/posts/2022/22_09_22_docker_ubuntu/</link><pubDate>Thu, 22 Sep 2022 05:17:17 +0100</pubDate><guid>https://blog.romheat.net/posts/2022/22_09_22_docker_ubuntu/</guid><description>&lt;h1 id="install-on-ubuntu-2004">Install on ubuntu 20.04&lt;/h1>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>sudo apt install apt-transport-https ca-certificates curl software-properties-common
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>sudo add-apt-repository &lt;span style="color:#e6db74">&amp;#34;deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>apt-cache policy docker-ce
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>sudo apt install docker-ce
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>sudo systemctl status docker
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item></channel></rss>