<?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 VISHAL DHANURE on Medium]]></title>
        <description><![CDATA[Stories by VISHAL DHANURE on Medium]]></description>
        <link>https://medium.com/@vishald41234?source=rss-1d3bc2c8325b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Re5ByylNycFCMoZYpLS_-A.jpeg</url>
            <title>Stories by VISHAL DHANURE on Medium</title>
            <link>https://medium.com/@vishald41234?source=rss-1d3bc2c8325b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 15:23:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vishald41234/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[Install a LAMP Web Server on Amazon Linux 2]]></title>
            <link>https://medium.com/@vishald41234/install-a-lamp-web-server-on-amazon-linux-2-f067084c4496?source=rss-1d3bc2c8325b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f067084c4496</guid>
            <category><![CDATA[lamp-serevr]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[aws-ec2]]></category>
            <category><![CDATA[ec2-instance]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[VISHAL DHANURE]]></dc:creator>
            <pubDate>Wed, 22 Jul 2020 18:29:25 GMT</pubDate>
            <atom:updated>2020-07-22T18:29:25.142Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ssfs6Tg-RRQG3LxP_QWbBA.jpeg" /><figcaption>Setup Lamp server</figcaption></figure><p><strong>Complete this tutorial using automation</strong></p><p>To complete this tutorial using AWS Systems Manager Automation instead of the following tasks, run the <a href="https://console.aws.amazon.com/systems-manager/automation/execute/AWSDocs-InstallALAMPServer-AL2">AWSDocs-InstallALAMPServer-AL2</a> Automation document.</p><p><strong>Tasks</strong></p><ul><li><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2.html#prepare-lamp-server">Step 1: Prepare the LAMP Server</a></li><li><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2.html#test-lamp-server">Step 2: Test Your LAMP Server</a></li><li><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2.html#secure-mariadb-lamp-server">Step 3: Secure the Database Server</a></li><li><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2.html#install-phpmyadmin-lamp-server">Step 4: (Optional) Install phpMyAdmin</a></li></ul><h3>Step 1: Prepare the LAMP Server</h3><p>This tutorial assumes that you have already launched a new instance using Amazon Linux 2, with a public DNS name that is reachable from the internet. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html#ec2-launch-instance">Step 1: Launch an instance</a>. You must also have configured your security group to allow SSH (port 22), HTTP (port 80), and HTTPS (port 443) connections</p><ul><li>note : The following procedure installs the latest PHP version available on Amazon Linux 2, currently PHP 7.2. If you plan to use PHP applications other than those described in this tutorial, you should check their compatibility with PHP 7.2</li><li><strong>To prepare the LAMP server</strong></li></ul><ol><li><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html#ec2-connect-to-instance-linux">Connect to your instance</a>.</li><li>To ensure that all of your software packages are up to date, perform a quick software update on your instance. This process may take a few minutes, but it is important to make sure that you have the latest security updates and bug fixes.</li><li>The -y option installs the updates without asking for confirmation. If you would like to examine the updates before installing, you can omit this option.</li></ol><p>[ec2-user ~]$ <strong>sudo yum update -y</strong></p><p>4. Install the lamp-mariadb10.2-php7.2 and php7.2 Amazon Linux Extras repositories to get the latest versions of the LAMP MariaDB and PHP packages for Amazon Linux 2.</p><p>[ec2-user ~]$ <strong>sudo amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2</strong></p><p>5. Now that your instance is current, you can install the Apache web server, MariaDB, and PHP software packages.</p><p>Use the <strong>yum install</strong> command to install multiple software packages and all related dependencies at the same time.</p><p>[ec2-user ~]$ <strong>sudo yum install -y httpd mariadb-server</strong></p><p>Note : You can view the current versions of these packages with the following command:</p><pre><strong>yum info </strong><em>package_name </em></pre><p>5. Start the Apache web server.</p><p>[ec2-user ~]$ <strong>sudo systemctl start httpd</strong></p><p>6. Use the <strong>systemctl</strong> command to configure the Apache web server to start at each system boot.</p><p>[ec2-user ~]$ <strong>sudo systemctl enable httpd</strong></p><p>7. You can verify that <strong>httpd</strong> is on by running the following command:</p><p>[ec2-user ~]$ <strong>sudo systemctl is-enabled httpd</strong></p><p>Add a security rule to allow inbound HTTP (port 80) connections to your instance if you have not already done so. By default, a <strong>launch-wizard-</strong><em>N</em> security group was set up for your instance during initialization. This group contains a single rule to allow SSH connections.</p><ol><li>Open the Amazon EC2 console at <a href="https://console.aws.amazon.com/ec2/">https://console.aws.amazon.com/ec2/</a>.</li><li>Choose <strong>Instances</strong> and select your instance.</li><li>Under <strong>Security groups</strong>, choose <strong>view inbound rules</strong>.</li><li>You should see the following list of rules in your default security group:</li></ol><pre>Security Groups associated with i-1234567890abcdef0 Ports     Protocol     Source     launch-wizard-<em>N</em> 22        tcp          0.0.0.0/0          ✔</pre><p>Using the procedures in <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/working-with-security-groups.html#adding-security-group-rule">Adding rules to a security group</a>, add a new inbound security rule with the following values:</p><ul><li><strong>Type</strong>: HTTP</li><li><strong>Protocol</strong>: TCP</li><li><strong>Port Range</strong>: 80</li><li><strong>Source</strong>: Custom</li></ul><p>8. Test your web server. In a web browser, type the public DNS address (or the public IP address) of your instance. If there is no content in /var/www/html, you should see the Apache test page. You can get the public DNS for your instance using the Amazon EC2 console (check the <strong>Public DNS</strong> column; if this column is hidden, choose <strong>Show/Hide Columns</strong> (the gear-shaped icon) and choose <strong>Public DNS</strong>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*pWBCu6LlBFPvNjuf8V36XA.png" /><figcaption>testing page</figcaption></figure><p>Apache <strong>httpd</strong> serves files that are kept in a directory called the Apache document root. The Amazon Linux Apache document root is /var/www/html, which by default is owned by root.</p><p>To allow the ec2-user account to manipulate files in this directory, you must modify the ownership and permissions of the directory. There are many ways to accomplish this task. In this tutorial, you add ec2-user to the apache group, to give the apache group ownership of the /var/www directory and assign write permissions to the group</p><p><strong>To set file permissions</strong></p><ol><li>Add your user (in this case, ec2-user) to the apache group.</li></ol><pre>[ec2-user ~]$ <strong>sudo usermod -a -G apache </strong><em>ec2-user</em></pre><p>2. Log out and then log back in again to pick up the new group, and then verify your membership.</p><p>a. Log out (use the <strong>exit</strong> command or close the terminal window)</p><pre>[ec2-user ~]$ <strong>exit</strong></pre><p>b. To verify your membership in the apache group, reconnect to your instance, and then run the following command:</p><p>[ec2-user ~]$ <strong>groups</strong> ec2-user</p><p>adm wheel apache systemd-journal</p><p>3. Change the group ownership of /var/www and its contents to the apache group.</p><ul><li>[ec2-user ~]$ <strong>sudo chown -R ec2-user:apache /var/www</strong></li></ul><p>4. To add group write permissions and to set the group ID on future subdirectories, change the directory permissions of /var/www and its subdirectories.</p><ul><li>[ec2-user ~]$ <strong>sudo chmod 2775 /var/www &amp;&amp; find /var/www -type d -exec sudo chmod 2775 {} \;</strong></li></ul><p>5. To add group write permissions, recursively change the file permissions of /var/www and its subdirectories:</p><ul><li>[ec2-user ~]$ <strong>find /var/www -type f -exec sudo chmod 0664 {} \;</strong></li></ul><p>Now, ec2-user (and any future members of the apache group) can add, delete, and edit files in the Apache document root, enabling you to add content, such as a static website or a PHP application.</p><h3>Step 2. Test your Lamp server</h3><p>If your server is installed and running, and your file permissions are set correctly, your ec2-user account should be able to create a PHP file in the /var/www/html directory that is available from the internet.</p><p><strong>To test your LAMP server :</strong></p><ol><li>Create a PHP file in the Apache document root.</li></ol><pre>[ec2-user ~]$ <strong>echo &quot;&lt;?php phpinfo(); ?&gt;&quot; &gt; /var/www/html/phpinfo.php</strong></pre><p>If you get a “Permission denied” error when trying to run this command, try logging out and logging back in again to pick up the proper group permissions that you configured in <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2.html#setting-file-permissions-2">To set file permissions</a>.</p><p>2. In a web browser, type the URL of the file that you just created. This URL is the public DNS address of your instance followed by a forward slash and the file name. For example:</p><pre>http://<em>my.public.dns.amazonaws.com</em>/phpinfo.php</pre><p>You should see the PHP information page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*meKwPmjL8MVr8VhZpvsVEw.png" /></figure><p>[NOTE ] If you do not see this page, verify that th/var/www/html/phpinfo.php file was created properly in the previous step. You can also verify that all of the required packages were installed with the following command.</p><pre>[ec2-user ~]$ <strong>sudo yum list installed httpd mariadb-server php-mysqlnd</strong></pre><p>If any of the required packages are not listed in your output, install them with the <strong>sudo yum install </strong><em>package</em> command. Also verify that the php7.2 and lamp-mariadb10.2-php7.2 extras are enabled in the output of the <strong>amazon-linux-extras</strong> command.</p><p>3. Delete the phpinfo.php file. Although this can be useful information, it should not be broadcast to the internet for security reasons.</p><ul><li>[ec2-user ~]$ <strong>rm /var/www/html/phpinfo.php</strong></li></ul><p>4.You should now have a fully functional LAMP web server. If you add content to the Apache document root at /var/www/html, you should be able to view that content at the public DNS address for your instance.</p><h3>Step3: Secure the Database Server</h3><p>The default installation of the MariaDB server has several features that are great for testing and development, but they should be disabled or removed for production servers. The <strong>mysql_secure_installation</strong> command walks you through the process of setting a root password and removing the insecure features from your installation. Even if you are not planning on using the MariaDB server, we recommend performing this procedure.</p><p><strong>To secure the MariaDB server :</strong></p><ol><li>Start the MariaDB server.</li></ol><p>[ec2-user ~]$ <strong>sudo systemctl start mariadb</strong></p><p>2. Run <strong>mysql_secure_installation</strong></p><pre>[ec2-user ~]$ <strong>sudo mysql_secure_installation</strong></pre><p>a. When prompted, type a password for the root account.</p><ol><li>Type the current root password. By default, the root account does not have a password set. Press Enter.</li><li>Type <strong>Y</strong> to set a password, and type a secure password twice. For more information about creating a secure password, see <a href="https://identitysafe.norton.com/password-generator/">https://identitysafe.norton.com/password-generator/</a>. Make sure to store this password in a safe place.</li></ol><p>[NOTE]</p><p>Setting a root password for MariaDB is only the most basic measure for securing your database. When you build or install a database-driven application, you typically create a database service user for that application and avoid using the root account for anything but database administration.</p><p>b.Type <strong>Y</strong> to remove the anonymous user accounts.</p><p>c. Type <strong>Y</strong> to disable the remote root login.</p><p>d. Type <strong>Y</strong> to remove the test database.</p><p>e. Type <strong>Y</strong> to reload the privilege tables and save your changes.</p><p>3. (Optional) If you do not plan to use the MariaDB server right away, stop it. You can restart it when you need it again.</p><ul><li>[ec2-user ~]$ <strong>sudo systemctl stop mariadb</strong></li></ul><p>4. (Optional) If you want the MariaDB server to start at every boot, type the following command.</p><ul><li>[ec2-user ~]$ <strong>sudo systemctl enable mariadb</strong></li></ul><h3>Step 4: Install phpMyAdmin</h3><p><a href="https://www.phpmyadmin.net/">phpMyAdmin</a> is a web-based database management tool that you can use to view and edit the MySQL databases on your EC2 instance. Follow the steps below to install and configure phpMyAdmin on your Amazon Linux instance.</p><p><strong>To install phpMyAdmin</strong></p><ol><li>Install the required dependencies.</li></ol><ul><li>[ec2-user ~]$ <strong>sudo yum install php-mbstring -y</strong></li></ul><p>2. Restart Apache.</p><ul><li>[ec2-user ~]$ <strong>sudo systemctl restart httpd</strong></li></ul><p>3. Restart php-fpm.</p><ul><li>[ec2-user ~]$ <strong>sudo systemctl restart php-fpm</strong></li></ul><p>4. Navigate to the Apache document root at /var/www/html.</p><ul><li>[ec2-user ~]$ <strong>cd /var/www/html</strong></li></ul><p>5. Select a source package for the latest phpMyAdmin release from <a href="https://www.phpmyadmin.net/downloads">https://www.phpmyadmin.net/downloads</a>. To download the file directly to your instance, copy the link and paste it into a <strong>wget</strong> command, as in this example:</p><ul><li>[ec2-user html]$ <strong>wget </strong><a href="https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz"><em>https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz</em></a></li></ul><p>6.Create a phpMyAdmin folder and extract the package into it with the following command.</p><ul><li>[ec2-user html]$ <strong>mkdir phpMyAdmin &amp;&amp; tar -xvzf </strong><em>phpMyAdmin-latest-all-languages.tar.gz</em><strong> -C phpMyAdmin --strip-components</strong></li></ul><p>7. Delete the <em>phpMyAdmin-latest-all-languages.tar.gz</em> tarball.</p><ul><li>[ec2-user html]$ <strong>rm </strong><em>phpMyAdmin-latest-all-languages.tar.gz</em></li></ul><p>8.(Optional) If the MySQL server is not running, start it now.</p><ul><li>[ec2-user ~]$ <strong>sudo systemctl start mariadb</strong></li></ul><p>9.In a web browser, type the URL of your phpMyAdmin installation. This URL is the public DNS address (or the public IP address) of your instance followed by a forward slash and the name of your installation directory. For example:</p><ul><li><a href="http://my.public.dns.amazonaws.com/phpMyAdmin">http://</a><a href="http://my.public.dns.amazonaws.com/phpMyAdmin"><em>my.public.dns.amazonaws.com</em></a><a href="http://my.public.dns.amazonaws.com/phpMyAdmin">/phpMyAdmin</a></li></ul><ol><li>You should see the phpMyAdmin login page</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*wvyjPOmh2WPLqUoBPcoP5g.png" /></figure><p>10 . Log in to your phpMyAdmin installation with the root user name and the MySQL root password you created earlier.</p><p>Created by Vishal Dhanure</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f067084c4496" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why is Cloud Computing Important ?]]></title>
            <link>https://medium.com/@vishald41234/why-is-cloud-computing-important-f5002e0a72ee?source=rss-1d3bc2c8325b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5002e0a72ee</guid>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[cloud-service-models]]></category>
            <category><![CDATA[azure-devops]]></category>
            <category><![CDATA[cloud-storage]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[VISHAL DHANURE]]></dc:creator>
            <pubDate>Fri, 19 Jun 2020 08:02:41 GMT</pubDate>
            <atom:updated>2020-06-19T08:02:41.316Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why is Cloud Computing Important ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*31SNRzBJ5Lgy3LmpNtxcdw.jpeg" /><figcaption>Cloud Computing Basic introduction</figcaption></figure><p>Cloud computing has become the ideal way to deliver enterprise appliction and the preferred solution for companies extending their infrastructure or lanching new innvoation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*TyiFRZJBDNBqjYrP" /><figcaption>Cloud Computing</figcaption></figure><p>The most common refers to running workloads remotely over the internet in commercial provider’s data centre , also known as the “ Public Cloud “ . Popular public cloud offerings-such as Amazon Web Service (AWS) and Microsoft Azure-all exemplify this familiar notion of cloud computing . Today most Businesses take { Hybird Cloud } approach .</p><h3>Cloud Computing : Understanding The Cloud</h3><p>Cloud computing is the hottest purpose built architecture created to support computer users. The cloud addresses three main areas of operation:</p><ul><li>SaaS (software-as-a-service)</li><li>PaaS (platform-as-a-service)</li><li>Iaas (infrastructure as a service)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FAhFmpiIupJa2taWV-4QNw.png" /><figcaption>Cloud Modules</figcaption></figure><p>By delivering this computing, storage and applications as a service, not a product, the cloud offers both a cost and business advantage. The cloud moves all these services off-site to either a contractor, or a centralized facility. Centralizing the data allows the cost to be shared amongst all the users. The cloud accomplishes what IT is always seeking to; increase computing capabilities, without having to provide a new infrastructure. The possible uses of cloud computing are exponential. Users interface with the cloud through their web browser, eliminating the need for installing numerous software applications.</p><h3>SIMPLIFIED DEPLOYMENT AND DELIVERY</h3><p>A cloud computing overview will show how the cloud can not only simplify in house computing operations, but also change the way products are deployed to its users. A product developed with a SOA architecture, deployed by the cloud, or a PaaS, will inherit cloud behavior and capabilities. With the cloud delivery system products can be developed much more rapidly, and deployed in a much more user friendly way.</p><p>Most PaaS options have been through a public PaaS. While it does offer great value as a technology layer, cloud computing overview shows that a public PaaS does not sufficiently meet the needs of some businesses, or grant them the free reign and customization their operation needs. Apprenda delivers the high powered PaaS, without the restrictions of a public PaaS.</p><p>Businesses and organizations who wish to create a cloud computing option, either for their in house use, or for the development, deployment and running of custom application need a Platform as a Service solution. One such PaaS option is Apprenda, which offers a Private PaaS for enterprise applications.</p><h3>Software as a service (SaaS)</h3><p>Software as a service (SaaS) is a software distribution model in which a third-party provider hosts applications and makes them available to customers over the Internet. SaaS is one of three main categories of cloud computing, alongside infrastructure as a service (IaaS) and platform as a service (PaaS)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/0*Kq82PL9Lzwx1dq_T.jpg" /></figure><p>SaaS is closely related to the application service provider (ASP) and on demand computing software delivery models. The hosted application management model of SaaS is similar to ASP, where the provider hosts the customer’s software and delivers it to approved end users over the internet.</p><p>In the software on demand SaaS model, the provider gives customers network-based access to a single copy of an application that the provider created specifically for SaaS distribution. The application’s source code is the same for all customers and when new features or functionalities are rolled out, they are rolled out to all customers. Depending upon the service level agreement (SLA), the customer’s data for each model may be stored locally, in the cloud or both locally and in the cloud.</p><h4>Multitenant Architecture</h4><p>A multitenant architecture, in which all users and applications share a single, common infrastructure and code base that is centrally maintained. Because SaaS vendor clients are all on the same infrastructure and code base, vendors can innovate more quickly and save the valuable development time previously spent on maintaining numerous versions of outdated code.</p><h4>Easy Customisation</h4><p>The ability for each user to easily customise applications to fit their business processes without affecting the common infrastructure. Because of the way SaaS is architected, these customisations are unique to each company or user and are always preserved through upgrades. That means SaaS providers can make upgrades more often, with less customer risk and much lower adoption cost.</p><h4>Better Access</h4><p>Improved access to data from any networked device while making it easier to manage privileges, monitor data use, and ensure everyone sees the same information at the same time.</p><h4>SaaS Harnesses the Consumer Web</h4><p>Anyone familiar with Amazon.com or My Yahoo! will be familiar with the Web interface of typical SaaS applications. With the SaaS model, you can customise with point-and-click ease, making the weeks or months it takes to update traditional business software seem hopelessly old fashioned.</p><h4>SaaS Trends</h4><p>Organisations are now developing SaaS integration platforms (or SIPs) for building additional SaaS applications. The consulting firm Saugatuck Technology calls this the “third wave” in software adoption: when SaaS moves beyond standalone software functionality to become a platform for mission-critical applications.</p><h3>Platform-as-a-Service</h3><p>In the Platform-as-a-Service (PaaS) model, developers essentially rent everything they need to build an application, relying on a cloud provider for development tools, infrastructure, and operating systems. This is one of the three service models of cloud computing. PaaS vastly simplifies web application development; from the developer’s perspective, all backend management takes place behind the scenes. Although PaaS has some similarities with serverless computing, there are many critical differences between them.</p><p>What are the three service models of cloud computing?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*nFYIfYvvB0m8n8zYWuBRng.png" /></figure><p>The three models of cloud computing are PaaS, SaaS (Software-as-a-Service), and IaaS (Infrastructure-as-a-Service). IaaS refers to cloud computing infrastructure — servers, storage, etc. — managed by a cloud vendor, while SaaS refers to full applications that are hosted in the cloud and maintained by the SaaS vendor. If a SaaS customer is like someone renting a house, then a PaaS customer is like someone renting all the heavy equipment and power tools necessary to rapidly build a house, if the tools and equipment were continually maintained and repaired by their owner.</p><h3>How does PaaS compare to internally hosted development environments?</h3><p>PaaS can be accessed over any internet connection, making it possible to build an entire application in a web browser. Because the development environment is not hosted locally, developers can work on the application from anywhere in the world. This enables teams that are spread out across geographic locations to collaborate. It also means developers have less control over the development environment, though this comes with far less overhead.</p><h3>What is included in PaaS?</h3><p>The main offerings included by PaaS vendors are:</p><ul><li>Development tools</li><li>Middleware</li><li>Operating systems</li><li>Database management</li><li>Infrastructure</li></ul><p>Different vendors may include other services as well, but these are the core PaaS services.</p><h4>Development tools</h4><p>PaaS vendors offer a variety of tools that are necessary for software development, including a source code editor, a debugger, a compiler, and other essential tools. These tools may be offered together as a framework. The specific tools offered will depend on the vendor, but PaaS offerings should include everything a developer needs to build their application.</p><h4>Middleware</h4><p>Platforms offered as a service usually include middleware, so that developers don’t have to build it themselves. Middleware is software that sits in between user-facing applications and the machine’s operating system; for example, middleware is what allows software to access input from the keyboard and mouse. Middleware is necessary for running an application, but end users don’t interact with it.</p><h4>Operating systems</h4><p>A PaaS vendor will provide and maintain the operating system that developers work on and the application runs on.</p><h4>Databases</h4><p>PaaS providers administer and maintain databases. They will usually provide developers with a database management system as well.</p><h4>Infrastructure</h4><p>PaaS is the next layer up from IaaS in the cloud computing service model, and everything included in IaaS is also included in PaaS. A PaaS provider either manages servers, storage, and physical data centers, or purchases them from an IaaS provider.</p><h3>IaaS (Infrastructure-as-a-Service)</h3><p>Infrastructure-as-a-Service, commonly referred to as simply “IaaS,” is a form of cloud computing that delivers fundamental compute, network, and storage resources to consumers on-demand, over the internet, and on a pay-as-you-go basis. IaaS enables end users to scale and shrink resources on an as-needed basis, reducing the need for high, up-front capital expenditures or unnecessary “owned” infrastructure, especially in the case of “spiky” workloads. In contrast to PaaS and SaaS (even newer computing models like containers and serverless), IaaS provides the lowest-level control of resources in the cloud.</p><p>IaaS emerged as a popular computing model in the early 2010s, and since that time, it has become the standard abstraction model for many types of workloads. However, with the advent of new technologies, such as containers and serverless, and the related rise of the microservices application pattern, IaaS remains foundational but is in a more crowded field than ever.</p><h3>IaaS platform and architecture</h3><p>IaaS is made up of a collection of physical and virtualized resources that provide consumers with the basic building blocks needed to run applications and workloads in the cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*wKxGmp4szWV4VNcL.jpg" /></figure><ul><li>Physical data centers: IaaS providers will manage large data centers, typically around the world, that contain the physical machines required to power the various layers of abstraction on top of them and that are made available to end users over the web. In most IaaS models, end users do not interact directly with the physical infrastructure, but it is provided as a service to them.</li><li>Compute: IaaS is typically understood as virtualized compute resources, so for the purposes of this article, we will define IaaS compute as a virtual machine. Providers manage the hypervisors and end users can then programmatically provision virtual “instances” with desired amounts of compute and memory (and sometimes storage). Most providers offer both CPUs and GPUs for different types of workloads. Cloud compute also typically comes paired with supporting services like auto scaling and load balancing that provide the scale and performance characteristics that make cloud desirable in the first place.</li><li>Network: Networking in the cloud is a form of Software Defined Networking in which traditional networking hardware, such as routers and switches, are made available programmatically, typically through APIs. More advanced networking use cases involve the construction of multi-zone regions and virtual private clouds, both of which will be discussed in more detail later.</li><li>Storage: The three primary types of cloud storage are block storage, file storage, and object storage. Block and file storage are common in traditional data centers but can often struggle with scale, performance and distributed characteristics of cloud. Thus, of the three, object storage has thus become the most common mode of storage in the cloud given that it is highly distributed (and thus resilient), it leverages commodity hardware, data can be accessed easily over HTTP, and scale is not only essentially limitless but performance scales linearly as the cluster grows.</li></ul><p>Rerfrence link :</p><ul><li><a href="https://azure.microsoft.com/en-in/overview/what-is-cloud-computing/">What is cloud computing? A beginner&#39;s guide | Microsoft Azure</a></li><li><a href="https://apprenda.com/library/cloud/">Cloud Computing Overview - Apprenda</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5002e0a72ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Tutorial — Introduction To Docker & Containerization]]></title>
            <link>https://medium.com/@vishald41234/docker-tutorial-introduction-to-docker-containerization-34eb06888267?source=rss-1d3bc2c8325b------2</link>
            <guid isPermaLink="false">https://medium.com/p/34eb06888267</guid>
            <category><![CDATA[docker-tutorials-beginner]]></category>
            <category><![CDATA[docker-tutorial]]></category>
            <category><![CDATA[docker-image]]></category>
            <category><![CDATA[introduction-to-docker]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[VISHAL DHANURE]]></dc:creator>
            <pubDate>Tue, 09 Jun 2020 06:50:49 GMT</pubDate>
            <atom:updated>2020-06-09T06:50:49.355Z</atom:updated>
            <content:encoded><![CDATA[<h3>Docker Tutorial — Introduction To Docker &amp; Containerization</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lIdJTAASxiL3lxLU.png" /></figure><h3>What is Docker?</h3><p>Docker is a containerization software that is used for automating the deployment and management of applications within an isolated environment. This software allows us to “<em>pack</em>” and ship an application, along with all of its needed files, libraries, and dependencies, into a “<em>docker container</em>“. That container can then be easily ported to <a href="https://www.liquidweb.com/kb/how-to-install-docker-on-centos-8/">any Linux system</a> that contain cgroups support within the kernel, and provides a container management environment. Docker is one of several containerization implementations (<em>not to be confused with virtualization</em>) based on this cgroups mechanisms built into the Linux kernel.</p><h3>What Problems Does Docker Solve?</h3><p>Because docker allows us to package a complete application, it can be used within multiple system environments types including <a href="https://www.liquidweb.com/products/private-cloud/">private clouds</a>, <a href="https://www.liquidweb.com/products/server-clusters/">server clusters</a>, or <a href="https://www.liquidweb.com/products/private-vps-parent/">private parent servers</a>. Docker eradicates the problem of missing code, binaries, or incomplete application dependency libraries. It also does away with having to configure applications specifically to a specific OS environment, and removes problems with OS updates affecting the application. Lastly, there are more than 10,000 ready to use docker packaged images that can be pulled in and used without having to create and configure new applications on a system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/0*D06wy46F4tPeIMgZ.jpg" /><figcaption><strong>Docker</strong> Inc. was founded by <strong>Solomon</strong> Hykes</figcaption></figure><h3>What Is a Container?</h3><p>A container is a type of isolated environment with an application that is runs directly on an OS and not on a virtual machine, within a single environment that shares access to its own resources, inaccessible to other containers. This approach saves processor time and RAM compared to a virtual machine. Linux originally had <a href="https://www.liquidweb.com/kb/docker-for-beginners/">chroot</a> and various <a href="https://www.liquidweb.com/kb/docker-for-beginners/">sandboxes.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/0*rJTgIjUPepMleIOE.png" /></figure><p>https://www.docker.com/resources/what-containe</p><p>The <a href="https://www.liquidweb.com/kb/virtualization-vs-containerization/">container</a> itself is made from a specially prepared image, but in Docker, the process is much more convenient. A docker image consists of several components, which can be further broken down into other images. These <a href="https://www.liquidweb.com/kb/the-benefits-of-containerization/">benefits</a> and options save disk space, network bandwidth, and also reduces the assembly time of the container from the image. Of course, there are also some disadvantages involved. Since the applications are launched from the OS kernel, so we cannot select a different OS from there. The upside is, Docker will run on any OS.</p><h3>Objectives of Using Docker</h3><p>In the beginning, the goal of a containerized system like this was primarily for isolation. Solomon Hykes, the creator of Docker, came up with a slightly different approach. He imagined using containers that could deploy an application, with all the assets and attributes included within the container to prevent cluttering up the OS with additional programs. If a container had issues, we could simply deploy a new version of the container. He created this convenient and straightforward process, standardized it, and called it Docker!</p><p>We can send an archive of a container to multiple systems and everything will work the same as the original program. We can publically share an image to a common Docker Hub repository where others can download the image. We can also upload our images there. If it is important to keep the image private, then we can simply create our own docker hub on a local network.</p><h3>Installation</h3><h3>Update Server</h3><p>First, lets update our server packages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*L-5QjLQ-lDKOVsuPirgWtQ.png" /></figure><h3>Install Docker</h3><p>Next, we can install Docker</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*MD5GYLZTe6rSfeWtHiGwUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*hwXS0cYq1Gne1pVOPfDA2A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*3d8wZbERpnGjK7aQagmb1g.png" /></figure><h3>Check Version</h3><p>To check the version of docker installed, we will use the <em>–version</em> flag to verify that it was installed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*sY5SkryHlCfmBP71VBbOJQ.png" /></figure><h3>Add Docker User</h3><p>If we are not the root user on the system, then we should add our username to the Docker group so that we do not have to add the <em>sudo</em> command every time we run a docker command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*0a8BqbstaYwiWZiH3U79oQ.png" /></figure><p>To apply these changes to the group, we need to log out and log back in to the server again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*lDX3RIZZu0STq5MLnnEvdw.png" /></figure><p>Next, we will ensure our user is added to the Docker group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*47bXNF_iB60CGAsqBzU9bg.png" /></figure><h3>Test Docker</h3><p>Now, we will run the <em>hello world</em> docker container to verify that everything is installed and working as expected using the following command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*dij8bCAKXM1RpC_uS9iHgQ.png" /></figure><p>As we can see from the command output above, Docker was unable to find the <em>Hello World</em> docker image. Luckily, Docker was smart enough to pull down the missing image and run it. Now, let’s try running the command again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*8Kbw0Yiy-9XA71u2vlmGUg.png" /></figure><p>Notice the difference? In the first instance, we waited a few seconds, the second time it started instantly. This is because the first time, docker did not find the image, but went ahead and downloaded it, and then started the program. In the second instance, when we launched the <em>hello-world</em> docker image, the description popped up in the terminal, and nothing happened. This is because, thanks to the run command, we executed the program, it completed its task and ended.</p><h3>Docker Syntax</h3><p>The Docker syntax looks like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*VWLuIDDSXoEOv2enDkbplA.png" /></figure><h3>Basic Commands</h3><p>All commands can be found in the Docker documentation, and we will review and analyze some of the most basic ones:</p><ul><li>run — it creates and starts the container</li><li>pull — uploads an image from the repository to our computer. `Run` calls this function if the container is not downloaded.</li><li>ps — view running containers.</li><li>rm — container removal.</li><li>stop — stop a running container.</li><li>start — start a stopped container.</li><li>exec — execute a command in a running container.</li><li>cp — copy files between the container and the host system.</li><li>info — container status and configuration information.</li><li>logs — container logs.</li><li>search — image search in the repository.</li></ul><h3>Docker Command Usage</h3><p>Now, we will run the docker command utilizing Ubuntu as the software. Once the command completes, we find ourselves within a container console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*Svq4V86A2cJKtdTTkom-8g.png" /></figure><p>Next, we will analyze the flags used in more detail.<br><em>-i interactive mode<br>-t connect to tty console</em><br>Let’s pay attention to this message.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*5NXq_OsFcJqX8lXQC_W5mw.png" /></figure><p>Since we did not specify which version of Ubuntu we want to run, Docker automatically selected the latest version, then downloaded and launched it. The command also created a new console within the newly launched container. We can exit that console using the <em>exit</em> command.</p><h3>Working With Containers</h3><h3>Uname Command</h3><p>Enter the uname command in the terminal for the container.<br>This command shows the information on Ubuntu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*nfcIeaOOw68EZd74jdaOGw.png" /></figure><h3>DMesg Command</h3><p>Now enter the dmesg command. This command allows us to print or manage the kernel ring buffer, however, because we do not have enough rights to output the dmesg command as the user, the operation was not permitted. Although we are logged in as the root user inside the container, the container itself is running as a user who is not allowed to view the kernel log. This clearly demonstrates that the container property is different from the virtual machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*ihhUqWcpWbqVUKKprfW29A.png" /></figure><h3>Exit Command</h3><p>We can exit the container using the exit command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*mcChuSU21P70JjKsYA4ieA.png" /></figure><h3>Run Command</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*k6wTgrVXh_LTX2lF9Y6tFA.png" /></figure><p>Next, lets run the docker command using the -d flag<br>(-d or detached mode = separate mode).</p><p>This command was executed and completed. We did not go to the console, but we did receive a list of characters in the output. This set of characters is the actual unique identifier of the container. We can view the working files of the container if we follow the /var/lib/docker/set_our_characters path.</p><h3>PS Command</h3><p>Using the <em>ps</em> command, we can see the list of all running containers in the docker engine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*f59g2yA2cGhff1JaePLDww.png" /></figure><p>This output shows the following information:</p><ul><li><strong>CONTAINER ID</strong> — this is the first 12 characters of the container identifier. It is necessary to address the container on this id.</li><li><strong>IMAGE </strong>— this is the image type we used for the container.</li><li><strong>COMMAND </strong>— the command is specified when the container starts if we do not specify the command, the default command will be executed.</li><li><strong>CREATED </strong>— the date when the container was first launched.</li><li><strong>STATUS </strong>— shows the status of the container, if it is running, it shows how long it has been working. If stopped, then when did the exit code stopped.</li><li><strong>PORTS </strong>— this parameter refers to the container network. In short, when creating a container, a virtual network interface is created and added to the virtual switch created based on Linux-bridge. We communicate with the container over the network through this virtual grid, We can also forward a container port to the host machine when the container starts. These forwarded ports are reflected in this field. Such port forwarding is convenient because we do not need to know the container’s IP address in this virtual grid.</li><li><strong>NAMES </strong>— this is the name of the container. The container has an id, but it is difficult to remember, and therefore we also introduced such a parameter as a name. When the computer is running with a dozen containers, it will be easier to understand by name which belongs to, especially if the containers are running from the same image.</li></ul><p>Each time a <em>docker run</em> command is initiated, a new container is created, and no changes are saved inside the old container. When we run <em>docker start</em>, the container is rebuilt from the image with all its layers. Inside the container, we can use the <em>rm -rf</em> command and then restart it, and all the default image files will be in place. But, those files that are created when working in the container will disappear. Docker can forward a folder from the host system to the container so that any changes remain resident and do not go away.</p><h4>List Running Containers</h4><p>Now we will list all containers using the <em>-a</em> flag which identifies all the running containers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*L3RYmh2HE1Kf6YaHCmfb_A.png" /></figure><h4>List Stopped Containers</h4><p>To display a list of containers that are turned off, we enter the <em>docker ps</em> command with the <em>-f</em> flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*LPKatI5K098CssWkIOlutg.png" /></figure><p>The list of containers that are turned off is not very large yet, however, later in our practice, the list can be quite large. To remove a container, we can use the docker <em>rm</em> command. But, using that command will constitute a large amount of manual work, so we will use the docker <em>rm</em> command with the <em>-q</em> flag which will display only the container’s id. Then, we can easily select and work with the containers using that command to remove all the containers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*YcgOUvbfeq_ir6PluXCTuQ.png" /></figure><p>Now let’s look at the list of containers that are turned off using the command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*Rxy3V1giTQKT2pnmDgxgHw.png" /></figure><p>But actually, we <em>still</em> have one running container. We will review it using the docker command with the <em>ps</em> flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*Bd8vYI2Fy6t4HGgJzcFA7Q.png" /></figure><h3>Attach Command</h3><p>So, we started this container, but we did not log in to the console. Now we will run the docker command with the <em>attach</em> flag. This command logs us into that running instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*mGn4qat3sxuOOugWPFSo7A.png" /></figure><h3>Stop Command</h3><p>Now that we have connected to the console of our running container, we can stop it using the exit command to end it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*6-gByCkBP9Nvuu_br0ymhQ.png" /></figure><h3>Search Command</h3><p>We can use the search command in docker to try to find a specific image we might need. Let’s see what kind of MySQL images are available using the search command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*F5cPK35zP-LamqQl3f-EWw.png" /></figure><p>Now, If we need a mysql image of version 5.6 for CentOS 7, then we select centos / mysql-56-centos7. We can install the image from the repository without launching it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*zpIcx3L1PduwfWKaAYsjdQ.png" /></figure><h3>Start Command</h3><p>Next, we can start the MySQL container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*xOim-LnUSMfu6B9gD03jUw.png" /></figure><p>Nothing happened, but we were given a hint!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*t_99SWqXp2rY88zQTEoA0g.png" /></figure><p>We can either set the root password to access the database ourselves or entrust the script to do it for us. It is also possible to prohibit or allow empty passwords. This is done using variables that are written in an uppercase hint. To set a password, we would use the following command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*uxc6DTYrgYzWOkynk5XvJw.png" /></figure><p>Here is a breakdown the flags we used in that command.</p><ul><li><strong>–name</strong>: this flag creates a database name when creating a container</li><li><strong>-e or environment</strong>: — with this flag we set the password variable when the container starts</li><li><strong>-P</strong>: this flag is responsible for forwarding a port from the container to the host machine. Using the upper case flag randomly gives port forwarding. If we need a specific one, we do it like this -p 2222: 22 this flag published the host port, then the container port.</li><li><strong>-d</strong>: this flag runs the container in background and prints the container ID</li></ul><p>Since we have a database name, we can find the MySQL port of our container is using.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*q37nlKyDFg6h2Oi3I202mw.png" /></figure><p>One other important point; The port forwarding parameter (from the virtual machine to the host machine) starts with the address 0.0.0.0. This means that the port is displayed on the host machine on all network interfaces and accepts requests from everyone.</p><h3>Logging Command</h3><p>Now we will use the following log command within the container, which is very useful for diagnosis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*Vr-cFP5ygVU7O-JZYXzpqQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*JNnJ--EgfdVPIyy2fKTwwg.png" /></figure><h3>Inspect Command</h3><p>The following command will display the detailed configuration of the running container. Here we can see everything related to the MySQL docker container. Note: This will output a <strong>LARGE</strong> amount of data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*XFxuqO0hjpPql3fWwIwMbw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*T7ihXx0aldydRxLsIu4Fog.png" /></figure><h3>Conclusion</h3><p>n this tutorial, we learned what docker containerization is, how it works and why it is now used by almost every large firm that relies on a stable platform. Docker uses virtualization to provide software packages found in containers. These containers are detached from each another so that if one part of a system fails, it does not affect the rest of the system. It also can kick up a new docker image to replace the failed container almost instantly, which limits downtime and increases the overall stability of the system. These containers bundle all the software, libraries and configuration files needed to run the software. Additionally, the containers can communicate with each other through defined networks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34eb06888267" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Use Network Manager on OpenSUSE]]></title>
            <link>https://medium.com/@vishald41234/how-to-use-network-manager-on-opensuse-1533b53db8aa?source=rss-1d3bc2c8325b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1533b53db8aa</guid>
            <dc:creator><![CDATA[VISHAL DHANURE]]></dc:creator>
            <pubDate>Sat, 30 May 2020 17:14:15 GMT</pubDate>
            <atom:updated>2020-05-30T17:14:15.412Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*1nf1Ofue5Y0cPFH3pyGy3Q.png" /></figure><p>The NetworkManager app is the ideal solution for managing networks. It’s especially useful if you’re running openSUSE on a laptop or a portable computer. NetworkManager supports all the standard encryption standards. It also takes care of switching networks on-the-fly. Using NetworkManager, you can also have multiple connections active at once. This article will focus on how to install and use NetworkManager on openSUSE.</p><h3>Enabling NetworkManager</h3><p>If you’re running openSUSE on a portable computer, then openSUSE is already enabled. Anyway, you can use YaST to enable/disable NetworkManager.</p><p>Start YaST.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/0*6cuOA52npnDzHbev.png" /></figure><p>YaST requires root privilege to run. Enter the root password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/0*y4PxQwXUVGZeP9JP.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/0*tYjTs_iYv4HRaklz.png" /></figure><p>On the “Global Options” tab, select “NetworkManager Service” under the “Network Setup Method” option. Then, click “OK”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7IDl-WiWXnWvygq1.png" /></figure><p>This window will pop up, notifying that NetworkManager is controlled by the desktop applet. So, this is up to the desktop environment you’re currently running (GNOME or KDE preferably).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/0*hxpCNkwgbgXAeGx6.png" /></figure><h3>Using NetworkManager on KDE Plasma</h3><p>If you’re running KDE Plasma, search for “network” on the menu. Select “Connections” from the result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*2os0xVA7EEQHyRh7.png" /></figure><p>Here, you can manage all the connected networks easily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/0*7LJft1JIzE6U5DkE.png" /></figure><p>If you want to disconnect a network, right-click and select “Disconnect”.</p><p>In order to delete a connection, select a connection, right-click and choose “Delete”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/0*Omya3HPPVplV7ZQa.png" /></figure><p>Click “OK” when the confirmation window appears.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*dQwIhoTgAJ_8de28.png" /></figure><p>In order to add a new connection, click the “+” icon.</p><p>Select the connection type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/0*_RElKqW0Ld9kbRiI.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/0*QCwhoMObrPX8j0sS.png" /></figure><p>From this window, you can choose various customizations, for example, device restriction, 802.1x security, IPv4, IPv6 etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/0*wLUITAIqLckM3LSa.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/0*W-1LJqFYIuYkepF6.png" /></figure><p>Once everything is set, click the “Save” button.</p><h3>Using Network Manager on GNOME</h3><p>If you’re running GNOME, then it’s easier. From the top-right corner, select “Settings”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BrBmuxnWO4rRT8Bm.png" /></figure><p>On the “Wi-Fi” section, all the wireless networks will appear. You can turn on/off Wi-Fi from the top bar. To manage the connected Wi-Fi network, click the gear icon next to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wGlKZPl78euEEPAr.png" /></figure><p>On the “Wi-Fi” section, all the wireless networks will appear. You can turn on/off Wi-Fi from the top bar. To manage the connected Wi-Fi network, click the gear icon next to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/0*Bz1aqv_4dXqndwKT.png" /></figure><p>For managing the wired connections, VPNs and proxy, select “Network” from the left panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/0*MugackcruU3g149l.png" /></figure><p>To enable/disable a connection, toggle the button next to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/0*2LAS8wXv8Msq9a7N.png" /></figure><p>To tweak the connection, click the gear icon next to your desired connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/0*mmJK2T2-MIrEu4OT.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/0*KxCRNGmGo7-bHj0F.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/0*xR-o7wxD4IL-_ET1.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/0*VyZDDJj4L2wQ4La0.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/0*jqzSLmDyIbx0Ma6b.png" /></figure><h3>NetworkManager command-line</h3><p>“nmcli” is the command-line tool for controlling NetworkManager. It’s especially useful if the system is being configured remotely. Using nmcli is also useful when setting up a server.</p><p>Here’s how nmcli command structure works.</p><p><strong>$ nmcli &lt;options&gt; object {command | help}</strong></p><p>There are 7 different options in terms of “object”: <em>networking</em>, <em>device</em>, <em>connection</em>, <em>monitor</em>, <em>agent</em>, <em>radio</em>, and <em>general</em>.</p><p>Networks are managed by the networking devices connected to the system. The following command will print out the status of all the connected network devices.</p><p><strong>$ nmcli dev status</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/0*JEO2Ycmod3kcNxSR.png" /></figure><p>The first column in the output is the name of the interface. The last column denotes the name of the “connection profile” associated with the device.</p><p>Confused about the command? Let’s try a different one. The “-p” flag stands for “Pretty” (human-readable) output.</p><p><strong>$ nmcli -p device</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/0*upWZY002Ao8c6pIS.png" /></figure><p>Using nmcli, we can generate a report of all the information about the interfaces. It’s a lot of information, so it’s better to check out one specific interface at a time. In my case, let’s check out the info of “eth0”.</p><p><strong>$ nmcli dev show eth0</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/0*7reR0sCvFPK-4ban.png" /></figure><p>You may have noticed that some devices are set as “unmanaged”, meaning NetworkManager isn’t controlling them. How about making an existing one “unmanaged”? Run this command.</p><p><strong>$ sudo nmcli device disconnect &lt;interface_name&gt;</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/0*NfQQg7DzdhcGRzzx.png" /></figure><p>Connecting a disconnected device is similar to the disconnection command.</p><p><strong><em>$ </em>sudo nmcli device connect &lt;interface_name&gt;</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/0*5JHkDIOBnGpP-PoX.png" /></figure><p>Let’s finish by the profile. The connections of NetworkManager are stored in a certain directory. Using the profiles, you can directly manipulate the connection behavior and features. However, I personally don’t recommend unless you’re an expert in it.</p><p>Run this command first.</p><p><strong>$ nmcli connection show</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*51ZDM4dRNLHjz0KC.png" /></figure><p>Now, it’s time to check out the profile directory.</p><p><strong>$ cd /etc/sysconfig/network/<br>$ tree</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*1ucDGG-SBcdFo7QB.png" /></figure><p>The active connection profiles are named with “ifcfg-“ prefix.</p><h3>Final thoughts</h3><p>NetworkManager is a wonderful tool for managing your network connections. Even if you’re using a desktop environment, don’t hesitate to give nmcli a try. If you’re confused about any nmcli command, just check out the man page!</p><p><strong>$ man nmcli</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/0*9T7sH6Xr0UsPcNo5.png" /></figure><p>Enjoy !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1533b53db8aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>