<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>The Ops Community ⚙️: Sneh Chauhan</title>
    <description>The latest articles on The Ops Community ⚙️ by Sneh Chauhan (@sneh274).</description>
    <link>https://community.ops.io/sneh274</link>
    <image>
      <url>https://community.ops.io/images/nfE7TXMkCmS3o8DgR9KGO2PcM5PaRAmyH9yhXziofSA/rs:fill:90:90/g:sm/mb:500000/ar:1/aHR0cHM6Ly9jb21t/dW5pdHkub3BzLmlv/L3JlbW90ZWltYWdl/cy91cGxvYWRzL3Vz/ZXIvcHJvZmlsZV9p/bWFnZS85NC83Mzgz/NTE0MS0wNDJkLTQ3/MjgtYWEwZS04ZDYw/MTNkOTZkMjcucG5n</url>
      <title>The Ops Community ⚙️: Sneh Chauhan</title>
      <link>https://community.ops.io/sneh274</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://community.ops.io/feed/sneh274"/>
    <language>en</language>
    <item>
      <title>Understanding /etc/passwd file in Linux</title>
      <dc:creator>Sneh Chauhan</dc:creator>
      <pubDate>Thu, 26 May 2022 09:05:09 +0000</pubDate>
      <link>https://community.ops.io/sneh274/understanding-etcpasswd-file-in-linux-18k2</link>
      <guid>https://community.ops.io/sneh274/understanding-etcpasswd-file-in-linux-18k2</guid>
      <description>&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;Linux has evolved from being someone's &lt;strong&gt;hobby&lt;/strong&gt; to a &lt;strong&gt;full-fledged multi-user operating system&lt;/strong&gt; powering &lt;strong&gt;95%&lt;/strong&gt; servers which run world's &lt;strong&gt;top 1 million domains&lt;/strong&gt;. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;4&lt;/strong&gt; out of &lt;strong&gt;5&lt;/strong&gt; &lt;strong&gt;smartphones&lt;/strong&gt; in the world run on linux kernel(modified one to be precise).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;100%&lt;/strong&gt; of the &lt;strong&gt;supercomputers&lt;/strong&gt; have linux.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Linux is truly &lt;strong&gt;fascinating&lt;/strong&gt;. In this blog, we'll understand about a &lt;strong&gt;special file&lt;/strong&gt; in linux. &lt;/p&gt;

&lt;p&gt;Let's dive straight into it.&lt;br&gt;
&lt;br&gt;&lt;/p&gt;
&lt;h1&gt;
  
  
  What is /etc/passwd file?
&lt;/h1&gt;

&lt;p&gt;&lt;code&gt;/etc/passwd&lt;/code&gt; is a &lt;strong&gt;configuration file&lt;/strong&gt; which stores &lt;strong&gt;user account information&lt;/strong&gt;. It is a &lt;strong&gt;plain text-based&lt;/strong&gt; file containing information like username, user ID and group ID. &lt;/p&gt;

&lt;p&gt;This file is owned by &lt;strong&gt;root&lt;/strong&gt; and has &lt;strong&gt;rw-r--r--&lt;/strong&gt; permissions(octal &lt;strong&gt;644&lt;/strong&gt;). Thus, the file can be &lt;strong&gt;read by any user&lt;/strong&gt; but only &lt;strong&gt;root user&lt;/strong&gt; or &lt;strong&gt;user with sudo privileges can write to the file&lt;/strong&gt;.&lt;br&gt;
&lt;br&gt;&lt;/p&gt;
&lt;h1&gt;
  
  
  How can I view that file?
&lt;/h1&gt;

&lt;p&gt;To view the contents of the file, open the terminal and type in:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cat /etc/passwd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The output of this command should be similar to the one shown below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;daniel@DVM:~$ cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
systemd-network:x:100:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin
systemd-resolve:x:101:103:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin
systemd-timesync:x:102:104:systemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin
messagebus:x:103:106::/nonexistent:/usr/sbin/nologin
syslog:x:104:110::/home/syslog:/usr/sbin/nologin
_apt:x:105:65534::/nonexistent:/usr/sbin/nologin
tss:x:106:111:TPM software stack,,,:/var/lib/tpm:/bin/false
uuidd:x:107:112::/run/uuidd:/usr/sbin/nologin
tcpdump:x:108:113::/nonexistent:/usr/sbin/nologin
sshd:x:109:65534::/run/sshd:/usr/sbin/nologin
landscape:x:110:115::/var/lib/landscape:/usr/sbin/nologin
pollinate:x:111:1::/var/cache/pollinate:/bin/false
daniel:x:1000:1000:Daniel Tanzer,,,:/home/daniel:/bin/bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;h1&gt;
  
  
  Can I modify that file?
&lt;/h1&gt;

&lt;p&gt;Yes, you can modify the file contents using any &lt;code&gt;text editor&lt;/code&gt; like &lt;strong&gt;vim&lt;/strong&gt;, &lt;strong&gt;nano&lt;/strong&gt; or &lt;strong&gt;emacs&lt;/strong&gt; but it's considered to be a &lt;strong&gt;bad idea&lt;/strong&gt; unless you know what you are doing. &lt;br&gt;
You must always use &lt;strong&gt;dedicated commands&lt;/strong&gt; to modify the file. Let's say for an example, you want to add a new user to the system. For doing so, you must use &lt;code&gt;adduser&lt;/code&gt; or &lt;code&gt;useradd&lt;/code&gt; command instead of manually editing the &lt;code&gt;/etc/passwd&lt;/code&gt; file using a text editor.&lt;br&gt;
&lt;br&gt;&lt;/p&gt;
&lt;h1&gt;
  
  
  Understanding /etc/passwd file format
&lt;/h1&gt;

&lt;p&gt;&lt;code&gt;/etc/passwd&lt;/code&gt; file contains many lines, &lt;strong&gt;one for each user&lt;/strong&gt;. The first line contains information about &lt;strong&gt;root user&lt;/strong&gt; followed by &lt;strong&gt;system user accounts&lt;/strong&gt; and &lt;strong&gt;normal user&lt;/strong&gt; accounts. &lt;/p&gt;

&lt;p&gt;It has &lt;strong&gt;7 fields&lt;/strong&gt; separated by &lt;strong&gt;colon&lt;/strong&gt;(&lt;strong&gt;:&lt;/strong&gt;). &lt;/p&gt;

&lt;p&gt;&lt;a href="https://community.ops.io/images/UnFz--cLviEkcRARuxmbL6ACb8tREBcR7hMuKme2UaM/w:880/mb:500000/ar:1/aHR0cHM6Ly9kZXYt/dG8tdXBsb2Fkcy5z/My5hbWF6b25hd3Mu/Y29tL3VwbG9hZHMv/YXJ0aWNsZXMvdWtq/aGhxcmpkZWo0NGY3/ZXpmbWgucG5n" class="article-body-image-wrapper"&gt;&lt;img src="https://community.ops.io/images/UnFz--cLviEkcRARuxmbL6ACb8tREBcR7hMuKme2UaM/w:880/mb:500000/ar:1/aHR0cHM6Ly9kZXYt/dG8tdXBsb2Fkcy5z/My5hbWF6b25hd3Mu/Y29tL3VwbG9hZHMv/YXJ0aWNsZXMvdWtq/aGhxcmpkZWo0NGY3/ZXpmbWgucG5n" alt="file format" width="856" height="463"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;
  
  
  &lt;strong&gt;1) Username :&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;This is the first field in a line which represents the &lt;code&gt;login name&lt;/code&gt; of the user. It has a length ranging from 1 to 32 characters.&lt;/p&gt;
&lt;h4&gt;
  
  
  &lt;strong&gt;2) Password :&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;This is the second field in a line. In older linux systems, user's &lt;strong&gt;encrypted password&lt;/strong&gt; was stored here. Now in the modern systems, this field is replaced by a character &lt;code&gt;x&lt;/code&gt; and the encrypted password is stored in a file called &lt;code&gt;/etc/shadow&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;If the field is &lt;strong&gt;blank&lt;/strong&gt;, we do &lt;strong&gt;not&lt;/strong&gt; need a password to login to the system.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;To change the password of any user, use &lt;code&gt;passwd&lt;/code&gt; command which stores the password in &lt;strong&gt;encrypted&lt;/strong&gt; form in &lt;code&gt;/etc/shadow&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h4&gt;
  
  
  &lt;strong&gt;3) User ID (UID):&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;This is the third field in a line. It contains a &lt;strong&gt;unique identifier&lt;/strong&gt; of a user which is used by an operating system to refer to a user. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;UID 0&lt;/code&gt; is reserved for &lt;strong&gt;root user&lt;/strong&gt;.&lt;br&gt;
&lt;code&gt;UID 1-99&lt;/code&gt; is reserved for other &lt;strong&gt;predefined accounts&lt;/strong&gt;.&lt;br&gt;
&lt;code&gt;UID 100-999&lt;/code&gt; is reserved for &lt;strong&gt;system accounts&lt;/strong&gt;.&lt;br&gt;
&lt;code&gt;UID above 999&lt;/code&gt; are for &lt;strong&gt;normal user accounts&lt;/strong&gt;.&lt;/p&gt;
&lt;h4&gt;
  
  
  &lt;strong&gt;4) Group ID(GID):&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;This is the fourth field in a line. It determines the &lt;code&gt;primary group&lt;/code&gt; of the user. Users can belong to more than one group in linux. To get a full list of groups a user belongs to, type in the command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;groups &amp;lt;user_name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first group in the output is the &lt;code&gt;primary group&lt;/code&gt; and the rest are &lt;code&gt;secondary groups&lt;/code&gt;.&lt;/p&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;5) GECOS :&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;This is the fifth field in a line. It contains &lt;strong&gt;comma-separated information&lt;/strong&gt; about the user including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Full name&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Room number&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Work phone number&lt;/strong&gt; etc.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;6) Home directory :&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;This is the sixth field in a line which contains the &lt;strong&gt;path to the user's home directory&lt;/strong&gt;. By default, this path is under &lt;code&gt;/home&lt;/code&gt; directory and is named after the user. For example, for a user having a username &lt;code&gt;daniel&lt;/code&gt;, his home directory would be &lt;code&gt;/home/daniel&lt;/code&gt;.&lt;/p&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;7) Login Shell :&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;This is the seventh and the last field in the line. It contains &lt;strong&gt;path to the user's default login shell&lt;/strong&gt;. For most of the distributions, it is &lt;strong&gt;bash&lt;/strong&gt; having the path &lt;code&gt;/bin/bash&lt;/code&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;It is not necessary to for it to be a shell. For example, &lt;strong&gt;system administrators&lt;/strong&gt; can use &lt;code&gt;nologin shell&lt;/code&gt; having path &lt;code&gt;/sbin/nologin&lt;/code&gt;. So, if a user tries to login to an account with nologin shell, the nologin shell closes the connection.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is it for the blog. I hope you understood the format of the file &lt;code&gt;/etc/passwd&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Thank you for reading!&lt;/p&gt;

</description>
      <category>devops</category>
      <category>linux</category>
      <category>tutorials</category>
    </item>
    <item>
      <title>Nexus Repository Manager : What is it &amp; how to configure it on a Digital Ocean Droplet?</title>
      <dc:creator>Sneh Chauhan</dc:creator>
      <pubDate>Thu, 26 May 2022 08:59:52 +0000</pubDate>
      <link>https://community.ops.io/sneh274/nexus-repository-manager-what-is-it-how-to-configure-it-on-a-digital-ocean-droplet-4epe</link>
      <guid>https://community.ops.io/sneh274/nexus-repository-manager-what-is-it-how-to-configure-it-on-a-digital-ocean-droplet-4epe</guid>
      <description>&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;If you are working on a big project which would take long time, repository manager is the thing which can save you a lot of time and effort. &lt;/p&gt;

&lt;p&gt;Let's say you are building a Java-Maven application. It uses &lt;a href="https://mvnrepository.com/repos/central"&gt;Maven Central Repository&lt;/a&gt; for resolving dependencies. Now if you want to use a package not provided by Java by default, you need to get it from Maven Central. With repository managers, these packages are stored in the repository manager itself so you don't have to look for different packages at different places.&lt;/p&gt;

&lt;h1&gt;
  
  
  What is a Repository Manager?
&lt;/h1&gt;

&lt;p&gt;A &lt;strong&gt;Repository manager&lt;/strong&gt; is a dedicated server location which is used to manage all the repositories an development team will need throughout the development cycle.&lt;/p&gt;

&lt;p&gt;We can consider Repository Manager as a &lt;strong&gt;Warehouse for parts&lt;/strong&gt;. Just as a Warehouse serves as a centralized location for storage of parts and manages receiving, sending and everything in between, a Repository Manager manages all the parts involved in the software development process.&lt;/p&gt;

&lt;h3&gt;
  
  
  Repository v/s Repository Manager
&lt;/h3&gt;

&lt;p&gt;A &lt;strong&gt;Repository&lt;/strong&gt; is a storage location where components like artifacts, binaries or containers are retrieved so they can be installed or used whereas a **Repository Manager **is a dedicated application which manages all of your internal or proxy repositories.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why do you need it? 🤔
&lt;/h3&gt;

&lt;p&gt;Let's say you work in a company which is working upon multiple projects. Few of which are build using Java, .NET and Python. Each of these will produce different types of artifacts. Now you'll need different software to store each of them. A Repository manager solves this problem and provides a centralized platform to store all the components involved in the software development process. Few of the other features of a repository manager are :&lt;/p&gt;

&lt;p&gt;👉 Saving time and bandwidth due to reduced number of downloads off remote repositories.&lt;/p&gt;

&lt;p&gt;👉 Backup and Restore&lt;/p&gt;

&lt;p&gt;👉 Cleanup Policies&lt;/p&gt;

&lt;p&gt;👉 Search Functionality&lt;/p&gt;

&lt;p&gt;👉 Multi-format support&lt;/p&gt;




&lt;h1&gt;
  
  
  Why Nexus Repository Manager? 🤔
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://community.ops.io/images/Sa4u5MkPYlpIa1sNUoMJHpLqEIjhuT6Tu0KlStFehKM/w:880/mb:500000/ar:1/aHR0cHM6Ly9jZG4u/aGFzaG5vZGUuY29t/L3Jlcy9oYXNobm9k/ZS9pbWFnZS91cGxv/YWQvdjE2NDg5MjUz/NTYzMzkvUnQxbVQx/dktwLnBuZw" class="article-body-image-wrapper"&gt;&lt;img src="https://community.ops.io/images/Sa4u5MkPYlpIa1sNUoMJHpLqEIjhuT6Tu0KlStFehKM/w:880/mb:500000/ar:1/aHR0cHM6Ly9jZG4u/aGFzaG5vZGUuY29t/L3Jlcy9oYXNobm9k/ZS9pbWFnZS91cGxv/YWQvdjE2NDg5MjUz/NTYzMzkvUnQxbVQx/dktwLnBuZw" alt="Screenshot 2022-04-02 2326400.png" width="880" height="299"&gt;&lt;/a&gt;&lt;br&gt;
Nexus Repository Manager is a &lt;strong&gt;FREE-to-use&lt;/strong&gt; artifact repository manager by &lt;code&gt;Sonatype&lt;/code&gt;. It supports a wide variety of formats like APT, NuGET, Maven and Docker. List of all supported formats can be found &lt;a href="https://www.sonatype.com/products/repository-oss-download"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Now that you know what Nexus Repository Manager is, let me show you how to configure it on a cloud server. We'll configure Nexus on Digital Ocean Droplet(cloud server) for this blog but you can do the same on almost any other cloud service. Click &lt;a href="https://try.digitalocean.com/freetrialoffer/"&gt;here&lt;/a&gt; to get a FREE &lt;code&gt;$100 credit&lt;/code&gt; on Digital Ocean for 60 days.&lt;/p&gt;


&lt;h1&gt;
  
  
  Configuring Nexus on Digital Ocean Droplet
&lt;/h1&gt;


&lt;h3&gt;
  
  
  &lt;strong&gt;STEP 1&lt;/strong&gt; :   Create a Droplet (cloud server)
&lt;/h3&gt;

&lt;p&gt;I've chosen &lt;code&gt;Ubuntu 20.04 LTS&lt;/code&gt; but you are free to use distribution of your choice. You can choose the datacenter region which is nearest to your location. In my case it's &lt;code&gt;Bangalore&lt;/code&gt;. You can use &lt;code&gt;Password Authentication&lt;/code&gt;(less secure) or &lt;code&gt;SSH keys&lt;/code&gt;(more secure) for authentication.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note :&lt;/strong&gt; Make sure you choose &lt;code&gt;8 GB/ 4 vCPUs droplet&lt;/code&gt; because Nexus takes up a ton of memory and has high CPU usage at times.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/lNywbOByhogUlk6k3w/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/lNywbOByhogUlk6k3w/giphy.gif" alt="Image description" width="480" height="234"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h3&gt;
  
  
  &lt;strong&gt;STEP 2&lt;/strong&gt; :  Log in to the droplet using it's &lt;code&gt;public IP address&lt;/code&gt;
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;If you used &lt;code&gt;SSH key Authentication&lt;/code&gt;, you won't be prompted for password but if you used &lt;code&gt;Password Authentication&lt;/code&gt;, you need to enter your password to authenticate yourself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note :&lt;/strong&gt; The default user for any digital ocean droplet is &lt;code&gt;root&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;


&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssh root@&amp;lt;IP_address&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://i.giphy.com/media/yKSxOcQ6WfFgmWtqb7/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/yKSxOcQ6WfFgmWtqb7/giphy.gif" alt="Image description" width="480" height="215"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;STEP 3&lt;/strong&gt; :  Install &lt;code&gt;Java version 8&lt;/code&gt; and networking tools.
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Nexus repository manager requires &lt;code&gt;Java version 8&lt;/code&gt; to be installed to run.&lt;/p&gt;

&lt;p&gt;We'll use &lt;code&gt;netstat&lt;/code&gt; utility to check which port our application is listening to for which we need &lt;code&gt;net-tools&lt;/code&gt; package to be installed.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;To install Java version 8 and net-tools use the command :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;apt install openjdk-8-jre-headless -y
apt install net-tools
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To check if Java is properly installed, use the command :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;java -version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The above command must give the output :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;openjdk version "1.8.0_312"
OpenJDK Runtime Environment (build 1.8.0_312-8u312-b07-0ubuntu1~20.04-b07)
OpenJDK 64-Bit Server VM (build 25.312-b07, mixed mode)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  &lt;strong&gt;STEP 4&lt;/strong&gt;:  Download &lt;code&gt;Nexus Repository Manager&lt;/code&gt; and &lt;code&gt;untar&lt;/code&gt; it.
&lt;/h3&gt;

&lt;p&gt;To download Nexus Repository manager in &lt;code&gt;/opt&lt;/code&gt; use command :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd /opt
wget https://download.sonatype.com/nexus/3/nexus-3.38.1-01-unix.tar.gz
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To untar it, use the command :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;tar -zxvf nexus-3.38.1-01-unix.tar.gz
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After executing the above commands, when executing the command &lt;code&gt;ls&lt;/code&gt;(list files and directories) , it must have 2 new directories namely &lt;code&gt;nexus-3.38.1-01&lt;/code&gt; and &lt;code&gt;sonatype-work&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;root@ubuntu-s-4vcpu-8gb-intel-blr1-01:/opt# ls
digitalocean  nexus-3.38.1-01  nexus-3.38.1-01-unix.tar.gz  sonatype-work
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  &lt;strong&gt;STEP 5&lt;/strong&gt;:  Create a new user &lt;code&gt;nexus&lt;/code&gt;, give it appropriate permissions and change nexus configuration to run as a &lt;code&gt;nexus&lt;/code&gt; user.
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Note : Services should &lt;strong&gt;not&lt;/strong&gt; run with Root user permissions.&lt;/p&gt;

&lt;p&gt;Best Practice : &lt;code&gt;Create a new user for each service&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;To create a new user &lt;code&gt;nexus&lt;/code&gt;, use the command :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;adduser nexus
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It will ask for user information and password. To skip filling some values, press &lt;code&gt;Enter&lt;/code&gt; key.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;root@ubuntu-s-4vcpu-8gb-intel-blr1-01:~# adduser nexus
Adding user `nexus' ...
Adding new group `nexus' (1000) ...
Adding new user `nexus' (1000) with group `nexus' ...
Creating home directory `/home/nexus' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for nexus
Enter the new value, or press ENTER for the default
        Full Name []: Nexus
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [Y/n] Y
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Change the ownership of directories &lt;code&gt;nexus-3.38.1-01&lt;/code&gt; and &lt;code&gt;sonatype-work&lt;/code&gt; from &lt;code&gt;root&lt;/code&gt; to &lt;code&gt;nexus&lt;/code&gt;. To do so, use the command :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd /opt
chown -R nexus:nexus nexus-3.38.1-01/
chown -R nexus:nexus sonatype-work/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To check if the ownership was changed, use the command :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ls -l
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It must output :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;drwxr-xr-x  4 root  root  4096 Apr  3 05:51 digitalocean
drwxr-xr-x 10 nexus nexus 4096 Apr  3 17:26 nexus-3.38.1-01
drwxr-xr-x  3 nexus nexus 4096 Apr  3 17:26 sonatype-work
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To change nexus configuration to run as a nexus user, open the file &lt;code&gt;nexus.rc&lt;/code&gt; using :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;vim nexus-3.38.1-01/bin/nexus.rc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace it's contents with :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;run_as_user="nexus"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  &lt;strong&gt;STEP 6&lt;/strong&gt;:  Login as &lt;code&gt;nexus&lt;/code&gt; and start &lt;code&gt;nexus service&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;To switch user from &lt;code&gt;root&lt;/code&gt; to &lt;code&gt;nexus&lt;/code&gt;, use the command &lt;code&gt;su - &amp;lt;user_name&amp;gt;&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;su - nexus
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, to start nexus, use the command :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/opt/nexus-3.38.1-01/bin/nexus start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It must give the output :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nexus@ubuntu-s-4vcpu-8gb-intel-blr1-01:~$ /opt/nexus-3.38.1-01/bin/nexus start
Starting nexus
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To check if it started successfully or not, type :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ps aux | grep nexus
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It must give the output :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nexus@ubuntu-s-4vcpu-8gb-intel-blr1-01:~$ ps aux | grep nexus
root       20134  0.0  0.0  10132  3868 pts/0    S    19:08   0:00 su - nexus
nexus      20137  0.0  0.0  10028  5092 pts/0    S    19:08   0:00 -bash
nexus      20353  170 24.3 6618988 1986448 pts/0 Sl   19:10   3:13 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -server -Dinstall4j.jvmDir=/usr/lib/jvm/java-8-openjdk-amd64/jre -Dexe4j.moduleName=/opt/nexus-3.38.1-01/bin/nexus -XX:+UnlockDiagnosticVMOptions -Dinstall4j.launcherId=245 -Dinstall4j.swt=false -Di4jv=0 -Di4jv=0 -Di4jv=0 -Di4jv=0 -Di4jv=0 -Xms2703m -Xmx2703m -XX:MaxDirectMemorySize=2703m -XX:+UnlockDiagnosticVMOptions -XX:+LogVMOutput -XX:LogFile=../sonatype-work/nexus3/log/jvm.log -XX:-OmitStackTraceInFastThrow -Djava.net.preferIPv4Stack=true -Dkaraf.home=. -Dkaraf.base=. -Dkaraf.etc=etc/karaf -Djava.util.logging.config.file=etc/karaf/java.util.logging.properties -Dkaraf.data=../sonatype-work/nexus3 -Dkaraf.log=../sonatype-work/nexus3/log -Djava.io.tmpdir=../sonatype-work/nexus3/tmp -Dkaraf.startLocalConsole=false -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=lib/endorsed -Di4j.vpt=true -classpath /opt/nexus-3.38.1-01/.install4j/i4jruntime.jar:/opt/nexus-3.38.1-01/lib/boot/nexus-main.jar:/opt/nexus-3.38.1-01/lib/boot/activation-1.1.1.jar:/opt/nexus-3.38.1-01/lib/boot/jakarta.xml.bind-api-2.3.3.jar:/opt/nexus-3.38.1-01/lib/boot/jaxb-runtime-2.3.3.jar:/opt/nexus-3.38.1-01/lib/boot/txw2-2.3.3.jar:/opt/nexus-3.38.1-01/lib/boot/istack-commons-runtime-3.0.10.jar:/opt/nexus-3.38.1-01/lib/boot/org.apache.karaf.main-4.3.6.jar:/opt/nexus-3.38.1-01/lib/boot/osgi.core-7.0.0.jar:/opt/nexus-3.38.1-01/lib/boot/org.apache.karaf.specs.activator-4.3.6.jar:/opt/nexus-3.38.1-01/lib/boot/org.apache.karaf.diagnostic.boot-4.3.6.jar:/opt/nexus-3.38.1-01/lib/boot/org.apache.karaf.jaas.boot-4.3.6.jar com.install4j.runtime.launcher.UnixLauncher start 9d17dc87 0 0 org.sonatype.nexus.karaf.NexusMain
nexus      20778  0.0  0.0  10616  3300 pts/0    R+   19:12   0:00 ps aux
nexus      20779  0.0  0.0   8160   732 pts/0    S+   19:12   0:00 grep --color=auto nexus
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In my case the process with process ID &lt;code&gt;20353&lt;/code&gt;. By default it is accessible on the port &lt;code&gt;8081&lt;/code&gt;. We can check it using the command :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;netstat -lpnt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It would give the output :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nexus@ubuntu-s-4vcpu-8gb-intel-blr1-01:~$ netstat -lpnt
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:8081            0.0.0.0:*               LISTEN      20353/java
tcp        0      0 127.0.0.1:44945         0.0.0.0:*               LISTEN      20353/java
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -
tcp6       0      0 :::22                   :::*                    LISTEN      -
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We can confirm from the above output that &lt;code&gt;20353/java&lt;/code&gt;(nexus service) is accessible at port &lt;code&gt;8081&lt;/code&gt;. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If it doesn't show up in your case, give it some time(atleast 5 min) before restarting &lt;br&gt;
the service.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h1&gt;
  
  
  Accessing Nexus from Browser 🤩
&lt;/h1&gt;

&lt;p&gt;We can access Nexus from Browser but for that we need to configure the firewall of our droplet to allow incoming requests to port &lt;code&gt;8081&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;To do so,&lt;/p&gt;

&lt;p&gt;👉 Click on the droplet&lt;/p&gt;

&lt;p&gt;👉 Open &lt;code&gt;Networking&lt;/code&gt; section&lt;/p&gt;

&lt;p&gt;👉 Scroll down to the bottom and click on &lt;code&gt;Edit&lt;/code&gt; button under &lt;code&gt;Firewall&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;👉 Click on &lt;code&gt;Create Firewall&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;👉 Name the &lt;code&gt;Firewall rule&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;👉 Under &lt;code&gt;inbound rules&lt;/code&gt;(rules for incoming requests), create a new &lt;code&gt;Custom&lt;/code&gt; rule. Let the protocol be &lt;code&gt;TCP&lt;/code&gt; and change the port to &lt;code&gt;8081&lt;/code&gt;. Remove &lt;code&gt;All IPv4&lt;/code&gt; and &lt;code&gt;All IPv6&lt;/code&gt; from sources and put your &lt;code&gt;Public IP address&lt;/code&gt; in that field because you don't want your nexus service to be accessible to anyone.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can get your &lt;code&gt;Public IP address&lt;/code&gt; from the URL :&lt;/p&gt;


&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://ifconfig.me/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://i.giphy.com/media/EmVNDCgOctIbwbVcR0/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/EmVNDCgOctIbwbVcR0/giphy.gif" alt="firewall.gif" width="480" height="234"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now to access it from your browser, open up your browser and in the address bar type:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;Droplet's_IPv4&amp;gt;:8081
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;for example it's &lt;code&gt;143.110.189.99:8081&lt;/code&gt;  in my case where &lt;code&gt;143.110.189.99&lt;/code&gt; is my Droplet's IPv4 and &lt;code&gt;8081&lt;/code&gt; is the port number.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/RasHgqFnE5CawSp5de/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/RasHgqFnE5CawSp5de/giphy.gif" alt="nexusinbrowser.gif" width="480" height="252"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Congratulations🥳! You're all set to use Nexus in your Browser🤩.&lt;/p&gt;




&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;If you learnt something new from this blog, make sure you give it a like, share and follow me on the platform. Also, feel free to connect with me on &lt;a href="https://twitter.com/snehstwt"&gt;Twitter&lt;/a&gt;. Thank you for reading!📃&lt;/p&gt;

</description>
      <category>devops</category>
      <category>tutorials</category>
      <category>cloudops</category>
      <category>nexus</category>
    </item>
    <item>
      <title>Top 3 Networking certifications for 2022</title>
      <dc:creator>Sneh Chauhan</dc:creator>
      <pubDate>Wed, 25 May 2022 19:12:48 +0000</pubDate>
      <link>https://community.ops.io/sneh274/top-3-networking-certifications-for-2022-20g2</link>
      <guid>https://community.ops.io/sneh274/top-3-networking-certifications-for-2022-20g2</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Are you among those folks who wonder how two devices separated by oceans are able to communicate to each other or how the bullet you fired on your friend in &lt;em&gt;CS: GO&lt;/em&gt;, get all the way to your friend sitting in LA on his comfy chair? &lt;/p&gt;

&lt;p&gt;If it's you, you must consider giving &lt;strong&gt;Computer Networking&lt;/strong&gt; a shot, after all, who knows it may be the starting point of your IT career.&lt;/p&gt;

&lt;p&gt;Believe me, getting started into IT can be really hard. But that statement is true only if you don't learn IT the right way.&lt;/p&gt;

&lt;p&gt;While learning anything in IT, certifications are the go-to thing, that most of the beginners look for, to break into the field.&lt;/p&gt;

&lt;p&gt;Although they are not mandatory, but it cannot be neglected that almost &lt;code&gt;99%&lt;/code&gt; employers use certifications to make hiring decisions as per &lt;strong&gt;Cisco&lt;/strong&gt; which is the by far the &lt;strong&gt;most dominant player&lt;/strong&gt; in the networking world.&lt;/p&gt;

&lt;p&gt;Certifications are a great source for structured learning. In this article, we will review some of the most in-demand Networking certifications out there in the market.&lt;/p&gt;

&lt;h2&gt;
  
  
  Networking Certifications
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  1. CCNA (Cisco Certified Network Associate)
&lt;/h5&gt;

&lt;blockquote&gt;
&lt;p&gt;CCNA is the most popular vendor-specific network certification in the market. It covers Network fundamentals, IP connectivity, IP services, Security fundamentals and Automation. Cisco also offers CCNP(Professional) and CCIE(Expert level).&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;Pre-requisites: Cisco recommends a year of experience administering Cisco solutions.&lt;/li&gt;
&lt;li&gt;Price: $300 plus taxes&lt;/li&gt;
&lt;li&gt;Languages : English and Japanese&lt;/li&gt;
&lt;li&gt;Duration : 120 minutes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Schedule an exam: &lt;a href="https://www.cisco.com/c/en/us/training-events/training-certifications/exams/current-list/ccna-200-301.html?gclid=Cj0KCQjwpImTBhCmARIsAKr58cyHtnWv5taxPb4pZboqmlIUtaxuuVi4JWfnLJcn0e9bPRIY3pya9v8aAi5UEALw_wcB"&gt;200-301 CCNA - Cisco&lt;/a&gt;&lt;br&gt;
&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  2. CompTIA Network+
&lt;/h5&gt;

&lt;blockquote&gt;
&lt;p&gt;CompTIA Network+ is the perfect choice for the people seeking vendor-neutral network certification. This is recommended for people who want to learn about networking in general for other roles such as DevOps engineering. CompTIA also offers CompTIA A+, CompTIA Linux+, CompTIA Security+, CompTIA Cloud+ and CompTIA Server+.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;Pre-requisites: 9-12 months experience and at least CompTIA A+ certification is recommended.&lt;/li&gt;
&lt;li&gt;Cost: $348 plus taxes&lt;/li&gt;
&lt;li&gt;Languages: English at launch. German, Japanese, Portuguese, Thai and Spanish &lt;/li&gt;
&lt;li&gt;Duration: 90 minutes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Buy Exam: &lt;a href="https://www.comptia.org/certifications/network#buyoptions"&gt;CompTIA Network+&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  3. Juniper Networks Certified Associate (JNCIA-Junos)
&lt;/h5&gt;

&lt;blockquote&gt;
&lt;p&gt;Juniper Networks Certified Associate certification is designed for professionals with beginner-intermediate knowledge of networking. It provides understanding of the core functionality of the Juniper Networks Junos OS.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;Pre-requisites: None&lt;/li&gt;
&lt;li&gt;Cost: $200 plus taxes&lt;/li&gt;
&lt;li&gt;Languages: English only &lt;/li&gt;
&lt;li&gt;Duration: 90 minutes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Register for exam: &lt;a href="https://www.juniper.net/us/en/training/certification/tracks/junos/jncia-junos.html"&gt;JNCIA-Junos&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So what are you waiting for... Kick start your journey today in this amazing world of Networking!&lt;br&gt;
&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

</description>
      <category>networking</category>
      <category>devops</category>
      <category>career</category>
    </item>
    <item>
      <title>Virtual Machines 101</title>
      <dc:creator>Sneh Chauhan</dc:creator>
      <pubDate>Wed, 25 May 2022 19:02:47 +0000</pubDate>
      <link>https://community.ops.io/sneh274/virtual-machines-101-17jo</link>
      <guid>https://community.ops.io/sneh274/virtual-machines-101-17jo</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Alex  : Hey Garry! Can you spin up a VM and test this application?&lt;br&gt;
Garry : Sure, I'll do that right away.&lt;/p&gt;

&lt;p&gt;How often do you hear that idiom &lt;strong&gt;"spin up a VM"&lt;/strong&gt; while conversing in IT? It's quite common right? But for anyone who's just starting his career in cloud, it can be quite overwhelming.&lt;/p&gt;

&lt;p&gt;So... what the heck are VMs? What technology does it use and what are hypervisors? &lt;/p&gt;

&lt;p&gt;Read on to know more👇&lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Virtualization🤔?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://community.ops.io/images/aJhlD2JNua-Ru60v3ZXUmQI4TtiNLd8M3warityVo2U/w:880/mb:500000/ar:1/aHR0cHM6Ly9kZXYt/dG8tdXBsb2Fkcy5z/My5hbWF6b25hd3Mu/Y29tL3VwbG9hZHMv/YXJ0aWNsZXMvYWw3/YjV1bXBwYjFvNzdq/dWMwa3MuanBn" class="article-body-image-wrapper"&gt;&lt;img src="https://community.ops.io/images/aJhlD2JNua-Ru60v3ZXUmQI4TtiNLd8M3warityVo2U/w:880/mb:500000/ar:1/aHR0cHM6Ly9kZXYt/dG8tdXBsb2Fkcy5z/My5hbWF6b25hd3Mu/Y29tL3VwbG9hZHMv/YXJ0aWNsZXMvYWw3/YjV1bXBwYjFvNzdq/dWMwa3MuanBn" alt="Image description" width="880" height="660"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As per Wikipedia,&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Virtualization&lt;/strong&gt; is the act of creating a virtual (rather than actual) version of something, including virtual computer hardware platforms, storage devices, and computer network resources.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Or to put it simply, &lt;strong&gt;Virtualization&lt;/strong&gt; means &lt;strong&gt;splitting physical resource&lt;/strong&gt; like memory, CPU and storage into multiple virtual resources. &lt;/p&gt;

&lt;p&gt;It's a &lt;strong&gt;technology&lt;/strong&gt; that allows us to utilize a machine's full capacity by distributing it's resources among multiple environments each isolated from one another.&lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Virtual Machine🔖
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://community.ops.io/images/bXi6cM7htlMbkQ3EcsEj5ze0F6hU8NY-zvsocSdA89s/w:880/mb:500000/ar:1/aHR0cHM6Ly9kZXYt/dG8tdXBsb2Fkcy5z/My5hbWF6b25hd3Mu/Y29tL3VwbG9hZHMv/YXJ0aWNsZXMvZmY4/ZmZsa2YzMXNodjl3/MnZoNjIuanBn" class="article-body-image-wrapper"&gt;&lt;img src="https://community.ops.io/images/bXi6cM7htlMbkQ3EcsEj5ze0F6hU8NY-zvsocSdA89s/w:880/mb:500000/ar:1/aHR0cHM6Ly9kZXYt/dG8tdXBsb2Fkcy5z/My5hbWF6b25hd3Mu/Y29tL3VwbG9hZHMv/YXJ0aWNsZXMvZmY4/ZmZsa2YzMXNodjl3/MnZoNjIuanBn" alt="Image description" width="880" height="587"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A &lt;strong&gt;"Virtual Machine"&lt;/strong&gt; or &lt;strong&gt;"VM"&lt;/strong&gt; is a &lt;code&gt;virtual instance&lt;/code&gt; of a computer. Just like other computers it has a CPU, memory and storage. &lt;/p&gt;

&lt;p&gt;These virtual machines run on a physical computer and a software called &lt;strong&gt;"Hypervisor"&lt;/strong&gt; manages their allocation and access to the computing resources. &lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Hypervisor🔖
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;Hypervisor&lt;/code&gt; or &lt;code&gt;Virtual Machine Monitor&lt;/code&gt; is a virtualization software which allows one to build and run different VMs. It lets one host computer support multiple guest VMs by sharing its resources like memory and CPU.&lt;/p&gt;

&lt;p&gt;Hypervisors are of two types:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Type-1 Hypervisor&lt;/li&gt;
&lt;li&gt;Type-2 Hypervisor

&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Type-1 Hypervisor🔖
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;Type-1 Hypervisor&lt;/code&gt; or &lt;code&gt;Native Hypervisor&lt;/code&gt; runs directly on host's hardware and replaces the Host operating system. &lt;br&gt;
As it sits directly on the hardware, it is also called &lt;code&gt;Bare-Metal Hypervisor&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://community.ops.io/images/MglJleqjvVtZJ4ClMsBruvwx6DSSNtwP9rM25JSi3Fk/w:880/mb:500000/ar:1/aHR0cHM6Ly9kZXYt/dG8tdXBsb2Fkcy5z/My5hbWF6b25hd3Mu/Y29tL3VwbG9hZHMv/YXJ0aWNsZXMvbTJ0/d2RwZ2lza253bTJ0/aTJyOW8ucG5n" class="article-body-image-wrapper"&gt;&lt;img src="https://community.ops.io/images/MglJleqjvVtZJ4ClMsBruvwx6DSSNtwP9rM25JSi3Fk/w:880/mb:500000/ar:1/aHR0cHM6Ly9kZXYt/dG8tdXBsb2Fkcy5z/My5hbWF6b25hd3Mu/Y29tL3VwbG9hZHMv/YXJ0aWNsZXMvbTJ0/d2RwZ2lza253bTJ0/aTJyOW8ucG5n" alt="Type-1 Hypervisor" width="656" height="499"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Usage:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;It is very commonly used in data centers and other server-based environments due to its high performance.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Advantages:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Higher performance&lt;/code&gt; (as it has direct access to the hardware)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;More Secure&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;No Single point-of-failure&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Better Scalability&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Disadvantages:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;Needs a dedicated machine to administer different VMs and control hardware.&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;



&lt;blockquote&gt;
&lt;p&gt;Few of the mostly widely used Type-1 Hypervisors are &lt;strong&gt;VMware ESXi&lt;/strong&gt;, &lt;strong&gt;Microsoft Hyper-V&lt;/strong&gt; and &lt;strong&gt;KVM&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;



&lt;h2&gt;
  
  
  Type-2 Hypervisor🔖
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;Type-2 Hypervisor&lt;/code&gt;  or &lt;code&gt;Hosted Hypervisor&lt;/code&gt; runs as an &lt;strong&gt;application&lt;/strong&gt; on the top of the Host operating system. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://community.ops.io/images/mH5ZP3hexnuPG8H9zGEHCf-2pMYllXd6wtI5EQBcDWA/w:880/mb:500000/ar:1/aHR0cHM6Ly9kZXYt/dG8tdXBsb2Fkcy5z/My5hbWF6b25hd3Mu/Y29tL3VwbG9hZHMv/YXJ0aWNsZXMvdTU4/Y3YxeWhhY2cwanB1/bTRpYWUucG5n" class="article-body-image-wrapper"&gt;&lt;img src="https://community.ops.io/images/mH5ZP3hexnuPG8H9zGEHCf-2pMYllXd6wtI5EQBcDWA/w:880/mb:500000/ar:1/aHR0cHM6Ly9kZXYt/dG8tdXBsb2Fkcy5z/My5hbWF6b25hd3Mu/Y29tL3VwbG9hZHMv/YXJ0aWNsZXMvdTU4/Y3YxeWhhY2cwanB1/bTRpYWUucG5n" alt="Type-2 Hypervisor" width="656" height="560"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Usage:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;It is commonly used by people who want to &lt;strong&gt;try&lt;/strong&gt; out different operating systems or want to &lt;strong&gt;test&lt;/strong&gt; their application for compatibility.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Advantages:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;Cost efficient&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Simplified Management&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Threat isolation&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Disadvantages:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;Compromised performance&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Single point of failure&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Few of the most widely used Type-2 hypervisors are &lt;strong&gt;VirtualBox&lt;/strong&gt;, &lt;strong&gt;VMware Workstation&lt;/strong&gt; and &lt;strong&gt;Parallel Desktop&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>devops</category>
      <category>cloudops</category>
      <category>tutorials</category>
    </item>
    <item>
      <title>15 Vim shortcuts that will make your life easier</title>
      <dc:creator>Sneh Chauhan</dc:creator>
      <pubDate>Wed, 25 May 2022 18:55:15 +0000</pubDate>
      <link>https://community.ops.io/sneh274/15-vim-shortcuts-that-will-make-your-life-easier-2nfj</link>
      <guid>https://community.ops.io/sneh274/15-vim-shortcuts-that-will-make-your-life-easier-2nfj</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;If you ever installed Linux in your life, I'm sure you might have come across &lt;strong&gt;Vim&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Vim&lt;/strong&gt; is a &lt;code&gt;command-line&lt;/code&gt; based &lt;strong&gt;text editor&lt;/strong&gt;. It's a great tool but I won't say that it's the best text editor in Linux as it would lead to a never-ending debate. &lt;/p&gt;

&lt;p&gt;Vim is actually an &lt;code&gt;improved&lt;/code&gt; version of the old &lt;code&gt;vi editor&lt;/code&gt;. It comes with many new features including &lt;strong&gt;multi-level undo&lt;/strong&gt;, &lt;strong&gt;multiple window support&lt;/strong&gt;, &lt;strong&gt;visual mode&lt;/strong&gt; and &lt;strong&gt;command-line completion&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If you're using it for the first time, you may have hard time trying to exit Vim.&lt;br&gt;
.&lt;br&gt;
.&lt;br&gt;
.&lt;br&gt;
What? Don't you believe me? &lt;/p&gt;

&lt;p&gt;Here's the proof :&lt;/p&gt;


&lt;blockquote class="ltag__twitter-tweet"&gt;

  &lt;div class="ltag__twitter-tweet__main"&gt;
    &lt;div class="ltag__twitter-tweet__header"&gt;
      &lt;img class="ltag__twitter-tweet__profile-image" src="https://community.ops.io/images/E-6ohYMICbHCL4SCMXsRwolhZw_FulwlYOxtLOr8394/w:880/mb:500000/ar:1/aHR0cHM6Ly9wYnMu/dHdpbWcuY29tL3By/b2ZpbGVfaW1hZ2Vz/LzEyMjAwNjc5NDc3/OTgwMjQxOTIvMzBl/WmhmeHhfbm9ybWFs/LnBuZw" alt="Stack Overflow profile image"&gt;
      &lt;div class="ltag__twitter-tweet__full-name"&gt;
        Stack Overflow
      &lt;/div&gt;
      &lt;div class="ltag__twitter-tweet__username"&gt;
        @stackoverflow
      &lt;/div&gt;
      &lt;div class="ltag__twitter-tweet__twitter-logo"&gt;
        &lt;img src="/assets/twitter-f95605061196010f91e64806688390eb1a4dbc9e913682e043eb8b1e06ca484f.svg" alt="twitter logo"&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="ltag__twitter-tweet__body"&gt;
      Stack Overflow launched in 2008, demonstrating what’s possible with the internet: an open community that gives people knowledge at their fingertips.&lt;br&gt;&lt;br&gt;Since then, over 1.8M people have visited us just to learn how to exit Vim. &lt;a href="https://twitter.com/hashtag/Web30"&gt;#Web30&lt;/a&gt; &lt;a href="https://twitter.com/hashtag/ForTheWeb"&gt;#ForTheWeb&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a href="https://t.co/cLUddO4QGw"&gt;stackoverflow.com/questions/1182…&lt;/a&gt;
    &lt;/div&gt;
    &lt;div class="ltag__twitter-tweet__date"&gt;
      02:00 AM - 13 Mar 2019
    &lt;/div&gt;


    &lt;div class="ltag__twitter-tweet__actions"&gt;
      &lt;a href="https://twitter.com/intent/tweet?in_reply_to=1105649774504669184" class="ltag__twitter-tweet__actions__button"&gt;
        &lt;img src="/assets/twitter-reply-action-238fe0a37991706a6880ed13941c3efd6b371e4aefe288fe8e0db85250708bc4.svg" alt="Twitter reply action"&gt;
      &lt;/a&gt;
      &lt;a href="https://twitter.com/intent/retweet?tweet_id=1105649774504669184" class="ltag__twitter-tweet__actions__button"&gt;
        &lt;img src="/assets/twitter-retweet-action-632c83532a4e7de573c5c08dbb090ee18b348b13e2793175fea914827bc42046.svg" alt="Twitter retweet action"&gt;
      &lt;/a&gt;
      &lt;a href="https://twitter.com/intent/like?tweet_id=1105649774504669184" class="ltag__twitter-tweet__actions__button"&gt;
        &lt;img src="/assets/twitter-like-action-1ea89f4b87c7d37465b0eb78d51fcb7fe6c03a089805d7ea014ba71365be5171.svg" alt="Twitter like action"&gt;
      &lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/blockquote&gt;


&lt;p&gt;In this blog, I'll list down 15 shortcuts that will save you a lot of time while working with &lt;code&gt;vim&lt;/code&gt;.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Shortcut key&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Function&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;w&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;To &lt;code&gt;move forward&lt;/code&gt; by one word(you need to be in normal mode).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;b&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;To &lt;code&gt;move backward&lt;/code&gt; by one word(you need to be in normal mode).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;gg&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;To &lt;code&gt;move to the beginning&lt;/code&gt; of the file.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;G&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;To &lt;code&gt;move to the end&lt;/code&gt; of the file(last line).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;dw&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;To &lt;code&gt;delete the word&lt;/code&gt;, cursor is positioned upon.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;dd&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;To &lt;code&gt;delete the line&lt;/code&gt;, cursor is positioned upon.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;d2d&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;To &lt;code&gt;delete 2 lines&lt;/code&gt;, starting from the line, the cursor is upon.&lt;br&gt;You can replace '2' by any number and delete any number of lines.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;u&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;To &lt;code&gt;undo&lt;/code&gt; the last operation performed.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Ctrl+r&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;To &lt;code&gt;redo&lt;/code&gt; the last operation performed.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;/&lt;strong&gt;sample_text&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;To &lt;code&gt;search&lt;/code&gt; for the 'sample_text' in the file. Use &lt;code&gt;n&lt;/code&gt; to move to next occurrence and &lt;code&gt;N&lt;/code&gt; to move to the previous occurrence of the text(in Command mode).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;:&lt;strong&gt;%s&lt;/strong&gt;/&lt;strong&gt;old&lt;/strong&gt;/&lt;strong&gt;new&lt;/strong&gt;/&lt;strong&gt;g&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;Replaces&lt;/code&gt; all the occurrences of the &lt;code&gt;old&lt;/code&gt; text with &lt;code&gt;new&lt;/code&gt; text(in Command mode).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;:&lt;strong&gt;q!&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;To &lt;code&gt;quit the file discarding all the changes&lt;/code&gt; made to the file(in Command mode).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;:&lt;strong&gt;wq&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;To &lt;code&gt;save the file&lt;/code&gt; and &lt;code&gt;quit&lt;/code&gt;(in Command mode).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;:&lt;strong&gt;w sample_filename&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;To &lt;code&gt;save&lt;/code&gt; the file with filename 'sample_filename'(in Command mode).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;:&lt;strong&gt;q&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;To &lt;code&gt;quit&lt;/code&gt; Vim. It fails when changes has been made to file(in Command mode).&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;



&lt;p&gt;That's all for the blog. I hope you had good time reading the blog!😃&lt;/p&gt;

</description>
      <category>devops</category>
      <category>linux</category>
      <category>tutorials</category>
    </item>
  </channel>
</rss>
