<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Unix Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/category/unix/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 18 Aug 2021 20:07:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Install GIT on Debian 11 / 10</title>
		<link>https://www.osradar.com/install-git-on-debian/</link>
					<comments>https://www.osradar.com/install-git-on-debian/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 23 Aug 2021 23:14:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[compilation]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12871</guid>

					<description><![CDATA[<p>Software development is one of the activities that can best be done on a Linux system. In the first place, because it is stable and because the main tools for development are available with few commands. We are talking about both professional and community-level tools. They are all installable on Linux. One of these tools [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-git-on-debian/">Install GIT on Debian 11 / 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Software development is one of the activities that can best be done on a Linux system. In the first place, because it is stable and because the main tools for development are available with few commands. We are talking about both professional and community-level tools. They are all installable on Linux. One of these tools is GIT which is used to control the versions of an application. So, in this post, you will learn how to install Git on Debian 11 / 10. We will even give you two options to realize the goal.</p>
<h2>So, Git?</h2>
<p>If you are starting to develop applications you may not know that <a href="https://git-scm.com" rel="noopener noreferrer">Git</a> is a free, open-source version control system and that it is perhaps the best. Many developers rely on it to control the versions of their applications. By versions, we mean those in development.</p>
<p>Using Git you can control and separate development in each of those development branches. So the changes of one do not affect the others.</p>
<p>Read <a href="https://www.osradar.com/introduction-to-the-git-branches/" rel="noopener noreferrer">Introduction to the Git branches</a>.</p>
<p>In this way, it is good practice to develop applications using a version control system as support.</p>
<h2>Install Git on Debian 11 / 10</h2>
<p>Debian 10 is one of the few distributions that have such complete package repositories. So, presumably, there is some Git in the official repositories.</p>
<p>However, it is also a good idea, to know how to install Git differently in case we need it. This way is compiling the source code of Git and get the latest stable version. In this tutorial, I will teach you how to do it both ways.</p>
<h3>1) Using the official repository on Debian 11 / 10</h3>
<p>Debian 11 / 10 include Git in the official repositories. Using this option, the installation is quite easy, and just open a terminal session and run the following command:</p>
<pre>:~$ sudo apt install git</pre>
<p>Or, if you do not have sudo, please read <a href="https://www.osradar.com/how-to-enable-sudo-on-debian-10/" rel="noopener noreferrer">How to enable sudo on Debian 11/10?</a></p>
<p>Then, you can check the installed version.</p>
<pre>:~$ git --version
git version 2.30.2</pre>
<p>Now, you can use it.</p>
<h3>2) Building the Git source code</h3>
<p>Compiling the Git source code is the best way to get the latest version. All this in a safe way because it will not be compiled by third parties.</p>
<p>The process is simple but requires a few extra steps. So let us get started.</p>
<p>First, install the necessary programs to make the compilation:</p>
<pre>:~$ sudo apt install build-essential make libssl-dev libghc-zlib-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip</pre>
<figure id="attachment_12905" aria-describedby="caption-attachment-12905" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12905" src="https://www.osradar.com/wp-content/uploads/2019/08/1.jpeg" alt="1.- Install required package for the build from source code" width="1365" height="470" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1.jpeg 1365w, https://www.osradar.com/wp-content/uploads/2019/08/1-300x103.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-768x264.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/1-1024x353.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/1-696x240.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/1-1068x368.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/1-1220x420.jpeg 1220w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-12905" class="wp-caption-text">1.- Install required a package for the build from source code</figcaption></figure>
<p>Now, we can download the source code.</p>
<pre>:~$ cd /tmp/
:~$ wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.33.0.tar.gz</pre>
<p>Next, decompress it and access to the folder.</p>
<pre>:~$ tar xvfz git-2.33.0.tar.gz
:~$ cd git-2.33.0</pre>
<p>Now, you can start the compilation by running the following commands:</p>
<pre>:~$ sudo make prefix=/usr/local all
:~$ sudo make prefix=/usr/local install</pre>
<figure id="attachment_12907" aria-describedby="caption-attachment-12907" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-12907 size-full" src="https://www.osradar.com/wp-content/uploads/2019/08/3.jpeg" alt="3.- Install Git on Debian 11 / 10" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2019/08/3.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/3-300x162.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/3-768x415.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/3-1024x553.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/3-696x376.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/3-1068x577.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/3-777x420.jpeg 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12907" class="wp-caption-text">3.- Install Git on Debian 11 / 10</figcaption></figure>
<p>Next, check the installed version.</p>
<pre>:~$ git --version</pre>
<p>And that is it. You can start to use Git.</p>
<h2>Conclusion</h2>
<p>Git is one of those applications that every developer must be able to manage to improve their workflow. Therefore, it is important to install it in Debian 10 and two ways have been shown to achieve this. One of them is using the package available in the official repositories and the other is compiling the source code.</p>
<p>Please share this post and join <a href="https://t.me/osradar" rel="noopener noreferrer">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-git-on-debian/">Install GIT on Debian 11 / 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-git-on-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How install MongoDB on Fedora 34 / 33?</title>
		<link>https://www.osradar.com/install-mongodb-fedora-33/</link>
					<comments>https://www.osradar.com/install-mongodb-fedora-33/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 25 May 2021 03:43:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Programming]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=29133</guid>

					<description><![CDATA[<p>Currently, NoSQL Database managers are being widely used by developers. Since it has many advantages and their projects are the most open source. And MongoDB is one of the most popular managers. So, this article is about how to install MongoDB in Fedora 34 / 33. MongoDB allows your teams to easily organize, use and [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mongodb-fedora-33/">How install MongoDB on Fedora 34 / 33?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Currently, NoSQL Database managers are being widely used by developers. Since it has many advantages and their projects are the most open source. And MongoDB is one of the most popular managers. So, this article is about how to install MongoDB in Fedora 34 / 33.</p>



<p><a href="https://www.mongodb.com/">MongoDB</a> allows your teams to easily organize, use and enrich data – in real time, anywhere. MongoDB is a NoSQL and document-oriented database manager. In short, instead of saving the data in the record as the SQL database, it saves them in documents with BSON format which is a binary representation of JSON.</p>



<p>In the world of unrelated SQL database MongoDB is perhaps the most popular, however, it can be used by very different applications that require a semi-structured data collection. On the other hand, its use in transactional systems is not recommended as MongoDB does not support transactions.</p>



<p>That’s why I’m going to teach you how to install MongoDB on the latest stable versions of Fedora, Fedora 34 / 33.</p>



<h2 id="install-mongodb-on-fedora-33"><a href="#install-mongodb-on-fedora-33" name="install-mongodb-on-fedora-33"></a>Install MongoDB on Fedora 33</h2>



<p>It is possible to install MongoDB on Fedora 34 / 33 through the <a href="https://www.osradar.com/installing-rpm-on-ubuntu/" target="_blank" rel="noreferrer noopener">RPM packages</a> that can be downloaded and installed from the project’s website.</p>



<p>However, the most efficient method is to install from the official MongoDB repository which helps to integrate the application with the system.</p>



<p>So, for ease of use, install the nano text editor.</p>



<pre class="wp-block-preformatted">sudo dnf install nano</pre>



<p>And edit a text file to add the MongoDB repository by adding the following content</p>



<pre class="wp-block-preformatted">sudo nano /etc/yum.repos.d/mongodb.repo</pre>



<pre class="wp-block-preformatted">[mongodb-org-4.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="982" height="227" src="https://www.osradar.com/wp-content/uploads/2021/03/6-2.png" alt=" Configuring the MongoDB repository" class="wp-image-30202" srcset="https://www.osradar.com/wp-content/uploads/2021/03/6-2.png 982w, https://www.osradar.com/wp-content/uploads/2021/03/6-2-300x69.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/6-2-768x178.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/6-2-696x161.png 696w" sizes="(max-width: 982px) 100vw, 982px" /><figcaption> Configuring the MongoDB repository</figcaption></figure>



<p>Save the changes and close the text editor.</p>



<p>Now you can install MongoDB on Fedora 34 / 33 by running</p>



<pre class="wp-block-preformatted">sudo dnf install mongodb-org</pre>



<p>After installation, a new service is created for Fedora 34 / 33.</p>



<p>So, refresh the list of system daemons</p>



<pre class="wp-block-preformatted">sudo systemctl daemon-reload</pre>



<p>Now start it up:</p>



<pre class="wp-block-preformatted">sudo systemctl start mongod</pre>



<p>And then check the status of the service</p>



<pre class="wp-block-preformatted">sudo systemctl status mongod
● mongod.service - MongoDB Database Server
      Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
      Active: active (running) since Wed 2021-05-19 23:15:47 CEST; 5s ago
        Docs: https://docs.mongodb.org/manual
     Process: 2212 ExecStartPre=/usr/bin/mkdir -p /var/run/mongodb (code=exited, status=0/SUCCESS)
     Process: 2213 ExecStartPre=/usr/bin/chown mongod:mongod /var/run/mongodb (code=exited, status=0/SUCCESS)
     Process: 2214 ExecStartPre=/usr/bin/chmod 0755 /var/run/mongodb (code=exited, status=0/SUCCESS)
     Process: 2215 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=0/SUCCESS)
    Main PID: 2217 (mongod)
      Memory: 57.6M
         CPU: 822ms
      CGroup: /system.slice/mongod.service
              └─2217 /usr/bin/mongod -f /etc/mongod.conf
 May 19 23:15:46 osradar systemd[1]: Starting MongoDB Database Server…
 May 19 23:15:46 osradar mongod[2215]: about to fork child process, waiting until server is ready for connections.
 May 19 23:15:46 osradar mongod[2217]: forked process: 2217
 May 19 23:15:47 osradar mongod[2215]: child process started successfully, parent exiting
 May 19 23:15:47 osradar systemd[1]: Started MongoDB Database Server.
</pre>



<p>Now check the version of MongoDB that you have installed</p>



<pre class="wp-block-preformatted">mongod -version
db version v4.4.4
 Build Info: {
     "version": "4.4.4",
     "gitVersion": "8db30a63db1a9d84bdcad0c83369623f708e0397",
     "openSSLVersion": "OpenSSL 1.1.1k  FIPS 25 Mar 2021",
     "modules": [],
     "allocator": "tcmalloc",
     "environment": {
         "distmod": "rhel80",
         "distarch": "x86_64",
         "target_arch": "x86_64"
     }
 }</pre>



<p>So, enjoy it.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>So, MongoDB is a solution that is increasingly being taken into account by many developers worldwide. Its installation in Fedora 34 / 33 is relatively simple.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mongodb-fedora-33/">How install MongoDB on Fedora 34 / 33?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-mongodb-fedora-33/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>A NTP Server by installing Chrony on Ubuntu 20.04</title>
		<link>https://www.osradar.com/ntp-server-chrony-ubuntu/</link>
					<comments>https://www.osradar.com/ntp-server-chrony-ubuntu/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 21 May 2021 23:18:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[ntp]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=30070</guid>

					<description><![CDATA[<p>Hello, friends. In this post, we’ll show you how to set up an NTP server by installing Chrony on Ubuntu 20.04 An NTP server is important because it allows all devices on a network to be synchronized via a clock. That is, they all have the same time and time zone. This may seem unimportant, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/ntp-server-chrony-ubuntu/">A NTP Server by installing Chrony on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. In this post, we’ll show you how to set up an NTP server by installing Chrony on Ubuntu 20.04</p>



<p>An NTP server is important because it allows all devices on a network to be synchronized via a clock. That is, they all have the same time and time zone. This may seem unimportant, but the correct functioning of many services depends on proper time settings.</p>



<p>Now, there is a tool called Chrony that allows us to quickly deploy an NTP server.</p>



<p>According to the <a href="https://chrony.tuxfamily.org/">Chrony website</a>:</p>



<blockquote class="wp-block-quote"><p>Chrony is a versatile implementation of the Network Time Protocol (NTP). It can synchronize the system clock with NTP servers, reference clocks (e.g. GPS receiver), and manual input using wristwatch and keyboard. It can also operate as an NTPv4 (RFC 5905) server and peer to provide a time service to other computers in the network.</p></blockquote>



<p>Fortunately, it has good support for many Linux distributions and Ubuntu is no exception.</p>



<h2 id="chrony-on-ubuntu-20.04"><a href="#chrony-on-ubuntu-20.04" name="chrony-on-ubuntu-20.04"></a>Chrony on Ubuntu 20.04</h2>



<p>Before starting, the server must have the time zone set correctly.</p>



<p>So, open a terminal or connect via <a href="https://www.osradar.com/manages-ssh-connections-from-windows-10-with-putty/" target="_blank" rel="noreferrer noopener">SSH</a>.</p>



<pre class="wp-block-preformatted">sudo timedatectl set-timezone Europe/Berlin</pre>



<p>Replace <code>Europe/Berlin</code> with the correct timezone for your server.</p>



<p>To check the changes, run the command <code>timedatectl</code>.</p>



<p>Output:</p>



<pre class="wp-block-preformatted">               Local time: Wed 2021-05-12 21:13:11 CEST
           Universal time: Wed 2021-05-12 19:13:11 UTC 
                 RTC time: Wed 2021-05-12 19:13:12     
System clock synchronized: yes                         
              NTP service: active                      
                Time zone: Europe/Berlin (CEST, +0200) 
          RTC in local TZ: no </pre>



<p>Now we can install the <code>chrony</code> package from the official Ubuntu 20.04 repositories.</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt install chrony
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  systemd-timesyncd
The following NEW packages will be installed:
  chrony
0 upgraded, 1 newly installed, 1 to remove and 11 not upgraded.
Need to get 220 kB of archives.
After this operation, 290 kB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p>The program is quite lightweight so the installation will take almost no time at all.</p>



<p>So, start the Chrony service and have it start with the system.</p>



<pre class="wp-block-preformatted">sudo systemctl start chronyd
sudo systemctl enable chronyd</pre>



<p>Check the status of the service</p>



<pre class="wp-block-preformatted">sudo systemctl status chronyd
● chrony.service - chrony, an NTP client/server
     Loaded: loaded (/lib/systemd/system/chrony.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2021-05-12 21:16:25 CEST; 1min 36s ago
       Docs: man:chronyd(8)
             man:chronyc(1)
             man:chrony.conf(5)
   Main PID: 1815 (chronyd)
      Tasks: 2 (limit: 2286)
     Memory: 1.0M
     CGroup: /system.slice/chrony.service
             ├─1815 /usr/sbin/chronyd -F -1
             └─1816 /usr/sbin/chronyd -F -1

May 12 21:16:25 osradar systemd[1]: Starting chrony, an NTP client/server...
May 12 21:16:25 osradar chronyd[1815]: chronyd version 3.5 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +SECHASH +IPV6 -DEBUG)
May 12 21:16:25 osradar chronyd[1815]: Initial frequency -38.890 ppm
May 12 21:16:25 osradar chronyd[1815]: Loaded seccomp filter
May 12 21:16:25 osradar systemd[1]: Started chrony, an NTP client/server.
May 12 21:16:32 osradar chronyd[1815]: Selected source 2001:67c:1560:8003::c7
May 12 21:17:38 osradar chronyd[1815]: Selected source 2001:1600:4:1::123</pre>



<p>And you will know that the service is running correctly.</p>



<h3 id="configuring-chrony-on-ubuntu-20.04"><a href="#configuring-chrony-on-ubuntu-20.04" name="configuring-chrony-on-ubuntu-20.04"></a>Configuring Chrony on Ubuntu 20.04</h3>



<p>Now that we have the service installed, we need to configure it. The Chorny configuration file is <code>/etc/chrony/chrony.conf</code> which we need to modify but first make a backup of it.</p>



<pre class="wp-block-preformatted">sudo cp /etc/chrony/chrony/chrony.conf `/etc/chrony/chrony.conf.bak</pre>



<p>And now edit it:</p>



<pre class="wp-block-preformatted">sudo nano /etc/chrony/chrony.conf</pre>



<p>And set the nearest NTP servers</p>



<pre class="wp-block-preformatted">server [NTP server]</pre>



<p>Then save the changes and close the editor.</p>



<p>Now do the synchronization</p>



<pre class="wp-block-preformatted">sudo timedatectl set-ntp true</pre>



<p>After that, restart the Chrony service.</p>



<pre class="wp-block-preformatted">sudo systemctl restart chronyd</pre>



<p>Then, test the changes by checking the Chrony sources</p>



<pre class="wp-block-preformatted">chronyc sources</pre>



<p>Output</p>



<pre class="wp-block-preformatted">210 Number of sources = 8
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
^- golem.canonical.com           2   6    37     5  +6082us[+6082us] +/-   54ms
^- chilipepper.canonical.com     2   6    67     3   +313us[ +313us] +/-   47ms
^- alphyn.canonical.com          2   6    37     5   +892us[ +892us] +/-  119ms
^+ pugot.canonical.com           2   6    37     4  +1452us[+1452us] +/-   71ms
^* 25000-021.cloud.services&gt;     2   6    37     6   +881us[  -83us] +/-   48ms
^- ns1.luns.net.uk               2   6    37     4  +2533us[+2533us] +/-   67ms
^+ 2a01:4f8:c2c:3d20::1          3   6    37     4  -1651us[-1651us] +/-   93ms
^+ time02.nevondo.com            2   6    37     4  +1028us[+1028us] +/-   43ms</pre>



<p>So, everything is correct.</p>



<p><strong>Note: I am uing the default server. In this output, you will see the server that you added.</strong></p>



<h2 id="configuring-the-chrony-client"><a href="#configuring-the-chrony-client" name="configuring-the-chrony-client"></a>Configuring the Chrony Client</h2>



<p>Now it’s time to do the client configuration. Regardless of the Linux distribution you use, you have to set the Timezone correctly.</p>



<pre class="wp-block-preformatted">sudo timedatectl set-timezone Europe/Berlin</pre>



<p>Proceed now to install the client on your distribution.</p>



<p>For example, on CentOS it would be</p>



<pre class="wp-block-preformatted">sudo dnf install chony</pre>



<p>Or on Debian based distributions:</p>



<pre class="wp-block-preformatted">sudo apt install chrony</pre>



<p>Next, you have to configure Chrony to serve the server you have configured.</p>



<pre class="wp-block-preformatted">sudo nano /etc/chrony/chrony.conf</pre>



<p>And add the Chrony server:</p>



<pre class="wp-block-preformatted">server chrony-server-ip</pre>



<p>Save the changes and close the editor. Now synchronise your computer with the created NTP server.</p>



<pre class="wp-block-preformatted">sudo timedatectl set-ntp true</pre>



<p>You can also verify the changes by running</p>



<pre class="wp-block-preformatted">chronyc sources</pre>



<p>So, enjoy it.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>An NTP server is a simple tool to set up but it will help you to keep everything in order on your network. This step is essential for many computer systems.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/ntp-server-chrony-ubuntu/">A NTP Server by installing Chrony on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/ntp-server-chrony-ubuntu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install the Development and build tools on Fedora 34 / 33?</title>
		<link>https://www.osradar.com/install-development-build-tools-fedora/</link>
					<comments>https://www.osradar.com/install-development-build-tools-fedora/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 15 May 2021 02:41:00 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=27748</guid>

					<description><![CDATA[<p>In this very short post, you will learn how to install a series of development and build tools on Fedora 34 / 33. These tools are essential to perform tasks like installing packages from the source code. Or some programming tasks such as package creation. If you are an application developer and need to package [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-development-build-tools-fedora/">How to install the Development and build tools on Fedora 34 / 33?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this very short post, you will learn how to install a series of development and build tools on Fedora 34 / 33. These tools are essential to perform tasks like installing packages from the source code. Or some programming tasks such as package creation.</p>



<p>If you are an application developer and need to package it for a distribution like Fedora, Debian or Ubuntu, you need some tools. Some of these tools are considered to be essential for the process.</p>



<p>So, all these tools are contained in the package&nbsp;<code>"Development Tools</code>&#8220;. Other important packages will be installed there. Some of them are:</p>



<ul><li><a href="https://gcc.gnu.org/" target="_blank" rel="noreferrer noopener">GCC</a> the GNU C language compiler which is a mainstay for developing various languages and installing programs.</li><li>make which allows us to compile programs from source code.</li><li>G++ the GNU compiler for the C++ language which is widely used in&nbsp;<a href="https://www.osradar.com/install-qtcreator-on-ubuntu-18-04/" target="_blank" rel="noreferrer noopener">QT applications.</a></li></ul>



<p>And many more.</p>



<h2>Install the Development and build tools on Fedora 34/ 33</h2>



<p>These packages are not the dependencies of any program so you can install them from the source code or create new RPM packages. These packages are the basic tools that allow these operations. However, the libraries and the rest of the tools depend on each package you need to compile or create.</p>



<p>So, open a terminal and update the distribution:</p>



<pre class="wp-block-preformatted">sudo dnf update</pre>



<p>And it carries out the installation by running:</p>



<pre class="wp-block-preformatted">sudo dnf groupinstall "Development Tools" "Development Libraries"</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="536" src="https://www.osradar.com/wp-content/uploads/2021/01/1-16-1024x536.png" alt="1.- Install build packages Fedora 34 / 33" class="wp-image-30016" srcset="https://www.osradar.com/wp-content/uploads/2021/01/1-16-1024x536.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/1-16-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/1-16-768x402.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/1-16-696x364.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/1-16-1068x559.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/1-16.png 1364w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Install build packages Fedora 34 / 33</figcaption></figure>



<p>And you will see a long list of packages to be installed. All are libraries and some tools for it. But the installation doesn&#8217;t have to take that long either.</p>



<p>In the end, it is possible to show the versions of the most popular tools like GCC, G++, or make.</p>



<pre class="wp-block-preformatted">make --version</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">GNU Make 4.3
 Built for x86_64-redhat-linux-gnu
 Copyright (C) 1988-2020 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.</pre>



<pre class="wp-block-preformatted">gcc --version</pre>



<p>Sample Output</p>



<pre class="wp-block-preformatted">gcc (GCC) 11.0.1 20210324 (Red Hat 11.0.1-0)
 Copyright (C) 2021 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</pre>



<pre class="wp-block-preformatted">g++ --version</pre>



<p>Output</p>



<pre class="wp-block-preformatted">g++ (GCC) 11.1.1 20210428 (Red Hat 11.1.1-1)
 Copyright (C) 2021 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</pre>



<p>And now you have at least the basic packages to start the work.</p>



<h2>Conclusion</h2>



<p>The development and package building tools are very important in Fedora 34. Since many programs that are in the repositories depend on them and installing them can save us time.</p>



<p>On the other hand, they become quite necessary if we are developers or application packagers.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-development-build-tools-fedora/">How to install the Development and build tools on Fedora 34 / 33?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-development-build-tools-fedora/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to install PostgreSQL on Fedora 34?</title>
		<link>https://www.osradar.com/install-postgresql-fedora-34/</link>
					<comments>https://www.osradar.com/install-postgresql-fedora-34/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 14 May 2021 03:11:00 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=11983</guid>

					<description><![CDATA[<p>We are celebrating the launch of Fedora 34. So we are aware that many developers use it to do their daily work. So they probably need to install some database manager. We recently explained how to install Lamp in Fedora and there you could learn how to install MariaDB. However, it is true that many [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-postgresql-fedora-34/">How to install PostgreSQL on Fedora 34?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.osradar.com/fedora-34-released/" target="_blank" rel="noopener">We are celebrating the launch of Fedora 34</a>. So we are aware that many developers use it to do their daily work. So they probably need to install some database manager. We recently explained how to install Lamp in Fedora and there you could learn how to install MariaDB. However, it is true that many developers prefer to use PostgreSQL because of its performance. So, in this post, I will teach you how to install PostgreSQL on Fedora 34.</p>
<p>It is not necessary talk much about <a href="https://www.postgresql.org/" target="_blank" rel="noopener noreferrer">PostgreSQL</a>. However, very briefly I will explain you what it is. It is a <a href="https://www.osradar.com/tag/sql/" target="_blank" rel="noopener noreferrer">SQL</a> database manager, open source and well known by application developers. Mainly because it has a considerably superior performance to others like MariaDB or MySQL. So we will have enterprise power in a community program. Sounds good, no?</p>
<p>PostgreSQL has an updated repository for Fedora. However, due to the recent release of Fedora 34, version 11 is available. So in this sense we will have no problems.</p>
<h2>Install PostgreSQL on Fedora 34</h2>
<p>While PostgreSQL is an application, it has many additional libraries to extend its functionality. Or, to make it work with other programming languages such as <a href="https://www.osradar.com/integrate-the-javadoc-to-netbeans/" target="_blank" rel="noopener noreferrer">Java</a>, Python, C++ or PHP. In addition, we can have access to other libraries of the program for development.</p>
<p>So, first of all, I am going to use DNF the Fedora package manager to look for all PostgreSQL related packages.</p>
<pre>:~$ sudo dnf search postgresql</pre>
<p><figure id="attachment_29991" aria-describedby="caption-attachment-29991" style="width: 1196px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-29991 size-full" src="https://www.osradar.com/wp-content/uploads/2019/05/1-17.png" alt="Using DNF for search PostgreSQL" width="1196" height="709" srcset="https://www.osradar.com/wp-content/uploads/2019/05/1-17.png 1196w, https://www.osradar.com/wp-content/uploads/2019/05/1-17-300x178.png 300w, https://www.osradar.com/wp-content/uploads/2019/05/1-17-1024x607.png 1024w, https://www.osradar.com/wp-content/uploads/2019/05/1-17-768x455.png 768w, https://www.osradar.com/wp-content/uploads/2019/05/1-17-696x413.png 696w, https://www.osradar.com/wp-content/uploads/2019/05/1-17-1068x633.png 1068w" sizes="(max-width: 1196px) 100vw, 1196px" /><figcaption id="caption-attachment-29991" class="wp-caption-text">Using DNF for search PostgreSQL</figcaption></figure></p>
<p>As you can see, there are many packages related to PostgreSQL. But as I said before, they refer to libraries needed to extend the functionality.</p>
<p>Now, let&#8217;s install it.</p>
<pre>:~$ sudo dnf install postgresql-server</pre>
<p><figure id="attachment_29992" aria-describedby="caption-attachment-29992" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-29992 size-full" src="https://www.osradar.com/wp-content/uploads/2019/05/2-16.png" alt="2.- Install PostgreSQL on Fedora 34" width="1365" height="485" srcset="https://www.osradar.com/wp-content/uploads/2019/05/2-16.png 1365w, https://www.osradar.com/wp-content/uploads/2019/05/2-16-300x107.png 300w, https://www.osradar.com/wp-content/uploads/2019/05/2-16-1024x364.png 1024w, https://www.osradar.com/wp-content/uploads/2019/05/2-16-768x273.png 768w, https://www.osradar.com/wp-content/uploads/2019/05/2-16-696x247.png 696w, https://www.osradar.com/wp-content/uploads/2019/05/2-16-1068x379.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-29992" class="wp-caption-text">2.- Install PostgreSQL on Fedora 34</figcaption></figure></p>
<p>Then you have to prepare PostgreSQL for the first use. So, we have to init the database and then, start the service. After that, test it.</p>
<pre>:~$ sudo /usr/bin/postgresql-setup --initdb</pre>
<p><figure id="attachment_29993" aria-describedby="caption-attachment-29993" style="width: 736px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-29993 size-full" src="https://www.osradar.com/wp-content/uploads/2019/05/3-14.png" alt="3.- Initialize the sample database" width="736" height="148" srcset="https://www.osradar.com/wp-content/uploads/2019/05/3-14.png 736w, https://www.osradar.com/wp-content/uploads/2019/05/3-14-300x60.png 300w, https://www.osradar.com/wp-content/uploads/2019/05/3-14-696x140.png 696w" sizes="(max-width: 736px) 100vw, 736px" /><figcaption id="caption-attachment-29993" class="wp-caption-text">3.- Initialize the sample database</figcaption></figure></p>
<p>Next, enable and start the service.</p>
<pre>:~$ sudo systemctl enable postgresql
Created symlink /etc/systemd/system/multi-user.target.wants/postgresql.service → /usr/lib/systemd/system/postgresql.service.
:~$ sudo systemctl start postgresql</pre>
<p>Now, test the installation.</p>
<pre>:~$ sudo su - postgres</pre>
<p>And access to the PostgreSQL console.</p>
<pre>:~$ psql</pre>
<p>Then, list all databases.</p>
<pre>:~$ \l</pre>
<p><figure id="attachment_29994" aria-describedby="caption-attachment-29994" style="width: 960px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-29994 size-full" src="https://www.osradar.com/wp-content/uploads/2019/05/4-11.png" alt="4.- PostgreSQL is correctly installed on Fedora 34" width="960" height="309" srcset="https://www.osradar.com/wp-content/uploads/2019/05/4-11.png 960w, https://www.osradar.com/wp-content/uploads/2019/05/4-11-300x97.png 300w, https://www.osradar.com/wp-content/uploads/2019/05/4-11-768x247.png 768w, https://www.osradar.com/wp-content/uploads/2019/05/4-11-696x224.png 696w" sizes="(max-width: 960px) 100vw, 960px" /><figcaption id="caption-attachment-29994" class="wp-caption-text">4.- PostgreSQL is correctly installed on Fedora 34</figcaption></figure></p>
<p>So, PostgreSQL is correctly installed.</p>
<h2>Conclusion</h2>
<p>PostgreSQL is a great database manager and today you have learned how to install it in Fedora 34. So as you can see it&#8217;s quite easy, just share this post with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-postgresql-fedora-34/">How to install PostgreSQL on Fedora 34?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-postgresql-fedora-34/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to set up your NodeJS application for production</title>
		<link>https://www.osradar.com/set-up-nodejs-application-production/</link>
					<comments>https://www.osradar.com/set-up-nodejs-application-production/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 04 May 2021 04:06:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[NodeJS]]></category>
		<category><![CDATA[Production]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Ubuntu 20.04 tutorials]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=29777</guid>

					<description><![CDATA[<p>Hello friends. It comes to this point in life, you are a NodeJS developer and you want to deploy your application in production, how to do it? Well in this post you will learn how to set up a NodeJS application for production on an Ubuntu 20.04 server. We have talked a lot about NodeJS [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/set-up-nodejs-application-production/">How to set up your NodeJS application for production</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello friends. It comes to this point in life, you are a NodeJS developer and you want to deploy your application in production, how to do it? Well in this post you will learn how to set up a NodeJS application for production on an Ubuntu 20.04 server.</p>



<p><a href="https://www.osradar.com/tag/nodejs" target="_blank" rel="noreferrer noopener">We have talked a lot about NodeJS</a> in this blog because it is a new technology that allows us to create many complex web applications quickly.</p>



<p class="has-drop-cap">NodeJS is a technology that allows running Javascript on the server-side using Google’s V8 engine. It is a real revolution in the way web applications are developed because it reduces the asymmetry of client and server performance.</p>



<p>Many important forms such as Linkedin or eBay were created using this technology. This shows us the power of NodeJS.</p>



<p>An advantage of NodeJS is that its syntax is similar to that of <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank" rel="noreferrer noopener">Javascript</a> and therefore its learning curve decreases a lot.</p>



<h2 id="set-up-your-nodejs-application-on-ubuntu-20.04"><a name="set-up-your-nodejs-application-on-ubuntu-20.04" href="#set-up-your-nodejs-application-on-ubuntu-20.04"></a>Set up your NodeJS application for production on Ubuntu 20.04</h2>



<p>The first thing we have to do is to install NodeJS on the server where we want our application to be. To do this, we will use the 14.x branch, which is one of the most modern ones.</p>



<p>To do this, connect via SSH to your server and update the distribution</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p>Now, add the NodeJS repository for the 14.x branch by downloading and executing the official script</p>



<pre class="wp-block-preformatted">curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh</pre>



<p>This will start the whole process and at the end, you will be able to check the version of NodeJS installed by running this command:</p>



<pre class="wp-block-preformatted">node -v
v14.16.1</pre>



<p>It is important that we also check the installed version of <code>npm</code>.</p>



<pre class="wp-block-preformatted">npm -v
6.14.12</pre>



<p>Now we have the software installed, let’s see an example of how to deploy our application.</p>



<p>To do this I will create a simple NodeJS file called <code>exmaple.js</code> that displays a <code>hello world</code>.</p>



<pre class="wp-block-preformatted">nano example.js
const http = require('http');

const hostname = 'localhost';
const port = 3000;

const server = http.createServer((req, res) => {
  res.statusCode = 200;
  res.setHeader('Content-Type', 'text/plain');
  res.end('Hello World. Welcome to Osradar\n');
});

server.listen(port, hostname, () => {
  console.log(`Server running at http://${hostname}:${port}/`);
});</pre>



<p>Of course, in your case, you will have several files and all the necessary structures.</p>



<p>To run the application just use this command</p>



<pre class="wp-block-preformatted">node example.js</pre>



<p>And you will get an output screen similar to this one:</p>



<pre class="wp-block-preformatted">Server running at http://localhost:3000/</pre>



<p>To stop the execution of the program, just press <code>CTRL + C</code>.</p>



<p>Running a production NodeJS application in this way is not recommended. The normal way is to use <code>pm2</code> which allows us to run it as a system service.</p>



<p>To do this, let’s install it on the system.</p>



<pre class="wp-block-preformatted">sudo npm install pm2@latest -g</pre>



<p>You will get an output screen similar to this one</p>



<pre class="wp-block-preformatted">+ pm2@4.5.6
added 175 packages from 194 contributors in 13.798s</pre>



<p>And now you can start running the created program:</p>



<pre class="wp-block-preformatted">pm2 start example.js</pre>



<p>You will get an output screen similar to this.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="497" src="https://www.osradar.com/wp-content/uploads/2021/05/1-1024x497.png" alt="1.- Running the NodeJS application" class="wp-image-29840" srcset="https://www.osradar.com/wp-content/uploads/2021/05/1-1024x497.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/1-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/1-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/1-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/1-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/1.png 1229w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Running the NodeJS application</figcaption></figure>



<p>Remember that this is an example and that you have to execute these commands from the folder where your project is and with the main execution file of your application.</p>



<h2 id="configuring-nginx-as-the-reverse-proxy"><a href="#configuring-nginx-as-the-reverse-proxy" name="configuring-nginx-as-the-reverse-proxy"></a>Configuring Nginx as the reverse proxy</h2>



<p>This step, although optional, is recommended so that our application can be accessed without any problems. To do this, install Nginx</p>



<pre class="wp-block-preformatted">sudo apt install nginx</pre>



<p>And then, create a new configuration file for our application. In this case, I will call the file <code>node</code> but you can name it whatever you want.</p>



<pre class="wp-block-preformatted">sudo nano /etc/nginx/sites-available/node</pre>



<p>Now add the following to the file.</p>



<pre class="wp-block-preformatted">server {
    listen 80;
    server_name node.osradar.test;
    location / {
        proxy_pass http://localhost:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}</pre>



<p>Remember to replace the <code>server_name</code> value with the domain you have.</p>



<p>Save your changes and close the text editor.</p>



<p>You can check if the Nginx syntax is correct by running</p>



<pre class="wp-block-preformatted">sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful</pre>



<p>The output on the screen indicates that the syntax is correct and you can continue.</p>



<p>To apply the changes, restart Nginx.</p>



<pre class="wp-block-preformatted">sudo systemctl restart nginx</pre>



<p>Now, open your web browser and log in with your domain name and you will see the application working.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1366" height="669" src="https://www.osradar.com/wp-content/uploads/2021/05/2-1024x502.png" alt="2.- NodeJS application for Production" class="wp-image-29841" srcset="https://www.osradar.com/wp-content/uploads/2021/05/2-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/2-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/2-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/2-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/2-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/2.png 1366w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption>2.- NodeJS application for Production</figcaption></figure>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>In this post, we have shown you how to deploy your NodeJS application on a server. At least you have the basics, from here you have to set up the security policies that your server needs.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/set-up-nodejs-application-production/">How to set up your NodeJS application for production</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/set-up-nodejs-application-production/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install R programming on Ubuntu 20.04 /18.04?</title>
		<link>https://www.osradar.com/r-programming-ubuntu/</link>
					<comments>https://www.osradar.com/r-programming-ubuntu/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 20 Apr 2021 01:33:00 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[R programming]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=7083</guid>

					<description><![CDATA[<p>Programming is an elementary part of computer science. It creates applications that solve some daily problems. You can make applications of all kinds and some oriented to statistics. So, this article will help you install R programming in Ubuntu 20.04 / 18.04. R is a free software environment for statistical computing and graphics. It compiles [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/r-programming-ubuntu/">How to install R programming on Ubuntu 20.04 /18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Programming is an elementary part of computer science. It creates applications that solve some daily problems. You can make applications of all kinds and some oriented to statistics. So, this article will help you install R programming in Ubuntu 20.04 / 18.04.</p>
<p><a href="https://www.r-project.org/" rel="noopener">R</a> is a free software environment for statistical computing and graphics. It compiles and runs on a wide variety of UNIX platforms, Windows and MacOS.In addition, it is also a very well documented language and has its own LaTeX-like documentation format.</p>
<h2>Features</h2>
<p>Among the advantages of R, is its great syntactic <strong>similarity with S-Plus</strong>, which has facilitated the migration of many users. Equally important is the fact that it is a language with a<strong> very active development cycle</strong>.</p>
<p>One of R’s strengths is the ease with which <strong>well-designed publication-quality plots</strong> can be produced, including mathematical symbols and formulae where needed.</p>
<p>Another great advantage is that R is multiplatform, that is to say, it can be installed both in Windows and in <strong>any Linux distribution.</strong></p>
<p>Let&#8217;s not talk anymore and we are going to install R programming on Ubuntu 18.04.</p>
<h2>0. What you need</h2>
<p>In the first place, it is necessary that you have installed Ubuntu 20.04 / 18.04 which is the recommended platform for development with this language.</p>
<p>It is also necessary that you have a user who can execute commands in the terminal as root.</p>
<p>So, let&#8217;s start.</p>
<h2>1. Upgrade the system</h2>
<p>In order to have the latest security patches and thus ensure the proper functioning of the system, it is necessary to make a general update to all packages.</p>
<pre class="">:~$ sudo apt update &amp;&amp; sudo apt upgrade</pre>
<p>Now, you can continue with the installation.</p>
<h2>2. Add GPG keys for the R repository</h2>
<p>A simple way to install R is through APT. To do this we must add the R repository, however, first you have to add the GPG key.</p>
<pre class="">:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9</pre>
<p>Then, add the repository.</p>
<pre class="">:~$ sudo<code class="sourceCode bash"><span id="cb1-8"><span class="ex">add-apt-repository</span> <span class="st">"deb https://cloud.r-project.org/bin/linux/ubuntu </span><span class="va">$(</span><span class="ex">lsb_release</span> -cs<span class="va">)</span><span class="st">-cran40/"</span></span></code></pre>
<p>Now, you can install R programming.</p>
<h2>3. Install R programming</h2>
<p>Now just run the command to install R programming.</p>
<pre class="">:~$ sudo apt update
:~$ sudo apt install r-base</pre>
<p><figure id="attachment_7091" aria-describedby="caption-attachment-7091" style="width: 800px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-7091 size-full" src="https://www.osradar.com/wp-content/uploads/2018/11/4-6-e1541707613944.png" alt="4.- Install R programming" width="800" height="596" srcset="https://www.osradar.com/wp-content/uploads/2018/11/4-6-e1541707613944.png 800w, https://www.osradar.com/wp-content/uploads/2018/11/4-6-e1541707613944-300x224.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/4-6-e1541707613944-768x572.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/4-6-e1541707613944-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2018/11/4-6-e1541707613944-265x198.png 265w, https://www.osradar.com/wp-content/uploads/2018/11/4-6-e1541707613944-485x360.png 485w, https://www.osradar.com/wp-content/uploads/2018/11/4-6-e1541707613944-696x519.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/4-6-e1541707613944-564x420.png 564w" sizes="(max-width: 800px) 100vw, 800px" /><figcaption id="caption-attachment-7091" class="wp-caption-text">1.- Install R programming</figcaption></figure></p>
<p>Now, you can start to use R.</p>
<h2>4. Verify the installation and using R</h2>
<p>Now, it is necessary to verify the installation that we have made. To do this, type on the terminal.</p>
<pre class="">:~$ sudo -i R</pre>
<p>And you&#8217;ll see R&#8217;s console.</p>
<p><figure id="attachment_7097" aria-describedby="caption-attachment-7097" style="width: 800px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-7097 size-full" src="https://www.osradar.com/wp-content/uploads/2018/11/5-6-e1541711098369.png" alt="5.- R console on Ubuntu 18.04" width="800" height="476" srcset="https://www.osradar.com/wp-content/uploads/2018/11/5-6-e1541711098369.png 800w, https://www.osradar.com/wp-content/uploads/2018/11/5-6-e1541711098369-300x179.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/5-6-e1541711098369-768x457.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/5-6-e1541711098369-696x414.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/5-6-e1541711098369-706x420.png 706w" sizes="(max-width: 800px) 100vw, 800px" /><figcaption id="caption-attachment-7097" class="wp-caption-text">5.- R console on Ubuntu 20.04 / 18.04</figcaption></figure></p>
<p>Now let&#8217;s make the typical &#8220;Hello World&#8221; using R.</p>
<p><figure id="attachment_7098" aria-describedby="caption-attachment-7098" style="width: 762px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-7098 size-full" src="https://www.osradar.com/wp-content/uploads/2018/11/6-6-e1541711652824.png" alt="6.- Hello World" width="762" height="127" srcset="https://www.osradar.com/wp-content/uploads/2018/11/6-6-e1541711652824.png 762w, https://www.osradar.com/wp-content/uploads/2018/11/6-6-e1541711652824-300x50.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/6-6-e1541711652824-696x116.png 696w" sizes="(max-width: 762px) 100vw, 762px" /><figcaption id="caption-attachment-7098" class="wp-caption-text">6.- Hello World</figcaption></figure></p>
<h2>5. Conclusion</h2>
<p>R is not a programming language for all people or for all circumstances. On the other hand, it is a language rather oriented to manipulation of data for statistical purposes and that makes it a quite reliable alternative for your subject.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/r-programming-ubuntu/">How to install R programming on Ubuntu 20.04 /18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/r-programming-ubuntu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install PHP 8 on FreeBSD</title>
		<link>https://www.osradar.com/install-php-8-on-freebsd/</link>
					<comments>https://www.osradar.com/install-php-8-on-freebsd/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 25 Mar 2021 04:48:00 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=29220</guid>

					<description><![CDATA[<p>Hello, friends. Every day more and more people make the jump from Linux to FreeBSD and it is a good time to help them with this post where you will learn how to install PHP 8 on FreeBSD 12 along with Apache. Recently a new version of PHP has been released which is a major [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-php-8-on-freebsd/">Install PHP 8 on FreeBSD</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. Every day more and more people make the jump from Linux to FreeBSD and it is a good time to help them with this post where you will learn how to install PHP 8 on FreeBSD 12 along with Apache.</p>



<p><a href="https://www.php.net/releases/8.0/en.php" target="_blank" rel="noreferrer noopener">Recently a new version of PHP</a> has been released which is a major release promising many things like improved performance. This makes it an attractive release and already many open source applications have started to support it. So it is also the case of FreeBSD which is already leaping.</p>



<h2 id="install-php-8-on-freebsd-12"><a href="#install-php-8-on-freebsd-12" name="install-php-8-on-freebsd-12"></a>Install PHP 8 on FreeBSD 12</h2>



<p>In this post, we will use Apache so that together with FreeBSD we have a small server where we will be able to test the operation of the same one. Also, we will run the commands with the root user but if your user has <a href="https://www.osradar.com/enable-sudo-on-freebsd-12/" target="_blank" rel="noreferrer noopener">sudo access</a>, you can use it too.</p>



<p>So, let’s get started.</p>



<h3 id="install-apache-on-freebsd"><a href="#install-apache-on-freebsd" name="install-apache-on-freebsd"></a>Install Apache on FreeBSD</h3>



<p>First of all, you have to install the Apache webserver from the official repositories, just run:</p>



<pre class="wp-block-preformatted">pkg install apache24
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 13 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	apache24: 2.4.46_2
	apr: 1.7.0.1.6.1_1
	ca_root_nss: 3.58
	curl: 7.74.0
	db5: 5.3.28_7
	expat: 2.2.10
	gdbm: 1.18.1_1
	jansson: 2.13.1
	libnghttp2: 1.42.0
	libxml2: 2.9.10_2
	pcre: 8.44
	perl5: 5.32.1_1
	readline: 8.0.4

Number of packages to be installed: 13

The process will require 157 MiB more space.
36 MiB to be downloaded.

Proceed with this action? [y/N]: </pre>



<p>The command will also install several dependencies that are necessary to install Apache.</p>



<p>After installing it, make it start with the system, this is recommended.</p>



<pre class="wp-block-preformatted">sysrc apache24_enable=yes</pre>



<p>After that, start the service:</p>



<pre class="wp-block-preformatted">service apache24 start</pre>



<p>This way we will have Apache on FreeBSD. Do not forget to open ports <code>80</code> and <code>443</code> of your Firewall so that it can run correctly.</p>



<h3 id="install-php-8-on-freebsd"><a href="#install-php-8-on-freebsd" name="install-php-8-on-freebsd"></a>Install PHP 8 on FreeBSD</h3>



<p>Now it is the turn of PHP 8, which fortunately is already in the official repositories. So we will be able to install it without any problems &#8211; some of the PHP modules will have to be installed from ports or by compiling the source code but they are few.</p>



<p>So run the following command to install PHP 8 and some of its main modules</p>



<pre class="wp-block-preformatted">pkg install php80 mod_php80 php80-mbstring php80-zlib php80-curl php80-gd php80-gd
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 18 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	fontconfig: 2.13.92_2,1
	freetype2: 2.10.4
	giflib: 5.2.1
	jbigkit: 2.1_1
	jpeg-turbo: 2.0.6
	libargon2: 20190702
	libgd: 2.3.1,1
	mod_php80: 8.0.3
	oniguruma: 6.9.6
	pcre2: 10.36
	php80: 8.0.3
	php80-curl: 8.0.3
	php80-gd: 8.0.3
	php80-mbstring: 8.0.3
	php80-zlib: 8.0.3
	png: 1.6.37
	tiff: 4.2.0
	webp: 1.1.0

Number of packages to be installed: 18

The process will require 66 MiB more space.
12 MiB to be downloaded.

Proceed with this action? [y/N]:</pre>



<p>With Apache and PHP installed, we have to make some configurations to get them working.</p>



<h3 id="configuring-apache-to-work-with-php"><a href="#configuring-apache-to-work-with-php" name="configuring-apache-to-work-with-php"></a>Configuring Apache to work with PHP</h3>



<p>The configuration we have to do is quite simple. In the <code>/usr/local/etc/apache24/Includes/</code> directory we have to add a file where PHP support is added.</p>



<p>In my case, I like nano so I have installed it.</p>



<pre class="wp-block-preformatted">pkg install nano</pre>



<p>And with it create and edit the file:</p>



<pre class="wp-block-preformatted">nano /usr/local/etc/apache24/Includes/php.conf</pre>



<p>And add the following content:</p>



<pre class="wp-block-preformatted">&lt;IfModule dir_module>
         DirectoryIndex index.php index.html
    
         &lt;FilesMatch "\.php$">
                  SetHandler application/x-httpd-php
         &lt;/FilesMatch>

         &lt;FilesMatch "\.phps$">
                  SetHandler application/x-httpd-php-source
         &lt;/FilesMatch>
&lt;/IfModule></pre>



<p>Save the changes and close the editor.</p>



<p>To verify if everything went well, it is necessary to make a sample file with some PHP code in the default Apache DocumentRoot.</p>



<pre class="wp-block-preformatted">nano /usr/local/www/apache24/data/info.php</pre>



<p>And add</p>



<pre class="wp-block-preformatted">&lt;?php
    phpinfo();
?></pre>



<p>Save the changes and close the editor. To apply all changes made, restart Apache.</p>



<pre class="wp-block-preformatted">service apache24 restart</pre>



<p>Now open your web browser and go to <code>http://your-server/info.php</code> and you will see the following</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/03/1-10-1024x506.png" alt="1.- PHP 8 on FreeBSD" class="wp-image-29242" srcset="https://www.osradar.com/wp-content/uploads/2021/03/1-10-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/1-10-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/1-10-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/1-10-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/1-10-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/03/1-10.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- PHP 8 on FreeBSD</figcaption></figure>



<p>So, PHP 8 is ready for work.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-php-8-on-freebsd/">Install PHP 8 on FreeBSD</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-php-8-on-freebsd/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Install ClamAV on Debian 10 / Debian 9/ Ubuntu 20.04/ 18.04</title>
		<link>https://www.osradar.com/install-clamav-debian-ubuntu/</link>
					<comments>https://www.osradar.com/install-clamav-debian-ubuntu/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 11 Feb 2021 00:00:00 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=7766</guid>

					<description><![CDATA[<p>Are there viruses in Linux? The answer is yes, the point is that Linux is a very secure system that minimizes risks. However, when you use a Linux server on a network where there are many clients using Windows, it is useful to install ClamAV to remove those viruses. ClamAV is an open source antivirus [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-clamav-debian-ubuntu/">Install ClamAV on Debian 10 / Debian 9/ Ubuntu 20.04/ 18.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Are there viruses in Linux? The answer is <a href="https://vms.drweb-av.es/virus/?i=17645163" rel="noopener">yes</a>, the point is that Linux is a very secure system that minimizes risks. However, when you use a Linux server on a network where there are many clients using Windows, it is useful to install ClamAV to remove those viruses.</p>
<p><a href="https://www.clamav.net/" rel="noopener">ClamAV</a> is an open source antivirus engine for detecting Trojans, viruses, malware and other malicious threats. Of course, it is available for the most common Linux distributions including Debian, Ubuntu, and CentOS.</p>
<p>In case you didn&#8217;t know, ClamAV is the standard for mail gateway scanning software. Of course, we are talking about the open source area. This tells you how powerful and reliable it is. All this, with a high performance, which assures you that you will not have an unnecessary expense of computer resource.</p>
<p>Let&#8217;s install ClamAV on <a href="https://www.osradar.com/how-to-install-tomcat-on-debian-9-stretch/">Debian</a> 10 / Debian 9.</p>
<h1>1. Install ClamAV</h1>
<p>Installing ClamAV is really simple because it is available in the main repositories of most Linux distributions.</p>
<p>In case you are using <a href="https://www.osradar.com/how-to-install-fedora-29/">Fedora</a>:</p>
<pre class="">:~$ sudo dnf install clamav</pre>
<p>For CentOS 7:</p>
<pre class="">:~$ sudo yum install clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd</pre>
<p>To install ClamAV in <a href="https://www.osradar.com/how-to-install-java-on-opensuse-15-leap/">OpenSuse</a>, just run:</p>
<pre class="">:~$ sudo zypper install clamav</pre>
<p>And for Debian and <a href="https://www.osradar.com/ubuntu-18-10-cosmic-cuttlefish-available/">Ubuntu</a>:</p>
<pre class="">:~$ su
:~# apt update &amp;&amp; sudo apt upgrade
:~# apt-get install clamav clamav-daemon</pre>
<p><figure id="attachment_7869" aria-describedby="caption-attachment-7869" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7869" src="https://www.osradar.com/wp-content/uploads/2018/12/1.png" alt="1.- Upgrading the system" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/1-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/1-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/1-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/1-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7869" class="wp-caption-text">1.- Upgrading the system</figcaption></figure></p>
<p><figure id="attachment_7870" aria-describedby="caption-attachment-7870" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7870" src="https://www.osradar.com/wp-content/uploads/2018/12/2.png" alt="2.- Install ClamAV on Debian" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/2-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/2-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7870" class="wp-caption-text">2.- Install ClamAV on Debian</figcaption></figure></p>
<p>The installation is done.</p>
<h1>2. Using ClamAV</h1>
<p>Like any antivirus, its effectiveness depends on how often you update your virus definition. So the first step is to update ClamAV.</p>
<pre class="">:~# freshclam</pre>
<p><figure id="attachment_7871" aria-describedby="caption-attachment-7871" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7871" src="https://www.osradar.com/wp-content/uploads/2018/12/3.png" alt="3.- Refreshing the clamav database" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/3-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/3-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/3-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/3-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/3-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7871" class="wp-caption-text">3.- Refreshing the ClamAV database</figcaption></figure></p>
<p>Next, scan a directory.</p>
<pre class="">:~# clamscan -r /home/angelo</pre>
<p><figure id="attachment_7872" aria-describedby="caption-attachment-7872" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7872" src="https://www.osradar.com/wp-content/uploads/2018/12/4.png" alt="4.- Scanning a directory" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/4-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/4-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/4-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/4-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/4-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7872" class="wp-caption-text">4.- Scanning a directory</figcaption></figure></p>
<p>The <code>-r</code> option is for recursively search.</p>
<p>In this case, ClamAV doesn&#8217;t detect any viruses because I literally don&#8217;t have any. It is practically a clean Debian installation.</p>
<p>I got an infected file, let&#8217;s see how ClamAV treats it.</p>
<p><figure id="attachment_7873" aria-describedby="caption-attachment-7873" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7873" src="https://www.osradar.com/wp-content/uploads/2018/12/5.png" alt="5.- An infected file found" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7873" class="wp-caption-text">5.- An infected file found</figcaption></figure></p>
<p>As you can see, ClamAV found the infected file. Now, remove it.</p>
<pre class="">:~# clamscan --infected --remove --recursive /home/angelo</pre>
<p><figure id="attachment_7874" aria-describedby="caption-attachment-7874" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7874" src="https://www.osradar.com/wp-content/uploads/2018/12/6.png" alt="6.- Removing an infected file" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/6.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/6-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/6-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/6-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/6-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/6-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7874" class="wp-caption-text">6.- Removing an infected file</figcaption></figure></p>
<p>The above process is very easy but it is not a good idea if it has to be done frequently. So, initialize the ClamAV daemon to constantly look for threats.</p>
<pre class="">:~# systemctl start clamav-daemon
:~# systemctl start clamav-freshclam</pre>
<p>Finally, you can consult the rest of ClamAV usage using its help. It is important to know other options of use and configuration.</p>
<pre class="">:~# clamav --help</pre>
<p><figure id="attachment_7876" aria-describedby="caption-attachment-7876" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7876" src="https://www.osradar.com/wp-content/uploads/2018/12/8.png" alt="8.- Other clamav options" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/8-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/8-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/8-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/8-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/8-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7876" class="wp-caption-text">7.- Others ClamAV options</figcaption></figure></p>
<p>And that&#8217;s it for now.</p>
<h1>Conclusion</h1>
<p>It is important to know how to use ClamAV on Linux because security is an issue that should not be taken lightly. Its installation and use are quite simple but because it is open source it guarantees a correct and frequently updated database.</p>
<p>Please share this post with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-clamav-debian-ubuntu/">Install ClamAV on Debian 10 / Debian 9/ Ubuntu 20.04/ 18.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-clamav-debian-ubuntu/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>Install Spack on Ubuntu 20.04</title>
		<link>https://www.osradar.com/install-spack-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-spack-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 01 Feb 2021 05:08:00 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[spack]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28036</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install Spack on Ubuntu 20.04. In case you don’t know what Sack is, we’ll tell you about it here too. According to the official website of Spack, Spack is a package manager for supercomputers, Linux, and macOS. It makes installing scientific software easy. Spack isn’t [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-spack-ubuntu-20-04/">Install Spack on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. In this post, you will learn how to install Spack on Ubuntu 20.04. In case you don’t know what Sack is, we’ll tell you about it here too.</p>



<p>According to the official <a href="https://spack.io/about/" target="_blank" rel="noreferrer noopener">website of Spack</a>,</p>



<blockquote class="wp-block-quote"><p>Spack is a package manager for supercomputers, Linux, and macOS. It makes installing scientific software easy. Spack isn’t tied to a particular language; you can build a software stack in Python or R, link to libraries written in C, C++, or Fortran, and easily swap compilers or target specific microarchitectures.</p></blockquote>



<p>This makes it a tool for a very specific sector but also for users who need a similar tool. With Spack, you can build a package with multiple versions, configurations, platforms, and compilers, and all of these builds can coexist on the same machine.</p>



<p>For such a professional tool, it’s very easy to install on Ubuntu 20.04</p>



<h2 id="install-spack-on-ubuntu-20.04"><a href="#install-spack-on-ubuntu-20.04" name="install-spack-on-ubuntu-20.04"></a>Install Spack on Ubuntu 20.04</h2>



<p>Before you start, update all the operating system packages by running the following commands in the terminal:</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p>After that, install <code>git</code> and the Ubuntu package <a href="https://www.osradar.com/install-development-build-tools-fedora/" target="_blank" rel="noreferrer noopener">building tools</a>.</p>



<pre class="wp-block-preformatted">sudo apt install git build-essential</pre>



<p>Once the installation is finished, it’s time to install Spack.</p>



<p>To do this, you can use git and specify a directory where you want to save the archive.</p>



<pre class="wp-block-preformatted">git clone https://github.com/spack/spack ~/.apps/spack/Spack</pre>



<p>In my case, I have chosen <code>~/.apps/spack/Spack</code> but you can choose another path.</p>



<p>Now, to use Spack from any location at the prompt, you have to add this folder to the <code>PATH</code>.</p>



<pre class="wp-block-preformatted">echo '. ~/.apps/spack/Spack/Spack/share/spack/setup-env.sh' >> ~/.bash_profile</pre>



<p>Then, apply the changes by running</p>



<pre class="wp-block-preformatted">source ~/.bash_profile</pre>



<p>And we can start using it, for example, it shows the installed version:</p>



<pre class="wp-block-preformatted">spack -V
0.16.0-1053-f28026c040</pre>



<h2 id="using-spack-on-ubuntu-20.04"><a href="#using-spack-on-ubuntu-20.04" name="using-spack-on-ubuntu-20.04"></a>Using Spack on Ubuntu 20.04</h2>



<p>The tool is quite simple to use, to install a program you just need to run</p>



<pre class="wp-block-preformatted">spack install [program_name]</pre>



<p>Also, you can install the specific version of a program with the help of the <code>@</code> sign.</p>



<pre class="wp-block-preformatted">spack install [program_name]@version</pre>



<p>Now to know the version list of a program, you can use versions</p>



<pre class="wp-block-preformatted">spack versions [program_name]</pre>



<p>If you want to know which packages or programs are available, you can do so with the list command</p>



<pre class="wp-block-preformatted">spack list</pre>



<p>You can even filter them using a wildcard</p>



<pre class="wp-block-preformatted">spack list 'py-*'</pre>



<p>In this case, all packages starting with <code>py-</code> will be shown.</p>



<p>To uninstall packages we can use the same syntax as install but with the uninstall command</p>



<pre class="wp-block-preformatted">spack uninstall [program_name]</pre>



<p>Or for a specific version:</p>



<pre class="wp-block-preformatted">spack uninstall [program_name]@version</pre>



<p>Also, it is useful to remove its dependencies with the <code>-R</code> option.</p>



<pre class="wp-block-preformatted">spack uninstall -R [program_name]</pre>



<p>So, enjoy it.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>Thanks to this post, you now know how to install Spack on Ubuntu 20.04 which is a tool used at a scientific level. It is quite easy to use and to install for all it does.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-spack-ubuntu-20-04/">Install Spack on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-spack-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
