<?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 12 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/freebsd-12/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 10 Apr 2020 22:53:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>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 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 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>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>
		<item>
		<title>How to install SQLite on FreeBSD 12?</title>
		<link>https://www.osradar.com/how-to-install-sqlite-on-freebsd-12/</link>
					<comments>https://www.osradar.com/how-to-install-sqlite-on-freebsd-12/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 14 Feb 2020 12:35:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[freebsd 12]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=18105</guid>

					<description><![CDATA[<p>When we think of database relationships, MySQL and PostgreSQL come to mind. However, other programs offer different solutions for the same requirement. So in this post, I will show you how to install SQLite on FreeBSD 12. SQLite is a small, reliable and very fast database engine. It is one of the most efficient database [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-sqlite-on-freebsd-12/">How to install SQLite 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>When we think of database relationships, MySQL and PostgreSQL come to mind. However, other programs offer different solutions for the same requirement. So in this post, I will show you how to install SQLite on FreeBSD 12.</p>
<p><a href="https://www.sqlite.org/index.html" rel="noopener">SQLite</a> is a small, reliable and very fast database engine. It is one of the most efficient database engines in the world. In part, thanks to that made in <a href="https://www.osradar.com/install-codeblocks-on-linux/" rel="noopener">C Language</a> which makes it very efficient in managing the resources of the system.</p>
<p>In like manner, the development of SQLite is so important that many major companies participate in it. This is done through the <a href="https://www.sqlite.org/consortium.html" rel="noopener">SQLite Consortium</a>. In addition, all the code is available to be downloaded, viewed and reused for being open source.</p>
<p>So, let us start.</p>
<h2>Install SQLite on FreeBSD 12</h2>
<p>First of all, the system must be upgraded, so to do this, execute the following command:</p>
<pre>:~$ sudo pkg update</pre>
<p>As you can see, I&#8217;m using sudo. If you don&#8217;t have sudo enabled, you can read our post:</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>SQLite is available in the FreeBSD 12 repositories. To make sure of this, we will search the repositories:</p>
<pre>:~$ sudo pkg search sqlite</pre>
<p>And we&#8217;ll get the next result:</p>
<pre>R-cran-RSQLite-1.0.0_4         Database Interface R driver for SQLite<br>R-cran-RSQLite.extfuns-0.0.1_11 SQLite extension functions for RSQLite<br>bogofilter-sqlite-1.2.5_2      Fast, teachable, learning spam detector<br>exim-sqlite-4.92.3             High performance MTA for Unix systems on the Internet<br>fpc-sqlite-3.0.4_3             Free Pascal interface to SQLite<br>linux-c7-sqlite-3.7.17_1       Library that implements an embeddable SQL database engine (Linux CentOS 7.7.1908)<br>lua52-lsqlite3-0.9.5           LuaSQLite3 - a Lua 5.1 to 5.3 wrapper for the SQLite3 library<br>luasql-sqlite3-2.5.0           Lua interface to SQLite3<br>ocaml-sqlite3-4.0.5            OCaml bindings to sqlite3 library<br>opensmtpd-extras-table-sqlite-6.6.0,1 SQLite table support for OpenSMTPD<br>p5-Apache-Session-SQLite3-0.03_1 Use DBD::SQLite 1.x for Apache::Session storage<br>p5-CPAN-SQLite-0.199_2         Search CPAN using a SQLite database<br>p5-Class-DBI-SQLite-0.11_2     Extension to Class::DBI for sqlite<br>p5-DBD-SQLite-1.64             Provides access to SQLite3 databases through the DBI<br>p5-DBD-SQLite2-0.38            Provides access to SQLite2 databases through the DBI<br>p5-DBIx-SQLite-Simple-0.35     Easy access to SQLite databases using objects<br>p5-DateTime-Format-SQLite-0.11_1 Parse and format SQLite dates and times<br>p5-Email-Sender-Transport-SQLite-0.092002_1 Deliver mail to an SQLite db for testing<br>p5-SQLite-Work-0.16.01_1       Report on and update an SQLite database<br>php72-pdo_sqlite-7.2.27        The pdo_sqlite shared extension for php<br>php72-pear-DB_Sqlite_Tools-0.1.7 an object oriented interface to backup Sqlite databases<br>php72-sqlite3-7.2.27           The sqlite3 shared extension for php<br>php73-pdo_sqlite-7.3.14        The pdo_sqlite shared extension for php<br>php73-pear-DB_Sqlite_Tools-0.1.7 an object oriented interface to backup Sqlite databases<br>php73-sqlite3-7.3.14           The sqlite3 shared extension for php<br>php74-pdo_sqlite-7.4.2         The pdo_sqlite shared extension for php<br>php74-pear-DB_Sqlite_Tools-0.1.7 an object oriented interface to backup Sqlite databases<br>php74-sqlite3-7.4.2            The sqlite3 shared extension for php<br>proftpd-mod_sql_sqlite-1.3.6b_3 SQLite ProFTPD module<br>py27-sqlite3-2.7.17_7          Standard Python binding to the SQLite3 library (Python 2.7)<br>py27-sqlite3dbm-0.1.4_1        Sqlite-backed dictionary<br>py35-sqlite3-3.5.9_7           Standard Python binding to the SQLite3 library (Python 3.5)<br>py36-sqlite3-3.6.9_7           Standard Python binding to the SQLite3 library (Python 3.6)<br>py37-sqlite3-3.7.6_7           Standard Python binding to the SQLite3 library (Python 3.7)<br>py38-sqlite3-3.8.1_7           Standard Python binding to the SQLite3 library (Python 3.8)<br>pypy-sqlite3-6.0.0_1           Standard PyPy binding to the SQLite3 library<br>pypy3-sqlite3-6.0.0_1          Standard PyPy binding to the SQLite3 library<br>qt5-sqldrivers-sqlite2-5.13.2  Qt SQLite 2 database plugin<br>qt5-sqldrivers-sqlite3-5.13.2  Qt SQLite 3 database plugin<br>rubygem-dbd-sqlite3-1.2.5_1    SQLite3 driver for DBI-for-Ruby<br>rubygem-do_sqlite3-0.10.17     Ruby DataObjects driver to the SQLite DB engine version 3<br>rubygem-sqlite3-1.4.2          Ruby interface to the SQLite DB engine version 3<br>rubygem-sqlite3-ruby-1.3.3_1   Ruby interface to the SQLite DB engine version 3<br>sqlite-2.8.17_5                SQL database engine in a C library<br>sqlite-ext-miscfuncs-1.1_2     Math, string, and aggregate function library for SQLite<br>sqlite-ext-pcre-20100208_2     Regexp function for SQLite based on PCRE library<br>sqlite-ext-regexp-3.8.11.1_1   Regular-expression matcher using NFA engine for SQLite<br>sqlite-ext-spellfix-3.8.11.1_1 Search large vocabulary for close matches for SQLite<br>sqlite3-3.30.1                 SQL database engine in a C library<br>sqlitebrowser-3.11.2_1         Visual tool to manage SQLite databases<br>sqliteconvert-0.1.2            Tools to convert SQLite3 schema files into documentation<br>sqlitejdbc-056_2               Java JDBC driver for SQLite<br>sqlitemanager-1.2.4            Multilingual web based tool to manage SQLite database<br>sqliteodbc-0.9996              ODBC driver for SQLite 3<br>sqliteodbc-sqlite2-0.9996      ODBC driver for SQLite 2<br>sqlitestudio-3.2.1_8           SQLite database GUI manager<br>tcl-sqlite3-3.30.1             SQLite extension for Tcl using the Tcl Extension Architecture (TEA)<br>vsqlite-0.3.13_17              Well designed and portable SQLite3 Wrapper for C++</pre>
<figure id="attachment_18120" aria-describedby="caption-attachment-18120" style="width: 1125px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18120" src="https://www.osradar.com/wp-content/uploads/2020/02/1-6.png" alt="1.- Search for the SQLite package" width="1125" height="717" srcset="https://www.osradar.com/wp-content/uploads/2020/02/1-6.png 1125w, https://www.osradar.com/wp-content/uploads/2020/02/1-6-300x191.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/1-6-1024x653.png 1024w, https://www.osradar.com/wp-content/uploads/2020/02/1-6-768x489.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/1-6-696x444.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/1-6-1068x681.png 1068w, https://www.osradar.com/wp-content/uploads/2020/02/1-6-659x420.png 659w" sizes="(max-width: 1125px) 100vw, 1125px" /><figcaption id="caption-attachment-18120" class="wp-caption-text">1.- Search for the SQLite package</figcaption></figure>
<p>As we can see in the image and in the screen output of the command, SQLite versions 2 and 3 are available. In this case, we will install version 3.</p>
<pre>:~$ sudo pkg install sqlite3<br>Updating FreeBSD repository catalogue...<br>FreeBSD repository is up to date.<br>All repositories are up to date.<br>The following 2 package(s) will be affected (of 0 checked):<br><br>New packages to be INSTALLED:<br>sqlite3: 3.30.1<br>readline: 8.0.1<br><br>Number of packages to be installed: 2<br><br>The process will require 8 MiB more space.<br>2 MiB to be downloaded.<br><br>Proceed with this action? [y/N]:</pre>
<figure id="attachment_18121" aria-describedby="caption-attachment-18121" style="width: 847px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18121" src="https://www.osradar.com/wp-content/uploads/2020/02/2-6.png" alt="2.- Install SQLite on FreeBSD 12" width="847" height="341" srcset="https://www.osradar.com/wp-content/uploads/2020/02/2-6.png 847w, https://www.osradar.com/wp-content/uploads/2020/02/2-6-300x121.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/2-6-768x309.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/2-6-696x280.png 696w" sizes="(max-width: 847px) 100vw, 847px" /><figcaption id="caption-attachment-18121" class="wp-caption-text">2.- Install SQLite on FreeBSD 12</figcaption></figure>
<p>Once the installation is finished, we proceed to show the version of the program.</p>
<pre>:~$ sqlite3 --version</pre>
<figure id="attachment_18122" aria-describedby="caption-attachment-18122" style="width: 799px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18122" src="https://www.osradar.com/wp-content/uploads/2020/02/3-6.png" alt="3.- SQLite version" width="799" height="109" srcset="https://www.osradar.com/wp-content/uploads/2020/02/3-6.png 799w, https://www.osradar.com/wp-content/uploads/2020/02/3-6-300x41.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/3-6-768x105.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/3-6-696x95.png 696w" sizes="(max-width: 799px) 100vw, 799px" /><figcaption id="caption-attachment-18122" class="wp-caption-text">3.- SQLite version</figcaption></figure>
<p>Now let&#8217;s use it a little.</p>
<h2>Using SQLite</h2>
<p>Now that it is installed, we can create a new database in the following way:</p>
<pre>:~$ sqlite3 example.db</pre>
<p>In this case, it&#8217;s called example.db but you can give it another name.</p>
<p>Inside it, we&#8217;ll be able to create a table with several fields.</p>
<p>For example:</p>
<pre>CREATE TABLE Student<br>(<br>Go VARCHAR(25) NOT NULL,<br>Name VARCHAR(25) NOT NULL,<br>Last_Name VARCHAR(25) NOT NULL,<br>Age INTEGER(2) NOT NULL,<br>CONSTRAINT pk_Student PRIMARY KEY (Id)<br>);</pre>
<figure id="attachment_18123" aria-describedby="caption-attachment-18123" style="width: 725px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18123" src="https://www.osradar.com/wp-content/uploads/2020/02/4-5.png" alt="4.- Using SQLite on FreeBSD 12" width="725" height="227" srcset="https://www.osradar.com/wp-content/uploads/2020/02/4-5.png 725w, https://www.osradar.com/wp-content/uploads/2020/02/4-5-300x94.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/4-5-696x218.png 696w" sizes="(max-width: 725px) 100vw, 725px" /><figcaption id="caption-attachment-18123" class="wp-caption-text">4.- Using SQLite on FreeBSD 12</figcaption></figure>
<p>Of course, you can modify these values as you wish. Even add more.</p>
<p>Also, we&#8217;ll add some example data:</p>
<pre>INSERT INTO Student (Id, Name, Last_Name, Age) VALUES ('Xy01','peter','bees',18);</pre>
<p>And finally, we show them:</p>
<pre>SELECT * FROM Student;</pre>
<figure id="attachment_18124" aria-describedby="caption-attachment-18124" style="width: 439px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18124" src="https://www.osradar.com/wp-content/uploads/2020/02/5-6.png" alt="5.- SQLite on FreeBSD " width="439" height="109" srcset="https://www.osradar.com/wp-content/uploads/2020/02/5-6.png 439w, https://www.osradar.com/wp-content/uploads/2020/02/5-6-300x74.png 300w" sizes="(max-width: 439px) 100vw, 439px" /><figcaption id="caption-attachment-18124" class="wp-caption-text">5.- SQLite on FreeBSD</figcaption></figure>
<p>And that is it.</p>
<p>Remember that you can install SQLite Browse from the official repositories of almost all Linux distributions as well as on FreeBSD.</p>
<h2>Conclusion</h2>
<p>SQLite is a great database application and if we learn to use it, it would be a great help for our projects. Installing it is very easy and gives us a lot of work possibilities. In addition, the SQLite Browser makes the workflow too easy.</p>
<p>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-sqlite-on-freebsd-12/">How to install SQLite 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-sqlite-on-freebsd-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to set up vsftpd on FreeBSD 12?</title>
		<link>https://www.osradar.com/how-to-set-up-vsftpd-on-freebsd-12/</link>
					<comments>https://www.osradar.com/how-to-set-up-vsftpd-on-freebsd-12/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 13 Feb 2020 00:11:00 +0000</pubDate>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[freebsd 12]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[ftp server]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[vsftpd]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=18092</guid>

					<description><![CDATA[<p>An FTP server, although for many it can be a bit old-fashioned, is quite useful. Especially in computer networks where you need to share files internally. Or even if we are in a house with several computers, it would also be useful. Best of all, it is still easy to set up one and more [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-set-up-vsftpd-on-freebsd-12/">How to set up vsftpd 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>An FTP server, although for many it can be a bit old-fashioned, is quite useful. Especially in computer networks where you need to share files internally. Or even if we are in a house with several computers, it would also be useful. Best of all, it is still easy to set up one and more on FreeBSD 12.<strong> So in this post, you will learn how to set up <a href="https://security.appspot.com/vsftpd.html" target="_blank" rel="noopener noreferrer">vsftpd</a> on FreeBSD 12.</strong></p>
<h2>Set up vsftpd on FreeBSD 12</h2>
<p>Before starting with this installation, it is convenient to have sudo enabled for your regular user. It is not mandatory, but this will avoid working directly with the root user.</p>
<p>So, 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>We will also have to install the nano text editor to make file editing easier:</p>
<pre>:~$ sudo pkg install nano</pre>
<p>With this, we&#8217;ll be able to work quietly.</p>
<h3>1.- Install vsftpd on FreeBSD 12</h3>
<p>First, you need to install vvsftpd on FreeBSD 12.</p>
<p>So, open the terminal and navigate to the folder where the port is.</p>
<pre>:~$ cd /usr/ports/ftp/vsftp</pre>
<p>Then, install it with the following command:</p>
<pre>:~$ sudo make install clean</pre>
<figure id="attachment_18106" aria-describedby="caption-attachment-18106" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18106" src="https://www.osradar.com/wp-content/uploads/2020/02/1-5.png" alt="1.- Installing vsftpd on FreeBSD 12" width="1365" height="654" srcset="https://www.osradar.com/wp-content/uploads/2020/02/1-5.png 1365w, https://www.osradar.com/wp-content/uploads/2020/02/1-5-300x144.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/1-5-1024x491.png 1024w, https://www.osradar.com/wp-content/uploads/2020/02/1-5-768x368.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/1-5-696x333.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/1-5-1068x512.png 1068w, https://www.osradar.com/wp-content/uploads/2020/02/1-5-877x420.png 877w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-18106" class="wp-caption-text">1.- Installing vsftpd on FreeBSD 12</figcaption></figure>
<p>During the installation process, you will see a screen as in the image above. You can leave everything as it is.</p>
<p>At the end of the installation, you will see an image similar to this:</p>
<figure id="attachment_18107" aria-describedby="caption-attachment-18107" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18107" src="https://www.osradar.com/wp-content/uploads/2020/02/2-5.png" alt="2.- vsftpd installed" width="1365" height="711" srcset="https://www.osradar.com/wp-content/uploads/2020/02/2-5.png 1365w, https://www.osradar.com/wp-content/uploads/2020/02/2-5-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/2-5-1024x533.png 1024w, https://www.osradar.com/wp-content/uploads/2020/02/2-5-768x400.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/2-5-696x363.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/2-5-1068x556.png 1068w, https://www.osradar.com/wp-content/uploads/2020/02/2-5-806x420.png 806w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-18107" class="wp-caption-text">2.- vsftpd installed</figcaption></figure>
<p>Now install another port to increase the security of vsftpd.</p>
<pre>:~$ cd /usr/ports/security/pam_pwdfile<br />:~$ sudo make install clean<br />===&gt;  Staging for pam_pwdfile-1.0<br />===&gt;   Generating temporary packing list<br />install  -s -o root -g wheel -m 444   -S  pam_pwdfile.so /usr/ports/security/pam_pwdfile/work/stage/usr/local/lib/<br />====&gt; Compressing man pages (compress-man)<br />===&gt;  Installing for pam_pwdfile-1.0<br />===&gt;  Checking if pam_pwdfile is already installed<br />===&gt;   Registering installation for pam_pwdfile-1.0<br />Installing pam_pwdfile-1.0...<br />===&gt;  Cleaning for pam_pwdfile-1.0<br /><br /></pre>
<p>As in the vsftpd installation, you will see an image where you can add a feature or not. Just keep it as it is.</p>
<figure id="attachment_18108" aria-describedby="caption-attachment-18108" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18108" src="https://www.osradar.com/wp-content/uploads/2020/02/3-5.png" alt="3.- Installing pam port" width="1365" height="670" srcset="https://www.osradar.com/wp-content/uploads/2020/02/3-5.png 1365w, https://www.osradar.com/wp-content/uploads/2020/02/3-5-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/3-5-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2020/02/3-5-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/3-5-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2020/02/3-5-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2020/02/3-5-696x342.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/3-5-1068x524.png 1068w, https://www.osradar.com/wp-content/uploads/2020/02/3-5-856x420.png 856w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-18108" class="wp-caption-text">3.- Installing pam port</figcaption></figure>
<p>To authenticate vsftpd users correctly, we have to add some lines to a pam.d configuration file</p>
<pre>:~$ sudo nano /etc/pam.d/vsftpd<br />auth required /usr/local/lib/pam_pwdfile.so pwdfile /usr/local/etc/vsftpd_login.db<br />account required /usr/lib/pam_permit.so</pre>
<figure id="attachment_18109" aria-describedby="caption-attachment-18109" style="width: 986px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18109" src="https://www.osradar.com/wp-content/uploads/2020/02/4-4.png" alt="4.- Configuring pam to work with vsftpd" width="986" height="323" srcset="https://www.osradar.com/wp-content/uploads/2020/02/4-4.png 986w, https://www.osradar.com/wp-content/uploads/2020/02/4-4-300x98.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/4-4-768x252.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/4-4-696x228.png 696w" sizes="(max-width: 986px) 100vw, 986px" /><figcaption id="caption-attachment-18109" class="wp-caption-text">4.- Configuring pam to work with vsftpd</figcaption></figure>
<p>Save the changes and close the file.</p>
<h3>2.- Configuring vsftpd to work properly</h3>
<p>Once vsftpd is installed, you have to make settings so you can start and work properly.</p>
<p>First of all, you have to create a new user on the system so you can use the server.</p>
<pre>:~$ sudo adduser -v</pre>
<p>And then, complete the information with the values you want.</p>
<pre>Username: angeloftp<br />Full name: angelo<br />Uid (Leave empty for default): <br />Login group [angeloftp]: <br />Login group is angeloftp. Invite angeloftp into other groups? []: <br />Login class [default]: <br />Shell (sh csh tcsh nologin) [sh]: nologin<br />Home directory [/home/angeloftp]: <br />Home directory permissions (Leave empty for default): <br />Use password-based authentication? [yes]: <br />Use an empty password? (yes/no) [no]: <br />Use a random password? (yes/no) [no]: <br />Enter password: <br />Enter password again: <br />Lock out the account after creation? [no]: <br />Username   : angeloftp<br />Password   : *****<br />Full Name  : angelo<br />Uid        : 1003<br />Class      : <br />Groups     : angeloftp <br />Home       : /home/angeloftp<br />Home Mode  : <br />Shell      : /usr/sbin/nologin<br />Locked     : no<br />OK? (yes/no): yes<br />adduser: INFO: Successfully added (angeloftp) to the user database.<br />Add another user? (yes/no): no<br />Goodbye!</pre>
<figure id="attachment_18110" aria-describedby="caption-attachment-18110" style="width: 817px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-18110 size-full" src="https://www.osradar.com/wp-content/uploads/2020/02/5-5.png" alt="5.- Creating a new user for vsftpd on freebsd 12" width="817" height="547" srcset="https://www.osradar.com/wp-content/uploads/2020/02/5-5.png 817w, https://www.osradar.com/wp-content/uploads/2020/02/5-5-300x201.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/5-5-768x514.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/5-5-696x466.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/5-5-627x420.png 627w" sizes="(max-width: 817px) 100vw, 817px" /><figcaption id="caption-attachment-18110" class="wp-caption-text">5.- Creating a new user for vsftpd on freebsd 12</figcaption></figure>
<p>So, you can modify the user and password parameters. The rest you can keep the same.</p>
<p>Now, let&#8217;s modify the vsftpd configuration file. In this file are all the settings we can have. Before modifying it, let&#8217;s make a backup of it:</p>
<pre>:~$ sudo mv /usr/local/etc/vsftpd.conf /usr/local/etc/vsftpd.conf.bak</pre>
<p>And now, yes, you proceed to modify it:</p>
<pre>:~$ sudo nano /usr/local/etc/vsftpd.conf</pre>
<p>In my case, the configuration that works for me without problems is the following:</p>
<pre>anonymous_enable=NO<br />anon_upload_enable=NO<br />anon_mkdir_write_enable=NO<br />local_enable=YES<br />write_enable=YES<br />listen_port=21<br />dirmessage_enable=YES<br />xferlog_enable=YES<br />connect_from_port_20=YES<br />xferlog_file=/var/log/vsftpd.log<br />xferlog_std_format=YES<br />secure_chroot_dir=/usr/local/share/vsftpd/empty<br />max_clients=200<br />max_per_ip=100<br />chroot_local_user=YES<br />text_userdb_names=YES<br />force_dot_files=NO<br />anon_root=/home/ftp<br />async_abor_enable=YES<br />use_localtime=YES<br />listen=YES<br />background=YES<br />allow_writeable_chroot=YES</pre>
<figure id="attachment_18111" aria-describedby="caption-attachment-18111" style="width: 931px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18111" src="https://www.osradar.com/wp-content/uploads/2020/02/6-2.png" alt="6.- Configuring vsftp on FreeBSD 12" width="931" height="451" srcset="https://www.osradar.com/wp-content/uploads/2020/02/6-2.png 931w, https://www.osradar.com/wp-content/uploads/2020/02/6-2-300x145.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/6-2-768x372.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/6-2-696x337.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/6-2-867x420.png 867w" sizes="(max-width: 931px) 100vw, 931px" /><figcaption id="caption-attachment-18111" class="wp-caption-text">6.- Configuring vsftp on FreeBSD 12</figcaption></figure>
<p>Of course, this is an example. You can always explore other options and for that we refer you to the <a href="https://security.appspot.com/vsftpd/vsftpd_conf.html" target="_blank" rel="noopener noreferrer">vsftp official documentation</a>.</p>
<p>Again, save the changes and close the file.</p>
<p>Now you have to add users to vsftpd, but first you have to create the file where the users and their passwords will be. To do this, we&#8217;ll use a tool called <strong>htpasswd</strong>. And use this command:</p>
<pre>:~$ sudo htpasswd -c -b /usr/local/etc/vsftpd_login.db [username] [password]</pre>
<p>Changes the permissions of the created file:</p>
<pre>:~$ sudo chmod 0600 /usr/local/etc/vsftpd_login.db</pre>
<p>In username and password replace it with the user we created earlier.</p>
<p>In case htpasswd is not available, you can get it by installing the apache web server.</p>
<pre>:~$ sudo pkg install apache24<br />Updating FreeBSD repository catalogue...<br />FreeBSD repository is up to date.<br />All repositories are up to date.<br />The following 8 package(s) will be affected (of 0 checked):<br /><br />New packages to be INSTALLED:<br />	apache24: 2.4.41<br />	libnghttp2: 1.40.0<br />	libxml2: 2.9.10<br />	expat: 2.2.8<br />	pcre: 8.43_2<br />	apr: 1.7.0.1.6.1<br />	gdbm: 1.18.1_1<br />	db5: 5.3.28_7<br /><br />Number of packages to be installed: 8<br /><br />The process will require 92 MiB more space.<br />20 MiB to be downloaded.<br /><br />Proceed with this action? [y/N]:</pre>
<p>If you want to add new users, you can do it with the following command:</p>
<pre>:~$ sudo htpasswd -b /usr/local/etc/vsftpd_login.db USERNAME PASSWORD</pre>
<p>Configure vsftpd to start with the system by editing the following file</p>
<pre>:~$ sudo nano /etc/rc.conf</pre>
<p>And in it he adds the following:</p>
<pre>vsftpd_enable="YES"</pre>
<p>Finally, the vsftpd service starts.</p>
<pre>:~$ sudo /usr/local/etc/rc.d/vsftpd start</pre>
<p>Now the creature is alive.</p>
<h3>Access to the FTP server</h3>
<p>Now that the service is working, we have to test it. Open your favorite web browser and go to <em>ftp://server-ip.</em></p>
<p>First you will need to enter your username and password and then you will see the following:</p>
<figure id="attachment_18113" aria-describedby="caption-attachment-18113" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18113" src="https://www.osradar.com/wp-content/uploads/2020/02/8-1.png" alt="8.- FTP server running" width="1366" height="669" srcset="https://www.osradar.com/wp-content/uploads/2020/02/8-1.png 1366w, https://www.osradar.com/wp-content/uploads/2020/02/8-1-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/8-1-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2020/02/8-1-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/8-1-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2020/02/8-1-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2020/02/8-1-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/8-1-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2020/02/8-1-858x420.png 858w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-18113" class="wp-caption-text">8.- FTP server running</figcaption></figure>
<p>You can also use a graphic client on your computer like <a href="https://filezilla-project.org/" target="_blank" rel="noopener noreferrer">Filezilla</a>.</p>
<p>Add a new connection and type in your credentials:</p>
<figure id="attachment_18114" aria-describedby="caption-attachment-18114" style="width: 1196px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18114" src="https://www.osradar.com/wp-content/uploads/2020/02/9-1.png" alt="9.- Filezilla" width="1196" height="713" srcset="https://www.osradar.com/wp-content/uploads/2020/02/9-1.png 1196w, https://www.osradar.com/wp-content/uploads/2020/02/9-1-300x179.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/9-1-1024x610.png 1024w, https://www.osradar.com/wp-content/uploads/2020/02/9-1-768x458.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/9-1-696x415.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/9-1-1068x637.png 1068w, https://www.osradar.com/wp-content/uploads/2020/02/9-1-705x420.png 705w" sizes="(max-width: 1196px) 100vw, 1196px" /><figcaption id="caption-attachment-18114" class="wp-caption-text">9.- Filezilla</figcaption></figure>
<p>After accepting the connection and entering the password, it will connect. And as you can see, everything has been successful:</p>
<figure id="attachment_18115" aria-describedby="caption-attachment-18115" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18115" src="https://www.osradar.com/wp-content/uploads/2020/02/10-1.png" alt="10.- vsftpd working properly" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2020/02/10-1.png 1366w, https://www.osradar.com/wp-content/uploads/2020/02/10-1-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/10-1-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2020/02/10-1-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/10-1-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/10-1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2020/02/10-1-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-18115" class="wp-caption-text">10.- vsftpd working properly</figcaption></figure>
<p>So, everything&#8217;s in order.</p>
<h2>Conclusion</h2>
<p>An FTP server on FreeBSD can be a secure alternative for sharing files on a network. It is as easy to set up as you have seen it today.</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-set-up-vsftpd-on-freebsd-12/">How to set up vsftpd 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-set-up-vsftpd-on-freebsd-12/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
