<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Ubuntu on Shelby DeNike</title>
    <link>https://denike.io/tags/ubuntu/</link>
    <description>Recent content in Ubuntu on Shelby DeNike</description>
    <image>
      <title>Shelby DeNike</title>
      <url>https://assets.denike.io/images/assets/cartoon_profile_200x200px.png</url>
      <link>https://assets.denike.io/images/assets/cartoon_profile_200x200px.png</link>
    </image>
    <generator>Hugo -- 0.154.5</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 13 Feb 2024 15:41:12 +0000</lastBuildDate>
    <atom:link href="https://denike.io/tags/ubuntu/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>💻 Mounting Samba share on Ubuntu</title>
      <link>https://denike.io/mounting-samba-share-on-ubuntu/</link>
      <pubDate>Tue, 13 Feb 2024 15:41:12 +0000</pubDate>
      <guid>https://denike.io/mounting-samba-share-on-ubuntu/</guid>
      <description>&lt;p&gt;I&amp;rsquo;m mainly noting this here for myself, but perhaps someone else will find this information handy.&lt;/p&gt;
&lt;p&gt;Install package &lt;strong&gt;cifs-utils&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo apt-get install cifs-utils
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Create a folder to mount the share into&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo mkdir /media/Share
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Create a file with user credentials in your home directory.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;touch ~/.smbcredentials
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Edit the &lt;strong&gt;smbcredentials&lt;/strong&gt; file&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;username=smb_username
password=smb_password
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Edit &lt;strong&gt;/etc/fstab&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo nano /etc/fstab
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Add the following line ( &lt;em&gt;edit where necessary&lt;/em&gt;)&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;//NASIP/shares/ /mnt/nas cifs iocharset=utf8,credentials=/home/USER/.smbcredentials,vers=3.0,iocharset=utf8,rw,sec=ntlmssp,file_mode=0644,dir_mode=0755,uid=1000,gid=1000 0 0
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You can now mount the samba share with the command below&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to set up DNS on Ubuntu 22.04 without a netplan config.</title>
      <link>https://denike.io/how-to-set-up-dns-on-ubuntu-22.04-without-a-netplan-config./</link>
      <pubDate>Thu, 11 Jan 2024 09:35:05 +0000</pubDate>
      <guid>https://denike.io/how-to-set-up-dns-on-ubuntu-22.04-without-a-netplan-config./</guid>
      <description>&lt;p&gt;I finally found the solution here: &lt;a href=&#34;https://serverok.in/systemd-resolved&#34;&gt;https://serverok.in/systemd-resolved&lt;/a&gt; ( &lt;a href=&#34;https://web.archive.org/web/20230329160801/https://serverok.in/systemd-resolved&#34;&gt;Archive.org cache&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;In case the link dies in the future, Create a file:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo mkdir /etc/systemd/resolved.conf.d/
sudo nano /etc/systemd/resolved.conf.d/dns_servers.conf
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Add my DNS in this file:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[Resolve]
DNS=8.8.8.8 1.1.1.1
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then restart systemd-resolved&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo systemctl restart systemd-resolved
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;It works even after reboot :-)&lt;/p&gt;
&lt;p&gt;PS : No idea why my DNS configuration was lost during the upgrade from 20.04 to 22.04.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
