<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Connect Platform on Medium]]></title>
        <description><![CDATA[Stories by Connect Platform on Medium]]></description>
        <link>https://medium.com/@sonoratek?source=rss-b64852dba849------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*G8-Z_W7uiJSDhbT4</url>
            <title>Stories by Connect Platform on Medium</title>
            <link>https://medium.com/@sonoratek?source=rss-b64852dba849------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 01:40:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sonoratek/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Perfect Nano: Use Your Nano Editor Like a Boss]]></title>
            <link>https://medium.com/@sonoratek/the-perfect-nano-use-your-nano-editor-like-a-boss-8500333b51f3?source=rss-b64852dba849------2</link>
            <guid isPermaLink="false">https://medium.com/p/8500333b51f3</guid>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[administration]]></category>
            <category><![CDATA[nano]]></category>
            <category><![CDATA[shell]]></category>
            <dc:creator><![CDATA[Connect Platform]]></dc:creator>
            <pubDate>Sat, 10 Aug 2024 13:07:04 GMT</pubDate>
            <atom:updated>2024-08-10T13:07:04.649Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wy-bLNxKdSGlJTVOOkvzdA.png" /></figure><p>Nano is a powerful and user-friendly text editor for your shell. Its simplicity and ease of use make it a favorite among developers, system administrators, and anyone who works with text files on the command line. In this guide, we’ll walk you through configuring Nano to fit your needs perfectly. By the end, you’ll have a customized Nano setup that enhances your productivity and makes editing a breeze.</p><h3>Why Customize Nano?</h3><p>While Nano comes with a default configuration that works well for many users, customizing it can greatly improve your efficiency. Tailoring Nano to your preferences allows you to:</p><ul><li><strong>Improve Readability</strong>: Enable features like line numbers and syntax highlighting.</li><li><strong>Enhance Navigation</strong>: Adjust settings for smoother scrolling and more intuitive indentation.</li><li><strong>Organize Backups</strong>: Manage backup files to avoid losing your work.</li></ul><h3>Step 1: Locate Your Nano Configuration File</h3><p>Nano’s configuration file, .nanorc, resides in your home directory (~/.nanorc). If it doesn’t exist, you can create one. This file allows you to set various options to customize Nano’s behavior.</p><p>To edit or create this file, open a terminal and use Nano itself:</p><pre>nano ~/.nanorc</pre><h3>Step 2: Configure Basic Settings</h3><p>Here are some essential settings to include in your .nanorc file:</p><pre>## Enable line numbers<br>set linenumbers<br><br>## Include syntax highlighting for various languages<br>include &quot;/usr/share/nano/*.nanorc&quot;<br><br>## Set tab size to 4 spaces<br>set tabsize 4<br><br>## Enable auto-indentation<br>set autoindent<br><br>## Set text wrapping (or use nowrap if you prefer no wrapping)<br>set nowrap<br><br># Enable backup files<br>set backup<br><br>## Specify backup directory (replace with an absolute path)<br>set backupdir /root/.nano_backup</pre><h4>What&#39;s Inside The Config:</h4><ul><li><strong>Line Numbers (</strong><strong>set linenumbers)</strong>: Display line numbers to make it easier to navigate through large files.</li><li><strong>Syntax Highlighting (</strong><strong>include &quot;/usr/share/nano/*.nanorc&quot;)</strong>: Enhance readability with syntax highlighting for different programming languages.</li><li><strong>Tab Size (</strong><strong>set tabsize 4)</strong>: Configure tab size to match your coding standards.</li><li><strong>Auto-Indentation (</strong><strong>set autoindent)</strong>: Automatically indent new lines, improving code readability.</li><li><strong>Text Wrapping (</strong><strong>set nowrap)</strong>: Choose to wrap text or keep it unwrapped based on your preference.</li><li><strong>Backup Files (</strong><strong>set backup)</strong>: Enable backups to prevent data loss.</li><li><strong>Backup Directory (</strong><strong>set backupdir /root/.nano_backup)</strong>: Specify where backup files are stored. NOTE: run mkdir <strong>set mkdir /root/.nano_backup</strong></li></ul><h3>Step 3: Advanced Configuration (Optional)</h3><p>For those who want to delve deeper, consider these advanced settings:</p><ul><li><strong>Smooth Scrolling</strong>: Nano 6.2 may not support smooth scrolling directly. However, upgrading to a newer version might provide this feature.</li><li><strong>Undo Buffer</strong>: Nano 6.2 does not support configuring undo buffer size directly. For more advanced undo functionality, check for updates or use other editors with built-in undo management.</li></ul><h3>Step 4: Save and Apply Your Configuration</h3><p>After editing your .nanorc file, save your changes and exit Nano by pressing Ctrl + X, then Y to confirm, and Enter to save. Your new settings will take effect the next time you open Nano.</p><h3>Conclusion</h3><p>Customizing Nano can significantly enhance your text editing experience, making it more tailored to your workflow. By enabling useful features like line numbers and syntax highlighting, adjusting settings to your preferences, and managing backups effectively, you can optimize your productivity and reduce errors.</p><p>Feel free to experiment with additional settings and configurations to find what works best for you. Happy editing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8500333b51f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ultimate Zsh Terminal Setup For Ubuntu]]></title>
            <link>https://medium.com/@sonoratek/ultimate-zsh-terminal-setup-for-ubuntu-59ca50196e60?source=rss-b64852dba849------2</link>
            <guid isPermaLink="false">https://medium.com/p/59ca50196e60</guid>
            <category><![CDATA[oh-my-zsh]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[zsh]]></category>
            <category><![CDATA[ubuntu-server]]></category>
            <category><![CDATA[ubuntu-terminal]]></category>
            <dc:creator><![CDATA[Connect Platform]]></dc:creator>
            <pubDate>Tue, 28 May 2024 09:45:19 GMT</pubDate>
            <atom:updated>2024-05-29T13:10:02.230Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Supercharge Your Ubuntu 22.04 LTS Terminal with Zsh and Oh-My-Zsh</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QChxFqAm791zYKRz-d69LQ.jpeg" /></figure><p>Bored with a black and white look of your terminal? In this guide, we’ll install and set up Zsh, Oh-My-Zsh, and a few powerful plugins.</p><p>This article is a step-by-step manual, but if don&#39;t have the time, feel free to scroll down to the bottom of the page for a shell script.</p><h3><strong>Step 1: Install Zsh</strong></h3><p>First, let’s install Zsh:</p><pre>sudo apt update<br>sudo apt install zsh</pre><h3><strong>Step 2: Set Zsh as the Default Shell</strong></h3><p>Change your default shell to Zsh:</p><pre>chsh -s $(which zsh)</pre><p>Log out and log back in, or restart your terminal to apply the change.</p><h3><strong>Step 3: Install Oh-My-Zsh</strong></h3><p>Oh-My-Zsh is a delightful open-source framework for managing your Zsh configuration. Install it with the following command:</p><pre>sh -c &quot;$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)&quot;</pre><h3><strong>Step 4: Customize Your Zsh Configuration</strong></h3><p>Open your .zshrc file in a text editor:</p><pre>nano ~/.zshrc</pre><p>Set the theme to agnoster and add some useful plugins:</p><pre># Set the theme<br>ZSH_THEME=&quot;agnoster&quot;</pre><pre># Add plugins<br>plugins=(git zsh-autosuggestions zsh-syntax-highlighting z colored-man-pages fzf)</pre><pre># Set FZF_BASE directory<br>export FZF_BASE=/usr/share/fzf</pre><pre># Source Oh My Zsh<br>source $ZSH/oh-my-zsh.sh</pre><h3><strong>Step 5: Install Powerline Fonts</strong></h3><p>To ensure your terminal can display the powerline symbols correctly, install the Powerline fonts:</p><pre>sudo apt install fonts-powerline</pre><h3><strong>Step 6: Set a Powerline-Compatible Font in Your Terminal</strong></h3><p>Open your terminal emulator’s settings and change the font to one of the Powerline fonts, such as DejaVu Sans Mono for Powerline.</p><h3><strong>Step 7: Enjoy Your New Terminal</strong></h3><p>Source your .zshrc file to apply the changes:</p><pre>source ~/.zshrc</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lwtFBCN1WCcwNNAOkG9OGA.jpeg" /><figcaption>Doing everything step-by-step is a fun way to learn new things!</figcaption></figure><p><strong>We hope you enjoyed tweaking your console step-by-step, just like we did when we were trying to figure it out. But </strong><a href="https://sonoratek.com/"><strong>SonoraTek Technologies</strong></a><strong> is an automation integration company. So, here is our script, which will beautify and power-up your console in a matter of seconds:</strong></p><p>You can download and run this script from the <a href="https://github.com/connectplatform">Connect Platform GitHub repository</a> with this one-liner:</p><pre>curl -O https://raw.githubusercontent.com/connectplatform/linux-scripts/main/setup-zsh.sh &amp;&amp; chmod +x setup-zsh.sh &amp;&amp; setup-zsh.sh</pre><p>This script will handle the installation and configuration of Zsh, Oh-My-Zsh, and the plugins, so you can quickly get started with your enhanced terminal setup.</p><p>Now you have a beautiful, functional terminal with Zsh and Oh-My-Zsh!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59ca50196e60" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Effortlessly Migrate Your WordPress Site With This Script]]></title>
            <link>https://medium.com/@sonoratek/effortlessly-migrate-your-wordpress-site-with-this-script-f4c4bc28db51?source=rss-b64852dba849------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4c4bc28db51</guid>
            <category><![CDATA[shell-script]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[system-administration]]></category>
            <category><![CDATA[wordpress-web-development]]></category>
            <category><![CDATA[wordpress-admin]]></category>
            <dc:creator><![CDATA[Connect Platform]]></dc:creator>
            <pubDate>Sat, 25 Nov 2023 08:52:31 GMT</pubDate>
            <atom:updated>2023-11-25T08:52:31.028Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*g6akSA_h-b5ScL4kg-yOZg.jpeg" /></figure><p>Transferring a WordPress site to a new host is typically fraught with several manual steps that can be time-consuming and error-prone. However, the newly released site-transfer.sh script from the <a href="https://github.com/connectplatform/wordpress-tools">connectplatform</a> on GitHub is changing the game. It&#39;s a simple yet powerful tool that automates the migration process, saving developers and website administrators countless hours of meticulous work.</p><h3>Streamlined Migration in Two Easy Steps</h3><p>The site-transfer.sh script condenses the migration process into two primary steps — backup and restore. This simplification means you can migrate a WordPress site with the assurance that all your data, themes, plugins, and configurations are replicated accurately on the new host.</p><h3>Step 1: Backup Your Site</h3><p>Run the script on your source server, and it meticulously backs up your WordPress directory and database, compressing them into a single file.</p><pre>wget https://github.com/connectplatform/wordpress-tools/raw/main/site-transfer.sh<br>chmod +x site-transfer.sh<br>./site-transfer.sh</pre><p>Select option 1 when prompted to create a complete backup of your site, neatly packaged into a tarball within your WordPress root directory.</p><h3>Step 2: Restore on the New Host</h3><p>Once the backup is complete, the script is ready to work its magic on the destination server. Transfer the backup file to the new host, run the script, and choose option 2 to restore your site.</p><pre>wget https://github.com/connectplatform/wordpress-tools/raw/main/site-transfer.sh<br>chmod +x site-transfer.sh<br>./site-transfer.sh</pre><h3>What’s Under the Hood?</h3><p>The script is not just a blind copier. It intelligently parses your wp-config.php for database credentials, exports your database with mysqldump, and compresses your website&#39;s files alongside the database dump.</p><p>Upon restoring, it takes equal care to create a new database, assign the necessary privileges, and import your data flawlessly. It handles the nitty-gritty details, ensuring that the restored site on the new host functions just like the original.</p><h3>The Perfect Solution for Developers and Administrators</h3><p>Whether you’re a developer managing multiple client sites or a website administrator looking to change hosting services, the site-transfer.sh script is designed to provide a hassle-free experience.</p><p>You no longer need to worry about forgetting crucial files or database inconsistencies. The script’s robust error checking and clear instructions mean you’ll be guided through the process with ease.</p><h3>Open-Source and Community Driven</h3><p>This script is part of a larger collection of WordPress tools available on GitHub, and it’s open-source. Contributions to enhance functionality or improve the script are welcome. If you’re interested in contributing, fork the repository, make your changes, and submit a pull request.</p><p>As a community-driven project, feedback is valuable. If you use the script and have suggestions, don’t hesitate to reach out through GitHub issues.</p><h3>Get Started</h3><p>Ready to make your next WordPress migration a breeze? Head over to the <a href="https://github.com/connectplatform/wordpress-tools">connectplatform WordPress tools</a> repository, and download the site-transfer.sh script today.</p><p>Don’t let the daunting task of website migration slow you down any longer. Embrace the power of automation and spend your valuable time on what matters most — creating and managing content that resonates with your audience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4c4bc28db51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cleaning Up and Managing Linux Journal Logs]]></title>
            <link>https://medium.com/@sonoratek/cleaning-up-and-managing-linux-journal-logs-bbd7415eb38f?source=rss-b64852dba849------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbd7415eb38f</guid>
            <category><![CDATA[logs]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[cleanup-guide]]></category>
            <category><![CDATA[system-administration]]></category>
            <category><![CDATA[optimization]]></category>
            <dc:creator><![CDATA[Connect Platform]]></dc:creator>
            <pubDate>Wed, 25 Oct 2023 22:33:13 GMT</pubDate>
            <atom:updated>2023-11-07T07:01:39.617Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*2lByBiX3c49zI43kxarXrg.jpeg" /></figure><p>In the world of Linux system administration, efficient log management is crucial to maintaining system health and performance. One aspect of this is managing the logs generated by the systemd package, which can sometimes consume significant disk space. This guide will walk you through the process of cleaning up logs in the /var/log/journal directory and implementing preventive measures to avoid future clutter.</p><h3><strong>Identifying Log Usage</strong></h3><p>Before initiating the cleanup process, it’s essential to identify the space occupied by the journal logs. The following command provides an overview:</p><pre>journalctl --disk-usage</pre><p>This command will display the total disk space occupied by archived and active journals. Usually you will see anywhere from 900M to 4GB before cleanup.</p><h3><strong>Cleaning Up Logs</strong></h3><p>To reclaim disk space, use the journalctl command with the --vacuum-size option, specifying the desired target size. For instance:</p><pre>journalctl --vacuum-size=50M</pre><p>This command cleans up logs and limits the total size to 50MB. After the cleanup, verify the changes with:</p><pre>journalctl --verify</pre><h3><strong>Adjusting Configuration for Preventive Measures</strong></h3><p>To prevent the /var/log/journal directory from bloating again, consider adjusting systemd-journald configuration settings. Edit the configuration file:</p><pre>nano /etc/systemd/journald.conf</pre><p>Within the file, add or modify the following lines:</p><pre>SystemMaxUse=50M<br>SystemMaxFileSize=12M</pre><p>These settings limit the total disk space used by journal files to 50MB and the maximum size of individual files to 12MB. After making these changes, restart systemd-journald for the configurations to take effect:</p><pre>systemctl restart systemd-journald</pre><h3><strong>Verification and Result</strong></h3><p>Finally, confirm the impact of the changes with:</p><pre>journalctl --disk-usage</pre><p>This command will display the updated disk space usage. If everything went well, the space occupied by logs will significantly reduce to 50M, showcasing the effectiveness of the cleanup process and preventive measures.</p><h3><strong>Conclusion</strong></h3><p>Regular maintenance of Linux journal logs is a vital aspect of system administration. By understanding how to clean up logs using the journalctl command and implementing preventive measures through systemd-journald configuration, you can ensure efficient disk space utilization and maintain a healthy system.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbd7415eb38f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Effortless Data Migration: Moving Your AWS S3 Data to Ubuntu]]></title>
            <link>https://medium.com/@sonoratek/effortless-data-migration-moving-your-aws-s3-data-to-ubuntu-f1048afeeefc?source=rss-b64852dba849------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1048afeeefc</guid>
            <category><![CDATA[ubuntu-server]]></category>
            <category><![CDATA[file-storage]]></category>
            <category><![CDATA[amazon-s3]]></category>
            <category><![CDATA[backup-and-sync]]></category>
            <category><![CDATA[amazon-aws]]></category>
            <dc:creator><![CDATA[Connect Platform]]></dc:creator>
            <pubDate>Sun, 22 Oct 2023 20:18:29 GMT</pubDate>
            <atom:updated>2023-10-22T20:18:29.388Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*CRiidauKp57SAFSIwaad1w.jpeg" /></figure><p>In today’s dynamic tech landscape, the need for efficient data management and backups is paramount. For Ubuntu server users looking to migrate their data from Amazon S3, a smooth and well-planned process is crucial. This article will guide you through the steps to seamlessly move your AWS S3 data to your Ubuntu server, empowering you with control and flexibility over your valuable digital assets.</p><p><strong>Prerequisites:</strong></p><p>Before embarking on this journey, ensure you have the following in place:</p><ol><li>An Ubuntu server set up and running.</li><li>AWS CLI installed and configured on your Ubuntu server.</li><li>AWS S3 buckets with the data you intend to migrate.</li></ol><h3><strong>Step 1: Verify AWS CLI Configuration</strong></h3><p>Double-check your AWS CLI configuration to guarantee accurate credentials. Run the following commands to display and confirm your AWS credentials:</p><pre>cat ~/.aws/credentials<br>aws configure list</pre><h3><strong>Step 2: Diagnosing Access Issues</strong></h3><p>If you encounter an “InvalidAccessKeyId” error, troubleshoot by:</p><ul><li>Verifying AWS CLI version: aws --version</li><li>Testing basic AWS CLI commands: aws s3 ls</li><li>Ensuring IAM permissions include s3:ListAllMyBuckets for the access key.</li></ul><h3><strong>Step 3: Scripting the Migration</strong></h3><p>Create a Bash script to automate the migration process. Here’s a sample script:</p><pre>#!/bin/bash<br><br>LOCAL_DIR=&quot;/path/to/local/directory&quot;<br><br>echo &quot;Syncing S3 contents to $LOCAL_DIR&quot;<br>echo &quot;Getting bucket names&quot;<br><br>for bucket in $(aws s3api list-buckets --query &#39;Buckets[*].Name&#39; --output text); do<br>    echo &quot;Enumerating files in $bucket...&quot;<br>    file_count=$(aws s3 ls &quot;s3://$bucket&quot; --recursive | wc -l)<br>    echo &quot;Retrieving $file_count files from $bucket...&quot;<br>    aws s3 sync &quot;s3://$bucket&quot; &quot;$LOCAL_DIR/$bucket&quot;<br>    echo &quot;Copied all files in $bucket&quot;<br>done<br><br>echo &quot;All buckets synced successfully.&quot;</pre><p>This script lists all S3 buckets, enumerates files in each, and syncs them to a specified local directory on your Ubuntu server.</p><h3><strong>Conclusion:</strong></h3><p>By following these steps and utilizing the provided script, you can seamlessly migrate your AWS S3 data to your Ubuntu server. This process not only facilitates local backups but also positions you to explore alternative, cost-effective file hosting solutions tailored to your specific needs. Take control of your data and harness the power of Ubuntu for a robust and efficient data management strategy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1048afeeefc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Effortless Ubuntu Server Maintenance: Enable Automatic Updates in Just 5 Minutes]]></title>
            <link>https://medium.com/@sonoratek/effortless-ubuntu-server-maintenance-enable-automatic-updates-in-just-5-minutes-e53c0eadd9a6?source=rss-b64852dba849------2</link>
            <guid isPermaLink="false">https://medium.com/p/e53c0eadd9a6</guid>
            <category><![CDATA[ubuntu-22-04]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[ubuntu-server]]></category>
            <category><![CDATA[ubuntu-20-04]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[Connect Platform]]></dc:creator>
            <pubDate>Sun, 22 Oct 2023 20:03:54 GMT</pubDate>
            <atom:updated>2023-10-22T20:03:54.663Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Empower Your Ubuntu Server for Seamless, Secure, and Up-to-Date Operations</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*Q8KDpWVFq0ixGO2PIrbGNw.jpeg" /></figure><p>In the fast-paced world of server management, ensuring your Ubuntu server is consistently up-to-date is paramount for optimal performance, security, and stability. In this guide, we’ll walk you through the process of enabling automatic updates on your Ubuntu server in just 5 minutes. Follow these straightforward steps to effortlessly maintain your server without compromising control.</p><h3>Step 1: Installing Essential Tools</h3><p>The first step is to ensure that the necessary tools are installed on your Ubuntu server. Open a terminal and run:</p><pre>sudo apt update<br>sudo apt install unattended-upgrades</pre><h3>Step 2: Configuring Automatic Updates</h3><p>Now, let’s configure the automatic update settings. Open the configuration file for unattended-upgrades:</p><pre>sudo nano /etc/apt/apt.conf.d/20auto-upgrades</pre><p>Ensure that the file includes the following lines:</p><pre>APT::Periodic::Update-Package-Lists &quot;1&quot;;<br>APT::Periodic::Download-Upgradeable-Packages &quot;1&quot;;<br>APT::Periodic::AutocleanInterval &quot;7&quot;;<br>APT::Periodic::Unattended-Upgrade &quot;1&quot;;</pre><p>Here’s a quick breakdown:</p><ul><li>Update-Package-Lists &quot;1&quot;;: Update the package lists daily.</li><li>Download-Upgradeable-Packages &quot;1&quot;;: Download upgradeable packages.</li><li>AutocleanInterval &quot;7&quot;;: Autoclean unused packages every 7 days.</li><li>Unattended-Upgrade &quot;1&quot;;: Enable unattended upgrades.</li></ul><p>Save the changes and exit the editor.</p><h3>Step 3: Additional Configuration</h3><p>For added control, you may want to configure other parameters. Open the following file:</p><pre>sudo nano /etc/apt/apt.conf.d/50unattended-upgrades</pre><p>This file allows you to specify which packages should be automatically upgraded. Adjust the settings based on your preferences.</p><h3>Step 4: Verification</h3><p>To verify your configuration, run:</p><pre>sudo unattended-upgrades --dry-run --debug</pre><p>This command simulates an upgrade run and checks for any potential issues.</p><h3>Step 5: Automatic Cleanup</h3><p>If you want to enable automatic cleanup of old packages, run:</p><pre>sudo nano /etc/apt/apt.conf.d/10periodic</pre><p>Ensure that the file includes:</p><pre>APT::Periodic::AutocleanInterval &quot;7&quot;;<br>APT::Periodic::AutoremoveInterval &quot;7&quot;;</pre><p>This will autoclean and autoremove unused packages every 7 days.</p><p>Congratulations! You’ve successfully configured your Ubuntu server for automatic updates. Enjoy the peace of mind that comes with knowing your server is always up-to-date without sacrificing control. Stay tuned for more tips on optimizing your server for peak performance!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e53c0eadd9a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best SSD Settings and Utilities for Ubuntu Server]]></title>
            <link>https://medium.com/@sonoratek/best-ssd-settings-and-utilities-for-ubuntu-server-8a0d3a1aa058?source=rss-b64852dba849------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a0d3a1aa058</guid>
            <category><![CDATA[ssd]]></category>
            <category><![CDATA[ubuntu-server]]></category>
            <category><![CDATA[ubuntu-20-04]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[ubuntu-22-04-lts]]></category>
            <dc:creator><![CDATA[Connect Platform]]></dc:creator>
            <pubDate>Sun, 22 Oct 2023 19:32:12 GMT</pubDate>
            <atom:updated>2023-10-22T19:32:12.605Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Ubuntu Server SSD Trim and Optimization settings with SMART monitoring tools and email alerts." src="https://cdn-images-1.medium.com/max/988/1*5uLMr5gi9b2yS1jDIC6zQg.jpeg" /></figure><p>Are you harnessing the full potential of your SSD on your Ubuntu Server? In this guide, we’ll explore the best settings and utilities to optimize SSD performance, enhance longevity, and ensure you’re promptly notified of any potential issues.</p><h3>1. <strong>Choosing the Right I/O Scheduler</strong></h3><p>The default I/O scheduler for SSDs in Ubuntu is typically set to “mq-deadline.” This scheduler works well for most scenarios, but you might experiment with alternatives like “noop” or “deadline” to find the best fit for your workload. To check and change the scheduler, use:</p><pre>cat /sys/block/sdX/queue/scheduler<br>echo &quot;noop&quot; | sudo tee /sys/block/sdX/queue/scheduler</pre><p>Replace sdX with your SSD device identifier.</p><h3>2. <strong>Optimizing Mount Options</strong></h3><p>When mounting your SSD, consider adjusting mount options to enhance performance and longevity. For example, use the “discard” option to enable TRIM support, which helps maintain optimal performance over time. Update your /etc/fstab accordingly:</p><pre>/dev/sdX /mnt/ssd ext4 discard,defaults 0 0</pre><p>Replace sdX and /mnt/ssd with your SSD device and mount point. For root partition try this:</p><pre>/dev/mapper/ubuntu--vg-root / ext4 errors=remount-ro,discard 0 1</pre><p>Replace /dev/mapper/ubuntu--vg--root with your root partition name.</p><h3>3. <strong>Monitoring SSD Health with SMART</strong></h3><p>SMART (Self-Monitoring, Analysis and Reporting Technology) is a vital tool for predicting potential SSD failures. Install smartmontools and configure it to send email alerts on critical events. First, install the tools:</p><pre>sudo apt-get update<br>sudo apt-get install smartmontools</pre><p>Edit the /etc/smartd.conf file and configure it to use msmtp for email notifications:</p><pre>/dev/sdX -a -d sat -n standby,0 -o on -S on -m &quot;msmtp -a your-email&quot;</pre><p>Replace sdX with your SSD device identifier.</p><p>4. <strong>Using </strong><strong>msmtp for Email Notifications</strong></p><p>Install msmtp to enable email notifications for SMART events. Configure it with your email and SMTP server details. Create the ~/.msmtprc file:</p><pre>defaults<br>auth           on<br>tls            on<br>tls_starttls   on<br>tls_trust_file /etc/ssl/certs/ca-certificates.crt<br><br>account        your-email<br>host           your.smtp.server.com<br>port           587<br>from           your.email@example.com<br>user           your.email@example.com<br>password       your-email-password<br><br>account default : your-email</pre><p>Remember to secure the configuration file:</p><pre>chmod 600 ~/.msmtprc</pre><h3>5. <strong>Testing Email Notifications</strong></h3><p>Before relying on email notifications for critical events, test the setup using:</p><pre>echo -e &quot;Subject: Test\n\nThis is a test email.&quot; | msmtp -a your-email recipient@example.com</pre><p>Replace your-email and recipient@example.com with your account name and recipient email.</p><h3><strong>Conclusion</strong></h3><p>By implementing these SSD settings and utilities on your Ubuntu Server, you’re not just optimizing performance but also proactively monitoring and preventing potential failures. Your SSD will thank you with improved lifespan and consistent reliability. Enhance your server’s capabilities today with these best practices for SSD management.</p><p>Remember, SSDs are reliable, but being proactive is the key to maintaining a robust server infrastructure. Happy optimizing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a0d3a1aa058" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>