<?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/tag/unix/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 28 Jan 2021 21:09:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<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>
		<item>
		<title>How to install lighttpd on FreeBSD 12?</title>
		<link>https://www.osradar.com/how-to-install-lighttpd-freebsd-12/</link>
					<comments>https://www.osradar.com/how-to-install-lighttpd-freebsd-12/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 25 Feb 2020 00:11:00 +0000</pubDate>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[freebsd 12]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=18365</guid>

					<description><![CDATA[<p>Hi, folks. Thanks for staying another day. In this post, you will learn how to install Lighttpd on FreeBSD 12. Of course, we will include PHP support. So let&#8217;s go for it. Lighttpd is a “secure, fast, compatible and very flexible” web server optimized for high-performance environments. It consumes very few resources compared to other [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lighttpd-freebsd-12/">How to install lighttpd on FreeBSD 12?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hi, folks. Thanks for staying another day. In this post, you will learn <strong>how to install Lighttpd on FreeBSD 12</strong>. Of course, we will include PHP support. So let&#8217;s go for it.</p>
<p><a href="https://www.lighttpd.net/" target="_blank" rel="noopener noreferrer"><strong>Lighttpd</strong></a> is a “secure, fast, compatible and very flexible” web server optimized for high-performance environments. It consumes very few resources compared to other web servers and especially fast for running AJAX applications. It is also open source and uses a BSD license and works on UNIX-like systems, such as Linux or BSD.</p>
<p>Generally, Lighttpd is used in servers where maximum performance is needed even at the sacrifice of some features. Despite this, Lighttpd is always a good alternative to the popular Apache and Nginx.</p>
<h2>Install Lighttpd on FreeBSD 12</h2>
<p>For this tutorial, you need to have sudo enabled. For this, I recommend you to read our post about it:</p>
<p><a href="https://www.osradar.com/enable-sudo-on-freebsd-12/" target="_blank" rel="noopener noreferrer">How to enable sudo on FreeBSD 12?</a></p>
<p>Before starting with the tutorial, it is recommended to update the system completely, to do it, open a terminal emulator or connect to your server using SSH and write:</p>
<pre>:~$ sudo pkg update</pre>
<p>Now we can really get started with the tutorial.</p>
<h3>1.- Install Lighttpd</h3>
<p>Lighttpd is available from the official FreeBSD repositories. Therefore, the installation will not result in problems. So to install it, use the following command:</p>
<pre>:~$ sudo pkg install lighttpd
Updating FreeBSD repository catalogue...
Fetching meta.txz: 100%    944 B   0.9kB/s    00:01    
Fetching packagesite.txz: 100%    6 MiB  53.0kB/s    02:02    
Processing entries: 100%
FreeBSD repository update completed. 31558 packages processed.
All repositories are up to date.
The following 4 package(s) will be affected (of 0 checked):</pre>
<p>New packages to be INSTALLED:<br />
lighttpd: 1.4.54<br />
lua52: 5.2.4<br />
libedit: 3.1.20191211,1<br />
pcre: 8.43_2</p>
<p>Number of packages to be installed: 4</p>
<p>The process will require 10 MiB more space.<br />
2 MiB to be downloaded.</p>
<p>Proceed with this action? [y/N]:</p>
<p><figure id="attachment_18442" aria-describedby="caption-attachment-18442" style="width: 708px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18442" src="https://www.osradar.com/wp-content/uploads/2020/02/1-14.png" alt="1.-  Install Lighttpd on FreeBSD 12" width="708" height="422" srcset="https://www.osradar.com/wp-content/uploads/2020/02/1-14.png 708w, https://www.osradar.com/wp-content/uploads/2020/02/1-14-300x179.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/1-14-696x415.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/1-14-705x420.png 705w" sizes="(max-width: 708px) 100vw, 708px" /><figcaption id="caption-attachment-18442" class="wp-caption-text">1.- Install Lighttpd on FreeBSD 12</figcaption></figure></p>
<p>After entering the password, the download will start.</p>
<p>For now, we won&#8217;t start the Lighttpd service because there are some settings we have to make first.</p>
<h3>2.- Install PHP on FreeBSD 12</h3>
<p>Of course, if we install only Lighttpd we won&#8217;t be able to run any web application made with PHP. This brings a consequence that the functionality would decay. So let&#8217;s install it:</p>
<pre>:~$ sudo pkg install php74 mod_php74 php74-mbstring php74-zlib php74-curl php74-gd php74-json</pre>
<p><figure id="attachment_18445" aria-describedby="caption-attachment-18445" style="width: 894px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18445" src="https://www.osradar.com/wp-content/uploads/2020/02/2-13.png" alt="2.- Install PHP on FreeBSD 12" width="894" height="714" srcset="https://www.osradar.com/wp-content/uploads/2020/02/2-13.png 894w, https://www.osradar.com/wp-content/uploads/2020/02/2-13-300x240.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/2-13-768x613.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/2-13-696x556.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/2-13-526x420.png 526w" sizes="(max-width: 894px) 100vw, 894px" /><figcaption id="caption-attachment-18445" class="wp-caption-text">2.- Install PHP on FreeBSD 12</figcaption></figure></p>
<p>I took the opportunity to install some extra modules.</p>
<p>Now we have to make some modifications to PHP so that it can work without problems with Lighttpd.</p>
<p>First open the file <strong>/usr/local/etc/php-fpm.d/www.conf</strong> and make these changes.</p>
<p>Find the line:</p>
<pre>listen = 127.0.0.1:9000</pre>
<p>And exchange it for this one:</p>
<pre>listen = /var/run/php-fpm.sock</pre>
<p>Then, locate the following lines and decomment them:</p>
<pre>;listen.owner = www
;listen.group = www
;listen.mode = 0660</pre>
<p>Looking like this in the picture:</p>
<p><figure id="attachment_18446" aria-describedby="caption-attachment-18446" style="width: 857px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18446" src="https://www.osradar.com/wp-content/uploads/2020/02/3-11.png" alt="3.- Configuring PHP to support Lighttpd" width="857" height="504" srcset="https://www.osradar.com/wp-content/uploads/2020/02/3-11.png 857w, https://www.osradar.com/wp-content/uploads/2020/02/3-11-300x176.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/3-11-768x452.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/3-11-696x409.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/3-11-714x420.png 714w" sizes="(max-width: 857px) 100vw, 857px" /><figcaption id="caption-attachment-18446" class="wp-caption-text">3.- Configuring PHP to support Lighttpd</figcaption></figure></p>
<p>So, save the changes and close the file.</p>
<p>Now it is necessary to create a new php.ini file. During the installation, two example files are created that we have to use depending on the function of our computer. These files are <strong>php.ini-production</strong> and<strong> php.ini-development.</strong></p>
<p>So we have to choose one, in my case, I will assume that FreeBSD 12 is for production, so that will be my choice.</p>
<p><strong><em>Note: it is likely that if you choose the other one this tutorial will work as well.</em></strong></p>
<p>So, we copy the example file as php.ini:</p>
<pre>:~$ sudo cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini</pre>
<p>And we edited the file in question:</p>
<pre>:~$ sudo nano /usr/local/etc/php.ini</pre>
<p>And locate the line:</p>
<pre>;cgi.fix_pathinfo=1</pre>
<p>And exchange it for this one:</p>
<pre>cgi.fix_pathinfo=0</pre>
<p><figure id="attachment_18448" aria-describedby="caption-attachment-18448" style="width: 903px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18448" src="https://www.osradar.com/wp-content/uploads/2020/02/4-10.png" alt="4.- Editing the PHP configuration file" width="903" height="229" srcset="https://www.osradar.com/wp-content/uploads/2020/02/4-10.png 903w, https://www.osradar.com/wp-content/uploads/2020/02/4-10-300x76.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/4-10-768x195.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/4-10-696x177.png 696w" sizes="(max-width: 903px) 100vw, 903px" /><figcaption id="caption-attachment-18448" class="wp-caption-text">4.- Editing the PHP configuration file</figcaption></figure></p>
<p>Again, save the changes and close the file.</p>
<p>Now we can start and enable the PHP-fpm service.</p>
<pre>:~$ sudo sysrc php_fpm_enable=yes
php_fpm_enable: -&gt; yes
:~$ sudo service php-fpm start
Performing sanity check on php-fpm configuration:
[20-Feb-2020 14:50:21] NOTICE: configuration file /usr/local/etc/php-fpm.conf test is successful
Starting php_fpm.</pre>
<h3>3.- Configuring Lighttpd on FreeBSD 12</h3>
<p>In this section of the tutorial, we have to make some configurations to Lighttpd so that it can work with PHP.</p>
<p>So, open the file <strong>/usr/local/etc/lighttpd/modules.conf</strong></p>
<pre>:~$ sudo nano /usr/local/etc/lighttpd/modules.conf</pre>
<p>And uncomment the line:</p>
<pre>include "conf.d/fastcgi.conf"</pre>
<p><figure id="attachment_18451" aria-describedby="caption-attachment-18451" style="width: 666px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18451" src="https://www.osradar.com/wp-content/uploads/2020/02/5-10.png" alt="5.- Configuring Lighttpd to work with PHP" width="666" height="258" srcset="https://www.osradar.com/wp-content/uploads/2020/02/5-10.png 666w, https://www.osradar.com/wp-content/uploads/2020/02/5-10-300x116.png 300w" sizes="(max-width: 666px) 100vw, 666px" /><figcaption id="caption-attachment-18451" class="wp-caption-text">5.- Configuring Lighttpd to work with PHP</figcaption></figure></p>
<p>What this does is to include the fastcgi module which is the one we will use for Lighttpd to process PHP.</p>
<p>At the end of that same file, add the following:</p>
<pre>fastcgi.server += ( ".php" =&gt;
        ((
                "socket" =&gt; "/var/run/php-fpm.sock",
                "broken-scriptfilename" =&gt; "enable"
        ))
)</pre>
<p><figure id="attachment_18452" aria-describedby="caption-attachment-18452" style="width: 811px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18452" src="https://www.osradar.com/wp-content/uploads/2020/02/6-8.png" alt="6.- Editing the Lighttpd configuration file" width="811" height="169" srcset="https://www.osradar.com/wp-content/uploads/2020/02/6-8.png 811w, https://www.osradar.com/wp-content/uploads/2020/02/6-8-300x63.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/6-8-768x160.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/6-8-696x145.png 696w" sizes="(max-width: 811px) 100vw, 811px" /><figcaption id="caption-attachment-18452" class="wp-caption-text">6.- Editing the Lighttpd configuration file</figcaption></figure></p>
<p>Save the changes and close the editor.</p>
<p>Before starting the service, edit the main Lighttpd configuration file and uncomment the line:</p>
<pre>:~$ sudo nano /usr/local/etc/lighttpd/lighttpd.conf</pre>
<pre>server.bind = "localhost"</pre>
<p>So, you can save the changes and close the file.</p>
<p>If your server uses IPv6, you have to locate this line as well and leave it as it is:</p>
<pre>server.use-ipv6 = "enable"</pre>
<p>And at the end of the file comment on this line:</p>
<pre>$SERVER["socket"] == "0.0.0.0:80" { }</pre>
<p><strong>Remember, this is only if your server uses IPv6, if not omit this.</strong></p>
<p>Now, enable and start the Lighttpd service:</p>
<pre>:~$ sudo sysrc lighttpd_enable=yes
lighttpd_enable: -&gt; yes</pre>
<pre>:~$ sudo service lighttpd start</pre>
<p>So, we are going to test it.</p>
<h3>4.- Testing Lighttpd and PHP on FreeBSD 12</h3>
<p>Now we&#8217;re going to try everything we&#8217;ve done. The best way is to create a PHP file for the server to run.</p>
<p>First, create the folder where Lighttpd will look for the web files. In other words, the root directory.</p>
<pre>:~$ sudo mkdir -p /usr/local/www/data</pre>
<p>And now create a PHP file called test.php and add the following:</p>
<pre>:~$ sudo nano /usr/local/www/data/test.php
&lt;?php
phpinfo();
?&gt;</pre>
<p>Save the changes and close the file.</p>
<p>Now open your favorite web browser and go to <strong>http://server-ip/test.php</strong> and you will see the following:</p>
<p><figure id="attachment_18454" aria-describedby="caption-attachment-18454" style="width: 1354px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18454" src="https://www.osradar.com/wp-content/uploads/2020/02/7-3.png" alt="7.- Lighttpd and PHP working on FreeBSD 12" width="1354" height="669" srcset="https://www.osradar.com/wp-content/uploads/2020/02/7-3.png 1354w, https://www.osradar.com/wp-content/uploads/2020/02/7-3-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/7-3-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/02/7-3-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/7-3-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2020/02/7-3-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/7-3-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/02/7-3-850x420.png 850w" sizes="(max-width: 1354px) 100vw, 1354px" /><figcaption id="caption-attachment-18454" class="wp-caption-text">7.- Lighttpd and PHP working on FreeBSD 12</figcaption></figure></p>
<p>So, that is it. If you want to use a database management program in FreeBSD 12, you can check these posts:</p>
<p><a href="https://www.osradar.com/install-postgresql-freebsd-12/" target="_blank" rel="noopener noreferrer">How to install PostgreSQL on FreeBSD 12?</a></p>
<p><a href="https://www.osradar.com/how-to-install-sqlite-on-freebsd-12/" target="_blank" rel="noopener noreferrer">How to install SQLite on FreeBSD 12?</a></p>
<p>So, enjoy it.</p>
<h2>Conclusion</h2>
<p>Lighttpd is less popular than Apache and Nginx, that&#8217;s for sure, but it&#8217;s quite useful on small servers or when we want maximum performance in a web application. Today thanks to this post, you have learned how to install it on FreeBSD 12.</p>
<p>Please share this post and join our <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lighttpd-freebsd-12/">How to install lighttpd on FreeBSD 12?</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/how-to-install-lighttpd-freebsd-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install PostgreSQL on FreeBSD 12</title>
		<link>https://www.osradar.com/install-postgresql-freebsd-12/</link>
					<comments>https://www.osradar.com/install-postgresql-freebsd-12/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 22 Feb 2020 00:02:00 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[freebsd12]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17980</guid>

					<description><![CDATA[<p>To develop great applications you need a great database manager. So, that is why in this post I will teach you how to install PostgreSQL 12 on FreeBSD 12. PostgreSQL PostgreSQL is one of the most advanced and modern relational database managers out there. It is always shown as the immediate competitor of MySQL and [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-postgresql-freebsd-12/">Install PostgreSQL on FreeBSD 12</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>To develop great applications you need a great database manager. So, that is why in this post <strong>I will teach you how to install PostgreSQL 12 on FreeBSD 12.</strong></p>
<h2>PostgreSQL</h2>
<p><a href="https://www.postgresql.org/">PostgreSQL</a> is one of the most advanced and modern relational database managers out there. It is always shown as the immediate competitor of <a href="https://www.osradar.com/tag/mysql/">MySQL</a> and <a href="https://www.osradar.com/tag/mysql/">MariaDB</a> in the segment of open source and community database managers.</p>
<p>One of the main advantages of using PostgreSQL is that it has extensive documentation and supports powerful features. All this in an open-source and free application.</p>
<p>And recently version 12 has been released. If you want to know more about it read our post about it.</p>
<p><a href="https://www.osradar.com/postgresql-12-is-available/" target="_blank" rel="noreferrer noopener" aria-label="PostgreSQL 12.0 is available (opens in a new tab)">PostgreSQL 12.0 is available</a></p>
<p>This new version includes security improvements and interesting new features so it&#8217;s a good idea to install it.</p>
<p>So, let us start.</p>
<h2>Install PostgreSQL on FreeBSD 12</h2>
<p>In this guide, we will use commands that require you to be root. In this case, we will choose a user with privileges to use sudo. In case your user can&#8217;t do it, you can read our post.</p>
<p>How to enable sudo on FreeBSD 12.</p>
<p>If you are already the root user, you can simply remove the word sudo from the following commands.</p>
<p>The first step is to upgrade the system completely. To do this, open your FreeBSD terminal and run the following command:</p>
<pre>:~$ sudo pkg update</pre>
<p>After this, the system will be ready for work.</p>
<p>The goal of this post is to install PostgreSQL 12 on FreeBSD but in the official repositories, we have several versions of PostgeSQL.</p>
<pre>:~$ sudo pkg search ^postgresql |grep -i server
postgresql10-server-10.11      PostgreSQL is the most advanced open-source database available anywhere
postgresql11-server-11.6       PostgreSQL is the most advanced open-source database available anywhere
postgresql12-server-12.1       PostgreSQL is the most advanced open-source database available anywhere
postgresql94-server-9.4.25     PostgreSQL is the most advanced open-source database available anywhere
postgresql95-server-9.5.20     PostgreSQL is the most advanced open-source database available anywhere
postgresql96-server-9.6.16     PostgreSQL is the most advanced open-source database available anywhere</pre>
<p><figure id="attachment_18076" aria-describedby="caption-attachment-18076" style="width: 918px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18076" src="https://www.osradar.com/wp-content/uploads/2020/02/1-3.png" alt="1.- PostgreSQL on the FreeBSD repository" width="918" height="167" srcset="https://www.osradar.com/wp-content/uploads/2020/02/1-3.png 918w, https://www.osradar.com/wp-content/uploads/2020/02/1-3-300x55.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/1-3-768x140.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/1-3-696x127.png 696w" sizes="(max-width: 918px) 100vw, 918px" /><figcaption id="caption-attachment-18076" class="wp-caption-text">1.- PostgreSQL on the FreeBSD repository</figcaption></figure></p>
<p>The above command performs a search of the PostgreSQL package repositories but refines the search to server.</p>
<p>As you can see, versions 9.4, 9.5, 9.6,10,11 and 12 are available. Let&#8217;s install the version 12. To do so, run the following:</p>
<pre>:~$ sudo pkg install postgresql12-server
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 5 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	postgresql12-server: 12.1
	icu: 65.1,1
	postgresql12-client: 12.1
	perl5: 5.30.1
	readline: 8.0.1

Number of packages to be installed: 5

The process will require 141 MiB more space.
31 MiB to be downloaded.

Proceed with this action? [y/N]:</pre>
<p><figure id="attachment_18077" aria-describedby="caption-attachment-18077" style="width: 873px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18077" src="https://www.osradar.com/wp-content/uploads/2020/02/2-3.png" alt="2.- Install PostgreSQL on FreeBSD 12" width="873" height="383" srcset="https://www.osradar.com/wp-content/uploads/2020/02/2-3.png 873w, https://www.osradar.com/wp-content/uploads/2020/02/2-3-300x132.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/2-3-768x337.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/2-3-696x305.png 696w" sizes="(max-width: 873px) 100vw, 873px" /><figcaption id="caption-attachment-18077" class="wp-caption-text">2.- Install PostgreSQL on FreeBSD 12</figcaption></figure></p>
<p>Then, the installation will start normally.</p>
<p><figure id="attachment_18079" aria-describedby="caption-attachment-18079" style="width: 920px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18079" src="https://www.osradar.com/wp-content/uploads/2020/02/3-3.png" alt="3.- Installation is finished" width="920" height="672" srcset="https://www.osradar.com/wp-content/uploads/2020/02/3-3.png 920w, https://www.osradar.com/wp-content/uploads/2020/02/3-3-300x219.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/3-3-768x561.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/3-3-696x508.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/3-3-575x420.png 575w" sizes="(max-width: 920px) 100vw, 920px" /><figcaption id="caption-attachment-18079" class="wp-caption-text">3.- Installation is finished</figcaption></figure></p>
<p>Once the installation is complete, the first thing to do is to get PostgreSQL started with the system. This is not mandatory but it is convenient in many cases.</p>
<p>So to do this, edit the <code>/etc/rc.conf</code> file</p>
<pre>:~$ sudo nano /etc/rc.conf</pre>
<p>Now add the following:</p>
<pre>postgresql_enable="YES"</pre>
<p><figure id="attachment_18078" aria-describedby="caption-attachment-18078" style="width: 818px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18078" src="https://www.osradar.com/wp-content/uploads/2020/02/4-2.png" alt="4.- Enabling the PostgreSQL service" width="818" height="174" srcset="https://www.osradar.com/wp-content/uploads/2020/02/4-2.png 818w, https://www.osradar.com/wp-content/uploads/2020/02/4-2-300x64.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/4-2-768x163.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/4-2-696x148.png 696w" sizes="(max-width: 818px) 100vw, 818px" /><figcaption id="caption-attachment-18078" class="wp-caption-text">4.- Enabling the PostgreSQL service</figcaption></figure></p>
<p>Save the changes and close the file. In case you don&#8217;t have nano installed, you can do it with the following command:</p>
<pre>:~$ sudo pkg install nano</pre>
<p>Before starting the PostgreSQL service the default database must be initialized. To do this, run the following command:</p>
<pre>:~$ sudo service postgresql initdb
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "C".
The default text search configuration will be set to "english".

Data page checksums are disabled.

creating directory /var/db/postgres/data12 ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... America/Caracas
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok

initdb: warning: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

    /usr/local/bin/pg_ctl -D /var/db/postgres/data12 -l logfile start</pre>
<p><figure id="attachment_18080" aria-describedby="caption-attachment-18080" style="width: 946px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18080" src="https://www.osradar.com/wp-content/uploads/2020/02/5-2.png" alt="5.- Configuring PostgreSQL" width="946" height="515" srcset="https://www.osradar.com/wp-content/uploads/2020/02/5-2.png 946w, https://www.osradar.com/wp-content/uploads/2020/02/5-2-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/5-2-768x418.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/5-2-696x379.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/5-2-771x420.png 771w" sizes="(max-width: 946px) 100vw, 946px" /><figcaption id="caption-attachment-18080" class="wp-caption-text">5.- Configuring PostgreSQL</figcaption></figure></p>
<p>And now you can start the PostgreSQL service with the following command:</p>
<pre>:~$ sudo service postgresql start
2020-02-05 14:52:37.731 -04 [869] LOG:  starting PostgreSQL 12.1 on amd64-portbld-freebsd12.0, compiled by FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1), 64-bit
2020-02-05 14:52:37.732 -04 [869] LOG:  listening on IPv6 address "::1", port 5432
2020-02-05 14:52:37.732 -04 [869] LOG:  listening on IPv4 address "127.0.0.1", port 5432
2020-02-05 14:52:37.735 -04 [869] LOG:  listening on Unix socket "/tmp/.s.PGSQL.5432"
2020-02-05 14:52:37.749 -04 [869] LOG:  ending log output to stderr
2020-02-05 14:52:37.749 -04 [869] HINT:  Future log output will go to log destination "syslog".</pre>
<p><figure id="attachment_18081" aria-describedby="caption-attachment-18081" style="width: 946px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18081" src="https://www.osradar.com/wp-content/uploads/2020/02/5-3.png" alt="5.- Starting the service" width="946" height="515" srcset="https://www.osradar.com/wp-content/uploads/2020/02/5-3.png 946w, https://www.osradar.com/wp-content/uploads/2020/02/5-3-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/5-3-768x418.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/5-3-696x379.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/5-3-771x420.png 771w" sizes="(max-width: 946px) 100vw, 946px" /><figcaption id="caption-attachment-18081" class="wp-caption-text">5.- Starting the service</figcaption></figure></p>
<p>Finally, access the PostgreSQL console with the following command:</p>
<pre>:~$ sudo -u postgres psql</pre>
<p><figure id="attachment_18082" aria-describedby="caption-attachment-18082" style="width: 812px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18082" src="https://www.osradar.com/wp-content/uploads/2020/02/6-1.png" alt="6.- PostgreSQL properly running on FreeBSD 12" width="812" height="142" srcset="https://www.osradar.com/wp-content/uploads/2020/02/6-1.png 812w, https://www.osradar.com/wp-content/uploads/2020/02/6-1-300x52.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/6-1-768x134.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/6-1-696x122.png 696w" sizes="(max-width: 812px) 100vw, 812px" /><figcaption id="caption-attachment-18082" class="wp-caption-text">6.- PostgreSQL properly running on FreeBSD 12</figcaption></figure></p>
<p>As you can see you can already use PostgreSQL 12 on FreeBSD without problems.</p>
<h2>Conclusion</h2>
<p>PostgreSQL is perhaps the best open source database manager and this consideration has not been given away. It has been earned with many jobs and above all with extraordinary performance. Now you know how to install it on FreeBSD 12.</p>
<p>Share this post and join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-postgresql-freebsd-12/">Install PostgreSQL on FreeBSD 12</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-freebsd-12/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install FFmpeg on Ubuntu 18.04</title>
		<link>https://www.osradar.com/how-to-install-ffmpeg-on-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/how-to-install-ffmpeg-on-ubuntu-18-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Sun, 05 Jan 2020 13:54:20 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ffmpeg installation on ubuntu 18.04]]></category>
		<category><![CDATA[how to install ffmpeg on ubuntu 18.04]]></category>
		<category><![CDATA[install ffmpeg 4.2]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17074</guid>

					<description><![CDATA[<p>What is FFmpeg? FFmpeg is an open source software (also a command line tool) used for transcoding multimedia files. FFmpeg consists of shared libraries like libswresample, libavcodec, libavformat, libavutil &#38; programs for handling video, audio &#38; other multimedia files &#38; streams. It provides you the facility of converting various video &#38; audio formats. With FFmpeg [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-ffmpeg-on-ubuntu-18-04/">How To Install FFmpeg on Ubuntu 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[
<h3><strong>What is FFmpeg?</strong></h3>



<p>FFmpeg is an open source software (also a command line tool) used for transcoding multimedia  files. FFmpeg consists of shared libraries like libswresample, libavcodec, libavformat, libavutil &amp; programs for handling video, audio &amp; other multimedia files &amp; streams. It provides you the facility of converting various video &amp; audio formats. With FFmpeg you can also capture &amp; encode in real-time from hardware such as TV capture card. Just follow the guide to easily Install FFmpeg on your Ubuntu 18.04.</p>



<h3><strong>Step 1: Add ppa:jonathonf/ffmpeg-4.2</strong></h3>



<p>Add jonathonf repo &amp; press Enter when prompt to continue</p>



<pre class="wp-block-verse">sabi@sabi:~$ sudo add-apt-repository ppa:jonathonf/ffmpeg-4<br>  Backport of FFmpeg 4 and associated libraries. Now includes AOM/AV1 support!<br> FDK AAC is not compatible with GPL and FFmpeg can't be redistributed with it included. Please don't ask for it to be added to this public PPA.<br> <br> PPA supporters:<br> BigBlueButton (https://bigbluebutton.org)<br> <br> Donate to FFMPEG: https://ffmpeg.org/donations.html<br> Donate to Debian: https://www.debian.org/donations<br> Donate to this PPA: https://ko-fi.com/jonathonf<br>  More info: https://launchpad.net/~jonathonf/+archive/ubuntu/ffmpeg-4<br> Press<strong> [ENTER]</strong> to continue or Ctrl-c to cancel adding it.</pre>



<h3><strong>Step 2: Update the Repository index</strong></h3>



<pre class="wp-block-verse">sudo apt-get udpate</pre>



<p>After adding PPA , Install the FFmpeg package by running</p>



<pre class="wp-block-verse">sudo apt -y  install ffmpeg</pre>



<h3><strong>Step 3: Verifying FFmpeg Installation</strong></h3>



<p>Confirm the installation by verifying version of FFmpeg </p>



<pre class="wp-block-verse">sabi@sabi:~$ ffmpeg -version<br> ffmpeg version 4.2.1-2~18.04.york2 Copyright (c) 2000-2019 the FFmpeg developers<br> built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)<br> configuration: --prefix=/usr --extra-version='2~18.04.york2' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared<br> libavutil      56. 31.100 / 56. 31.100<br> libavcodec     58. 54.100 / 58. 54.100<br> libavformat    58. 29.100 / 58. 29.100<br> libavdevice    58.  8.100 / 58.  8.100<br> libavfilter     7. 57.100 /  7. 57.100<br> libavresample   4.  0.  0 /  4.  0.  0<br> libswscale      5.  5.100 /  5.  5.100<br> libswresample   3.  5.100 /  3.  5.100<br> libpostproc    55.  5.100 / 55.  5.100</pre>



<p>Install Additional packages by typing</p>



<pre class="wp-block-verse">ffmpeg -encoders<br>ffmpeg -decoders</pre>



<p>You have successfully installed FFmpeg on your system. It&#8217;s time to test and run the FFmpeg on your Ubuntu 18.04</p>



<h3><strong>Step 4: How To Use FFmpeg</strong></h3>



<p>Let&#8217;s take some examples to cover basic things to use FFmpeg on Ubuntu 18.04</p>



<h4><strong>Basic Conversion</strong></h4>



<p>In basic conversion you don&#8217;t have to specify the conversion formats. FFmpeg automatically detects the formats and covert them based on the file extension of an  output file.</p>



<p>Covert a video from mp4 to WebM</p>



<pre class="wp-block-verse">ffmpeg -i video.mp4 video.webm</pre>



<h4><strong>Advanced Conversion</strong></h4>



<p>In advance conversion, you can specify the codecs using -c option. Specify the name of any encoder/decoder which is supported by ffmpeg for copying the input stream along with -c.</p>



<p>For example, here we will covert the audio (-c:a copy) from input.webm &amp; convert the video to a VP9 codec (-c:v vp9) with a bit rate of 1M/s (-b:v), all bundled up in a Matroska container (output.mkv)</p>



<pre class="wp-block-verse">ffmpeg -i input.webm -c:a copy -c:v vp9 -b:v 1M output.mkv</pre>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-ffmpeg-on-ubuntu-18-04/">How To Install FFmpeg on Ubuntu 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/how-to-install-ffmpeg-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Podman on Debian on 10 / 9</title>
		<link>https://www.osradar.com/how-to-install-podman-on-debian-on-10-9/</link>
					<comments>https://www.osradar.com/how-to-install-podman-on-debian-on-10-9/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Thu, 02 Jan 2020 03:37:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[debian installation with podman]]></category>
		<category><![CDATA[how to install podman on debian 10]]></category>
		<category><![CDATA[installing podman]]></category>
		<category><![CDATA[podman]]></category>
		<category><![CDATA[Podman installation]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16914</guid>

					<description><![CDATA[<p>Introduction: Podman is used to develop, manage and run OCI Containers on our Linux System. It runs without starting daemon every time. In today tutorial, we will cover the installation of Podman on our Debian System. Step 1: Updating your system Update your system by running sudo apt -y update &#38;&#38; sudo apt -y upgrade [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-podman-on-debian-on-10-9/">How To Install Podman on Debian on 10 / 9</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2><strong>Introduction:</strong></h2>



<p>Podman is used to develop, manage and run OCI Containers on our Linux System. It runs without starting daemon every time.  In today tutorial, we will cover the installation of Podman on our Debian System.</p>



<h3><strong>Step 1: Updating your system</strong></h3>



<p>Update your system by running </p>



<pre class="wp-block-verse">sudo apt -y update &amp;&amp; sudo apt -y upgrade</pre>



<h3><strong>Step 2: Installing pre-requisites</strong></h3>



<p>In our case we are going to build the packages from source code. Install the required dependencies you want to use</p>



<pre class="wp-block-verse">sudo apt -y install \<br>
gcc \<br>
  make \<br>
  cmake \<br>
  git \<br>
  btrfs-progs \<br>
  golang-go \<br>
  go-md2man \<br>
  iptables \<br>
  libassuan-dev \<br>
  libc6-dev \<br>
  libdevmapper-dev \<br>
  libglib2.0-dev \<br>
  libgpgme-dev \<br>
  libgpg-error-dev \<br>
  libostree-dev \<br>
  libprotobuf-dev \<br>
  libprotobuf-c-dev \<br>
  libseccomp-dev \<br>
  libselinux1-dev \<br>
  libsystemd-dev \<br>
  pkg-config \<br>
  runc \<br>
  uidmap \<br>
  libapparmor-dev</pre>



<h3><strong>Step 3: Installing common</strong></h3>



<p><strong>Common</strong> is used to monitor OCI run times on your Linux System. Install the latest version of common on Debian by cloning.</p>



<pre class="wp-block-verse">git clone https://github.com/containers/common<br>cd common<br>sudo make podman<br>sudo cp /usr/local/libexec/podman/common /usr/local/bin/</pre>



<h3><strong>Step 4: Installing CNI Plugins</strong></h3>



<p>Make sure that the CNI Plugins are installed on your system. If they are not installed yet, Install them by typing</p>



<pre class="wp-block-verse">git clone https://github.com/containernetworking/plugins.git $GOPATH/src/github.com/containernetworking/plugins<br>cd $GOPATH/src/github.com/containernetworking/plugins<br>./build_linux.sh<br>sudo mkdir -p /usr/libexec/cni<br>sudo cp bin/* /usr/libexec/cni</pre>



<h3><strong>Step 5: Setting Up CNI Networking</strong></h3>



<p>Now, add the configuration files by </p>



<pre class="wp-block-verse">sudo mkdir -p /etc/cni/net.d<br>curl -qsSL https://raw.githubusercontent.com/containers/libpod/master/cni/87-podman-bridge.conflist | sudo tee /etc/cni/net.d/99-loopback.conf</pre>



<h3><strong>Step 6: Populate Config files</strong></h3>



<p>You have to manually add configuration files like registry and policy files.</p>



<pre class="wp-block-verse">sudo mkdir -p /etc/containers<br>sudo curl https://raw.githubusercontent.com/projectatomic/registries/master/registries.fedora -o /etc/containers/registries.conf<br>sudo curl https://raw.githubusercontent.com/containers/skopeo/master/default-policy.json -o /etc/containers/policy.json</pre>



<h3><strong>Step 7: Installing Podman</strong></h3>



<p>After doing all the above requirements, its time to download and Install Podman on your system. </p>



<pre class="wp-block-verse">git clone https://github.com/containers/libpod/ $GOPATH/src/github.com/containers/libpod<br>cd $GOPATH/src/github.com/containers/libpod<br>make<br>sudo make install</pre>



<p>You can run the command podman version to check the installed version of podman</p>



<pre class="wp-block-verse">$ podman info<br> host:<br>   BuildahVersion: 1.9.2<br>   Conmon:<br>     package: Unknown<br>     path: /usr/local/bin/conmon<br>     version: 'conmon version 1.0.1-dev, commit: 8392df88fba944510b51c7d5b92aa745a15863f8'<br>   Distribution:<br>     distribution: debian<br>     version: "10"<br>   MemFree: 6179495936<br>   MemTotal: 8167223296<br>   OCIRuntime:<br>     package: 'runc: /usr/sbin/runc'<br>     path: /usr/sbin/runc<br>     version: |-<br>       runc version 1.0.0~rc6+dfsg1<br>       commit: 1.0.0~rc6+dfsg1-3<br>       spec: 1.0.1<br>   SwapFree: 0<br>   SwapTotal: 0<br>   arch: amd64<br>   cpus: 2<br>   eventlogger: journald<br>   hostname: debian10<br>   kernel: 4.19.0-5-amd64<br>   os: linux<br>   rootless: false<br>   uptime: 13m 44.64s<br> registries:<br>   blocked: null<br>   insecure: null<br>   search:<br> docker.io<br> registry.fedoraproject.org<br> registry.access.redhat.com<br> store:<br> ConfigFile: /etc/containers/storage.conf<br> ContainerStore:<br> number: 0<br> GraphDriverName: overlay<br> GraphOptions: null<br> GraphRoot: /var/lib/containers/storage<br> GraphStatus:<br> Backing Filesystem: extfs<br> Native Overlay Diff: "true"<br> Supports d_type: "true"<br> Using metacopy: "false"<br> ImageStore:<br> number: 0<br> RunRoot: /var/run/containers/storage<br> VolumePath: /var/lib/containers/storage/volumes </pre>



<p>Here are the main configuration files.</p>



<ul><li><strong>/etc/containers/regestries.conf</strong> : We use this file to store the  registries of domain or new container images.</li><li> <strong>/etc/containers/mounts.conf</strong>: Keeps the record of mounted directories.</li></ul>



<h3><strong>Step 8: Testing Podman Installation on Debian</strong></h3>



<p>Download the Alpine image by running</p>



<pre class="wp-block-verse">$ podman pull alpine<br>Trying to pull docker.io/library/alpine…<br>Getting image source signatures<br>Copying blob 050382585609 done<br>Copying config b7b28af77f done<br>Writing manifest to image destination<br>Storing signatures<br>b7b28af77ffec6054d13378df4fdf02725830086c7444d9c278af25312aa39b9</pre>



<p><strong>Run Docker Container</strong></p>



<pre class="wp-block-verse">[root@localhost sabi]# podman images<br> REPOSITORY                 TAG      IMAGE ID       CREATED       SIZE<br> docker.io/library/alpine   latest   b7b28af77ffe   3 weeks ago   5.85 MB<br> $ podman run -ti b7b28af77ffe /bin/sh<br> / # cat /etc/os-release <br> NAME="Alpine Linux"<br> ID=alpine<br> VERSION_ID=3.10.1<br> PRETTY_NAME="Alpine Linux v3.10"<br> HOME_URL="https://alpinelinux.org/"<br> BUG_REPORT_URL="https://bugs.alpinelinux.org/<br> /# exit</pre>



<p>You can remove the container by running the below command</p>



<pre class="wp-block-verse">[root@localhost sabi]# podman rm -f <code>podman ps -aq</code><br>d16db8f39c82f50f3a2bbf4834d948b660525a5c2b98979e433c3428f613c18d</pre>



<p>And that is it.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-podman-on-debian-on-10-9/">How To Install Podman on Debian on 10 / 9</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/how-to-install-podman-on-debian-on-10-9/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install PowerShell on CentOS 8 / RHEL 8</title>
		<link>https://www.osradar.com/how-to-install-powershell-on-centos-8-rhel-8/</link>
					<comments>https://www.osradar.com/how-to-install-powershell-on-centos-8-rhel-8/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Wed, 01 Jan 2020 21:51:49 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to install powershell on centos 8]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[powershell installation on centos]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17068</guid>

					<description><![CDATA[<p>PowerShell is a scripting language basically written for Windows Operating Systems but also it supports Linux/Unix systems. For users who were using Windows and new to Linux, can also install PowerShell. PowerShell is well known Object Oriented Scripting language.In this tutorial, you will cover the installation of PowerShell on your Linux system like CentOS 8 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-powershell-on-centos-8-rhel-8/">How To Install PowerShell on CentOS 8 / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>PowerShell is a scripting language basically written for Windows Operating Systems but also it supports Linux/Unix systems. For users who were using Windows and new to Linux, can also install PowerShell. PowerShell is well known Object Oriented Scripting language.In this tutorial, you will cover the installation of PowerShell on your Linux system like CentOS 8 / RHEL 8. Just follow the below steps to easily Install PowerShell on CentOS / RHEL 8.</p>



<h2><strong>Step 1: Adding PowerShell Repository</strong></h2>



<p>As PowerShell is not available on CentOS 7 / 8 operating system, we have to add it from Microsoft repositories by running</p>



<pre class="wp-block-verse">curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo</pre>



<p>Now, move towards the installation of PowerShell</p>



<h3><strong>Step 2: Installing PowerShell on CentOS 7 / 8</strong></h3>



<p>Fire the given command to get install PowerShell on RHEL / CentOS 7 / 8.</p>



<pre class="wp-block-verse">[sabi@localhost ~]$ sudo yum -y install powershell<br> packages-microsoft-com-prod                            297 kB/s | 3.9 MB     00:13    <br> Last metadata expiration check: 0:00:09 ago on Fri 27 Dec 2019 01:48:08 PM PKT.<br> Dependencies resolved.<br>  Package        Arch       Version               Repository                       Size<br> Installing:<br>  powershell     x86_64     6.2.3-1.rhel.7        packages-microsoft-com-prod      54 M<br> Transaction Summary<br> Install  1 Package<br> Total download size: 54 M<br> Installed size: 54 M<br> Downloading Packages:<br> powershell-6.2.3-1.rhel.7.x86_64.rpm                   1.1 MB/s |  54 MB     00:47    <br> Total                                                  1.1 MB/s |  54 MB     00:47     <br> warning: /var/cache/dnf/packages-microsoft-com-prod-687ce8c973efa9d3/packages/powershell-6.2.3-1.rhel.7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID be1229cf: NOKEY<br> packages-microsoft-com-prod                            358  B/s | 983  B     00:02    <br> Importing GPG key 0xBE1229CF:<br>  Userid     : "Microsoft (Release signing) <a href="mailto:gpgsecurity@microsoft.com">gpgsecurity@microsoft.com</a>"<br>  Fingerprint: BC52 8686 B50D 79E3 39D3 721C EB3E 94AD BE12 29CF<br>  From       : https://packages.microsoft.com/keys/microsoft.asc<br> Key imported successfully<br> Running transaction check<br> Transaction check succeeded.<br> Running transaction test<br> Transaction test succeeded.<br> Running transaction<br>   Preparing        :                                                               1/1 <br>   Installing       : powershell-6.2.3-1.rhel.7.x86_64                              1/1 <br>   Running scriptlet: powershell-6.2.3-1.rhel.7.x86_64                              1/1 <br>   Verifying        : powershell-6.2.3-1.rhel.7.x86_64                              1/1 <br> Installed:<br>   powershell-6.2.3-1.rhel.7.x86_64                                                     <br> Complete!<br> [sabi@localhost ~]$ </pre>



<p>Use the following command to get more information about powershell package.</p>



<pre class="wp-block-verse">[sabi@localhost ~]$ rpm -qi powershell<br> Name        : powershell<br> Version     : 6.2.3<br> Release     : 1.rhel.7<br> Architecture: x86_64<br> Install Date: Fri 27 Dec 2019 01:49:13 PM PKT<br> Group       : shells<br> Size        : 156967268<br> License     : MIT License<br> Signature   : RSA/SHA256, Wed 11 Sep 2019 03:16:07 AM PKT, Key ID eb3e94adbe1229cf<br> Source RPM  : powershell-6.2.3-1.rhel.7.src.rpm<br> Build Date  : Wed 11 Sep 2019 03:11:50 AM PKT<br> Build Host  : e7b300f89b4a<br> Relocations : / <br> Packager    : PowerShell Team <a href="mailto:PowerShellTeam@hotmail.com">PowerShellTeam@hotmail.com</a><br> Vendor      : Microsoft Corporation<br> URL         : https://microsoft.com/powershell<br> Summary     : PowerShell is an automation and configuration management platform.<br> Description :<br> PowerShell is an automation and configuration management platform.<br> It consists of a cross-platform command-line shell and associated scripting language.</pre>



<h3><strong>Step 3: Start and Use PowerShell on CentOS / RHEL 7 / 8</strong></h3>



<pre class="wp-block-verse">[sabi@localhost ~]$ pwsh<br> PowerShell 6.2.3<br> Copyright (c) Microsoft Corporation. All rights reserved.<br> https://aka.ms/pscore6-docs<br> Type 'help' to get help.<br> PS /home/sabi&gt; </pre>



<p>Now, try to run few commands to verify our Installation.</p>



<pre class="wp-block-verse">PS /home/sabi&gt; pwd<br> Path<br> /home/sabi<br> PS /home/sabi&gt; mkdir /tmp/test<br> PS /home/sabi&gt; cd /tmp/test<br> PS /tmp/test&gt; pwd<br> Path<br> /tmp/test<br> PS /tmp/test&gt; get-process | more<br> NPM(K)    PM(M)      WS(M)     CPU(s)      Id  SI ProcessName<br>  ------    -----      -----     ------      --  -- -----------<br>       0     0.00       0.04       0.00    1213 …85 (sd-pam)<br>       0     0.00       0.04       0.00    2540 …32 (sd-pam)<br>       0     0.00       0.96       0.15     974 974 accounts-daemon<br>       0     0.00       0.00       0.00     122   0 acpi_thermal_pm<br>       0     0.00       0.41       0.00     854 854 alsactl<br>       0     0.00       0.97       0.02    1993 …93 at-spi-bus-laun<br>       0     0.00       0.96       0.01    2672 …72 at-spi-bus-laun<br>       0     0.00       0.00       0.01    2001 …93 at-spi2-registr<br>       0     0.00       0.44       0.03    2680 …72 at-spi2-registr<br>       0     0.00       0.00       0.00     407   0 ata_sff<br>       0     0.00       0.41       0.01    1077 …77 atd<br>       0     0.00       0.30       0.06     815 815 auditd<br>       0     0.00       0.75       0.11     850 850 avahi-daemon<br>       0     0.00       0.03       0.00     950 850 avahi-daemon<br>       0     0.00       3.57       0.06    4196 …96 bash<br>       0     0.00       1.38       0.03    2045 …45 boltd<br>       0     0.00       0.29       0.06     874 873 chronyd<br>       0     0.00       0.97       0.13    2145 …45 colord<br>       0     0.00       0.00       0.00      13   0 cpuhp/0<br>       0     0.00       0.48       0.20    1091 …91 crond<br>       0     0.00       0.00       0.00      24   0 crypto<br>       0     0.00       0.79       0.05    1063 …63 cupsd<br>       0     0.00       3.22       1.81     855 855 dbus-daemon<br>       0     0.00       0.88       0.20    1602 …02 dbus-daemon<br> --More--</pre>



<p>That is enough to substantiate our PowerShell functioning on CentOS / RHEL 8. Now you can make use of PowerShell to perform various functions &amp; scripts.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-powershell-on-centos-8-rhel-8/">How To Install PowerShell on CentOS 8 / RHEL 8</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/how-to-install-powershell-on-centos-8-rhel-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Docker on Ubuntu 16.04 18.04 / 19.04</title>
		<link>https://www.osradar.com/how-to-install-docker-on-ubuntu-16-04-18-04-19-04/</link>
					<comments>https://www.osradar.com/how-to-install-docker-on-ubuntu-16-04-18-04-19-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Thu, 05 Dec 2019 20:24:11 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[dockers CE]]></category>
		<category><![CDATA[install dockers on linux]]></category>
		<category><![CDATA[install dockers on ubuntu]]></category>
		<category><![CDATA[ubuntu 19.04]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16122</guid>

					<description><![CDATA[<p>Today we are going to learn you that how you can Install Docker engine on your Ubuntu system. Docker engine allows you to package your applications with all of its dependencies into a single standardized unit for software development &#38; distribution.It is an open source Linux Distribution which wrap up a piece of software in [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-docker-on-ubuntu-16-04-18-04-19-04/">How To Install Docker on Ubuntu 16.04 18.04 / 19.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>Today we are going to learn you that how you can Install Docker engine on your Ubuntu system. Docker engine allows you to package your applications with all of its dependencies into a single standardized unit for software development &amp; distribution.<br>It is an open source Linux Distribution which wrap up a piece of software in complete file system that contain everything it needs to run like:</p>



<ul><li><strong>code</strong></li><li><strong>runtime</strong></li><li><strong>system tools</strong></li><li><strong>system libraries</strong></li></ul>



<p>And much more you can Install on a Linux server. The main specification of Docker is that it can work in any Environment.</p>



<p>Lets proceed with the Installation process.</p>



<h3><strong>Step 1: Update your System</strong></h3>



<p>Make sure that your system is up-to date.</p>



<pre class="wp-block-verse">sudo apt -y update</pre>



<h3><strong>Step 2: Install Basic Dependencies</strong></h3>



<p>We need few dependencies for our actual Installation of Docker, so we will configure these. Install them by running the given command in your Terminal.</p>



<pre class="wp-block-verse">sudo apt -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common</pre>



<h3><strong>Step 3: Installing Docker CE on Ubuntu 16.04 / 18.04 / 19.04</strong></h3>



<p>If you&#8217;re using any previous version of Docker remove them.</p>



<pre class="wp-block-verse">sudo apt remove docker docker-engine docker.io containerd runc</pre>



<p>Now, import GPG key.</p>



<pre class="wp-block-verse">curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -</pre>



<p>After it, add Docker CE repository to Ubuntu.</p>



<pre class="wp-block-verse">sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"</pre>



<p>Final step is to Install Docker CE on Ubuntu 16.04 / 18.04 /19.04</p>



<pre class="wp-block-verse">sudo apt update<br>sudo apt -y install docker-ce docker-ce-cli containerd.io</pre>



<p>Now, add your user account to docker group</p>



<pre class="wp-block-verse">sudo usermod -aG docker $user<br>newgrp docker</pre>



<p>Check Docker Version to Verify your Installation. </p>



<pre class="wp-block-verse">$ docker version<br> Client: Docker Engine - Community<br>  Version:           19.03.2<br>  API version:       1.40<br>  Go version:        go1.12.8<br>  Git commit:        6a30dfc<br>  Built:             Sun Nov 30 05:29:11 2019<br>  OS/Arch:           linux/amd64<br>  Experimental:      false<br><br>Server: Docker Engine - Community<br>  Engine:<br>   Version:          19.03.2<br>   API version:      1.40 (minimum version 1.12)<br>   Go version:       go1.12.8<br>   Git commit:       6a30dfc<br>   Built:            Sun Nov 30 05:27:45 2019<br>   OS/Arch:          linux/amd64<br>   Experimental:     false<br>  containerd:<br>   Version:          1.2.6<br>   GitCommit:        894b81a4b802e4eb2a91d1ce216b8817763c29fb<br>  runc:<br>   Version:          1.0.0-rc8<br>   GitCommit:        425e105d5a03fabd737a126ad93d62a9eeede87f<br>  docker-init:<br>   Version:          0.18.0<br>   GitCommit:        fec3683</pre>



<h3><strong>Step 4: Install Docker Compose on Ubuntu</strong></h3>



<p>Congratulations! You&#8217;re all done. </p>



<p>Follow the below link to read :</p>



<p><a href="https://www.osradar.com/?p=16124">How To Install Latest Docker Compose on Linux.</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-docker-on-ubuntu-16-04-18-04-19-04/">How To Install Docker on Ubuntu 16.04 18.04 / 19.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/how-to-install-docker-on-ubuntu-16-04-18-04-19-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install latest node.js 13 on Ubuntu 19.04 / Debian / Linux</title>
		<link>https://www.osradar.com/how-to-install-latest-node-js-13-on-ubuntu-19-04-debian-linux/</link>
					<comments>https://www.osradar.com/how-to-install-latest-node-js-13-on-ubuntu-19-04-debian-linux/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Wed, 04 Dec 2019 13:12:48 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Install node.js 13]]></category>
		<category><![CDATA[Install node.js on Debian]]></category>
		<category><![CDATA[node.js]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16115</guid>

					<description><![CDATA[<p>At the end of this tutorial, you will be able to Install Node.js 13 (the latest version) smoothly on Ubuntu / Debian / Linux Mint. So, follow the steps to proceed further. Step 1: Update the system First of all update your system by running the given command. sudo apt -y update &#38;&#38; sudo apt [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-latest-node-js-13-on-ubuntu-19-04-debian-linux/">How To Install latest node.js 13 on Ubuntu 19.04 / Debian / Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>At the end of this tutorial, you will be able to Install Node.js 13 (the latest version) smoothly on Ubuntu / Debian / Linux Mint. So, follow the steps to proceed further. </p>



<h3><strong>Step 1: Update the system</strong></h3>



<p>First of all update your system by running the given command.</p>



<pre class="wp-block-verse">sudo apt -y update &amp;&amp; sudo apt -y upgrade</pre>



<h3><strong>Step 2: Install Node.js 13 on Ubuntu / Debian / Linux Mint</strong></h3>



<p>You can install node.js 13 after updating the system and then installing the required repository.</p>



<pre class="wp-block-verse">curl -sL https://deb.nodesource.com/setup_13.x | sudo bash -</pre>



<p>After creating directory, you can move forward to Install Node.js 13 on Ubuntu / Debian / Linux Mint.</p>



<pre class="wp-block-verse">sudo apt-get install -y nodejs</pre>



<p>You can check your installed version by following this command.</p>



<pre class="wp-block-verse">node -V</pre>



<p>For Installing Development tools, run the following command as a root or with sudo privileges.</p>



<pre class="wp-block-verse">sudo apt-get install gcc g++ make</pre>



<p>For yarn package Installation follow the below step</p>



<pre class="wp-block-verse">curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -<br>
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list<br>
sudo apt-get update &amp;&amp; sudo apt-get install yarn</pre>



<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-latest-node-js-13-on-ubuntu-19-04-debian-linux/">How To Install latest node.js 13 on Ubuntu 19.04 / Debian / Linux</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/how-to-install-latest-node-js-13-on-ubuntu-19-04-debian-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Latest Docker Compose on Ubuntu 19.04 / CentOS 8 / Debian 10 / Fedora 30</title>
		<link>https://www.osradar.com/how-to-install-latest-docker-compose-on-ubuntu-19-04-centos-8-debian-10-fedora-30/</link>
					<comments>https://www.osradar.com/how-to-install-latest-docker-compose-on-ubuntu-19-04-centos-8-debian-10-fedora-30/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Mon, 02 Dec 2019 20:29:56 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Docker Compose Installation]]></category>
		<category><![CDATA[Dockers]]></category>
		<category><![CDATA[install Docker compose on CentOS]]></category>
		<category><![CDATA[Install Docker Compose on Debian]]></category>
		<category><![CDATA[Install Docker compose on linux]]></category>
		<category><![CDATA[Install Docker Compose on RHEL 8]]></category>
		<category><![CDATA[Install Docker Compose on Ubuntu]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16124</guid>

					<description><![CDATA[<p>In our previous tutorial we&#8217;ve seen How To Install Docker on Ubuntu 16.04 18.04 / 19.04. Now we&#8217;ll move further to Install Docker Compose on different Linux distributions like Ubuntu, Debian, CentOS and Debian. What is Docker Compose? Docker Compose is a tool that provides us the facility to define and run multi-container Docker application. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-latest-docker-compose-on-ubuntu-19-04-centos-8-debian-10-fedora-30/">How To Install Latest Docker Compose on Ubuntu 19.04 / CentOS 8 / Debian 10 / Fedora 30</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 our previous tutorial we&#8217;ve seen <a href="https://www.osradar.com/?p=16122">How To Install Docker on Ubuntu 16.04 18.04 / 19.04.</a> Now we&#8217;ll move further to Install Docker Compose on different Linux distributions like Ubuntu, Debian, CentOS and Debian.</p>



<h4><strong>What is Docker Compose?</strong></h4>



<p><strong>Docker Compose</strong> is a tool that provides us the facility to  define and run multi-container Docker application. A <strong>YAML</strong> file is the configuration file used to configure your application&#8217;s services.<br> So, we are going to Install Docker Compose in as much details as possible so you can easily understand and Install it. For this Installation we&#8217;ll check Github API releases page for our project. After it we&#8217;ll pull out the latest binary file for our Installation process. So, follow the below steps to move further.</p>



<h3><strong>Step 1: Installing Latest Docker Compose on Linux</strong></h3>



<p><strong>Requirements:</strong></p>



<p>You must have installed Curl on your system for this operation.<br>Access to the root or user with root privileges.</p>



<pre class="wp-block-verse">---- CentOS / RHEL -----<br> $ sudo yum -y install curl<br> ---- Debian / Ubuntu ----<br> $ sudo apt install -y curl <br> ----- Fedora -----<br> $ sudo dnf -y install curl </pre>



<p>After Installing curl move to the next point which is Downloading the latest Compose on your Linux Machine.</p>



<pre class="wp-block-verse">curl -s <a href="https://api.github.com/repos/docker/compose/releases/latest">https://api.github.com/repos/docker/compose/releases/latest</a> \<br>   | grep browser_download_url \<br>   | grep docker-compose-Linux-x86_64 \<br>   | cut -d '"' -f 4 \<br>   | wget -qi -</pre>



<p>Make sure to make binary file executable.</p>



<pre class="wp-block-verse">chmod +x docker-compose-Linux-x86_64</pre>



<p>Now, move the file to your PATH.</p>



<pre class="wp-block-verse">sudo mv docker-compose-Linux-x86_64 /usr/local/bin/docker-compose</pre>



<p>Check the version you&#8217;ve installed.</p>



<pre class="wp-block-verse">docker-compose version</pre>



<h3><strong>Step 2: Configure Compose Command-line completion.</strong></h3>



<p>Compose has command completion for the bash &amp; zsh shell.</p>



<h5><strong>Bash users.</strong></h5>



<p>Place the completion script in <strong>/etc/bash_completion.d/</strong></p>



<pre class="wp-block-verse">sudo curl -L <a href="https://raw.githubusercontent.com/docker/compose/master/contrib/completion/bash/docker-compose">https://raw.githubusercontent.com/docker/compose/master/contrib/completion/bash/docker-compose</a> -o /etc/bash_completion.d/docker-compose</pre>



<p>Source the file or re-login to enjoy completion features.</p>



<pre class="wp-block-verse">source /etc/bash_completion.d/docker-compose</pre>



<h5><strong>Zsh users</strong></h5>



<p>Download the completion script in your <strong>~/.zsh/completion/</strong></p>



<pre class="wp-block-verse">mkdir -p ~/.zsh/completion</pre>



<pre class="wp-block-verse">curl -L <a href="https://raw.githubusercontent.com/docker/compose/master/contrib/completion/zsh/_docker-compose">https://raw.githubusercontent.com/docker/compose/master/contrib/completion/zsh/_docker-compose</a> &gt; ~/.zsh/completion/_docker-compose</pre>



<p>Include the directory in your <strong>$fpath</strong> by adding in <strong>~/.zshrc</strong></p>



<pre class="wp-block-verse">fpath=(~/.zsh/completion $fpath)</pre>



<p>Double check that <strong>compinit</strong> is loaded or load it by adding in<strong> ~/.zshrc</strong>.</p>



<pre class="wp-block-verse">autoload -Uz compinit &amp;&amp; compinit -i</pre>



<p>After-it reload your shell.</p>



<pre class="wp-block-verse">exec $SHELL -l</pre>



<h3><strong>Step 3: Test Docker Compose Installation</strong></h3>



<p>Make a file for testing docker compose.</p>



<pre class="wp-block-verse">vim docker-compose.yml</pre>



<p>Copy &amp; paste the below data in the file.</p>



<pre class="wp-block-verse">version: '3'  <br>
services:<br>
  web:<br>
    image: nginx:latest<br>
    ports:<br>
     - "8080:80"<br>
    links:<br>
     - php<br>
  php:<br>
    image: php:7-fpm</pre>



<p>Start the containers services.</p>



<pre class="wp-block-verse">$ docker-compose up -d<br>Starting root_php_1 … done<br>Starting root_web_1 … done</pre>



<p><strong>Output:</strong></p>



<p>Show running Containers</p>



<pre class="wp-block-verse">$ docker-compose ps<br>    Name                 Command              State          Ports        <br> root_php_1   docker-php-entrypoint php-fpm   Up      9000/tcp            <br> root_web_1   nginx -g daemon off;            Up      0.0.0.0:8080-&gt;80/tcp</pre>



<p>Destroy Containers.</p>



<pre class="wp-block-verse"> $ docker-compose stop<br> Stopping root_web_1 … done<br> Stopping root_php_1 … done <br><br>$ docker-compose rm -f<br> Going to remove root_web_1, root_php_1<br> Removing root_web_1 … done<br> Removing root_php_1 … done</pre>



<p>For detailed description or learning more about <a href="https://docs.docker.com/">Docker documentation</a> &amp; <a href="https://docs.docker.com/compose/" target="_blank" rel="noreferrer noopener" aria-label="Docker Compose documentation (opens in a new tab)">Docker Compose documentation</a> visit their official page .</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-latest-docker-compose-on-ubuntu-19-04-centos-8-debian-10-fedora-30/">How To Install Latest Docker Compose on Ubuntu 19.04 / CentOS 8 / Debian 10 / Fedora 30</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/how-to-install-latest-docker-compose-on-ubuntu-19-04-centos-8-debian-10-fedora-30/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Subscribe CentOS Server to Katello/Foreman</title>
		<link>https://www.osradar.com/how-to-subscribe-centos-server-to-katello-foreman/</link>
					<comments>https://www.osradar.com/how-to-subscribe-centos-server-to-katello-foreman/#comments</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Fri, 29 Nov 2019 10:47:47 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[how to subscribe CentOS Server to kate;llo]]></category>
		<category><![CDATA[llinux]]></category>
		<category><![CDATA[satelite]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15950</guid>

					<description><![CDATA[<p>We&#8217;ve previously learn how to sync CentOS 8 repositories on Satellite / Foreman / Katello All of these steps can be performed on the host you want to register. Step 1: Add EPEL &#38; Foreman repositories sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpmsudo yum install -y https://yum.theforeman.org/client/2.0/el8/x86_64/foreman-client-release-2.0.0-1.el8.noarch.rpm Step 2: Install subscription manager sudo yum -y install subscription-manager [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-subscribe-centos-server-to-katello-foreman/">How To Subscribe CentOS Server to Katello/Foreman</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>We&#8217;ve previously learn <a href="https://www.osradar.com/?p=15929">how to sync CentOS 8 repositories on Satellite / Foreman / Katello</a></p>



<p>All of these steps can be performed on the host you want to register.</p>



<h3><strong>Step 1: Add EPEL &amp; Foreman repositories</strong></h3>



<pre class="wp-block-verse">sudo yum -y install <a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm">https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm</a><br>sudo yum install -y <a href="https://yum.theforeman.org/client/2.0/el8/x86_64/foreman-client-release-2.0.0-1.el8.noarch.rpm">https://yum.theforeman.org/client/2.0/el8/x86_64/foreman-client-release-2.0.0-1.el8.noarch.rpm</a></pre>



<h3><strong>Step 2: Install subscription manager</strong></h3>



<pre class="wp-block-verse">sudo yum -y install subscription-manager</pre>



<p>Now, download and install ca-consumer package to get a copy of the CA certificates from your Katello/Foreman Server.</p>



<pre class="wp-block-verse">export katello_fqdn="katello.example.com"</pre>



<pre class="wp-block-verse">sudo rpm -Uvh <a href="http://$[katello_fqdn]/pub/katello-ca-consumer-latest.noarch.rpm">http://$[katello_fqdn]/pub/katello-ca-consumer-latest.noarch.rpm</a></pre>



<p>You should be able to resolve <a href="https://osradar.com">katello.example.com</a> host-name in order to work for above command.</p>



<h3><strong>Step 3: Register CentOS Server on Katello Server.</strong></h3>



<p>You can register your CentOS server by running following command </p>



<pre class="wp-block-verse">sudo subscription-manager register --org="YOURORG" \</pre>



<pre class="wp-block-verse">--activationkey="ACTIVATION-KEY-NAME"</pre>



<p><strong>Note: Replace the inverted commas text to your organization &amp; key details.</strong></p>



<p><strong>Activation key must be created on foreman before running above command.</strong></p>



<h3><strong>Step 4: Install katello agent tools</strong></h3>



<p>Install the <strong>katello-host-tools</strong> and katello-agent package which reports errata &amp; package profile info, it does not allow to remotely control clients.</p>



<pre class="wp-block-verse">sudo yum -y install katello-host-tools  katello-agent katello-host-tools-tracer</pre>



<h3><strong>Step 5: Start &amp; enable the katello agent Services.</strong></h3>



<pre class="wp-block-verse">systemctl start goferd</pre>



<pre class="wp-block-verse">systemctl enable goferd</pre>



<h3><strong>Step 6: Update CentOS repositories</strong></h3>



<p>Remove or move all of your repositories except redhatrepo which are present in <strong>/etc/yum.repos.d/</strong>.</p>



<pre class="wp-block-verse">cd /etc/yum.repos.d/</pre>



<pre class="wp-block-verse">sudo mkdir old</pre>



<pre class="wp-block-verse">sudo mv CentOS-* epel* katello* old/</pre>



<p>Use Katello Dashboard to verify that katello-agent is installed.</p>



<p><strong>Hosts-&gt;Content Hosts-&gt;</strong></p>



<p>For installing a package navigate to <strong>Hosts-&gt;Content Hosts-&gt;Select Host-&gt;Packages</strong></p>



<p>Choose package action as <strong>&#8220;Package Remove&#8221;</strong> to perform action to delete.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-subscribe-centos-server-to-katello-foreman/">How To Subscribe CentOS Server to Katello/Foreman</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/how-to-subscribe-centos-server-to-katello-foreman/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
