<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: DevOpsEnvSite</title>
    <description>The latest articles on DEV Community by DevOpsEnvSite (@devopsenvsite).</description>
    <link>https://dev.to/devopsenvsite</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F543392%2Febc1e850-82fd-496d-8218-b449e3184811.png</url>
      <title>DEV Community: DevOpsEnvSite</title>
      <link>https://dev.to/devopsenvsite</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/devopsenvsite"/>
    <language>en</language>
    <item>
      <title>Dell XPS 9310 Setup With Pop!_OS</title>
      <dc:creator>DevOpsEnvSite</dc:creator>
      <pubDate>Sat, 19 Dec 2020 10:32:49 +0000</pubDate>
      <link>https://dev.to/devopsenvsite/dell-xps-9310-setup-with-pop-os-4fj9</link>
      <guid>https://dev.to/devopsenvsite/dell-xps-9310-setup-with-pop-os-4fj9</guid>
      <description>&lt;h2&gt;
  
  
  Overview
&lt;/h2&gt;

&lt;p&gt;I decided to give Pop!_OS 20.10 a try on the new Dell XPS 9310 laptop. &lt;/p&gt;

&lt;p&gt;Normally I go with the most recent Ubuntu LTS which is what gets the stamp of approval from Dell and Canonical. &lt;/p&gt;

&lt;p&gt;I don't live in a country that has the Developer edition of the XPS pre-loaded with Ubuntu so I have to buy the Windows Home version and install Linux myself.&lt;/p&gt;

&lt;p&gt;Here is how I have setup my machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Buying Decision
&lt;/h2&gt;

&lt;p&gt;When you do a search online for Linux on the XPS 9310 you will find a mixed bag of people who have a fully working setup and people who haven't been so lucky.&lt;/p&gt;

&lt;p&gt;My Specs:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;My Choice&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Processor&lt;/td&gt;
&lt;td&gt;11th Generation Intel® Core™ i7-1185G7 Processor (12MB Cache, up to 4.8 GHz)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RAM&lt;/td&gt;
&lt;td&gt;16GB 4267MHz LPDDR4x Memory Onboard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SSD&lt;/td&gt;
&lt;td&gt;512GB M.2 PCIe NVMe Solid State Drive&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Display&lt;/td&gt;
&lt;td&gt;13.4" FHD+ (1920 x 1200) InfinityEdge Non-Touch Anti-Glare 500-Nit Display&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wireless&lt;/td&gt;
&lt;td&gt;Killer™ Wi-Fi 6 AX1650 (2x2) and Bluetooth 5.1&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Reasons I made these choices:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Some of the 32gb RAM configurations will give you the AX500-DBS wireless card. That is the card that most of the people online seem to have problems with. From what I read, this should be resolved in future kernel releases and might be fine by 21.04 releases of Ubuntu&lt;/li&gt;
&lt;li&gt;I always choose 1080p for longer battery life. I also don't think a screen that small needs the upgrade.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  BIOS Options
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo dmidecode -s bios-version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Shows me that I am currently running BIOS version 1.1.1&lt;/p&gt;

&lt;p&gt;There is a newer version of the BIOS 1.1.4 that was released on December 10 2020 but I haven't tried to download/install it yet. You still get firmware and system updates in Pop!_OS just like Ubuntu so there is still no need to dual boot.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1608367294625%2FSpGigIKg1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1608367294625%2FSpGigIKg1.png" alt="image.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These are only the options that I have changed. &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;My Choice&lt;/th&gt;
&lt;th&gt;Why?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Secure Boot&lt;/td&gt;
&lt;td&gt;Off&lt;/td&gt;
&lt;td&gt;When you download the .iso System76 says to turn this off&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Storage Mode&lt;/td&gt;
&lt;td&gt;AHCI&lt;/td&gt;
&lt;td&gt;Have always run into problems in the past if this was set to RAID&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Power Battery Configuration&lt;/td&gt;
&lt;td&gt;Primarily AC Use&lt;/td&gt;
&lt;td&gt;Make battery last a little longer(not sure if true)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Intel Speed Shift&lt;/td&gt;
&lt;td&gt;Off&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Security Absolute&lt;/td&gt;
&lt;td&gt;Off&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Pop!_OS Install 20.10
&lt;/h2&gt;

&lt;p&gt;Get your base OS installed.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Download the .iso from System76&lt;/li&gt;
&lt;li&gt;Create a bootable USB-c stick(or normal USB if you want to use the adapter)&lt;/li&gt;
&lt;li&gt;Boot from the USB stick&lt;/li&gt;
&lt;li&gt;Choose erase everything install + encrypt option&lt;/li&gt;
&lt;li&gt;Get the Dell repos added to your apt sources. This gets fingerprint and facial login working. &lt;a href="https://www.dell.com/community/XPS/XPS-13-9300-Does-fingerprint-reader-work-on-linux/td-p/7514958" rel="noopener noreferrer"&gt;Source link: Post By DanielNTX&lt;/a&gt;. This also allows you to pull updates from Dell. I haven't tested using howdy and facial login because i don't have a need for it. &lt;/li&gt;
&lt;li&gt;Settings &amp;gt; User &amp;gt; Add Fingerprint. The new fingerprint you setup wont work for login and sudo until you run the below command.
8.

&lt;code&gt;sudo pam-auth-update&lt;/code&gt;

space-bar to add fingerprint option. Now you should be able to use fingerprint to login as well as sudo. &lt;/li&gt;
&lt;li&gt;Settings &amp;gt; Power &amp;gt; Turn off automatic brightness. I find this really annoying so I turn it off&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  OS Extras
&lt;/h2&gt;

&lt;p&gt;These are some of the other things I installed and configured on my machine that are part of my workflow.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Settings &amp;gt; Power &amp;gt; Show Battery %&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Keyboard Shortcut &amp;gt; Change Window Launcher to Super + space-bar&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Add my SSH keys and config file from my old laptop and chmod 400 them&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Start ssh-agent:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;eval "$(ssh-agent -s)" 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add SSH key to agent:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssh-add ~/.ssh/id_rsa 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Config Git:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git config --global user.name "DevOpsEnv"
git config --global user.email email@example.com
git config --list --show-origin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Install openvpn and configure my VPN:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt install network-manager-openvpn-gnome

###Open network manager and create VPN connection from .ovpn script###  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Install VSCode - Login to github to sync settings and extensions &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install Google Chrome - Login to sync extensions&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install Zoom&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install Slack&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install DBeaver(Flatpak) - Add Db connections&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install FileZilla - Add SFTP connections&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install Spotify&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install Alacritty - Pull down my config file&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install Remmina - Setup RDP connections&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install Postman(Flatpak)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install Password Manager Of Choice&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install Authy - No .deb or flatpak and I don't want any snaps or snapd running on my machine so I will have to find an alternative to authy :(&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install Stacer&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install Docker:&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Add repo:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add Docker GPG key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Setup stable repository:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install Docker Engine:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo docker run hello-world
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run Docker as non-root user:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo usermod -aG docker &amp;lt;your-user&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Reboot your machine to make this take effect&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Install Docker Compose
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install docker-compose
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Install cfn-flip - Allows you to convert cloudformation templates from JSON &amp;lt;&amp;gt; YAML and convert join to sub functions
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install cfn-flip
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Install cfn-lint - Linter for cloudformation templates
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install cfn-lint
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Install cfn-guard and cfn-nag (not yet complete)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install aws-cli and add my config&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install awsume - Allows role switching between aws accounts under the same organisation&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip3 install awsume

###Add alias awsume=". awsume" to ~/.bashrc###
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Install htop&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install fd - find replacement written in rust&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install figlet&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install tldr - quick easy manpage examples&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;clone cheatsheets repo - community driven cheatsheets for linux commands&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install Node.js - From Nodesource&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
sudo apt-get install -y nodejs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Hardware Peripherals Compatibility
&lt;/h2&gt;

&lt;p&gt;The XPS 9310 running Pop!_OS works with the following hardware&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Blue Yeti Nano&lt;/li&gt;
&lt;li&gt;Logitech MX Master3 Mouse&lt;/li&gt;
&lt;li&gt;Tethering to Samsung Galaxy S10+&lt;/li&gt;
&lt;li&gt;Cable Matters 10Gbps USB C Dock (USB Docking Station). I plug 2 external displays into the dock with the other peripherals mentioned and it has 1 cable that plugs into the XPS. Charging pass-through works so it is just the 1 cable required.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Problems
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;No Authy deb or flatpak which is a disappointing&lt;/li&gt;
&lt;li&gt;If i want to close my laptop there is no way to authenticate with sudo as I need the fingerprint scanner. I haven't really tried to troubleshoot this one yet&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That is everything that I can think of for now&lt;/p&gt;

</description>
      <category>linux</category>
      <category>ubuntu</category>
      <category>xps9310</category>
      <category>dell</category>
    </item>
  </channel>
</rss>
