<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ubuntu 22.04 on Terrence's Site</title><link>https://www.terrenceoconnor.com/tags/ubuntu-22.04/</link><description>Recent content in Ubuntu 22.04 on Terrence's Site</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 21 Jan 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://www.terrenceoconnor.com/tags/ubuntu-22.04/index.xml" rel="self" type="application/rss+xml"/><item><title>Making Ubuntu 22.04 Faster</title><link>https://www.terrenceoconnor.com/post/2023/01/21/making-ubuntu-22.04-faster/</link><pubDate>Sat, 21 Jan 2023 00:00:00 +0000</pubDate><guid>https://www.terrenceoconnor.com/post/2023/01/21/making-ubuntu-22.04-faster/</guid><description>&lt;h2 id="why"&gt;Why&lt;/h2&gt;
&lt;p&gt;I setup my server to boot on power. So I want to boot and run as quickly as possible to minimize downtime due to reboots or power-outages. It happens more than I&amp;rsquo;d like.&lt;/p&gt;
&lt;h2 id="goal"&gt;Goal&lt;/h2&gt;
&lt;p&gt;Document performance settings for Ubuntu 22.04&lt;/p&gt;
&lt;h2 id="settings"&gt;Settings&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Not a performance setting, but ups the map count limit to allow for Docker to be able to run ELK.
Set vm.max_map_count to no less than 262144 (one time configuration)&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#6272a4"&gt;# Run once, loses setting after reboot.&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo sysctl -w vm.max_map_count&lt;span style="color:#ff79c6"&gt;=&lt;/span&gt;&lt;span style="color:#bd93f9"&gt;262144&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#6272a4"&gt;# Persistent setting.&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo &lt;span style="color:#8be9fd;font-style:italic"&gt;echo&lt;/span&gt; &lt;span style="color:#f1fa8c"&gt;&amp;#34;vm.max_map_count=262144&amp;#34;&lt;/span&gt; &amp;gt;&amp;gt; /etc/sysctl.conf
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>Setup NFS Mount to Synology NAS</title><link>https://www.terrenceoconnor.com/post/2015/03/02/setup-nfs-mount-to-synology-nas/</link><pubDate>Mon, 02 Mar 2015 00:00:00 +0000</pubDate><guid>https://www.terrenceoconnor.com/post/2015/03/02/setup-nfs-mount-to-synology-nas/</guid><description>&lt;h2 id="why"&gt;Why&lt;/h2&gt;
&lt;p&gt;We want to be able to auto-mount our NFS share in the event of unepected shutdowns and restarts.&lt;/p&gt;
&lt;h2 id="goal"&gt;Goal&lt;/h2&gt;
&lt;p&gt;Make sure the the NFS share is automounted each time the server restarts.&lt;/p&gt;
&lt;h2 id="enable-nfs-service-on-your-synology-nas"&gt;Enable NFS service on your Synology NAS&lt;/h2&gt;
&lt;p&gt;Before accessing a shared folder with your NFS client, you must change the settings on your Synology NAS to allow sharing via NFS. Follow the steps below:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to Control Panel &amp;gt; File Services &amp;gt; NFS (for DSM 7.0 and above) or SMB/AFP/NFS (for DSM 6.2 and earlier).&lt;/li&gt;
&lt;li&gt;Tick Enable NFS service.&lt;/li&gt;
&lt;li&gt;Click Apply to save the settings.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="assign-nfs-permission-to-shared-folders"&gt;Assign NFS permission to shared folders&lt;/h2&gt;
&lt;p&gt;Before accessing any shared folders with your NFS client, you must first configure the NFS permissions of the shared folder you wish to access. Follow the steps below to change NFS permissions of the shared folders on your Synology NAS:&lt;/p&gt;</description></item></channel></rss>