<?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 David Ondiege on Medium]]></title>
        <description><![CDATA[Stories by David Ondiege on Medium]]></description>
        <link>https://medium.com/@davidondiege?source=rss-130d19063f7e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1-sadUBsPZCdtUIBwqFEIg.jpeg</url>
            <title>Stories by David Ondiege on Medium</title>
            <link>https://medium.com/@davidondiege?source=rss-130d19063f7e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 23:12:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@davidondiege/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[How to install Ubuntu Server 20.04,]]></title>
            <link>https://medium.com/@davidondiege/how-to-install-ubuntu-server-20-04-ce9c8080cfb3?source=rss-130d19063f7e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce9c8080cfb3</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[ubuntu-server]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[network]]></category>
            <category><![CDATA[servers]]></category>
            <dc:creator><![CDATA[David Ondiege]]></dc:creator>
            <pubDate>Thu, 21 Mar 2024 10:50:42 GMT</pubDate>
            <atom:updated>2024-04-02T08:13:49.557Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to install Ubuntu Server 20.04, Assign Static IP, Configure the Network for Remote Accessibility</h3><p>Ubuntu Server is a popular choice for deploying various types of servers due to its stability, security, and extensive package repository. In this guide, we will walk you through the step-by-step process of installing Ubuntu Server, configuring network interfaces for both public and private static IP addresses using Netplan, and making the server accessible over the internet securely with username and password authentication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x8zVFxRC_kG3nGksDT_Nxg.png" /><figcaption>How to install Ubuntu server 20.04 and set static ip</figcaption></figure><p><strong>Part 1: Ubuntu Server 20.04 Installation:</strong></p><p>Prerequisites:</p><ul><li>A computer with a bootable USB drive (minimum 4GB)</li><li>Internet connection for the server</li><li>Downloaded Ubuntu Server ISO file (latest LTS version recommended)</li><li>Basic understanding of networking concepts (public vs. private IP addresses)</li></ul><p>Preparation:</p><ul><li>Download Ubuntu Server ISO: Head over to <a href="https://ubuntu.com/download/server">https://ubuntu.com/download/server</a> and download the latest Long-Term Support (LTS) version of Ubuntu Server.</li><li>Create a Bootable USB Drive: Use a tool like Rufus (<a href="https://rufus.ie/">https://rufus.ie/</a>) to create a bootable USB drive from the downloaded ISO file.</li></ul><p><strong>Installation Process:</strong></p><ol><li><strong>Boot from the USB Drive:</strong> Plug the bootable USB drive into your server and power it on. Choose to boot from the USB drive when prompted during startup.</li><li><strong>Welcome Screen:</strong> Select your preferred language and keyboard layout. Click “Continue” to proceed.</li><li><strong>Installation Type:</strong> Choose “Normal Installation” and click “Continue”.</li><li><strong>Software Updates:</strong> Select “Install updates and other software” if you want the latest packages during installation.</li><li><strong>Installation Destination:</strong> Choose the disk where you want to install Ubuntu Server. Typically, the entire disk will be used. Select “Erase disk and install Ubuntu” and click “Install Now”.</li><li><strong>User Account:</strong> Create a username and a strong password for your server. Re-enter the password for confirmation. Optionally, provide additional details like your full name. Click “Continue”.</li><li><strong>Ready to Install:</strong> Review the installation summary and click “Install” to begin the installation process.</li><li><strong>Restart:</strong> Once the installation finishes, you’ll be prompted to restart the server. Click “Restart Now”.</li></ol><p><strong>Part 2: Network Interface Configuration with Netplan (Setting Static IP):</strong></p><ol><li>After the server boots up, log in with the username and password created during the installation process.</li><li>Identify the network interfaces using the ip addr or ifconfig command.</li><li>Edit the Netplan configuration file located at /etc/netplan/00-installer-config.yaml.</li><li>Define the network configurations for both public and private IP addresses. For example:</li></ol><pre>network:<br>  version: 2<br>  renderer: networkd # Ubuntu Desktop uses NetworkManager<br>  ethernets:<br>    ens160: # Replace ens160 with your network interface name<br>      addresses:<br>        - public_ip_address/30 # Public IP address configuration<br>        - private_ip_address/24 # Private IP address configuration<br>      gateway4: gateway_ip_address<br>      nameservers:<br>        addresses: [8.8.8.8, 8.8.4.4] # Replace with your DNS server IP addresses</pre><p>A /30 network, also known as a point-to-point network, is a subnetting scheme that allows for the allocation of only four IP addresses, with two usable addresses for hosts. These networks are typically used for establishing direct connections between two devices, such as routers or switches. In a /30 network, the subnet mask is 255.255.255.252, allowing for a total of <strong>four IP addresses</strong>, listed as:</p><ol><li>The first address is reserved as the network address (usually the lowest value).</li><li>The second address is assigned to one device (usually the first device or gateway)</li><li>Third address is assigned to the device, server in this case (usually the second device)</li><li>The last address is reserved as the broadcast address. <br>This setup ensures efficient use of IP addresses while facilitating point-to-point communication between devices. Only option 2 and 3 are used for configuration. Since it’s a point to point between two devices each is given an IP</li></ol><p>5. Test the changes by running sudo netplan try, if no errors, apply the changes.</p><p>6. Apply the changes by running sudo netplan apply. Verify if the network configuration is applied correctly by checking the IP addresses: ip addr show. You should see both the public and private IP addresses assigned to your network interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*-2_kPXNvLZlJOQvmyW-AJQ.png" /><figcaption>Interface Static Public and Private Addresses</figcaption></figure><p><strong>Part 3: Making the Server Accessible Over the Internet:</strong></p><ol><li>Ensure that the firewall on the Ubuntu server allows incoming SSH connections. You can allow SSH access by running sudo ufw allow ssh. <strong>Security Considerations: </strong>Disable root login via SSH by uncommenting the commented line:<br>sudo nano/etc/ssh/sshd_config<br> # Set &quot;PermitRootLogin no&quot;<br> sudo systemctl restart ssh</li><li>Verify that SSH is configured to listen on the correct network interface and port ( 22 by default). Check the SSH configuration file (/etc/ssh/sshd_config) and restart the SSH service if necessary.</li><li>If the server is behind a router, configure port forwarding on the router to forward incoming traffic on port `22` (or your custom SSH port) to the private IP address of the server. Log in to your router’s web interface, set up port forwarding for port 22 (SSH) to your server’s internal IP address (e.g., 192.168.1.25)</li><li>To access the server remotely, use a SSH client such as PuTTY (Windows) or Terminal (macOS/Linux). Use the following command:</li></ol><pre>ssh username@public_ip_address<br># or if connected to the LAN, can also do<br>ssh username@private_ip_address</pre><p>Replace `username` with your administrative username and `ip_address` with your server’s public IP address.<br>5. Enter the password when prompted to establish the SSH connection.<br>6. Once connected, you can perform administrative tasks and manage the server remotely.</p><p><strong>Conclusion:</strong><br>By following this comprehensive guide, you can install Ubuntu Server 20.04. Remember to replace placeholders like `ens160`, IP addresses, and usernames with your actual values. This guide should help you get started with Ubuntu Server 20.04 and Netplan configuration. Happy server administration! 🚀🌐</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce9c8080cfb3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>