<?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>Forem: Ashwin Telmore</title>
    <description>The latest articles on Forem by Ashwin Telmore (@ashwintelmore).</description>
    <link>https://forem.com/ashwintelmore</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F947058%2Fa088cd89-aef9-4226-a3c5-11dcc5b842c2.jpeg</url>
      <title>Forem: Ashwin Telmore</title>
      <link>https://forem.com/ashwintelmore</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/ashwintelmore"/>
    <language>en</language>
    <item>
      <title>How to Install Hadoop on Ubuntu 18.04 or 20.04</title>
      <dc:creator>Ashwin Telmore</dc:creator>
      <pubDate>Sat, 19 Nov 2022 12:52:44 +0000</pubDate>
      <link>https://forem.com/ashwintelmore/how-to-install-hadoop-on-ubuntu-1804-or-2004-38f9</link>
      <guid>https://forem.com/ashwintelmore/how-to-install-hadoop-on-ubuntu-1804-or-2004-38f9</guid>
      <description>&lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Access to a terminal window/command line&lt;/li&gt;
&lt;li&gt;Sudo or root privileges on local /remote machines&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Use the following command to update your system before initiating a new installation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Type the following command in your terminal to install OpenJDK 8:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt install openjdk-8-jdk -y
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once the installation process is complete, verify the current Java version:&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; javac -version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Install OpenSSH on Ubuntu&lt;/strong&gt;&lt;br&gt;
Install the OpenSSH server and client using the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt install openssh-server openssh-client -y
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Create Hadoop User&lt;/p&gt;

&lt;p&gt;Utilize the adduser command to create a new Hadoop user:&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;enter the corresponding password:&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;Generate an SSH key pair and define the location is is to be stored in:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use the cat command to store the public key as authorized_keys in the ssh directory:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cat ~/.ssh/id_rsa.pub &amp;gt;&amp;gt; ~/.ssh/authorized_keys
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Set the permissions for your user with the chmod command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;chmod 0600 ~/.ssh/authorized_keys
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;hdoop user to SSH to localhost:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssh localhost
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Download and Install Hadoop on Ubuntu&lt;/strong&gt;&lt;br&gt;
Visit the official Apache Hadoop project page, and select the version of Hadoop you want to implement.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;tar xzf hadoop-3.2.1.tar.gz
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Single Node Hadoop Deployment (Pseudo-Distributed Mode)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Edit the .bashrc shell configuration file using a text editor of your choice (we will be using nano):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo nano .bashrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Define the Hadoop environment variables by adding the following content to the end of the file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#Hadoop Related Options
export HADOOP_HOME=/home/ashwin/hadoop-3.2.1
export HADOOP_INSTALL=$HADOOP_HOME
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export YARN_HOME=$HADOOP_HOME
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export PATH=$PATH:$HADOOP_HOME/sbin:$HADOOP_HOME/bin
export HADOOP_OPTS"-Djava.library.path=$HADOOP_HOME/lib/nativ"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It is vital to apply the changes to the current running environment by using the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;source ~/.bashrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use the previously created $HADOOP_HOME variable to access the hadoop-env.sh file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo nano $HADOOP_HOME/etc/hadoop/hadoop-env.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;. If you have installed the same version as presented in the first part of this tutorial, add the following line:&lt;/p&gt;

&lt;p&gt;export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64&lt;/p&gt;

&lt;p&gt;Use the provided path to find the OpenJDK directory with the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo $JAVA_HOME
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open the core-site.xml file in a text editor:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo nano $HADOOP_HOME/etc/hadoop/core-site.xml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add the following configuration to override the default values for the temporary directory and add your HDFS URL to replace the default local file system setting:&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;configuration&amp;gt;
&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;hadoop.tmp.dir&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;/home/ashwin/tmpdata&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;fs.default.name&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;hdfs://127.0.0.1:9000&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;/configuration&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use the following command to open the hdfs-site.xml file for editing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo nano $HADOOP_HOME/etc/hadoop/hdfs-site.xml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add the following configuration to the file and, if needed, adjust the NameNode and DataNode directories to your custom locations:&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;configuration&amp;gt;
&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;dfs.data.dir&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;/home/ashwin/dfsdata/namenode&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;dfs.data.dir&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;/home/ashwin/dfsdata/datanode&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;dfs.replication&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;1&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;/configuration&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use the following command to access the mapred-site.xml file and define MapReduce values:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo nano $HADOOP_HOME/etc/hadoop/mapred-site.xml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add the following configuration to change the default MapReduce framework name value to yarn:&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;configuration&amp;gt; 
&amp;lt;property&amp;gt; 
  &amp;lt;name&amp;gt;mapreduce.framework.name&amp;lt;/name&amp;gt; 
  &amp;lt;value&amp;gt;yarn&amp;lt;/value&amp;gt; 
&amp;lt;/property&amp;gt; 
&amp;lt;/configuration&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open the yarn-site.xml file in a text editor:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo nano $HADOOP_HOME/etc/hadoop/yarn-site.xml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Append the following configuration to the file:&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;configuration&amp;gt;
&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;yarn.nodemanager.aux-services&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;mapreduce_shuffle&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;yarn.nodemanager.aux-services.mapreduce.shuffle.class&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;org.apache.hadoop.mapred.ShuffleHandler&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;yarn.resourcemanager.hostname&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;127.0.0.1&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;yarn.acl.enable&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;0&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;yarn.nodemanager.env-whitelist&amp;lt;/name&amp;gt;   
  &amp;lt;value&amp;gt;JAVA_HOME,HADOOP_COMMON_HOME,HADOOP_HDFS_HOME,HADOOP_CONF_DIR,CLASSPATH_PERPEND_DISTCACHE,HADOOP_YARN_HOME,HADOOP_MAPRED_HOME&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;/configuration&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It is important to format the NameNode before starting Hadoop services for the first time:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;hdfs namenode -format
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Navigate to the hadoop-3.2.1/sbin directory and execute the following commands to start the NameNode and DataNode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;./start-all.sh

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

&lt;/div&gt;



&lt;p&gt;Type this simple command to check if all the daemons are active and running as Java processes:&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;Done! 🙂&lt;/p&gt;

</description>
      <category>hadoop</category>
      <category>ubuntu</category>
      <category>installation</category>
      <category>practical</category>
    </item>
    <item>
      <title>To study Apache Kafka Architecture in details, and how to install, deploy configure Apache kafka.</title>
      <dc:creator>Ashwin Telmore</dc:creator>
      <pubDate>Thu, 17 Nov 2022 20:46:27 +0000</pubDate>
      <link>https://forem.com/ashwintelmore/to-study-apache-kafka-architecture-in-details-andhow-to-install-deploy-configure-apache-kafka-2p8m</link>
      <guid>https://forem.com/ashwintelmore/to-study-apache-kafka-architecture-in-details-andhow-to-install-deploy-configure-apache-kafka-2p8m</guid>
      <description>&lt;p&gt;Apache Kafka is an open-source, distributed event streaming platform developed by the Apache Software Foundation. This is written in Scala and Java programming languages. You can install Kafka on any platform that supports Java programming language.&lt;/p&gt;

&lt;p&gt;This tutorial provides you with step-by-step instructions to install Apache Kafka on Ubuntu 22.04 LTS Linux system. You will also learn to create topics in Kafka and run producer and consumer nodes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;br&gt;
You must have sudo privileged account access to the Ubuntu 22.04 Linux system.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1 – Installing Java&lt;/strong&gt;&lt;br&gt;
We can run the Apache Kafka server on systems that support Java. So make sure, you have Java installed on your Ubuntu system.&lt;/p&gt;

&lt;p&gt;Use the following commands to install OpenJDK on your Ubuntu system from the official repositories.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt update  
sudo apt install default-jdk 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verify the current active Java version.&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;&lt;strong&gt;Output:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;openjdk version "11.0.15" 2022-04-19&lt;br&gt;
OpenJDK Runtime Environment (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1)&lt;br&gt;
OpenJDK 64-Bit Server VM (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1, mixed mode, sharing)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Step 2 – Download Latest Apache Kafka&lt;/strong&gt;&lt;br&gt;
You can download the latest Apache Kafka binary files from its &lt;a href="https://kafka.apache.org/downloads"&gt;official download page&lt;/a&gt;. Alternativaly you can download Kafka 3.2.0 with the below command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;wget https://dlcdn.apache.org/kafka/3.2.0/kafka_2.13-3.2.0.tgz 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then extract the downloaded archive file and place them under /usr/local/kafka directory.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
tar xzf kafka_2.13-3.2.0.tgz 
sudo mv kafka_2.13-3.2.0 /usr/local/kafka 

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 3 – Create Systemd Startup Scripts&lt;/strong&gt;&lt;br&gt;
Now, create systemd unit files for the Zookeeper and Kafka services. That will help you to start/stop the Kafka service in an easy way.&lt;/p&gt;

&lt;p&gt;First, create a systemd unit file for Zookeeper:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo nano /etc/systemd/system/zookeeper.service 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And add the following content:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[Unit]
Description=Apache Zookeeper server
Documentation=http://zookeeper.apache.org
Requires=network.target remote-fs.target
After=network.target remote-fs.target

[Service]
Type=simple
ExecStart=/usr/local/kafka/bin/zookeeper-server-start.sh /usr/local/kafka/config/zookeeper.properties
ExecStop=/usr/local/kafka/bin/zookeeper-server-stop.sh
Restart=on-abnormal

[Install]
WantedBy=multi-user.target
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Save the file and close it.&lt;/p&gt;

&lt;p&gt;Next, create a systemd unit file for the Kafka service:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo nano /etc/systemd/system/kafka.service 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add the below content. Make sure to set the correct JAVA_HOME path as per the Java installed on your system.&lt;/p&gt;

&lt;p&gt;find &lt;code&gt;/usr/lib/jvm/java-1.x.x-openjdk&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;sudo vim /etc/profile
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export JAVA_HOME="path that you found"
export PATH=$JAVA_HOME/bin:$PATH
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;logout and login again, reboot, or use &lt;code&gt;source /etc/profile&lt;/code&gt; to apply changes immediately in your current shell&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[Unit]
Description=Apache Kafka Server
Documentation=http://kafka.apache.org/documentation.html
Requires=zookeeper.service

[Service]
Type=simple
Environment="JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64"
ExecStart=/usr/local/kafka/bin/kafka-server-start.sh /usr/local/kafka/config/server.properties
ExecStop=/usr/local/kafka/bin/kafka-server-stop.sh

[Install]
WantedBy=multi-user.target
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Save the file and close.&lt;/p&gt;

&lt;p&gt;Reload the systemd daemon to apply new changes.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo systemctl daemon-reload 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will reload all the systemd files in the system environment.&lt;/p&gt;

&lt;p&gt;Step 4 – Start Zookeeper and Kafka Services&lt;/p&gt;

&lt;p&gt;Let’s start both services one by one. First, you need to start the ZooKeeper service and then start Kafka. Use the systemctl command to start a single-node ZooKeeper instance.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo systemctl start zookeeper 
sudo systemctl start kafka 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verify both of the services status:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo systemctl status zookeeper 
sudo systemctl status kafka 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That’s it. You have successfully installed the Apache Kafka server on Ubuntu 22.04 system. Next, we will create topics in the Kafka server.&lt;/p&gt;

</description>
      <category>bigdata</category>
      <category>apache</category>
      <category>kafka</category>
      <category>manual</category>
    </item>
    <item>
      <title>Program on the concept of array and operations on array in JavaScript.</title>
      <dc:creator>Ashwin Telmore</dc:creator>
      <pubDate>Tue, 11 Oct 2022 08:16:36 +0000</pubDate>
      <link>https://forem.com/ashwintelmore/program-on-the-concept-of-array-and-operations-on-array-in-javascript-4m8b</link>
      <guid>https://forem.com/ashwintelmore/program-on-the-concept-of-array-and-operations-on-array-in-javascript-4m8b</guid>
      <description>&lt;h1&gt;
  
  
  Aim: Program on the concept of array and operations on array.
&lt;/h1&gt;

&lt;h3&gt;
  
  
  Requirements:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Working PC or Laptop ,&lt;/li&gt;
&lt;li&gt;Installed any operating system&lt;/li&gt;
&lt;li&gt;Any browser (Google Chrome)&lt;/li&gt;
&lt;li&gt;Any code Editor(VS Code)&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  Theory:
&lt;/h1&gt;

&lt;p&gt;In JavaScript, array is a single variable that is used to store different elements. It is often used when we want to store list of elements and access them by a single variable. Unlike most languages where array is a reference to the multiple variables, in JavaScript array is a single variable that stores multiple elements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Declaration of an Array&lt;/strong&gt; There are basically two ways to declare an array. Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var House = []; // method 1 
var House = new Array(); // method 2

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Push function Definition and Usage&lt;/strong&gt; The push() method adds new items to the end of an array.&lt;/p&gt;

&lt;p&gt;The push() method changes the length of the array.&lt;/p&gt;

&lt;p&gt;The push() method returns the new length.&lt;/p&gt;

&lt;p&gt;Examples Add a new item to an array:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const fruits = ["1", "2", "3", "4"];
fruits.push("5");

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Pop function Definition and Usage&lt;/strong&gt; The pop() method removes (pops) the last element of an array.&lt;/p&gt;

&lt;p&gt;The pop() method changes the original array.&lt;/p&gt;

&lt;p&gt;The pop() method returns the removed element.&lt;/p&gt;

&lt;p&gt;Examples Remove (pop) the last element:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const fruits = ["1", "2", "3", "4"];
fruits.pop();

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Unshift function Definition and Usage&lt;/strong&gt; The unshift() method adds new elements to the beginning of an array.&lt;/p&gt;

&lt;p&gt;The unshift() method overwrites the original array.&lt;/p&gt;

&lt;p&gt;Examples Shift (remove) the first element of the array:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.shift();

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Shift function Definition and Usage&lt;/strong&gt; The shift() method removes the first item of an array.&lt;/p&gt;

&lt;p&gt;The shift() method changes the original array.&lt;/p&gt;

&lt;p&gt;The shift() method returns the shifted element.&lt;/p&gt;

&lt;p&gt;Examples Shift (remove) the first element of the array:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.shift();

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Concat function Definition and Usage&lt;/strong&gt; The concat() method concatenates (joins) two or more arrays.&lt;/p&gt;

&lt;p&gt;The concat() method returns a new array, containing the joined arrays.&lt;/p&gt;

&lt;p&gt;The concat() method does not change the existing arrays.&lt;/p&gt;

&lt;p&gt;Examples Join two arrays:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const arr1 = ["Cecilie", "Lone"];
const arr2 = ["Emil", "Tobias", "Linus"];
const children = arr1.concat(arr2);

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;slice function Definition and Usage&lt;/strong&gt; The slice() method returns selected elements in an array, as a new array.&lt;/p&gt;

&lt;p&gt;The slice() method selects from a given start, up to a (not inclusive) given end.&lt;/p&gt;

&lt;p&gt;The slice() method does not change the original array.&lt;/p&gt;

&lt;p&gt;Examples Select elements:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const fruits = ["Banana", "Orange", "Lemon", "Apple", "Mango"];
const citrus = fruits.slice(1, 3);

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Splice Definition and Usage&lt;/strong&gt; The splice() method adds and/or removes array elements.&lt;/p&gt;

&lt;p&gt;The splice() method overwrites the original array.&lt;/p&gt;

&lt;p&gt;Examples At position 2, add 2 elements:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.splice(2, 0, "Lemon", "Kiwi");

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Filter function Definition and Usage&lt;/strong&gt; The filter() method creates a new array filled with elements that pass a test provided by a function.&lt;/p&gt;

&lt;p&gt;The filter() method does not execute the function for empty elements. The filter() method does not change the original array.&lt;/p&gt;

&lt;p&gt;Example 1 Return an array of all values in ages[] that are 18 or over:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const ages = [32, 33, 16, 40];
const result = ages.filter(checkAdult);

function checkAdult(age) {
  return age &amp;gt;= 18;
}

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  Program code
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var a = [1,2,3];
console.log('a :&amp;gt;&amp;gt; ', a);
console.log("push operations ")
a.push(4);
console.log('a :&amp;gt;&amp;gt; ', a);
a.push(5);
console.log('a :&amp;gt;&amp;gt; ', a);

console.log("pop operations ")
 console.log('a.pop() :&amp;gt;&amp;gt; ', a.pop()); 
 console.log('a.pop() :&amp;gt;&amp;gt; ', a.pop()); 
console.log('a :&amp;gt;&amp;gt; ', a);

console.log("shift operations ")
 console.log('a.shift() :&amp;gt;&amp;gt; ', a.shift()); 
console.log('a.shift() :&amp;gt;&amp;gt; ', a.shift()); 
console.log('a :&amp;gt;&amp;gt; ', a);

console.log("unshift operations ")
console.log('a.unshift(1) :&amp;gt;&amp;gt; '); 
console.log('a.unshift(2) :&amp;gt;&amp;gt; '); 
a.unshift(1);
a.unshift(2);
console.log('a :&amp;gt;&amp;gt; ', a);

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  Output:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--M3nFJQn4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1665476081045/M1wqQ0ATx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--M3nFJQn4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1665476081045/M1wqQ0ATx.png" alt="image.png" width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion:
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Result:
&lt;/h2&gt;

</description>
    </item>
    <item>
      <title>How to use FTP servers in Ubuntu</title>
      <dc:creator>Ashwin Telmore</dc:creator>
      <pubDate>Tue, 11 Oct 2022 08:01:18 +0000</pubDate>
      <link>https://forem.com/ashwintelmore/how-to-use-ftp-servers-in-ubuntu-4jh6</link>
      <guid>https://forem.com/ashwintelmore/how-to-use-ftp-servers-in-ubuntu-4jh6</guid>
      <description>&lt;p&gt;In This blog we will see how to install and configure an FTP server on Ubuntu 20.04 that you use to share files between your devices.&lt;/p&gt;

&lt;p&gt;FTP stand for File Transfer Protocol which is a standard network protocol used to transfer files to and from a remote system. We will be installing vsftpd which stand for Very Secure Ftp Daemon, a stable, secure, and fast FTP server.&lt;/p&gt;

&lt;p&gt;FTP is a very popular protocol, for more secure and faster data transfers&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Installing vsftpd on Ubuntu 20.04&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The vsftpd package is available in the Ubuntu repositories. To install it, run the following commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt update


sudo apt install vsftpd

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

&lt;/div&gt;



&lt;p&gt;The ftp service will automatically start once the installation process is complete. To verify it, print the service status:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo systemctl status vsftpd

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

&lt;/div&gt;



&lt;p&gt;The output should show that the vsftpd service is active and running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; vsftpd.service - vsftpd FTP server
     Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2021-03-02 15:17:22 UTC; 3s ago
      .
      .
      .

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

&lt;/div&gt;



&lt;p&gt;Configuring vsftpd The vsftpd server configuration is stored in the &lt;code&gt;/etc/vsftpd.conf&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;For more visit the &lt;a href="http://vsftpd.beasts.org/vsftpd_conf.html" rel="noopener noreferrer"&gt;vsftpd documentation page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In the following sections, we will go over some important settings needed to configure a secure vsftpd installation.&lt;/p&gt;

&lt;p&gt;Start by opening the vsftpd configuration file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo vi /etc/vsftpd.conf

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

&lt;/div&gt;



&lt;p&gt;Paste these properties at last&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;listen=NO
listen_ipv6=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
user_sub_token=$USER
local_root=/home/$USER/ftp
pasv_min_port=30000
pasv_max_port=31000
userlist_enable=YES
userlist_file=/etc/vsftpd.user_list
userlist_deny=NO

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

&lt;/div&gt;



&lt;p&gt;Save the file and restart the vsftpd service for changes to take effect:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo systemctl restart vsftpd

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

&lt;/div&gt;



&lt;p&gt;Opening the Firewall If you are running a UFW firewall , youll need to allow FTP traffic.&lt;/p&gt;

&lt;p&gt;To open port 21 (FTP command port), port 20 (FTP data port), and 30000-31000 (Passive ports range), run the following commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo ufw allow 20:21/tcp
sudo ufw allow 30000:31000/tcp

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

&lt;/div&gt;



&lt;p&gt;To avoid being locked out, make sure port 22 is open:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo ufw allow OpenSSH

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

&lt;/div&gt;



&lt;p&gt;Reload the UFW rules by disabling and re-enabling UFW:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo ufw disable
sudo ufw enable

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

&lt;/div&gt;



&lt;p&gt;To verify the changes run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo ufw status

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

&lt;/div&gt;



&lt;p&gt;Output look like&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Status: active
To Action From
-- ------ ----
20:21/tcp ALLOW Anywhere
30000:31000/tcp ALLOW Anywhere
OpenSSH ALLOW Anywhere
20:21/tcp (v6) ALLOW Anywhere (v6)
30000:31000/tcp (v6) ALLOW Anywhere (v6)
OpenSSH (v6) ALLOW Anywhere (v6)

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Creating FTP User&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To test the FTP server, we will create a new user. Create a new user named &lt;code&gt;newuser&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;sudo adduser newuser

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

&lt;/div&gt;



&lt;p&gt;Add the user to the allowed FTP users list:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo "newuser" | sudo tee -a /etc/vsftpd.user_list

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

&lt;/div&gt;



&lt;p&gt;Create the FTP directory tree and set the correct permissions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo mkdir -p /home/newuser/ftp

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

&lt;/div&gt;



&lt;p&gt;Give the require permission to the newuser.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo chmod 777 /home/newuser/ftp


sudo chown -R newuser: /home/newuser/ftp

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Test your configuration&lt;/strong&gt; Perform the following step in another windows/Linux system to test out&lt;/p&gt;

&lt;p&gt;step 1: open Command line interface of your respective system and run this following command with replacing the &lt;code&gt;ip_address&lt;/code&gt; of remote system&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ftp ip_address

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

&lt;/div&gt;



&lt;p&gt;Enter the user name which you newly created with password and you will see the following output&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;C:\Users\window&amp;gt;ftp 192.168.29.128 
Connected to 192.168.29.128. 
220 (vsFTPd 3.0.3) 
200 Always in UTF8 mode. User (192.168.29.128:(none)): newuser
331 Please specify the password.
Password: 
230 Login successful.
ftp&amp;gt;

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

&lt;/div&gt;



&lt;p&gt;Done!😎&lt;/p&gt;

&lt;p&gt;Read the next blog to upload and download the file through the ftp&lt;/p&gt;

</description>
      <category>opensource</category>
    </item>
    <item>
      <title>How to access remote system by telnet server in 2022</title>
      <dc:creator>Ashwin Telmore</dc:creator>
      <pubDate>Tue, 11 Oct 2022 07:40:16 +0000</pubDate>
      <link>https://forem.com/ashwintelmore/how-to-access-remote-system-by-telnet-server-in-2022-4ioj</link>
      <guid>https://forem.com/ashwintelmore/how-to-access-remote-system-by-telnet-server-in-2022-4ioj</guid>
      <description>&lt;p&gt;Via telnet server we can access the any computer remotely. whoever telnet is not good option for the accessing the computer instead of telnet we should use ssh but in this blog we gona talk about telnet&lt;/p&gt;

&lt;p&gt;here are the steps&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Requirements&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A server with Ubuntu 22.04 installed.&lt;/li&gt;
&lt;li&gt;A non-root user with sudo privileges.&lt;/li&gt;
&lt;li&gt;A static IP address 192.168.0.100 configure on your server.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Remote server configuration&lt;/strong&gt; Install Telnet Server By default, the Telnet server package is available in the Ubuntu 20.04 default repository. You can install it by just running the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt install telnetd -y

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

&lt;/div&gt;



&lt;p&gt;Once the installation is completed, you can check the status of Telnet service using the following command:&lt;/p&gt;

&lt;p&gt;sudo systemctl status inetd Telnet is activation in the configuration file&lt;/p&gt;

&lt;p&gt;open file /etc/xinetd.d/telnet by running following command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;vim /etc/xinetd.d/telnet

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

&lt;/div&gt;



&lt;p&gt;Past following code here&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;service telnet
{
   flags = REUSE
   socket_type = stream
   wait = no
   user = root
   server = /usr/sbin/in.telnetd
   log_on_failure += USERID
   disable = yes
}

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

&lt;/div&gt;



&lt;p&gt;Restart the telnet&lt;/p&gt;

&lt;p&gt;Now, we have to open port23 in the ufw firewall. Execute the below command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ufw allow 23/tcp

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

&lt;/div&gt;



&lt;p&gt;The next step is to reload the firewall to apply the changes. To reload the firewall, execute the below command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ufw reload

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

&lt;/div&gt;



&lt;p&gt;Verify that the service is started and running normally on the server. Typically, you can start the telnet service with the following command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/etc/init.d/xinetd restart

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

&lt;/div&gt;



&lt;p&gt;Test Telnet Connection from Remote System Telnet server is now installed and listening on port 23. Its time to connect the Telnet server from the remote system.&lt;/p&gt;

&lt;p&gt;Now, log in to another Ubuntu system and replace ip_address with your remote system which you want to access run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;telnet ip_address

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

&lt;/div&gt;



&lt;p&gt;Done!&lt;/p&gt;

</description>
      <category>typescript</category>
      <category>help</category>
    </item>
  </channel>
</rss>
