<?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>ubuntu Archives - Installing.in</title>
	<atom:link href="https://www.installing.in/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.installing.in/tag/ubuntu/</link>
	<description></description>
	<lastBuildDate>Tue, 21 Mar 2023 03:54:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
<site xmlns="com-wordpress:feed-additions:1">110734269</site>	<item>
		<title>[Solved] Error: Note, selecting &#8216;cmdtest&#8217; instead of &#8216;yarn&#8217;</title>
		<link>https://www.installing.in/solved-error-note-selecting-cmdtest-instead-of-yarn/</link>
					<comments>https://www.installing.in/solved-error-note-selecting-cmdtest-instead-of-yarn/#respond</comments>
		
		<dc:creator><![CDATA[Rajeev]]></dc:creator>
		<pubDate>Mon, 20 Mar 2023 08:43:22 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[node]]></category>
		<category><![CDATA[npm]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[yarn]]></category>
		<guid isPermaLink="false">https://www.installing.in/?p=837</guid>

					<description><![CDATA[<p>If you are trying to install yarn dependency manager you might face this error that Ubuntu fails to install yarn and goes on to suggest or install cmdtest. Note, selecting... </p>
<p>The post <a href="https://www.installing.in/solved-error-note-selecting-cmdtest-instead-of-yarn/">[Solved] Error: Note, selecting &#8216;cmdtest&#8217; instead of &#8216;yarn&#8217;</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>If you are trying to install <code>yarn</code> dependency manager you might face this error that Ubuntu fails to install <code>yarn </code>and goes on to suggest or install <code>cmdtest</code>.</p>



<p><code>Note, selecting 'cmdtest' instead of 'yarn'</code></p>



<p>This is because there is a different <code>yarn </code>that is part on <code>cmdtest </code>package and is older than the <code>yarn</code> you are trying to install.</p>



<p> </p>



<figure class="wp-block-image size-full"><a href="https://i0.wp.com/www.installing.in/wp-content/uploads/2023/03/cmdtest_instead_of_arn_error.png?ssl=1"><img data-recalc-dims="1" fetchpriority="high" decoding="async" width="668" height="164" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2023/03/cmdtest_instead_of_arn_error.png?resize=668%2C164&#038;ssl=1" alt="" class="wp-image-838"/></a></figure>



<p>Solving this very simple. Instead of installing via <code>apt</code> or <code>apt-get</code> install it via npm</p>



<pre class="wp-block-code"><code>sudo npm install -g yarn</code></pre>



<p>You can now check the version of <code>yarn</code> with this command</p>



<pre class="wp-block-code"><code>yarn -v</code></pre>



<figure class="wp-block-image size-full"><a href="https://i0.wp.com/www.installing.in/wp-content/uploads/2023/03/cmdtest_yarn_fixed.png?ssl=1"><img data-recalc-dims="1" decoding="async" width="701" height="163" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2023/03/cmdtest_yarn_fixed.png?resize=701%2C163&#038;ssl=1" alt="" class="wp-image-839"/></a></figure>



<p>That&#8217;s it.</p>
<p>The post <a href="https://www.installing.in/solved-error-note-selecting-cmdtest-instead-of-yarn/">[Solved] Error: Note, selecting &#8216;cmdtest&#8217; instead of &#8216;yarn&#8217;</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.installing.in/solved-error-note-selecting-cmdtest-instead-of-yarn/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">837</post-id>	</item>
		<item>
		<title>How to Install WSL2 on Windows</title>
		<link>https://www.installing.in/how-to-install-wsl2-on-windows/</link>
					<comments>https://www.installing.in/how-to-install-wsl2-on-windows/#respond</comments>
		
		<dc:creator><![CDATA[Rajeev]]></dc:creator>
		<pubDate>Sat, 20 Aug 2022 12:20:56 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[WSL]]></category>
		<category><![CDATA[WSL2]]></category>
		<guid isPermaLink="false">https://www.installing.in/?p=806</guid>

					<description><![CDATA[<p>Easy to follow step by step guide to install WSL2 or Windows Subsystem for Linux on windows. </p>
<p>The post <a href="https://www.installing.in/how-to-install-wsl2-on-windows/">How to Install WSL2 on Windows</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>WSL or <a href="https://docs.microsoft.com/en-us/windows/wsl/about" target="_blank" rel="noreferrer noopener">Windows Subsystem for Linux</a> lets developers run Linux environment on windows. You can run Linux tools and apps on windows with the help on WSL. There are two versions of WSL and we will install WSL2 in this tutorial which is the latest version and is recommended by Microsoft.</p>



<p>There are multiple ways to install WSL. You can directly download an Linux distribution from windows store and it will install WSL2 and your chosen Linux distribution. </p>



<p>The way recommended by Microsoft is by using command line. In this tutorial we will install WSL using command prompt.</p>



<h3 class="wp-block-heading">Step 1: Open command prompt</h3>



<p>Type <code>command prompt</code> in the search box on the taskbar. If you do not have a search box then you can click on the search icon and start typing. If you do not have that too. You can click on the windows button and start typing command prompt to search for it.</p>



<p>Once you find the <code>command prompt</code> right click on it and click on the <code>run as administrator</code> on the popup menu.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://i0.wp.com/www.installing.in/wp-content/uploads/2022/08/command-prompt.jpg?ssl=1"><img data-recalc-dims="1" decoding="async" width="760" height="555" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2022/08/command-prompt.jpg?resize=760%2C555&#038;ssl=1" alt="" class="wp-image-807"/></a></figure>
</div>


<h3 class="wp-block-heading">Step 2: Install WSL2</h3>



<p>Run following command in the command prompt window to install WSL2. This command will also install ubuntu which is the default Linux distro for WSL. You can always install other distros afterward.</p>



<pre class="wp-block-code"><code>wsl --install</code></pre>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://i0.wp.com/www.installing.in/wp-content/uploads/2022/08/command-prompt-wsl-install.jpg?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" width="626" height="169" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2022/08/command-prompt-wsl-install.jpg?resize=626%2C169&#038;ssl=1" alt="" class="wp-image-808"/></a></figure>
</div>


<p>Windows will start downloading and installing the WSL2 and then Ubuntu to set up the Linux environment. </p>



<h3 class="wp-block-heading">Step 3: Set up UNIX user and password</h3>



<p>After the installation it will ask for a <code>Unix username</code>. You can choose any username it does not have to be same as windows username. Type your username and press<code> enter</code>.</p>



<p>After the username it will ask for <code>password</code>. Type a password of your choice for this user and press enter.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="760" height="127" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2022/08/ubuntuinstall-1.png?resize=760%2C127&#038;ssl=1" alt="ubuntu install choose username" class="wp-image-811"/></figure>
</div>


<p>If everything goes well WSL2 and ubuntu will be successfully installed on your system.</p>



<p>You can verify WSL by using this command</p>



<pre class="wp-block-code"><code>wsl --status </code></pre>



<p>This is will you a screen like the pic below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://i0.wp.com/www.installing.in/wp-content/uploads/2022/08/WSL_confirm.jpg?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2022/08/WSL_confirm.jpg?resize=566%2C262&#038;ssl=1" alt="" class="wp-image-813" width="566" height="262"/></a></figure>
</div>


<p>I you face any problem please comment below.</p>
<p>The post <a href="https://www.installing.in/how-to-install-wsl2-on-windows/">How to Install WSL2 on Windows</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.installing.in/how-to-install-wsl2-on-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">806</post-id>	</item>
		<item>
		<title>[Solved] Ubuntu refusing connection on port 80</title>
		<link>https://www.installing.in/solved-ubuntu-refusing-connection-on-port-80/</link>
					<comments>https://www.installing.in/solved-ubuntu-refusing-connection-on-port-80/#respond</comments>
		
		<dc:creator><![CDATA[Rajeev]]></dc:creator>
		<pubDate>Sat, 13 Aug 2022 20:13:28 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ufw]]></category>
		<guid isPermaLink="false">https://www.installing.in/?p=793</guid>

					<description><![CDATA[<p>I was getting this issue that I was not able to connect to port 80 on ubuntu server. Same virtual network settings were being used with a different instance but... </p>
<p>The post <a href="https://www.installing.in/solved-ubuntu-refusing-connection-on-port-80/">[Solved] Ubuntu refusing connection on port 80</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>I was getting this issue that I was not able to connect to port 80 on ubuntu server. Same virtual network settings were being used with a different instance but everything was working fine on it. I figured the problem is in the instance settings.</p>



<p>I searched through the web but nothing was working. So I decided to go through the server log. I know I should have done this first.</p>



<p>I found these lines in the <code>syslog</code> file:</p>



<figure class="wp-block-image size-large"><a href="https://i0.wp.com/www.installing.in/wp-content/uploads/2022/08/iptable_persistent_flush.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" width="760" height="161" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2022/08/iptable_persistent_flush.png?resize=760%2C161&#038;ssl=1" alt="" class="wp-image-794"/></a></figure>



<p> The issue was in iptables and I needed to flush it</p>



<p>I ran the command highlighted in the the image above</p>



<pre class="wp-block-preformatted">/usr/sbin/netfilter-persistent flush </pre>



<p>It gave following output</p>



<figure class="wp-block-image size-full"><a href="https://i0.wp.com/www.installing.in/wp-content/uploads/2022/08/iptable-flush.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" width="757" height="130" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2022/08/iptable-flush.png?resize=757%2C130&#038;ssl=1" alt="" class="wp-image-795"/></a></figure>



<p>I tried to to connect to the port 80 and the default nginx page loaded in browser.</p>



<p>Problem solved.</p>



<p>But doing this messed up my OpenVPN server. OpenVPN client was connecting but internet was not accessible.</p>



<p>So I rebooted the system to see if it fixes the problem. </p>



<p>It did fixed OpenVPN. </p>



<p>But again port 80 was inaccessible.</p>



<p>I checked the status of <code>ufw</code> and it was disable. I had enabled it before I rebooted. Iptable rules were all reset. I googled why <code>ufw </code>was disabled and found<code> iptables-persistent </code>conflicts with <code>ufw</code>.</p>



<p>I disabled <code>iptables-persisten</code>t using this command</p>



<pre class="wp-block-preformatted">sudo systemctl disable netfilter-persistent</pre>



<p>I rebooted the system again and this time <code>ufw</code> stayed enabled and I was able to access the port 80 and also OpenVPN was working as intended.</p>



<p></p>
<p>The post <a href="https://www.installing.in/solved-ubuntu-refusing-connection-on-port-80/">[Solved] Ubuntu refusing connection on port 80</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.installing.in/solved-ubuntu-refusing-connection-on-port-80/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">793</post-id>	</item>
		<item>
		<title>How to Install Nodejs on Ubuntu 20.04</title>
		<link>https://www.installing.in/how-to-install-nodejs-on-ubuntu-20-04/</link>
					<comments>https://www.installing.in/how-to-install-nodejs-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[Rajeev]]></dc:creator>
		<pubDate>Wed, 29 Jul 2020 13:08:17 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[nodeJs]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.installing.in/?p=666</guid>

					<description><![CDATA[<p>Nodejs is a javascript runtime environment that got popular very quickly. It has got a huge developer community and is still developing very fast. Nodejs can be installed directly from... </p>
<p>The post <a href="https://www.installing.in/how-to-install-nodejs-on-ubuntu-20-04/">How to Install Nodejs on Ubuntu 20.04</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Nodejs is a javascript runtime environment that got popular very quickly. It has got a huge developer community and is still developing very fast.</p>
<p>Nodejs can be installed directly from Ubuntu&#8217;s repository or can be installed from the Nodesource repository. As mentioned above it is developing very fast it is advisable to install it from the Nodesource repository as it contains all the latest updates.</p>
<p>We will be using the Nodesource repository to install Nodejs in this guide. Also, we will be installing the LTS version of nodejs which is 12.x currently. If you want to install the latest version you can <a href="https://github.com/nodesource/distributions/blob/master/README.md" target="_blank" rel="noopener noreferrer">check here</a> for the versions available.</p>
<p>Let&#8217;s start installing Nodejs</p>
<p><div  id="_ytid_52172"  width="760" height="428"  data-origwidth="760" data-origheight="428" data-facadesrc="https://www.youtube.com/embed/zl0Ge_QsSls?enablejsapi=1&autoplay=0&cc_load_policy=0&cc_lang_pref=&iv_load_policy=1&loop=0&rel=1&fs=1&playsinline=0&autohide=2&theme=dark&color=red&controls=1&disablekb=0&" class="__youtube_prefs__ epyt-facade no-lazyload" data-epautoplay="1" ><img data-recalc-dims="1" decoding="async" data-spai-excluded="true" class="epyt-facade-poster skip-lazy" loading="lazy"  alt="YouTube player"  src="https://i0.wp.com/i.ytimg.com/vi/zl0Ge_QsSls/maxresdefault.jpg?w=760&#038;ssl=1"  /><button class="epyt-facade-play" aria-label="Play"><svg data-no-lazy="1" height="100%" version="1.1" viewBox="0 0 68 48" width="100%"><path class="ytp-large-play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" fill="#f00"></path><path d="M 45,24 27,14 27,34" fill="#fff"></path></svg></button></div></p>
<p><strong>Step 1: Update your OS:</strong></p>
<p>Doing this is a good practice before installing any new package. Use these commands to update your system</p>
<pre>sudo apt update</pre>
<pre>sudo apt upgrade</pre>
<p><strong>Step 2: Add Nodesource Repository</strong></p>
<p>Good people at Nodesource have written this bash script that makes sit easier to add the repository. Download and run the script by using this command</p>
<pre>curl -sL https://deb.nodesource.com/setup_<span style="color: #ff0000;">lts</span>.x | sudo -E bash -</pre>
<p>If you are installing any other version change the <span style="color: #ff0000;">text marked in red</span> with the version number in the above command.</p>
<p><strong>Step 3: Install Nodejs and npm&nbsp;</strong></p>
<p>Use the command below to install the nodejs package. It will also install the npm package that will help you download the nodejs libraries later on.</p>
<pre>sudo apt-get install -y nodejs</pre>
<p><strong>Step 4: Verify installation</strong></p>
<p>If everything goes well you will have Nodejs and npm installed on your system.</p>
<p>To check use following commands to verify the version of both npm and nodejs installed on your system.</p>
<p>For nodejs:</p>
<pre>node -v</pre>
<p>For npm</p>
<pre>npm -v</pre>
<p>If everything has gone well you will see something like this</p>
<p><a href="https://i0.wp.com/www.installing.in/wp-content/uploads/2020/07/install-nodejs-on-ubuntu.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="aligncenter size-full wp-image-670" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2020/07/install-nodejs-on-ubuntu.png?resize=665%2C437&#038;ssl=1" alt="install nodejs on ubuntu" width="665" height="437"></a></p>
<p>If you face any problem let me know in the comments below so we can fix the problem together.</p>
<p>The post <a href="https://www.installing.in/how-to-install-nodejs-on-ubuntu-20-04/">How to Install Nodejs on Ubuntu 20.04</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.installing.in/how-to-install-nodejs-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">666</post-id>	</item>
		<item>
		<title>Installing Percona MongoDB on Ubuntu 18.04</title>
		<link>https://www.installing.in/installing-percona-mongodb-on-ubuntu-18-04/</link>
					<comments>https://www.installing.in/installing-percona-mongodb-on-ubuntu-18-04/#respond</comments>
		
		<dc:creator><![CDATA[Rajeev]]></dc:creator>
		<pubDate>Sat, 21 Sep 2019 18:36:12 +0000</pubDate>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.installing.in/?p=509</guid>

					<description><![CDATA[<p>Percona Server for MongoDB is mostly the same as MongoDB server that you can install from the Ubuntu repository but percona mongodb comes with few additional features like pluggable storage... </p>
<p>The post <a href="https://www.installing.in/installing-percona-mongodb-on-ubuntu-18-04/">Installing Percona MongoDB on Ubuntu 18.04</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Percona Server for MongoDB is mostly the same as MongoDB server that you can install from the Ubuntu repository but percona mongodb comes with few additional features like pluggable storage engine API, hot backup and Percona&#8217;s memory engine.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-full wp-image-513" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2019/09/server-mongodb-big-1.png?resize=700%2C206&#038;ssl=1" alt="server-mongoDB-big" width="700" height="206" /></p>
<p>We can install it easily by adding the percona&#8217;s repository to ubuntu or by downloading the source and compiling it ourselves. For this guide, I will be using the first method because that makes upgrading very easy later on.</p>
<p>For this guide, I will be using a freshly created 1GB VPS from <a href="https://www.vultr.com/?ref=7841070-4F" target="_blank" rel="noopener noreferrer">Vultr</a> hosted in Singapore.</p>
<p>After logging into the server via SSH go through these steps using sudo if you are not logged in as root.</p>
<p><strong>Step 1: Add Percona&#8217;s repository:</strong></p>
<p>To add their repository percona has created a .deb file that we need to download and install. Let&#8217;s start by downloading the package with this command:</p>
<pre>wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb</pre>
<p>Now install this package with this command:</p>
<pre>dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb</pre>
<p>This will add the repository and other requirements.</p>
<p><strong>Step 2: Enable the repository:</strong></p>
<p>We need to enable this freshly added repository. To do so run this command:</p>
<pre>percona-release enable psmdb-42 release</pre>
<p>4.2 is the latest version at the time of writing and we are enabling repository for this version by the above command.</p>
<p><strong>Step 3: Install Percona MongoDB</strong></p>
<p>Update the local package information first</p>
<pre>apt update</pre>
<p>Now run this to install</p>
<pre>apt install percona-server-mongodb</pre>
<p>This will install the percona mongodb on your server and start it.</p>
<p>Check the status of mongodb by running this command:</p>
<pre><span class="pre">service</span> <span class="pre">mongod</span> <span class="pre">status</span></pre>
<p>You will see something like this</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-full wp-image-510" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2019/09/percona-mongodb.png?resize=686%2C424&#038;ssl=1" alt="percona mongodb" width="686" height="424" /></p>
<p>If the server is not running you can use this command to start</p>
<pre><span class="pre">service</span> <span class="pre">mongod</span> <span class="pre">start</span></pre>
<p>To stop the server you can use</p>
<pre><span class="pre">service</span> <span class="pre">mongod</span> <span class="pre">stop</span></pre>
<p>and to restart mongodb server</p>
<pre><span class="pre">service</span> <span class="pre">mongod</span> restart</pre>
<p>If you need to change the configuration MongoDB configuration file is located at /etc/mongod.conf</p>
<p>&nbsp;</p>
<p>The post <a href="https://www.installing.in/installing-percona-mongodb-on-ubuntu-18-04/">Installing Percona MongoDB on Ubuntu 18.04</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.installing.in/installing-percona-mongodb-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">509</post-id>	</item>
		<item>
		<title>How to install Openresty on Ubuntu 18.04</title>
		<link>https://www.installing.in/how-to-install-openresty-on-ubuntu-18-04/</link>
					<comments>https://www.installing.in/how-to-install-openresty-on-ubuntu-18-04/#comments</comments>
		
		<dc:creator><![CDATA[Rajeev]]></dc:creator>
		<pubDate>Fri, 08 Mar 2019 14:42:01 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://www.installing.in/?p=488</guid>

					<description><![CDATA[<p>Openresty is a web app server built on popular Nginx web server with lots of advanced features built-in. It is almost a drop-in replacement for Nginx. Openresty has many built-in... </p>
<p>The post <a href="https://www.installing.in/how-to-install-openresty-on-ubuntu-18-04/">How to install Openresty on Ubuntu 18.04</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Openresty is a web app server built on popular Nginx web server with lots of advanced features built-in. It is almost a drop-in replacement for Nginx.</p>
<p>Openresty has many built-in Nginx modules that make it a powerful web app server. A most popular feature of Openresty is built-in Lua programming language support. You can directly use Lua scripts inside the Nginx conf files. You can write a high performance web application in Lua without having to install any other package other then Openresty.</p>
<p>For this guide, I will be using a fresh 1GB server from <a href="https://www.vultr.com/?ref=7841070-4F" target="_blank" rel="noopener noreferrer">Vultr</a> hosted in Germany.</p>
<p>There are 2 ways to install Openresty. Either you can use the prebuilt binaries or you can download the source and compile it yourself.</p>
<p>For this guide, I will be using the first method as it is easier and also it makes it easier to update Openresty later.</p>
<p><strong>Step 1: Import the GPG key:</strong></p>
<p>We need to import a GPG key as the package we will be downloading is encrypted and this key helps in verifying the package&#8217;s authenticity. Run following command to download and add the GPG key from the Openresty official server.</p>
<pre>wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add -</pre>
<p><strong>Step 2: Add Openresty repository:</strong></p>
<p>Let us first add the apt-add-repository command</p>
<pre>sudo apt-get -y install software-properties-common</pre>
<p>Now run below command to add the repository. This command will detect the version of ubuntu you are using and add the appropriate repository.</p>
<pre>sudo add-apt-repository -y <span class="hljs-string">"deb http://openresty.org/package/ubuntu <span class="hljs-variable">$(lsb_release -sc)</span> main"</span></pre>
<p>Now you will have the official Openresty apt repository added to your system.</p>
<p><strong>Step 3: Install Openresty:</strong></p>
<p>First let&#8217;s update the apt index. Use this command to do so</p>
<pre>sudo apt-get update</pre>
<p>Now run this command to download and install the Openresty from its official repository</p>
<pre>sudo apt-get install openresty</pre>
<p>If everything goes well you will have Openresty successfully installed of your server.</p>
<p>Check it by visiting the IP address of your server. You will see a page like this:</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-full wp-image-493" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2019/03/openresty-welcome-page.png?resize=744%2C324&#038;ssl=1" alt="openresty_welcome_page" width="744" height="324"></p>
<p><em><strong>Bonus tip:</strong></em></p>
<p>If you are trying to replace previously installed Nginx with Openresty rather the installing it on fresh server then disable and stop the Nginx before following this tutorial.</p>
<p>Disable Nginx with this command</p>
<pre>sudo systemctl <span class="hljs-built_in">disable</span> nginx</pre>
<p>and stop Nginx with this command</p>
<pre>sudo systemctl stop nginx</pre>
<p>If you face any problem while installing openresty please let me know in the comments section so we can solve it together.</p>
<p>The post <a href="https://www.installing.in/how-to-install-openresty-on-ubuntu-18-04/">How to install Openresty on Ubuntu 18.04</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.installing.in/how-to-install-openresty-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">488</post-id>	</item>
		<item>
		<title>Installing Torrent Client on VPS : Transmission</title>
		<link>https://www.installing.in/installing-torrent-client-on-vps-transmission/</link>
					<comments>https://www.installing.in/installing-torrent-client-on-vps-transmission/#respond</comments>
		
		<dc:creator><![CDATA[Rajeev]]></dc:creator>
		<pubDate>Tue, 15 Aug 2017 13:21:41 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[torrent]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.installing.in/?p=107</guid>

					<description><![CDATA[<p>There are many torrent clients available that can be installed on a VPS and you can download files directly to your VPS and later transfer them to your local machine.... </p>
<p>The post <a href="https://www.installing.in/installing-torrent-client-on-vps-transmission/">Installing Torrent Client on VPS : Transmission</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>There are many torrent clients available that can be installed on a VPS and you can download files directly to your VPS and later transfer them to your local machine. In this tutorial, I will show you how to install the&nbsp;<a href="https://transmissionbt.com/" target="_blank" rel="noopener noreferrer">Transmission torrent client</a>.</p>
<p><a href="https://i0.wp.com/www.installing.in/wp-content/uploads/2017/08/transmission.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="aligncenter size-full wp-image-285" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2017/08/transmission.png?resize=720%2C300&#038;ssl=1" alt="transmission" width="720" height="300"></a></p>
<p>Transmission is a free and open-source torrent client with an easy graphic interface so you can add/remove the torrent from any web browser.</p>
<p>Why you may want to install a torrent client on a VPS rather than using a torrent client on your local machine:</p>
<ol>
<li>In most cases the bandwidth or the data available in your plan is limited. While downloading a torrent you use that data in both ways i.e. you upload content in addition to downloading. You end up using more data than what you have downloaded. VPSs come with a decent amount of bandwidth so it shouldn&#8217;t be a problem.</li>
<li>The speed of download also depends on the speed of upload. In most cases, a VPS has a &nbsp;better download and upload speed than your local connection. So you get the file on your VPS quickly that can later be transferred to your machine with a download manager. Also, you will get more speed downloading from your VPS.</li>
<li>You don&#8217;t have to keep your computer running for a long time if the download speed from the torrent is slow. With this setup, you start the download on your VPS and turn off your computer. The download will finish in the background. Later you can download at better speed to your local machine.</li>
</ol>
<blockquote><p>In this tutorial I am going to install transmission torrent client on ubuntu 16.04 VPS hosted on digitalocean (<a href="https://goo.gl/Of63YW" target="_blank" rel="noopener noreferrer">use this link to signup</a> and you will get $10 to test with).</p></blockquote>
<h2>Steps to Install:</h2>
<h3>1. Add transmission repository:</h3>
<p>Although transmission is available in ubuntu repository but adding transmission repository make it sure that you always have the latest and most secure transmission installed.</p>
<pre>sudo add-apt-repository ppa:transmissionbt/ppa</pre>
<p>Now update repositories by issuing this command</p>
<pre>sudo apt-get update</pre>
<h3>2. Install transmission:</h3>
<pre>sudo apt-get install transmission-cli transmission-common transmission-daemon</pre>
<p>This will install the transmission on your VPS and you can use it right away but a few other changes are must to make it more secure and function well.</p>
<h3>3. Securing transmission:</h3>
<p>There are few things to do to secure the transmission installation.</p>
<p>First, stop the transmission-daemon by issuing this command</p>
<pre>sudo service transmission-daemon stop</pre>
<p><strong>3a. Change default username and password:</strong></p>
<p>For now, the transmission is secured by default username and password and we need to change it. To do this we have to make some changes in&nbsp;/var/lib/transmission-daemon/info/settings.json file. Edit the settings.json file by using this command</p>
<pre>sudo nano /var/lib/transmission-daemon/info/settings.json</pre>
<p>This will open the file in nano.</p>
<p>Use arrow keys to locate these lines</p>
<pre>"rpc-password": "{62b16db87b89a91dd49a5110a7cafc06d20eb4f2wtK6kqPj",
<span id="line-2" class="anchor"></span>"rpc-username": "transmission",</pre>
<p>and <span style="color: #ff0000;">change the values for username and password</span> to your liking.</p>
<p>Don&#8217;t exit nano yet.</p>
<p><strong>3b. Whitelist your IP address:</strong></p>
<p>By default, you can access the transmission user interface via localhost only but we want to access it from your home computer as well so either you need to add your IP address to the whitelist or you can turn whitelist completely off. If your IP address keeps on changing then you will want to turn it off.</p>
<p>To <strong>add your IP address</strong> you simply need to add <a href="https://www.google.co.in/search?q=my+ip" target="_blank" rel="noopener noreferrer">your IP address</a> to this line separated with a comma(,). I have highlighted the part to be changed in red.</p>
<pre>"rpc-whitelist": "127.0.0.1<span style="color: #ff0000;">,192.168.52.45</span>",</pre>
<p>Or if you want to <strong>disable the whitelist</strong> completely locate this line with arrow keys</p>
<pre class="p1"><span class="s1">"rpc-whitelist-enabled":<span style="color: #ff0000;">true</span>,</span></pre>
<p><span style="color: #ff0000;">change the true to false</span>. This will disable the whitelist.</p>
<p><strong>3c. Fixing permission issues:</strong></p>
<p>Also, change the unmask parameter to make sure the permission to all folders is right.</p>
<p>Locate this line</p>
<pre>"umask": 18,</pre>
<p>and change the value 18 to 2</p>
<pre>"umask": 2,</pre>
<p>Your configuration file will look like this now. I have marked the lines with an arrow where you have changed. See I have disabled white list as I have a dynamic IP address.</p>
<p><a href="https://i0.wp.com/www.installing.in/wp-content/uploads/2017/08/transmission-conf.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="aligncenter wp-image-365" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2017/08/transmission-conf.png?resize=733%2C410&#038;ssl=1" alt="transmission_conf" width="733" height="410" srcset="https://i0.wp.com/www.installing.in/wp-content/uploads/2017/08/transmission-conf.png?w=1020&amp;ssl=1 1020w, https://i0.wp.com/www.installing.in/wp-content/uploads/2017/08/transmission-conf.png?resize=680%2C380&amp;ssl=1 680w" sizes="auto, (max-width: 733px) 100vw, 733px" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3>4. Save configuration file:</h3>
<p>To save the changes <span style="color: #ff0000;">press shift+X keys&nbsp;</span></p>
<p>and then <span style="color: #ff0000;">type Y</span> and <span style="color: #ff0000;">press enter</span>.</p>
<p><strong>5. Restart transmission:</strong></p>
<p>Now start the transmission-daemon again</p>
<pre>sudo service transmission-daemon start</pre>
<p><strong>Your transmission torrent client is ready to use now.</strong></p>
<h3>Accessing web interface</h3>
<p>To access transmission web interface just make sure port 9091 is not blocked and enter visit this web address:</p>
<p>http://<span style="color: #ff0000;">server-ip</span>:9091</p>
<p>change the red part with your VPS&#8217;s IP address.</p>
<p>You will see a screen like this.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="aligncenter wp-image-228 size-full" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2017/08/Window.png?resize=395%2C245&#038;ssl=1" alt="transmission login window" width="395" height="245"></p>
<p>Use the username and password you set in step 3a to login.</p>
<p>You will now see a screen like this</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="aligncenter wp-image-227 size-full" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2017/08/Transmission_Web_Interface.png?resize=744%2C613&#038;ssl=1" alt="Transmission_Web_Interface" width="744" height="613"></p>
<p>To add a torrent you will need to upload a torrent file or enter a magnet URL of the torrent to start the download. For example, I am using a torrent file for ubuntu-desktop addition.</p>
<p>Click on the file with the green arrow box (labeled&nbsp;<span style="color: #ff0000;">1</span>) at the top left corner and that will open this box</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="aligncenter wp-image-226 size-full" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2017/08/Transmission_Web_Interface_2.png?resize=744%2C613&#038;ssl=1" alt="Transmission_Web_Interface_upload" width="744" height="613"></p>
<p>if you have a torrent file select it by clicking on the button saying &#8220;Choose Files&#8221; (labeled&nbsp;<span style="color: #ff0000;">2</span>)</p>
<p>or if you have a magnet link you can enter it the box labeled&nbsp;<span style="color: #ff0000;">3.</span></p>
<p>Your files will be downloaded in the folder labeled as <span style="color: #ff0000;">5</span>.</p>
<p>Now click the upload button(labeled&nbsp;<span style="color: #ff0000;">4</span>) and your torrent download will start.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-225 size-full" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2017/08/Transmission_Web_Interface-3.png?resize=760%2C551&#038;ssl=1" alt="Transmission_Web_Interface downloading" width="760" height="551"></p>
<p>You will not see the right side window initially but if you double click on the torrent it will appear.</p>
<p>You can download the files using any FTP client to your local machine. I use <a href="https://cyberduck.io/?l=en" target="_blank" rel="noopener noreferrer">Cyberduck</a> on mac and <a href="https://winscp.net/eng/download.php" target="_blank" rel="noopener noreferrer">WinSCP</a> on windows. Both are free.</p>
<p><strong>That&#8217;s it.</strong></p>
<p>If you have any questions or suggestion <strong>please comment.</strong></p>
<p>The post <a href="https://www.installing.in/installing-torrent-client-on-vps-transmission/">Installing Torrent Client on VPS : Transmission</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.installing.in/installing-torrent-client-on-vps-transmission/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">107</post-id>	</item>
		<item>
		<title>How to install Letsencrypt with NobeBB and Nginx</title>
		<link>https://www.installing.in/how-to-install-letsencrypt-with-nobebb-and-nginx/</link>
					<comments>https://www.installing.in/how-to-install-letsencrypt-with-nobebb-and-nginx/#comments</comments>
		
		<dc:creator><![CDATA[Rajeev]]></dc:creator>
		<pubDate>Wed, 18 May 2016 16:41:47 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Webapp]]></category>
		<category><![CDATA[letsencrypt]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[nginx nodebb]]></category>
		<category><![CDATA[nodeBB]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.installing.in/?p=34</guid>

					<description><![CDATA[<p>In my last tutorial I wrote&#160;about how to install nodeBB on ubuntu 14.04 and use nginx as reverse proxy to serve nodeBB. In this tutorial we will install letsencrypt SSL... </p>
<p>The post <a href="https://www.installing.in/how-to-install-letsencrypt-with-nobebb-and-nginx/">How to install Letsencrypt with NobeBB and Nginx</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In my last tutorial I wrote&nbsp;about how to install nodeBB on ubuntu 14.04 and use nginx as reverse proxy to serve nodeBB. In this tutorial we will install letsencrypt SSL certificate to make sure our nodeBB forum is served over secure https connection.</p>
<p>In this series:</p>
<ul>
<li><a href="https://www.installing.in/how-to-install-nodebb-on-ubuntu-14-04/">How to Install NodeBB on Ubuntu 14.04&nbsp;</a>&nbsp;(Previous)</li>
<li><a href="https://www.installing.in/how-to-install-letsencrypt-with-nobebb-and-nginx/">How to install Letsencrypt with NobeBB and Nginx</a>&nbsp;(This tutorial)</li>
<li><a href="https://www.installing.in/how-to-set-up-letsencrypt-auto-renewal/">How to Set up Letsencrypt Auto Renewal</a>&nbsp;(Later)</li>
</ul>
<p><span style="line-height: 1.5;">Steps you need to follow:</span></p>
<ol>
<li>Install nodeBB forum</li>
<li>Install nginx server</li>
<li>Install letsencrypt client</li>
<li>Obtain&nbsp;letsencrypt SSL certificate</li>
<li>Configure nginx to to use the SSL certificate</li>
</ol>
<p><strong>For first and second steps see this tutorial &#8211;&gt;<a href="https://www.installing.in/how-to-install-nodebb-on-ubuntu-14-04/">How to Install NodeBB on Ubuntu 14.04</a>.</strong></p>
<h3>Install Letsencrypt client:</h3>
<p>Currently best way to install letsencrypt on ubuntu is to clone letsencrypt repository from github. So we will first install git and bc on our system.</p>
<pre>sudo apt-get update</pre>
<pre>sudo apt-get -y install git bc</pre>
<p>Now clone letsencrypt repository</p>
<pre>sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt

</pre>
<p>You can find copy of letsencrypt repository in the&nbsp;/opt/letsencrypt folder.</p>
<p>You have successfully installed letsencrypt client on your system.</p>
<h3>Obtain letsencrypt SSL certificate:</h3>
<p>We will be using Webroot plugin to obtain SSL certificate.</p>
<p>Webroot plugin works by placing a special file in the <code>/.well-known</code> directory within your document root, which letsencrypt will open for validation. You need to allow access to this <code>/.well-known</code> directory.</p>
<pre>sudo nano /etc/nginx/sites-available/default</pre>
<p>inside the nodebb server block we created in last tutorial add this location block:</p>
<pre> location ~ /.well-known {
          allow all;
 }</pre>
<p><a href="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/05/rv_%E2%80%94_root_nodebbtest___opt_letsencrypt_%E2%80%94_ssh_%E2%80%94_90%C3%9729.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="aligncenter size-full wp-image-41" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/05/rv_%E2%80%94_root_nodebbtest___opt_letsencrypt_%E2%80%94_ssh_%E2%80%94_90%C3%9729.png?resize=655%2C436&#038;ssl=1" alt="rv_—_root_nodebbtest___opt_letsencrypt_—_ssh_—_90×29" width="655" height="436"></a></p>
<p>press <code>ctrl+O</code> then <code>enter</code> to save</p>
<p>press <code>ctrl+x</code> to exit</p>
<p>Reload nginx to load the new configuration.</p>
<pre>sudo service nginx reload</pre>
<p>Now that we have done the initial setup it&#8217;s time to obtain the actual certificate.</p>
<p>Go to letsencrypt &nbsp;client directory by entering this command:</p>
<pre>cd /opt/letsencrypt</pre>
<p>Run this command to obtain certificate for your domain &nbsp;(replace <span style="color: #ff0000;">red text</span> with your domain):</p>
<pre>./letsencrypt-auto certonly -a webroot --webroot-path=<span class="highlight">/usr/share/nginx/html</span> -d <span class="highlight" style="color: #ff0000;">example.com</span> -d <span class="highlight" style="color: #ff0000;">www.example.com</span></pre>
<p>You will be prompted for some information. Exact prompts depends on whether you have used letsencrypt earlier on your system or not.</p>
<p>It will ask for your email address which will be used for notices and lost key recovery.</p>
<p><a href="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/05/rv_%E2%80%94_root_nodebbtest___opt_letsencrypt_%E2%80%94_ssh_%E2%80%94_95%C3%9725.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="aligncenter size-full wp-image-44" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/05/rv_%E2%80%94_root_nodebbtest___opt_letsencrypt_%E2%80%94_ssh_%E2%80%94_95%C3%9725.png?resize=690%2C380&#038;ssl=1" alt="rv_—_root_nodebbtest___opt_letsencrypt_—_ssh_—_95×25" width="690" height="380"></a></p>
<p>You will need to agree to Letsencrypt terms of service.</p>
<p><a href="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/05/rv_%E2%80%94_root_nodebbtest___opt_letsencrypt_%E2%80%94_ssh_%E2%80%94_95%C3%9725-2.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="aligncenter size-full wp-image-43" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/05/rv_%E2%80%94_root_nodebbtest___opt_letsencrypt_%E2%80%94_ssh_%E2%80%94_95%C3%9725-2.png?resize=690%2C380&#038;ssl=1" alt="rv_—_root_nodebbtest___opt_letsencrypt_—_ssh_—_95×25 2" width="690" height="380"></a></p>
<p>if everything goes successfully you will see something like this:</p>
<p><a href="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/05/rv_%E2%80%94_root_nodebbtest___opt_letsencrypt_%E2%80%94_ssh_%E2%80%94_93%C3%9711.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="aligncenter size-full wp-image-42" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/05/rv_%E2%80%94_root_nodebbtest___opt_letsencrypt_%E2%80%94_ssh_%E2%80%94_93%C3%9711.png?resize=676%2C184&#038;ssl=1" alt="rv_—_root_nodebbtest___opt_letsencrypt_—_ssh_—_93×11" width="676" height="184"></a></p>
<p>Note the path of your certificate. this is needed in next step.</p>
<h3>Configure nginx to to use the SSL certificate:</h3>
<p>Now we need to edit the nginx configuration so nginx uses the freshly generated SSL certificate to serve our nodeBB forum over https connection.</p>
<pre>sudo nano /etc/nginx/sites-available/default</pre>
<p>Delete the server block we created in last tutorial and replace it with the code block below.</p>
<p>Replace with your domain where&nbsp;marked red.</p>
<pre>server {
listen 80;
 server_name <span style="color: #ff0000;">example.com www.example.com</span>;
 return 301 https://$host$request_uri;
}
server {
 listen 443 ssl;
 server_name <span style="color: #ff0000;">example.com www.example.com</span>;
 ssl_certificate /etc/letsencrypt/live/<span style="color: #ff0000;">example.com</span>/fullchain.pem;
 ssl_certificate_key /etc/letsencrypt/live/<span style="color: #ff0000;">example.com</span>/privkey.pem;
 location / {
 proxy_set_header X-Real-IP $remote_addr;
 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 proxy_set_header Host $http_host;
 proxy_set_header X-NginX-Proxy true;
 proxy_pass http://127.0.0.1:4567/;
 proxy_redirect off;
 # Socket.IO Support
 proxy_http_version 1.1;
 proxy_set_header Upgrade $http_upgrade;
 proxy_set_header Connection "upgrade";
 }
 location ~ /.well-known {
 allow all;
 }
}

</pre>
<p>It should look like this:</p>
<p><a href="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/05/rv_%E2%80%94_root_nodebbtest___opt_letsencrypt_%E2%80%94_ssh_%E2%80%94_96%C3%9731-2.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="aligncenter size-full wp-image-45" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/05/rv_%E2%80%94_root_nodebbtest___opt_letsencrypt_%E2%80%94_ssh_%E2%80%94_96%C3%9731-2.png?resize=697%2C464&#038;ssl=1" alt="rv_—_root_nodebbtest___opt_letsencrypt_—_ssh_—_96×31 2" width="697" height="464"></a></p>
<p>Now reload nginx to put changes into effect.</p>
<pre>sudo service nginx reload

</pre>
<p>Check your forum by visiting it using https</p>
<pre>https://www.example.com</pre>
<p>&nbsp;</p>
<p><a href="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/05/Home___NodeBB.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="aligncenter size-full wp-image-40" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/05/Home___NodeBB.png?resize=760%2C471&#038;ssl=1" alt="Home___NodeBB" width="760" height="471"></a></p>
<p>Thats it. Hope it help</p>
<p>Next in series:</p>
<ul>
<li><a href="https://www.installing.in/how-to-set-up-letsencrypt-auto-renewal/">How to Set up Letsencrypt Auto Renewal</a></li>
</ul>
<p>The post <a href="https://www.installing.in/how-to-install-letsencrypt-with-nobebb-and-nginx/">How to install Letsencrypt with NobeBB and Nginx</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.installing.in/how-to-install-letsencrypt-with-nobebb-and-nginx/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">34</post-id>	</item>
		<item>
		<title>How to Install NodeBB on Ubuntu 14.04</title>
		<link>https://www.installing.in/how-to-install-nodebb-on-ubuntu-14-04/</link>
					<comments>https://www.installing.in/how-to-install-nodebb-on-ubuntu-14-04/#comments</comments>
		
		<dc:creator><![CDATA[Rajeev]]></dc:creator>
		<pubDate>Sat, 09 Apr 2016 10:57:57 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Webapp]]></category>
		<category><![CDATA[Forum]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[nodeBB]]></category>
		<category><![CDATA[nodeJs]]></category>
		<category><![CDATA[redis]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://271a0323-9bbc-4e9e-8d61-7bed7172bcce</guid>

					<description><![CDATA[<p>An updated version of this tutorial available at installation of nodeBB on ubuntu 16.04. I recommend you follow that. NodeBB is a modern style forum software built on latest technologies... </p>
<p>The post <a href="https://www.installing.in/how-to-install-nodebb-on-ubuntu-14-04/">How to Install NodeBB on Ubuntu 14.04</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p style="text-align: left;"><strong>An updated version of this tutorial available at<a href="https://www.installing.in/how-to-install-nodebb-on-ubuntu-16-04/"> installation of nodeBB on ubuntu 16.04</a>. I recommend you follow that.</strong></p>
<p>NodeBB is a modern style forum software built on latest technologies like NodeJS, Redis and MongoDB. So you will not be able to install it on common cPanel based shared hosting. You will need a VPS or Dedicated server of your own to install it. If you haven&#8217;t already got an server I suggest you go to digitalocean(<a href="https://goo.gl/Of63YW" target="_blank" rel="noopener noreferrer">use this link to signup</a> and you will get $10 to test with) and create a VPS.</p>
<p>In this series:</p>
<ul>
<li><a href="https://www.installing.in/how-to-install-nodebb-on-ubuntu-14-04/">How to Install NodeBB on Ubuntu 14.04 </a> (This page)</li>
<li><a href="https://www.installing.in/how-to-install-letsencrypt-with-nobebb-and-nginx/">How to install Letsencrypt with NobeBB and Nginx</a> (Next)</li>
<li><a href="https://www.installing.in/how-to-set-up-letsencrypt-auto-renewal/">How to Set up Letsencrypt Auto Renewal</a> (Later)</li>
</ul>
<p>For this tutorial I am starting with a <a href="https://goo.gl/Of63YW" target="_blank" rel="noopener noreferrer">digitalocean</a> 1 GB RAM server at New york.</p>
<p>Here are the steps:</p>
<p><strong>Install LTS version of Node.js using these command:</strong></p>
<pre>curl <span class="hljs-operator">-s</span>L https://deb.nodesource.com/setup_8.x | sudo -E bash -</pre>
<p>Above command will add nodejs repository.</p>
<p>Install nodejs by executing this command:</p>
<pre>apt-get install nodejs</pre>
<p><strong>Install MongoDB database server</strong></p>
<p>Install MongoDB server by issuing this command:</p>
<pre>sudo apt-get install -y git nodejs mongodb build-essential</pre>
<p><strong>Install NodeBB</strong></p>
<p>You can Install nodeBB anywhere you like. Here we will make a directory in /var/www/ :</p>
<pre>mkdir /var/www</pre>
<p>Now cd into that directory:</p>
<pre>cd /var/www</pre>
<p>Clone nodeBB in this directory by this command:</p>
<pre>git clone -b v1.9.3 https://github.com/NodeBB/NodeBB.git nodebb</pre>
<p>replace v1.9.3 with the latest version listed <a href="https://github.com/NodeBB/NodeBB/releases">here</a>. Above command will clone the nodebb files in &#8216;nodebb&#8217; directory. Install all the nodeBB dependencies by this command:</p>
<pre>cd nodebb</pre>
<pre>npm install --production</pre>
<p>Start nodeBB web Installer:</p>
<pre>npm start</pre>
<p>Open the web Installer by going to http://yourip:4567 or http://example.com:4567. For example if you are installing it on local machine your address will be <a href="http://127.0.0.1:4567">http://127.0.0.1:4567</a>.</p>
<p><strong>Finish the web Installation</strong></p>
<p>When you visit the proper address as shown above you will be presented with web interface with 2 sections. First section is for forum admins credentials. <a href="/wp-content/uploads/2016/04/xNodeBB_Web_Installer.png" rel="attachment wp-att-11"><img data-recalc-dims="1" loading="lazy" decoding="async" class="aligncenter wp-image-11" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/04/xNodeBB_Web_Installer.png?resize=517%2C367&#038;ssl=1" alt="NodeBB admin data" width="517" height="367" srcset="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/04/xNodeBB_Web_Installer.png?w=885&amp;ssl=1 885w, https://i0.wp.com/www.installing.in/wp-content/uploads/2016/04/xNodeBB_Web_Installer.png?resize=300%2C213&amp;ssl=1 300w, https://i0.wp.com/www.installing.in/wp-content/uploads/2016/04/xNodeBB_Web_Installer.png?resize=768%2C545&amp;ssl=1 768w" sizes="auto, (max-width: 517px) 100vw, 517px" /></a> And second section is for database configuration: <a href="/wp-content/uploads/2016/04/xNodeBB_Web_Installer-2-1.png" rel="attachment wp-att-10"><img data-recalc-dims="1" loading="lazy" decoding="async" class="aligncenter wp-image-10" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/04/xNodeBB_Web_Installer-2-1.png?resize=523%2C422&#038;ssl=1" alt="nodeBB database credentials" width="523" height="422" srcset="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/04/xNodeBB_Web_Installer-2-1.png?w=779&amp;ssl=1 779w, https://i0.wp.com/www.installing.in/wp-content/uploads/2016/04/xNodeBB_Web_Installer-2-1.png?resize=300%2C242&amp;ssl=1 300w, https://i0.wp.com/www.installing.in/wp-content/uploads/2016/04/xNodeBB_Web_Installer-2-1.png?resize=768%2C619&amp;ssl=1 768w" sizes="auto, (max-width: 523px) 100vw, 523px" /></a> Enter you Administrator details in first section. In the second section select MongoDB from dropdown menu and leave other fields as it is and press &#8216;Install NodeBB&#8217; button. I will install NodeBB and tell you when finished. Start your forum by issuing this command:</p>
<pre>./nodebb start</pre>
<p>Now you can see your website live on the same address i.e. http://yourip:4567 or http://example.com:4567.</p>
<p>By default nodeBB runs on port 4567 and it is generally advised that you should not run nodejs apps on port 80 as it is a security risk.</p>
<p>To get nodeBB running on port 80 or in normal language running it on http://example.com you need to setup nginx as your web proxy.</p>
<p><strong>Configuring nginx</strong></p>
<p>nodeBB requires nginx v1.3.13 or greater. Install nginx using this command:</p>
<pre>apt-get install nginx</pre>
<p>check your nginx version:</p>
<pre>nginx -V</pre>
<p>nginx served sites are contained in a server block. Add your server block in nginx configuration file by using this command:</p>
<pre>nano /etc/nginx/sites-available/default</pre>
<p>paste below server block at the top</p>
<pre style="font-size: 0.8em; line-height: 1.7;">  
 server {
    listen 80;
    server_name <span style="color: #ff0000;">forum.example.org</span>;
    location / {
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_set_header X-NginX-Proxy true;
        proxy_pass http://127.0.0.1:4567/;
        proxy_redirect off;
        # Socket.IO Support
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }
}
</pre>
<p>Change the server_name from &#8216;<span style="color: #ff0000;">forum.example.org</span>&#8216; to your domain name or your ip address. it should look like this: <a href="https://www.installing.in/wp-content/uploads/2016/04/xrv_-_root_ubuntu-1gb-nyc3-01___etc_nginx_sites-available_-_ssh_-_73-36.png" rel="attachment wp-att-9"><img loading="lazy" decoding="async" class="aligncenter img-responsive wp-image-9" src="/wp-content/uploads/2016/04/xrv_-_root_ubuntu-1gb-nyc3-01___etc_nginx_sites-available_-_ssh_-_73-36.png" alt="nodeBB nginx configuration" width="470" height="468" srcset="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/04/xrv_-_root_ubuntu-1gb-nyc3-01___etc_nginx_sites-available_-_ssh_-_73-36.png?w=536&amp;ssl=1 536w, https://i0.wp.com/www.installing.in/wp-content/uploads/2016/04/xrv_-_root_ubuntu-1gb-nyc3-01___etc_nginx_sites-available_-_ssh_-_73-36.png?resize=150%2C150&amp;ssl=1 150w, https://i0.wp.com/www.installing.in/wp-content/uploads/2016/04/xrv_-_root_ubuntu-1gb-nyc3-01___etc_nginx_sites-available_-_ssh_-_73-36.png?resize=300%2C300&amp;ssl=1 300w" sizes="auto, (max-width: 470px) 100vw, 470px" /></a> Now restart the nginx server:</p>
<pre>service nginx restart</pre>
<p>Now check your website at http://example.com or http://yourip. <a href="/wp-content/uploads/2016/04/xHome___NodeBB.png" rel="attachment wp-att-8"><img data-recalc-dims="1" loading="lazy" decoding="async" class="aligncenter wp-image-8" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/04/xHome___NodeBB.png?resize=494%2C195&#038;ssl=1" alt="nodeBB home page" width="494" height="195" srcset="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/04/xHome___NodeBB.png?w=1152&amp;ssl=1 1152w, https://i0.wp.com/www.installing.in/wp-content/uploads/2016/04/xHome___NodeBB.png?resize=300%2C118&amp;ssl=1 300w, https://i0.wp.com/www.installing.in/wp-content/uploads/2016/04/xHome___NodeBB.png?resize=768%2C303&amp;ssl=1 768w, https://i0.wp.com/www.installing.in/wp-content/uploads/2016/04/xHome___NodeBB.png?resize=1024%2C404&amp;ssl=1 1024w" sizes="auto, (max-width: 494px) 100vw, 494px" /></a> Configure and enjoy!</p>
<p>Next in series:</p>
<ul>
<li><a href="https://www.installing.in/how-to-install-letsencrypt-with-nobebb-and-nginx/">How to install Letsencrypt with NobeBB and Nginx</a></li>
<li><a href="https://www.installing.in/how-to-set-up-letsencrypt-auto-renewal/">How to Set up Letsencrypt Auto Renewal</a></li>
</ul>
<p>The post <a href="https://www.installing.in/how-to-install-nodebb-on-ubuntu-14-04/">How to Install NodeBB on Ubuntu 14.04</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.installing.in/how-to-install-nodebb-on-ubuntu-14-04/feed/</wfw:commentRss>
			<slash:comments>11</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">6</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Object Caching 20/170 objects using Redis
Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Minified using Disk
Database Caching using Redis (Request-wide modification query)

Served from: installing.in @ 2026-05-01 04:47:03 by W3 Total Cache
-->