<?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>FreeBSD Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/freebsd/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 24 Mar 2021 16:49:24 +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 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>How to install Nim programming language on FreeBSD 12?</title>
		<link>https://www.osradar.com/install-nim-programming-language-freebsd-12/</link>
					<comments>https://www.osradar.com/install-nim-programming-language-freebsd-12/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 15 Apr 2020 23:11:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[freebsd 12]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=19674</guid>

					<description><![CDATA[<p>We recently installed Nim programming language on Debian 10. Now it is FreeBSD 12&#8217;s turn. Nowadays, almost everything is done with the help of a computer and a program. And the programs are made through a programming language. That is why it must be efficient languages with new technical features that can be brought to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nim-programming-language-freebsd-12/">How to install Nim programming language 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></p>
<p>We recently installed Nim programming language on Debian 10. Now it is FreeBSD 12&#8217;s turn.</p>
<p>Nowadays, almost everything is done with the help of a computer and a program. And the programs are made through a programming language. That is why it must be efficient languages with new technical features that can be brought to the program and the end-user. <strong>Today we will teach you how to install Nim programming language on FreeBSD 12. </strong></p>
<p> </p>
<p>To quote the <a href="https://nim-lang.org/" target="_blank" rel="noreferrer noopener" aria-label="website of this programming language (opens in a new tab)">website of this programming language</a>:</p>
<p> </p>
<blockquote class="wp-block-quote">
<p>Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada, and Modula.</p>
</blockquote>
<p> </p>
<p>This gives us a pretty good idea that the language meets everything needed to create modern applications.</p>
<p> </p>
<p>Like all modern languages, it has versions for <a href="https://www.osradar.com/tag/windows" target="_blank" rel="noreferrer noopener" aria-label="Windows (opens in a new tab)">Windows</a>, Linux, macOS, and BSD. This makes it possible to run on almost all current systems. This also makes it possible for the programmer to choose the environment where he feels best.</p>
<p> </p>
<p>Nim is an object-oriented language with a syntax similar to <a href="https://www.osradar.com/tag/python" target="_blank" rel="noreferrer noopener" aria-label="Python (opens in a new tab)">Python</a>&#8216;s with even similar characteristics.</p>
<p> </p>
<p>So, let us get to work.</p>
<h2>Installing Nim programming language on FreeBSD 12</h2>
<p>Nim is available in the official FreeBSD 12 repositories, but the latest stable version is not available. So it is recommended that you download the source code and compile it.</p>
<p>However, if you want to install it without any problems, just run the following command:</p>
<pre>:~$ sudo pkg install nim</pre>
<p>And now you can start working.</p>
<p>However, in this tutorial, what we are looking for is to install the latest stable version. So to do this, you have to download the source code of the language.</p>
<p>To do this, I will use a tool called wget. Then, the first step is to install it.</p>
<pre>:~$ sudo pkg install wget<br />Password:<br />Updating FreeBSD repository catalogue...<br />FreeBSD repository is up to date.<br />All repositories are up to date.<br />The following 3 package(s) will be affected (of 0 checked):<br /><br />New packages to be INSTALLED:<br />libidn2: 2.3.0_1<br />libunistring: 0.9.10_1<br />wget: 1.20.3<br /><br />Number of packages to be installed: 3<br /><br />The process will require 6 MiB more space.<br />1 MiB to be downloaded.<br /><br />Proceed with this action? [y/N]:</pre>
<figure id="attachment_19708" aria-describedby="caption-attachment-19708" style="width: 781px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-19708" src="https://www.osradar.com/wp-content/uploads/2020/04/1-8.png" alt="1.- Install wget on FreeBSD 12" width="781" height="333" srcset="https://www.osradar.com/wp-content/uploads/2020/04/1-8.png 781w, https://www.osradar.com/wp-content/uploads/2020/04/1-8-300x128.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/1-8-768x327.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/1-8-696x297.png 696w" sizes="(max-width: 781px) 100vw, 781px" /><figcaption id="caption-attachment-19708" class="wp-caption-text">1.- Install wget on FreeBSD 12</figcaption></figure>
<p>When the installation is finished, we can start the download using it. At the time of writing this post, the latest stable version of Nim is 1.2.0.</p>
<pre>:~$ wget -c https://nim-lang.org/download/nim-1.2.0.tar.xz<br />--2020-04-10 06:47:52--  https://nim-lang.org/download/nim-1.2.0.tar.xz<br />Resolving nim-lang.org (nim-lang.org)... 104.28.18.79, 104.28.19.79, 2606:4700:3036::681c:134f, ...<br />Connecting to nim-lang.org (nim-lang.org)|104.28.18.79|:443... connected.<br />HTTP request sent, awaiting response... 200 OK<br />Length: 5869428 (5.6M) [application/octet-stream]<br />Saving to: 'nim-1.2.0.tar.xz'<br />nim-1.2.0.tar.xz                           100%[=====================================================================================&gt;]   5.60M  84.4KB/s    in 50s<br />2020-04-10 06:48:43 (115 KB/s) - 'nim-1.2.0.tar.xz' saved [5869428/5869428]</pre>
<figure id="attachment_19709" aria-describedby="caption-attachment-19709" style="width: 1353px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-19709" src="https://www.osradar.com/wp-content/uploads/2020/04/2-6.png" alt="2.- Download Nim on FreeBSD 12" width="1353" height="258" srcset="https://www.osradar.com/wp-content/uploads/2020/04/2-6.png 1353w, https://www.osradar.com/wp-content/uploads/2020/04/2-6-300x57.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/2-6-1024x195.png 1024w, https://www.osradar.com/wp-content/uploads/2020/04/2-6-768x146.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/2-6-696x133.png 696w, https://www.osradar.com/wp-content/uploads/2020/04/2-6-1068x204.png 1068w" sizes="(max-width: 1353px) 100vw, 1353px" /><figcaption id="caption-attachment-19709" class="wp-caption-text">2.- Download Nim on FreeBSD 12</figcaption></figure>
<p>After the download, we have to decompress the file.</p>
<pre>:~$ tar xvfj nim-1.2.0.tar.xz</pre>
<p>This will generate a folder called nim-1.2.0. Access it and start compiling Nim.</p>
<p>Access it and start compiling Nim.</p>
<pre>:~$ cd nim-1.2.0<br />:~$ sh build.sh</pre>
<figure id="attachment_19710" aria-describedby="caption-attachment-19710" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-19710" src="https://www.osradar.com/wp-content/uploads/2020/04/3-6.png" alt="3.- Building the Nim programming language" width="1365" height="644" srcset="https://www.osradar.com/wp-content/uploads/2020/04/3-6.png 1365w, https://www.osradar.com/wp-content/uploads/2020/04/3-6-300x142.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/3-6-1024x483.png 1024w, https://www.osradar.com/wp-content/uploads/2020/04/3-6-768x362.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/3-6-696x328.png 696w, https://www.osradar.com/wp-content/uploads/2020/04/3-6-1068x504.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-19710" class="wp-caption-text">3.- Building the Nim programming language</figcaption></figure>
<p>Then, the Nim package must be further built to generate the binary for FreeBSD 12.</p>
<pre>:~$ bin/nim c koch</pre>
<figure id="attachment_19711" aria-describedby="caption-attachment-19711" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-19711" src="https://www.osradar.com/wp-content/uploads/2020/04/4-5.png" alt="4.- Building Nim package" width="1365" height="678" srcset="https://www.osradar.com/wp-content/uploads/2020/04/4-5.png 1365w, https://www.osradar.com/wp-content/uploads/2020/04/4-5-300x149.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/4-5-1024x509.png 1024w, https://www.osradar.com/wp-content/uploads/2020/04/4-5-768x381.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/4-5-696x346.png 696w, https://www.osradar.com/wp-content/uploads/2020/04/4-5-1068x530.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-19711" class="wp-caption-text">4.- Building Nim package</figcaption></figure>
<p>So, finish the creation of the package with this last command:</p>
<pre>~$ ./koch tools</pre>
<figure id="attachment_19713" aria-describedby="caption-attachment-19713" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-19713" src="https://www.osradar.com/wp-content/uploads/2020/04/5-1.png" alt="5.- Installing Nim programming language on FreeBSD 12" width="1365" height="722" srcset="https://www.osradar.com/wp-content/uploads/2020/04/5-1.png 1365w, https://www.osradar.com/wp-content/uploads/2020/04/5-1-300x159.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/5-1-1024x542.png 1024w, https://www.osradar.com/wp-content/uploads/2020/04/5-1-768x406.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/5-1-696x368.png 696w, https://www.osradar.com/wp-content/uploads/2020/04/5-1-1068x565.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-19713" class="wp-caption-text">5.- Installing Nim programming language on FreeBSD 12</figcaption></figure>
<p>Now yes, Nim is installed on FreeBSD 12.</p>
<p>The compiler and tool binaries live inside the <strong>bin</strong> directory. To test it, access the folder and display the current version.</p>
<pre>:~$ cd nim-1.2.0/bin/<br />:~$ ./nim -version</pre>
<figure id="attachment_19715" aria-describedby="caption-attachment-19715" style="width: 750px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-19715" src="https://www.osradar.com/wp-content/uploads/2020/04/6-5.png" alt="6.- The Nim version" width="750" height="166" srcset="https://www.osradar.com/wp-content/uploads/2020/04/6-5.png 750w, https://www.osradar.com/wp-content/uploads/2020/04/6-5-300x66.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/6-5-696x154.png 696w" sizes="(max-width: 750px) 100vw, 750px" /><figcaption id="caption-attachment-19715" class="wp-caption-text">6.- The Nim version</figcaption></figure>
<h2>Testing Nim programming language on FreeBSD 12</h2>
<p>Before testing the installation, make Nim available as a command from any location.</p>
<p>To do this, it is advisable to first rename the folder to a simpler one.</p>
<pre>:~$ cd ~<br />:~$ mv nim-1.2.0 nim</pre>
<p>If you want you can move it to a more discreet directory. In my case, I&#8217;ll leave it right here.</p>
<p>Now to make it available as a command, edit the user profile file.</p>
<pre>:~$ nano ~/.profile</pre>
<p>And add the following content:</p>
<pre>export PATH=/home/angelo/nim/bin:$PATH</pre>
<p>Remember to modify the route where Nim is located. In this case, that&#8217;s the way it looks to me.</p>
<p>Then log out and log back in.</p>
<p>Now, create a new test file called hello.nim and add the following code:</p>
<pre>:~$ nano hello.nim<br />echo "Hi, Osradar"</pre>
<p>Save and close the file.</p>
<p>Then compile it with the following command:</p>
<pre>:~$ nim c hello.nim</pre>
<p>And run it:</p>
<pre>~$ ./hello</pre>
<figure id="attachment_19716" aria-describedby="caption-attachment-19716" style="width: 851px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-19716" src="https://www.osradar.com/wp-content/uploads/2020/04/8-1.png" alt="7.- Nim working on FreeBSD 12" width="851" height="77" srcset="https://www.osradar.com/wp-content/uploads/2020/04/8-1.png 851w, https://www.osradar.com/wp-content/uploads/2020/04/8-1-300x27.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/8-1-768x69.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/8-1-696x63.png 696w" sizes="(max-width: 851px) 100vw, 851px" /><figcaption id="caption-attachment-19716" class="wp-caption-text">7.- Nim working on FreeBSD 12</figcaption></figure>
<p>So, Nim is ready for you to use it in your system.</p>
<h2>Conclusion</h2>
<p></p>
<p>Programming is very important nowadays, so it requires programming languages to match. Today we have taught you how to install Nim on FreeBSD 12 so you can have an ideal partner to make your applications.</p>
<p> </p>
<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener" aria-label="our Telegram channel (opens in a new tab)">our Telegram channel</a>.</p>
<p></p>
<h2></h2>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nim-programming-language-freebsd-12/">How to install Nim programming language 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-nim-programming-language-freebsd-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install python Pip on FreeBSD 12?</title>
		<link>https://www.osradar.com/install-python-pip-freebsd-12/</link>
					<comments>https://www.osradar.com/install-python-pip-freebsd-12/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 09 Mar 2020 00:11:00 +0000</pubDate>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[freebsd 12]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=18848</guid>

					<description><![CDATA[<p>Hi, folks. You know we like Unix-based systems and now we will teach you how to install python Pip on FreeBSD 12. First, we have to explain what Pip is. Pip is a package management system used to install and manage software packages written in Python. If you use a lot of Python for development, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-python-pip-freebsd-12/">How to install python Pip 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><strong>Hi, folks. You know we like Unix-based systems and now we will teach you how to install python Pip on FreeBSD 12.</strong></p>



<p>First, we have to explain what Pip is. <a rel="noreferrer noopener" aria-label="Pip (opens in a new tab)" href="https://pypi.org/project/pip/" target="_blank">Pip</a> is a package management system used to install and manage software packages written in Python. </p>



<p>If you use a lot of Python for development, it is highly likely that you will have to use Pip. Similarly, Pip is a terminal tool, so it is also used through commands.</p>



<p>Also, pip is a recursive acronym that can be interpreted as Pip Package Installer or Pip Python Installer.</p>



<p>So, let us install it.</p>



<h2>Install Python Pip on FreeBSD 12</h2>



<p>First, open a terminal session and search the official FreeBSD 12 repositories on pip.</p>



<pre class="wp-block-preformatted">:~$ sudo pkg search pip
py37-apipkg-1.5                Namespace control and lazy-import mechanism
 py37-django-pipeline-1.6.14    Asset (css/js) packaging library for Django
 py37-iterpipes-0.4_1           Library for running shell pipelines using shell-like syntax
 py37-pip-19.1.1                Tool for installing and managing Python packages
 py37-pip-api-0.0.13            Importable pip API
 py37-pip-tools-4.3.0           Keep your pinned dependencies fresh
 py37-pipdeptree-0.13.2         Command line utility to show dependency tree of packages
 py37-pipenv-2018.11.26_1       Python Development Workflow for Humans
 py37-pipreqs-0.4.10            Generate requirements.txt file for any project based on imports
 py37-pytest-azurepipelines-0.8.0 Formatting PyTest output for Azure Pipelines UI
 py37-ufal.udpipe-1.2.0.2_1     Python bindings to UDPipe library for parsing universal treebanks
 rubygem-apipie-bindings-0.2.3  Ruby bindings for API calls that are documented with Apipie
 rubygem-apipie-params-0.0.5    DSL for describing data structures with json-schema bindings
 rubygem-aws-sdk-codepipeline-1.27.0 Official AWS Ruby gem for AWS CodePipeline (CodePipeline)
 rubygem-aws-sdk-datapipeline-1.16.0 Official AWS Ruby gem for AWS Data Pipeline
 rubygem-html-pipeline-2.12.3   GitHub HTML processing filters and utilities
 rubygem-html-pipeline27-2.7.2  GitHub HTML processing filters and utilities
 rubygem-net-http-pipeline-1.0.1 HTTP/1.1 pipelining implementation atop Net::HTTP
 socketpipe-1.10                Zero overhead remote process plumbing
 spiped-1.6.0_4                 Daemon for creating secure symmetric pipes
 vdr-plugin-osdpip-0.1.2_9      Video Disk Recorder - picture-in-picture plugin
 waypipe-0.6.1_1                Network transparency with Wayland
 xpipeman-1.0_4                 Connect the pipes to stop the leakspy37-apipkg-1.5                Namespace control and lazy-import mechanism
 py37-django-pipeline-1.6.14    Asset (css/js) packaging library for Django
 py37-iterpipes-0.4_1           Library for running shell pipelines using shell-like syntax
 py37-pip-19.1.1                Tool for installing and managing Python packages
 py37-pip-api-0.0.13            Importable pip API
 py37-pip-tools-4.3.0           Keep your pinned dependencies fresh
 py37-pipdeptree-0.13.2         Command line utility to show dependency tree of packages
 py37-pipenv-2018.11.26_1       Python Development Workflow for Humans
 py37-pipreqs-0.4.10            Generate requirements.txt file for any project based on imports
 py37-pytest-azurepipelines-0.8.0 Formatting PyTest output for Azure Pipelines UI
 py37-ufal.udpipe-1.2.0.2_1     Python bindings to UDPipe library for parsing universal treebanks
 rubygem-apipie-bindings-0.2.3  Ruby bindings for API calls that are documented with Apipie
 rubygem-apipie-params-0.0.5    DSL for describing data structures with json-schema bindings
 rubygem-aws-sdk-codepipeline-1.27.0 Official AWS Ruby gem for AWS CodePipeline (CodePipeline)
 rubygem-aws-sdk-datapipeline-1.16.0 Official AWS Ruby gem for AWS Data Pipeline
 rubygem-html-pipeline-2.12.3   GitHub HTML processing filters and utilities
 rubygem-html-pipeline27-2.7.2  GitHub HTML processing filters and utilities
 rubygem-net-http-pipeline-1.0.1 HTTP/1.1 pipelining implementation atop Net::HTTP
 socketpipe-1.10                Zero overhead remote process plumbing
 spiped-1.6.0_4                 Daemon for creating secure symmetric pipes
 vdr-plugin-osdpip-0.1.2_9      Video Disk Recorder - picture-in-picture plugin
 waypipe-0.6.1_1                Network transparency with Wayland
 xpipeman-1.0_4                 Connect the pipes to stop the leaks</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="666" src="https://www.osradar.com/wp-content/uploads/2020/03/1-1-1024x666.png" alt="1.- Search for Pip on the FreeBSD 12 repositories" class="wp-image-18851" srcset="https://www.osradar.com/wp-content/uploads/2020/03/1-1-1024x666.png 1024w, https://www.osradar.com/wp-content/uploads/2020/03/1-1-300x195.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/1-1-768x499.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/1-1-696x453.png 696w, https://www.osradar.com/wp-content/uploads/2020/03/1-1-1068x695.png 1068w, https://www.osradar.com/wp-content/uploads/2020/03/1-1-646x420.png 646w, https://www.osradar.com/wp-content/uploads/2020/03/1-1.png 1084w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Search for Pip on the FreeBSD 12 repositories</figcaption></figure>



<p>As we can see we have two versions of Pip. One oriented to be used with Python 3 and the other for Python 2. </p>



<p>In this case, it is best to use the version for<a href="https://www.osradar.com/how-to-install-python-3-8-on-centos-8/" target="_blank" rel="noreferrer noopener" aria-label=" Python 3 (opens in a new tab)"> Python 3</a>. You can install it with the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo pkg install py37-pip
Updating FreeBSD repository catalogue…
 FreeBSD repository is up to date.
 All repositories are up to date.
 The following 4 package(s) will be affected (of 0 checked):
 New packages to be INSTALLED:
     py37-pip: 19.1.1
     python37: 3.7.6
     libffi: 3.2.1_3
     py37-setuptools: 41.4.0_1
 Number of packages to be installed: 4
 The process will require 125 MiB more space.
 18 MiB to be downloaded.
 Proceed with this action? [y/N]: </pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="739" height="328" src="https://www.osradar.com/wp-content/uploads/2020/03/2-2.png" alt="2.- Installing Python Pip on FreeBSD 12" class="wp-image-18852" srcset="https://www.osradar.com/wp-content/uploads/2020/03/2-2.png 739w, https://www.osradar.com/wp-content/uploads/2020/03/2-2-300x133.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/2-2-696x309.png 696w" sizes="(max-width: 739px) 100vw, 739px" /><figcaption>2.- Installing Python Pip on FreeBSD 12</figcaption></figure>



<p>At the end of the installation, you will get some messages from the installer.</p>



<pre class="wp-block-preformatted">Message from py37-pip-19.1.1:
 --
 pip MUST ONLY be used:
 With the --user flag, OR
 To install or manage Python packages in virtual environments 
 Failure to follow this warning can and will result in an inconsistent
 system-wide Python environment (LOCALBASE/lib/pythonX.Y/site-packages) and
 cause errors.
 Avoid using pip as root unless you know what you're doing.</pre>



<p>Now Pip is ready to be used. For example, check the current version:</p>



<pre class="wp-block-preformatted">:~$ pip --version
pip 19.1.1 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="769" height="100" src="https://www.osradar.com/wp-content/uploads/2020/03/3-2.png" alt="3.- Pip version" class="wp-image-18854" srcset="https://www.osradar.com/wp-content/uploads/2020/03/3-2.png 769w, https://www.osradar.com/wp-content/uploads/2020/03/3-2-300x39.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/3-2-696x91.png 696w" sizes="(max-width: 769px) 100vw, 769px" /><figcaption>3.- Pip version</figcaption></figure>



<p>Although it is already possible to use Pip, it is convenient to upgrade to the latest stable version. This is to take better advantage of the new features and to improve its stability.</p>



<p>To upgrade Pip to the latest stable version, use the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo pip install --upgrade pip --user
Successfully installed pip-20.0.2</pre>



<p>There you go. Pip is ready to be used without a problem.</p>



<h2>Conclusion</h2>



<p>Programming in Python is very widespread and that is why every day there are useful tools made with this language. An easy way to manage these programs made in Python is to install Pip. As you can see it is very easy but it can be very useful to know it.</p>



<p>For more information I recommend you to read the <a href="https://pip.pypa.io/en/stable/user_guide/" target="_blank" rel="noreferrer noopener" aria-label="user guide of the program (opens in a new tab)">user guide of the program</a>.</p>



<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener" aria-label="our Telegram channel (opens in a new tab)">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-python-pip-freebsd-12/">How to install python Pip 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-python-pip-freebsd-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Go Language on FreeBSD 12?</title>
		<link>https://www.osradar.com/how-to-install-go-language-freebsd-12/</link>
					<comments>https://www.osradar.com/how-to-install-go-language-freebsd-12/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 06 Mar 2020 00:56:00 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[freebsd12]]></category>
		<category><![CDATA[go]]></category>
		<category><![CDATA[GoLang]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=18767</guid>

					<description><![CDATA[<p>Hi, friends in this post, you will learn how to install Go on FreeBSD 12. This popular programming language is gaining more and more followers every day. Go is an open source (BSD license) programming language that was born with the objective of allowing the creation of efficient and easily distributable applications. So, it has [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-go-language-freebsd-12/">How to install Go Language 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, friends in this post, you will learn how to install Go on <a href="https://www.osradar.com/tag/freebsd/" target="_blank" rel="noopener noreferrer">FreeBSD</a> 12. This popular programming language is gaining more and more followers every day.</p>
<p><a href="https://golang.org" rel="noopener">Go</a> is an open source (<a href="https://golang.org/LICENSE" rel="noopener">BSD license</a>) programming language that was born with the objective of allowing the creation of efficient and easily distributable applications. So, it has binaries for Windows, Mac OS and of course, for Linux.</p>
<p>One of the main features of Go is the efficiency with which it manages computer resources. To the extent that many claims to be the natural replacement of C.</p>
<p>On the other hand, Go is a compiled language and has a garbage collector that tries to reduce the latency to the minimum guaranteeing optimal performance.</p>
<p>For this and many other reasons is that more and more developers have it as their main language.</p>
<h2>Install Go language on FreeBSD 12</h2>
<p>One of the main advantages of FreeBSD is that it has a large number of packages available from the official repositories. However, not all of them are up-to-date.</p>
<p>So in this post, we will download and install the latest stable version of Go which is 1.14.</p>
<p>First, open a terminal session. Once you have it open, you need to install curl to download Go.</p>
<pre>:~$ sudo pkg install curl
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
	curl: 7.67.0
	ca_root_nss: 3.50
Number of packages to be installed: 2
The process will require 4 MiB more space.
1 MiB to be downloaded.
Proceed with this action? [y/N]: y</pre>
<p><figure id="attachment_18776" aria-describedby="caption-attachment-18776" style="width: 691px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18776" src="https://www.osradar.com/wp-content/uploads/2020/03/1.png" alt="1.- Install curl on FreeBSD 12" width="691" height="270" srcset="https://www.osradar.com/wp-content/uploads/2020/03/1.png 691w, https://www.osradar.com/wp-content/uploads/2020/03/1-300x117.png 300w" sizes="(max-width: 691px) 100vw, 691px" /><figcaption id="caption-attachment-18776" class="wp-caption-text">1.- Install curl on FreeBSD 12</figcaption></figure></p>
<p>Once you have installed curl, we can start the download of Go with the following command:</p>
<pre>:~$ curl https://dl.google.com/go/go1.14.freebsd-amd64.tar.gz --output go.tar.gz</pre>
<p><figure id="attachment_18777" aria-describedby="caption-attachment-18777" style="width: 765px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-18777 size-full" src="https://www.osradar.com/wp-content/uploads/2020/03/2.png" alt="2.- Download Go language on FreeBSD 12" width="765" height="144" srcset="https://www.osradar.com/wp-content/uploads/2020/03/2.png 765w, https://www.osradar.com/wp-content/uploads/2020/03/2-300x56.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/2-696x131.png 696w" sizes="(max-width: 765px) 100vw, 765px" /><figcaption id="caption-attachment-18777" class="wp-caption-text">2.- Download Go language on FreeBSD 12</figcaption></figure></p>
<p>When the download is finished we have to unzip it and move it to the /usr/local/ directory</p>
<pre>:~$ tar xvf go.tar.gz
:~$ sudo mv go /usr/local</pre>
<p>Go is ready for action, but it is convenient to make it available globally in our terminal. To do this, you have to edit the profile file.</p>
<pre>:~$ sudo nano ~/.profile</pre>
<p>And add the following content at the end:</p>
<pre>export GOROOT=/usr/local/go 
export GOPATH=$HOME/work/
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH</pre>
<p><figure id="attachment_18778" aria-describedby="caption-attachment-18778" style="width: 608px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18778" src="https://www.osradar.com/wp-content/uploads/2020/03/3.png" alt="3.- Configuring go" width="608" height="260" srcset="https://www.osradar.com/wp-content/uploads/2020/03/3.png 608w, https://www.osradar.com/wp-content/uploads/2020/03/3-300x128.png 300w" sizes="(max-width: 608px) 100vw, 608px" /><figcaption id="caption-attachment-18778" class="wp-caption-text">3.- Configuring go</figcaption></figure></p>
<p>I&#8217;ll explain something quickly. The second line refers to a folder called &#8220;work&#8221; in that folder is where we have to include all our Go projects. Of course, you can replace the name &#8220;work&#8221; with whatever you want.</p>
<p>Save the changes and close the file.</p>
<p>Now you can see the version of Go installed with the following command:</p>
<pre>:~$ go version
go version go1.14 freebsd/amd64</pre>
<p><figure id="attachment_18780" aria-describedby="caption-attachment-18780" style="width: 845px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18780" src="https://www.osradar.com/wp-content/uploads/2020/03/5.png" alt="5.- Go 1.14 installed" width="845" height="189" srcset="https://www.osradar.com/wp-content/uploads/2020/03/5.png 845w, https://www.osradar.com/wp-content/uploads/2020/03/5-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/5-768x172.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/5-696x156.png 696w" sizes="(max-width: 845px) 100vw, 845px" /><figcaption id="caption-attachment-18780" class="wp-caption-text">5.- Go 1.14 installed</figcaption></figure></p>
<p>This indicates that Go is available from the console no matter where the prompt is located.</p>
<h2>Testing Go</h2>
<p>Now that Go is installed, let&#8217;s do the classic Hello World program to check that everything is okay.</p>
<p>First, we&#8217;ll create the project folders. Remember that it will be inside the work folder. Inside it, the project folder and inside it, the src folder where we will create the source file.</p>
<pre>:~$ mkdir -p $HOME/work/src/hello</pre>
<p>Then, create the source file and add the following content</p>
<pre>:~$ nano ~/work/src/hello/hello.go
package main 
 import "fmt"
 func main() {
 fmt.Printf("hello, world\n")
 }

</pre>
<p><figure id="attachment_18781" aria-describedby="caption-attachment-18781" style="width: 845px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18781" src="https://www.osradar.com/wp-content/uploads/2020/03/5-1.png" alt="5.- Creating the hello world program in Go language" width="845" height="189" srcset="https://www.osradar.com/wp-content/uploads/2020/03/5-1.png 845w, https://www.osradar.com/wp-content/uploads/2020/03/5-1-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/5-1-768x172.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/5-1-696x156.png 696w" sizes="(max-width: 845px) 100vw, 845px" /><figcaption id="caption-attachment-18781" class="wp-caption-text">5.- Creating the hello world program in Go language</figcaption></figure></p>
<p>Finally, we build the project, compile the source code and execute it:</p>
<pre>:~$ go build hello
:~$ go install hello
:~$ hello
hello, world</pre>
<p><figure id="attachment_18782" aria-describedby="caption-attachment-18782" style="width: 789px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18782" src="https://www.osradar.com/wp-content/uploads/2020/03/6.png" alt="6.- Go language on FreeBSD 12" width="789" height="125" srcset="https://www.osradar.com/wp-content/uploads/2020/03/6.png 789w, https://www.osradar.com/wp-content/uploads/2020/03/6-300x48.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/6-768x122.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/6-696x110.png 696w" sizes="(max-width: 789px) 100vw, 789px" /><figcaption id="caption-attachment-18782" class="wp-caption-text">6.- Go language on FreeBSD 12</figcaption></figure></p>
<p>So, Go is ready to use.</p>
<h2>Conclusion</h2>
<p>There are many programming languages but there is always room for innovation and that is what Go gives us. An efficient language and with the support of a giant like Google.</p>
<p>Please 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/how-to-install-go-language-freebsd-12/">How to install Go Language 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-go-language-freebsd-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Java on FreeBSD 12?</title>
		<link>https://www.osradar.com/how-to-install-java-freebsd-12/</link>
					<comments>https://www.osradar.com/how-to-install-java-freebsd-12/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 04 Mar 2020 23:11:00 +0000</pubDate>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[freebsd 12]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=18622</guid>

					<description><![CDATA[<p>Hello friends, the goal of this tutorial is for you to learn how to install Java on FreeBSD 12 so you can enjoy it and use it for different purposes. We already know that Java is one of the most used programming languages in the world. Besides this, many applications need Java to run and [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-java-freebsd-12/">How to install Java 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>Hello friends, the goal of this tutorial is for you to learn <strong>how to install Java on FreeBSD 12</strong> so you can enjoy it and use it for different purposes.</p>
<p>We already know that Java is one of the most used programming languages in the world. Besides this, many applications need Java to run and therefore many people need it.</p>
<p>On the other hand, many people use FreeBSD 12 as an operating system for a server. Many dedicated server applications need Java to run as well as to serve applications.</p>
<p>So, let us do it.</p>
<h2>Install Java on FreeBSD 12</h2>
<p>For this tutorial you need to run sudo. So this program has to be enabled and working properly. For that, read our tutorial 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>Once you have done it, you can continue with the post.</p>
<p>Next is bscar Java in the official FreeBSD 12 repositories.</p>
<pre>:~$ sudo pkg search openjd<br />bootstrap-openjdk11-11.0.5.10.1 Java Development Kit 11<br />bootstrap-openjdk6-r450701 Java Development Kit 6<br />bootstrap-openjdk8-r450802 Java Development Kit 8<br />openjdk-7.161.01,1 Java Development Kit 7<br />openjdk-jre-7.161.01,1 Java Runtime Environment 7<br />openjdk11-11.0.5+10.1 Java Development Kit 11<br />openjdk12-12.0.2+10.3_1 Java Development Kit 12<br />openjdk13-13.0.1+9.1 Java Development Kit 13<br />openjdk8-8.232.09.1_1 Java Development Kit 8<br />openjdk8-jre-8.232.09.1_1 Java Runtime Environment 8<br />rxtx-openjdk8-2.2p2_4 Native interface to serial ports in Java</pre>
<figure id="attachment_18768" aria-describedby="caption-attachment-18768" style="width: 773px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18768" src="https://www.osradar.com/wp-content/uploads/2020/02/1-23.png" alt="1.- Search for Java on the FreeBSD repositories" width="773" height="247" srcset="https://www.osradar.com/wp-content/uploads/2020/02/1-23.png 773w, https://www.osradar.com/wp-content/uploads/2020/02/1-23-300x96.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/1-23-768x245.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/1-23-696x222.png 696w" sizes="(max-width: 773px) 100vw, 773px" /><figcaption id="caption-attachment-18768" class="wp-caption-text">1.- Search for Java on the FreeBSD repositories</figcaption></figure>
<p>In the image we can see that there are several versions of Java available, but only version 8 contains both JDK and JRE. Therefore, this is the version that we will install.</p>
<pre>:~$ sudo pkg install openjdk8<br />Updating FreeBSD repository catalogue...<br />FreeBSD repository is up to date.<br />All repositories are up to date.<br />The following 27 package(s) will be affected (of 0 checked):<br />New packages to be INSTALLED:<br />	openjdk8: 8.232.09.1_1<br />	libXtst: 1.2.3_2<br />	libXi: 1.7.10,1<br />	libXfixes: 5.0.3_2<br />	libX11: 1.6.9,1<br />	libxcb: 1.13.1<br />	libXdmcp: 1.1.3<br />	xorgproto: 2019.2<br />	libXau: 1.0.9<br />	libxml2: 2.9.10<br />	libpthread-stubs: 0.4<br />	libXext: 1.3.4,1<br />	libXrender: 0.9.10_2<br />	libXt: 1.2.0,1<br />	libSM: 1.2.3,1<br />	libICE: 1.0.10,1<br />	fontconfig: 2.12.6,1<br />	expat: 2.2.8<br />	freetype2: 2.10.1<br />	dejavu: 2.37_1<br />	mkfontscale: 1.2.1<br />	libfontenc: 1.1.4<br />	javavmwrapper: 2.7.4<br />	java-zoneinfo: 2019.b<br />	giflib: 5.2.1<br />	libinotify: 20180201_1<br />	alsa-lib: 1.1.2_2<br />Number of packages to be installed: 27<br />The process will require 234 MiB more space.<br />89 MiB to be downloaded.<br />Proceed with this action? [y/N]:</pre>
<figure id="attachment_18769" aria-describedby="caption-attachment-18769" style="width: 818px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18769" src="https://www.osradar.com/wp-content/uploads/2020/02/2-22.png" alt="2.- Install Java on FreeBSD 12" width="818" height="708" srcset="https://www.osradar.com/wp-content/uploads/2020/02/2-22.png 818w, https://www.osradar.com/wp-content/uploads/2020/02/2-22-300x260.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/2-22-768x665.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/2-22-534x462.png 534w, https://www.osradar.com/wp-content/uploads/2020/02/2-22-696x602.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/2-22-485x420.png 485w" sizes="(max-width: 818px) 100vw, 818px" /><figcaption id="caption-attachment-18769" class="wp-caption-text">2.- Install Java on FreeBSD 12</figcaption></figure>
<p>Once Java is installed a few more things need to be done to get it ready for work. Because this OpenJDK implementation requires fdescfs(5) mounted on /dev/fd and<br />procfs(5) mounted on /proc.</p>
<p>So, to do it, run these commands:</p>
<pre>:~$ sudo mount -t fdescfs fdesc /dev/fd<br />:~$ sudo mount -t procfs proc /proc</pre>
<p>This solves the problem temporarily, if we want to avoid running these commands every time we start the system, we have to edit the file /etc/fstab and add the following:</p>
<pre>:~$ sudo nano /etc/fstab<br />fdesc	/dev/fd		fdescfs		rw	0	0<br />proc	/proc		procfs		rw	0	0</pre>
<figure id="attachment_18770" aria-describedby="caption-attachment-18770" style="width: 851px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18770" src="https://www.osradar.com/wp-content/uploads/2020/02/3-19.png" alt="3.- Configuring FreeBSD 12 to work with Java " width="851" height="189" srcset="https://www.osradar.com/wp-content/uploads/2020/02/3-19.png 851w, https://www.osradar.com/wp-content/uploads/2020/02/3-19-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/3-19-768x171.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/3-19-696x155.png 696w" sizes="(max-width: 851px) 100vw, 851px" /><figcaption id="caption-attachment-18770" class="wp-caption-text">3.- Configuring FreeBSD 12 to work with Java</figcaption></figure>
<p>So, save the changes and close the file.</p>
<p>Now, you can check the Java version.</p>
<pre>:~$ java -version</pre>
<figure id="attachment_18771" aria-describedby="caption-attachment-18771" style="width: 828px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18771" src="https://www.osradar.com/wp-content/uploads/2020/02/4-19.png" alt="4.- Java version" width="828" height="156" srcset="https://www.osradar.com/wp-content/uploads/2020/02/4-19.png 828w, https://www.osradar.com/wp-content/uploads/2020/02/4-19-300x57.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/4-19-768x145.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/4-19-696x131.png 696w" sizes="(max-width: 828px) 100vw, 828px" /><figcaption id="caption-attachment-18771" class="wp-caption-text">4.- Java version</figcaption></figure>
<p>So, Java is ready for the action.</p>
<h2>Conclusion</h2>
<p>Java is a fairly popular platform and this makes it necessary for many FreeBSD 12 developers and users to run or serve applications of this type. Today you have learned how to install it without problems.</p>
<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel</a>.</p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-java-freebsd-12/">How to install Java 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-java-freebsd-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install yarn on FreeBSD 12?</title>
		<link>https://www.osradar.com/how-to-install-yarn-freebsd-12/</link>
					<comments>https://www.osradar.com/how-to-install-yarn-freebsd-12/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 28 Feb 2020 00:11:00 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[freebasd 12]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[yarn]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=18459</guid>

					<description><![CDATA[<p>In the development of any application, there are dependencies that we have to handle. With time, these can become a problem so it is convenient to have a tool that does it for us. In the case of Javascript, we have a very good one. So, in this post, I will show you how to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-yarn-freebsd-12/">How to install yarn 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>In the development of any application, there are dependencies that we have to handle. With time, these can become a problem so it is convenient to have a tool that does it for us. In the case of Javascript, we have a very good one. So, in this post, I will show you how to install Yarn on FreeBSD 12.</p>
<p><a href="https://yarnpkg.com">Yarn</a> is a Javascript dependency manager that stands out for being fast, secure and reliable. It is presented to us as the most solid alternative to NPM. In addition, it is open source and it has the protection of a giant like <a href="https://www.osradar.com/facebook-vulnerability-affecting-50-million-users/">Facebook</a> what guarantees us solidity and robustness of the project. Some of its characteristics are the following:</p>
<ul>
<li>Fast: Yarn caches every package it has downloaded.</li>
<li>Reliable: Using a detailed but concise lockfile format and a deterministic algorithm for install operations.</li>
<li>Secure: Yarn uses checksums to verify the integrity of every installed package before its code is executed.</li>
</ul>
<p>There are also other features such as its efficiency in the use of the network as well as an offline mode. All this can be found on the <a href="https://github.com/yarnpkg/yarn">Github site</a> of Yarn.</p>
<p>So, let us start.</p>
<h2>Install Yarn on FreeBSD 12</h2>
<p>For this tutorial, you must have sudo enabled, so this is the first step.</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>After you can use sudo, you can continue.</p>
<p>The FreeBSD 12 repositories are quite large, so we will first look for yarn in them.</p>
<p>Open a terminal and run the following:</p>
<pre>:~$ sudo pkg search yarn
yarn-1.19.1                    Package manager for node, alternative to npm
yarn-node10-1.19.1             Package manager for node, alternative to npm
yarn-node12-1.19.1             Package manager for node, alternative to npm
yarn-node8-1.19.1              Package manager for node, alternative to npm</pre>
<p><figure id="attachment_18494" aria-describedby="caption-attachment-18494" style="width: 849px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18494" src="https://www.osradar.com/wp-content/uploads/2020/02/1-17.png" alt="1.- Searching for yarn" width="849" height="181" srcset="https://www.osradar.com/wp-content/uploads/2020/02/1-17.png 849w, https://www.osradar.com/wp-content/uploads/2020/02/1-17-300x64.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/1-17-768x164.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/1-17-696x148.png 696w" sizes="(max-width: 849px) 100vw, 849px" /><figcaption id="caption-attachment-18494" class="wp-caption-text">1.- Searching for yarn</figcaption></figure></p>
<p>As you can see in the picture, yarn is in the official repositories. And also, they have several versions according to the version of NodeJS we have installed.</p>
<p>However, to install it, just use the following command:</p>
<pre>:~$ sudo pkg install yarn
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 6 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	yarn: 1.19.1
	node: 13.3.0
	libnghttp2: 1.40.0
	c-ares: 1.15.0_1
	libuv: 1.34.0
	icu: 65.1,1

Number of packages to be installed: 6

The process will require 92 MiB more space.
19 MiB to be downloaded.

Proceed with this action? [y/N]:</pre>
<p><figure id="attachment_18495" aria-describedby="caption-attachment-18495" style="width: 966px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18495" src="https://www.osradar.com/wp-content/uploads/2020/02/2-16.png" alt="2.- Install Yarn on FreeBSD 12" width="966" height="360" srcset="https://www.osradar.com/wp-content/uploads/2020/02/2-16.png 966w, https://www.osradar.com/wp-content/uploads/2020/02/2-16-300x112.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/2-16-768x286.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/2-16-696x259.png 696w" sizes="(max-width: 966px) 100vw, 966px" /><figcaption id="caption-attachment-18495" class="wp-caption-text">2.- Install Yarn on FreeBSD 12</figcaption></figure></p>
<p>Once it is installed, you can check the installed version.</p>
<pre>:~$ yarn --version</pre>
<p><figure id="attachment_18496" aria-describedby="caption-attachment-18496" style="width: 789px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18496" src="https://www.osradar.com/wp-content/uploads/2020/02/3-13.png" alt="3.- Yarn version" width="789" height="130" srcset="https://www.osradar.com/wp-content/uploads/2020/02/3-13.png 789w, https://www.osradar.com/wp-content/uploads/2020/02/3-13-300x49.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/3-13-768x127.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/3-13-696x115.png 696w" sizes="(max-width: 789px) 100vw, 789px" /><figcaption id="caption-attachment-18496" class="wp-caption-text">3.- Yarn version</figcaption></figure></p>
<p>This indicates that yarn is ready for action.</p>
<h2>Basic use of Yarn</h2>
<p>Now we will look at some basic steps in the use of yarn. I&#8217;m going to create a sample project, and for that I&#8217;ll first create a new dedicated folder.</p>
<pre>:~$ mkdir project</pre>
<p>Now I&#8217;ll access it:</p>
<pre>cd project/</pre>
<p>And within it, I initiate the yarn project. This will make me ask some questions about the configuration of the project. Nothing complicated.</p>
<pre>:~$ yarn init
yarn init v1.19.1
question name (project): Example
question version (1.0.0): 
question description: This is an example
question entry point (index.js): 
question repository url: https://www.osradar.com/
question author: Angelo
question license (MIT): 
question private: no
success Saved package.json
Done in 34.27s.</pre>
<p><figure id="attachment_18497" aria-describedby="caption-attachment-18497" style="width: 842px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18497" src="https://www.osradar.com/wp-content/uploads/2020/02/4-13.png" alt="4.- Creating a new project with Yarn" width="842" height="290" srcset="https://www.osradar.com/wp-content/uploads/2020/02/4-13.png 842w, https://www.osradar.com/wp-content/uploads/2020/02/4-13-300x103.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/4-13-768x265.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/4-13-696x240.png 696w" sizes="(max-width: 842px) 100vw, 842px" /><figcaption id="caption-attachment-18497" class="wp-caption-text">4.- Creating a new project with Yarn</figcaption></figure></p>
<p>If you want to add a new dependency, just use the following command:</p>
<pre>:~$ yarn add [name]</pre>
<p>Or to eliminate it:</p>
<pre>:~$ yarn remove [name]</pre>
<p>And from the project folder, we can install the rooms:</p>
<pre>:~$ yarn</pre>
<p>And so we can continue with the installation.</p>
<h2>Conclusion</h2>
<p>Yarn is a fantastic tool for Javascript developers and thus makes it easier to create functional web applications. Now you know how to install it on FreeBSD 12.</p>
<p>Please 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/how-to-install-yarn-freebsd-12/">How to install yarn 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-yarn-freebsd-12/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 GIT on FreeBSD 12?</title>
		<link>https://www.osradar.com/install-git-freebsd-12/</link>
					<comments>https://www.osradar.com/install-git-freebsd-12/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 21 Feb 2020 00:11:00 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[freebsd 12]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=18258</guid>

					<description><![CDATA[<p>These days, it&#8217;s practically impossible to make a quality application without using version control. There are many popular alternatives, but the best is Git. So in this post, I&#8217;ll show you how to install Git on FreeBSD 12. Git? If you are starting to develop applications you may not know that Git is a free, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-git-freebsd-12/">How to install GIT 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>These days, it&#8217;s practically impossible to make a quality application without using version control. There are many popular alternatives, but the best is Git. So in this post, <strong>I&#8217;ll show you how to install Git on FreeBSD 12.</strong></p>
<h2>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>
<p>So, let us start.</p>
<h2>Install Git on FreeBSD 12</h2>
<p>Git is a popular open-source application that is available on many Linux and FreeBSD distributions. So before we work, let&#8217;s do some research into the official repositories.</p>
<pre>:~$ sudo pkg search git
git-2.24.1                     Distributed source code management tool
git-absorb-0.5.0_4             Git command for automating fixup/autosquash commits
git-bzr-ng-git20140423_1       Bi-directional git to bzr bridge
git-cinnabar-0.5.2_4           Git remote helper to interact with Mercurial repositories
git-codereview-0.0.0.2016030201_1 Command-line tool for working with Gerrit
git-cola-3.5                   Sleek and powerful Git GUI
git-crypt-0.6.0_1              Transparent file encryption in git
git-cvs-0.1.0_1                Tool to incrementally import changesets from CVS into Git
git-delta-0.0.14_1             Syntax-highlighting pager for git/diff
git-extras-5.1.0               Sub-commands for repo summary, repl, changelog population, and more
git-gui-2.24.1                 Distributed source code management tool (GUI enabled)
git-lfs-2.9.1                  Git extension for versioning large files
git-lite-2.24.1                Distributed source code management tool (lite package)
git-merge-changelog-20140202   Git "merge" driver for GNU style ChangeLog files
git-modes-emacs26-1.2.8_2,1    GNU Emacs modes for Git-related files
git-modes-emacs26_canna-1.2.8_2,1 GNU Emacs modes for Git-related files
git-modes-emacs26_nox-1.2.8_2,1 GNU Emacs modes for Git-related files
git-modes-emacs27-1.2.8_2,1    GNU Emacs modes for Git-related files
git-modes-emacs27_nox-1.2.8_2,1 GNU Emacs modes for Git-related files
git-prompt.zsh-2.2.1           Fast, customizable, pure-shell, asynchronous Git prompt for Zsh
git-remote-gcrypt-1.2          PGP-encrypt git remotes
git-remote-hg-1.0.0            Transparent bidirectional bridge between Git and Mercurial for Git
git-review-1.28.0              Allow to push code to review and interact with a Gerrit server
git-review-py27-1.28.0         Allow to push code to review and interact with a Gerrit server
git-secret-0.2.5               Bash tool to store your private data inside a git repository
git-subrepo-0.4.0              Git command for managing subrepositories
git-town-7.3.0_1               Git extension for generic, high-level git workflow support
gitaly-1.77.0_1                Smart reverse proxy for GitLab
gitblit-1.8.0_2                Open-source servlet for Git repositories
gitea-1.10.3                   Compact self-hosted Git service
gitflow-1.12.3                 Git extensions to provide high-level repository operations
gitg-3.32.1                    GTK-based git repository viewer
gitg0-0.0.8_2                  GTK-based git repository viewer (gtk2 version)
github-backup-utils-2.8.3_1    GitHub Enterprise Backup Utilities</pre>
<p><figure id="attachment_18291" aria-describedby="caption-attachment-18291" style="width: 1061px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18291" src="https://www.osradar.com/wp-content/uploads/2020/02/1-10.png" alt="1.- Search for Git" width="1061" height="647" srcset="https://www.osradar.com/wp-content/uploads/2020/02/1-10.png 1061w, https://www.osradar.com/wp-content/uploads/2020/02/1-10-300x183.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/1-10-1024x624.png 1024w, https://www.osradar.com/wp-content/uploads/2020/02/1-10-768x468.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/1-10-696x424.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/1-10-689x420.png 689w" sizes="(max-width: 1061px) 100vw, 1061px" /><figcaption id="caption-attachment-18291" class="wp-caption-text">1.- Search for Git</figcaption></figure></p>
<p>As you can notice, I have used the sudo command, if you don&#8217;t have it enabled, I invite you to read our post so you can enable it without problems.</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>However, in the image, we can see many packages related to git and of course, the git package. So, since we&#8217;re in the official repositories, just run the following command:</p>
<pre>:~$ sudo pkg install git
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 29 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
	git: 2.24.1
	p5-CGI: 4.44
	p5-HTML-Parser: 3.72
	p5-HTML-Tagset: 3.20_1
	perl5: 5.30.1
	expat: 2.2.8
	p5-IO-Socket-SSL: 2.066
	p5-Mozilla-CA: 20180117
	p5-Net-SSLeay: 1.85
	p5-IO-Socket-INET6: 2.72_1
	p5-Socket6: 0.29
	p5-Authen-SASL: 2.16_1
	p5-GSSAPI: 0.28_1
	p5-Digest-HMAC: 1.03_1
	python37: 3.7.6
	p5-Error: 0.17028
	curl: 7.67.0
	ca_root_nss: 3.50
	pcre: 8.43_2
	p5-subversion: 1.13.0
	utf8proc: 2.4.0
	subversion: 1.13.0
	serf: 1.3.9_4
	apr: 1.7.0.1.6.1
	gdbm: 1.18.1_1
	db5: 5.3.28_7
	liblz4: 1.9.2,1
	p5-Term-ReadKey: 2.38_1
	cvsps: 2.1_2
Number of packages to be installed: 29
The process will require 294 MiB more space.
56 MiB to be downloaded.
Proceed with this action? [y/N]:</pre>
<p><figure id="attachment_18292" aria-describedby="caption-attachment-18292" style="width: 982px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18292" src="https://www.osradar.com/wp-content/uploads/2020/02/2-10.png" alt="2.- Installing Git on FreeBSD 12" width="982" height="713" srcset="https://www.osradar.com/wp-content/uploads/2020/02/2-10.png 982w, https://www.osradar.com/wp-content/uploads/2020/02/2-10-300x218.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/2-10-768x558.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/2-10-324x235.png 324w, https://www.osradar.com/wp-content/uploads/2020/02/2-10-696x505.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/2-10-578x420.png 578w" sizes="(max-width: 982px) 100vw, 982px" /><figcaption id="caption-attachment-18292" class="wp-caption-text">2.- Installing Git on FreeBSD 12</figcaption></figure></p>
<p>When the installation is complete, you can run the Git command to test the operation.</p>
<pre>:~$ git --version
git version 2.24.1</pre>
<p>Now you can start working with Git.</p>
<h2>Conclusion</h2>
<p>Git is one of those applications that every developer must be able to manage to improve their workflow. So, you know how to install it on FreeBSD 12.</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-freebsd-12/">How to install GIT 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-git-freebsd-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install NodeJS on FreeBSD 12?</title>
		<link>https://www.osradar.com/install-nodejs-freebsd-12/</link>
					<comments>https://www.osradar.com/install-nodejs-freebsd-12/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 19 Feb 2020 00:11:00 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[freebsd 12]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[node.js]]></category>
		<category><![CDATA[NodeJS]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=18212</guid>

					<description><![CDATA[<p>Hello. In this short post, I will show you how to install NodeJS on FreeBSD 12. Also, I will install NPM too. What is NodeJS If you are an expert developer or already have some experience with it, you will know it is NodeJS. However, in case you are starting with it, it is a [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nodejs-freebsd-12/">How to install NodeJS 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><strong>Hello. In this short post, I will show you how to install NodeJS on FreeBSD 12. Also, I will install NPM too.</strong></p>
<h2>What is NodeJS</h2>
<p>If you are an expert developer or already have some experience with it, you will know it is NodeJS. However, in case you are starting with it, it is a good idea to know what NodeJS is first.</p>
<p><a href="https://nodejs.org/" rel="noopener">NodeJS</a> 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 Javascript and therefore its learning curve decreases a lot.</p>
<p>So, let us start.</p>
<h2>Install NodeJS on FreeBSD 12</h2>
<p>First of all, all the commands we will use require you to be root. So it is a good idea to have sudo enabled and not work directly with the root user.</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>Now it is also convenient to do a system upgrade. Not only to install security patches but also to refresh the repositories.</p>
<pre>:~$ sudo pkg update</pre>
<p>The official FreeBSD repositories include NodeJS. So first we&#8217;ll search for them.</p>
<pre>:~$ sudo pkg search node<br />bitcoinnodestats-g20171121_1   Basic Bitcoin node status and statistics web application<br />gstreamer-plugins-annodex-0.10.31_2,3 Gstreamer annodex CMML plugin<br />kadnode-2.2.5_1                P2P name resolution daemon<br />leafnode-1.11.11               NNTP package for offline news caching and reading<br />monodevelop-7.6.11.7_2         IDE for the .NET platform<br />munin-node-2.0.52              Node-specific part of Munin<br />node-13.3.0                    V8 JavaScript for client and server<br />node-thrift-0.11.0             Node.js bindings for the Apache Thrift RPC system<br />node10-10.17.0                 V8 JavaScript for client and server<br />node12-12.13.1                 V8 JavaScript for client and server<br />node8-8.16.2                   V8 JavaScript for client and server (8.x LTS)<br />node_exporter-0.18.1           Prometheus exporter for machine metrics<br />npm-node10-6.12.1              Node package manager<br />npm-node12-6.12.1              Node package manager<br />npm-node8-6.12.1               Node package manager<br />p5-Tree-DAG_Node-1.31          Super class for representing nodes in a tree<br />p5-Tree-Node-0.08_2            Memory-efficient tree nodes in Perl<br />p5-WebService-Linode-0.29      Perl Interface to the Linode.com API<br />p5-XML-Node-0.11_1             Perl5 module to extend and simplify XML::Parser<br />p5-XML-NodeFilter-0.01_1       XML::NodeFilter is an object that know how to "filter out" nodes<br />py27-certbot-dns-linode-1.0.0  Linode DNS Authenticator plugin for Certbot<br />py27-nodeenv-1.3.3             Node.js virtual environment builder<br />py37-certbot-dns-linode-1.0.0  Linode DNS Authenticator plugin for Certbot<br />py37-nodeenv-1.3.3             Node.js virtual environment builder<br />yarn-node10-1.19.1             Package manager for node, alternative to npm<br />yarn-node12-1.19.1             Package manager for node, alternative to npm<br />yarn-node8-1.19.1              Package manager for node, alternative to npm</pre>
<figure id="attachment_18263" aria-describedby="caption-attachment-18263" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18263" src="https://www.osradar.com/wp-content/uploads/2020/02/1-8.png" alt="1.- Search for nodejs on the FreeBSD repositories" width="1365" height="550" srcset="https://www.osradar.com/wp-content/uploads/2020/02/1-8.png 1365w, https://www.osradar.com/wp-content/uploads/2020/02/1-8-300x121.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/1-8-1024x413.png 1024w, https://www.osradar.com/wp-content/uploads/2020/02/1-8-768x309.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/1-8-696x280.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/1-8-1068x430.png 1068w, https://www.osradar.com/wp-content/uploads/2020/02/1-8-1042x420.png 1042w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-18263" class="wp-caption-text">1.- Search for nodejs on the FreeBSD repositories</figcaption></figure>
<p>As you can see from the screen output, there are several versions of NodeJS in the official repositories. At the time of writing this post, series 12 is the latest LTS and therefore the most reliable option.</p>
<p>So let&#8217;s install NodeJS with the following command:</p>
<pre>:~$ sudo pkg install node12<br />Updating FreeBSD repository catalogue...<br />FreeBSD repository is up to date.<br />All repositories are up to date.<br />The following 5 package(s) will be affected (of 0 checked):<br />New packages to be INSTALLED:<br />	node12: 12.13.1<br />	libnghttp2: 1.40.0<br />	c-ares: 1.15.0_1<br />	libuv: 1.34.0<br />	icu: 65.1,1<br />Number of packages to be installed: 5<br />The process will require 86 MiB more space.<br />18 MiB to be downloaded.<br />Proceed with this action? [y/N]:</pre>
<figure id="attachment_18264" aria-describedby="caption-attachment-18264" style="width: 817px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18264" src="https://www.osradar.com/wp-content/uploads/2020/02/2-8.png" alt="2.- Install NodeJS on FreeBSD 12" width="817" height="366" srcset="https://www.osradar.com/wp-content/uploads/2020/02/2-8.png 817w, https://www.osradar.com/wp-content/uploads/2020/02/2-8-300x134.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/2-8-768x344.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/2-8-696x312.png 696w" sizes="(max-width: 817px) 100vw, 817px" /><figcaption id="caption-attachment-18264" class="wp-caption-text">2.- Install NodeJS on FreeBSD 12</figcaption></figure>
<p>Now check the version of NodeJS installed with the following command:</p>
<pre>:~$ node --version<br />v12.13.1</pre>
<p>It is now convenient to install NPM.</p>
<p>Again, search for the package NPM.</p>
<pre>:~$ sudo pkg search npm<br />Password:<br />npm-6.12.1                     Node package manager<br />npm-node10-6.12.1              Node package manager<br />npm-node12-6.12.1              Node package manager<br />npm-node8-6.12.1               Node package manager</pre>
<figure id="attachment_18265" aria-describedby="caption-attachment-18265" style="width: 748px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18265" src="https://www.osradar.com/wp-content/uploads/2020/02/3-8.png" alt="3.- NPM packages available on the official repositories" width="748" height="147" srcset="https://www.osradar.com/wp-content/uploads/2020/02/3-8.png 748w, https://www.osradar.com/wp-content/uploads/2020/02/3-8-300x59.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/3-8-696x137.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/3-8-741x147.png 741w" sizes="(max-width: 748px) 100vw, 748px" /><figcaption id="caption-attachment-18265" class="wp-caption-text">3.- NPM packages available on the official repositories</figcaption></figure>
<p>As you can see in the image, there are several versions of NPM. Each of them depends on a specific version of NodeJS. Since we have installed NodeJS version 12, then we have to install NPM for that version.</p>
<pre>:~$ sudo pkg install npm-node12<br />Updating FreeBSD repository catalogue...<br />FreeBSD repository is up to date.<br />All repositories are up to date.<br />The following 4 package(s) will be affected (of 0 checked):<br /><br />New packages to be INSTALLED:<br />	npm-node12: 6.12.1<br />	python27: 2.7.17_1<br />	libffi: 3.2.1_3<br />	gmake: 4.2.1_3<br /><br />Number of packages to be installed: 4<br /><br />The process will require 90 MiB more space.<br />15 MiB to be downloaded.<br /><br />Proceed with this action? [y/N]:</pre>
<figure id="attachment_18266" aria-describedby="caption-attachment-18266" style="width: 708px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18266" src="https://www.osradar.com/wp-content/uploads/2020/02/4-7.png" alt="4.- Install NPM on FreeBSD 12" width="708" height="365" srcset="https://www.osradar.com/wp-content/uploads/2020/02/4-7.png 708w, https://www.osradar.com/wp-content/uploads/2020/02/4-7-300x155.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/4-7-696x359.png 696w" sizes="(max-width: 708px) 100vw, 708px" /><figcaption id="caption-attachment-18266" class="wp-caption-text">4.- Install NPM on FreeBSD 12</figcaption></figure>
<p>And that is it. Now you can use NodeJS without problems.</p>
<h2>Conclusion</h2>
<p>NodeJS is a rather interesting technology that is becoming increasingly popular in large web projects. So it&#8217;s always good to have it in our system. Today you have learned that installing it on FreeBSD 12 is quite simple.</p>
<p>Please share this post with your friends and join our <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">Telegram channel</a>.</p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nodejs-freebsd-12/">How to install NodeJS 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-nodejs-freebsd-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
