<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Technical on Vineet Kumar</title><link>https://new.vineetkumar.me/tag/technical/</link><description>Recent content in Technical on Vineet Kumar</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 08 Jun 2020 06:09:59 +0000</lastBuildDate><atom:link href="https://new.vineetkumar.me/tag/technical/index.xml" rel="self" type="application/rss+xml"/><item><title>How to setup WordPress on Digital Ocean (2020)</title><link>https://new.vineetkumar.me/2020/06/how-to-setup-wordpress-server-2020/</link><pubDate>Mon, 08 Jun 2020 06:09:59 +0000</pubDate><guid>https://new.vineetkumar.me/2020/06/how-to-setup-wordpress-server-2020/</guid><description>&lt;p&gt;With incidents such as Australian bush fire, Covid-19 Pandemic and civil unrest in many countries over one reason or the other, 2020 is basically proving to be one long nightmare. To make it worse for me, my server got hacked, majorly due to lack of proper security or a bad WordPress vulnerability (To put it in the words of Einstein, mildly, human stupidity has no limit).&lt;/p&gt;
&lt;p&gt;So I decided to migrate the server to a new one and this time decided to invest some time in making it more secure. This guide is basically a document to setup such a server to host WordPress sites with as much security hardening as I possibly can do. 2020, bring it on!&lt;/p&gt;</description></item><item><title>How to secure your site using Lets Encrypt</title><link>https://new.vineetkumar.me/2018/06/how-to-secure-your-site-using-lets-encrypt/</link><pubDate>Sun, 24 Jun 2018 09:59:28 +0000</pubDate><guid>https://new.vineetkumar.me/2018/06/how-to-secure-your-site-using-lets-encrypt/</guid><description>&lt;p&gt;If you have your own site, encrypting is something that should be mandatory. Not only does it makes your site secure against hackers/crackers but also google rank those sites higher who serve their site on https.&lt;br&gt;
Here’s how you can secure your wordpress based site using certificate provide by Lets Encrypt.&lt;/p&gt;
&lt;h3 id="some-background" class="relative group"&gt;Some background: &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#some-background" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;I am quoting the following direct from the &lt;a href="https://letsencrypt.org/getting-started/" target="_blank" rel="noreferrer"&gt;Let’s Encrypt&lt;/a&gt; site:&lt;/p&gt;
&lt;pre&gt;To enable HTTPS on your website, you need to get a certificate (a type of file) from a Certificate Authority (CA). Let’s Encrypt is one such CA. In order to get a certificate for your website’s domain from Let’s Encrypt, you have to demonstrate control over the domain. With Let’s Encrypt, you do this using software that uses the ACME protocol, which typically runs on your web host.&lt;/pre&gt;
&lt;p&gt;If you have shell access (that is if you can connect to your host using PuTTY), you can follow the instructions provided &lt;a href="https://certbot.eff.org/lets-encrypt/debianstretch-nginx" target="_blank" rel="noreferrer"&gt;here&lt;/a&gt; to install certbot.&lt;/p&gt;
&lt;h3 id="process" class="relative group"&gt;Process: &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#process" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;Assuming your wordpress site runs on nginx web server on Debian 9, here’s how to do it:&lt;br&gt;
Add the repository source in your sources.list:&lt;/p&gt;
&lt;pre&gt;deb http://ftp.debian.org/debian stretch-backports main&lt;/pre&gt;
&lt;p&gt;to your /etc/apt/sources.list (or add a new file with the “.list” extension to /etc/apt/sources.list.d/)&lt;/p&gt;</description></item><item><title>Setting up WordPress on Debian 9.3 x64 on a Virtual Machine on Windows 10</title><link>https://new.vineetkumar.me/2018/01/installing-wordpress-debian-virtual-machine/</link><pubDate>Sun, 28 Jan 2018 18:16:50 +0000</pubDate><guid>https://new.vineetkumar.me/2018/01/installing-wordpress-debian-virtual-machine/</guid><description>&lt;p&gt;In this article I am documenting the exact steps that one needs to host a wordpress based site on a Debian based virtual machine (VM). I choose debian since that’s one of the preferred distro based on it’s stability and smaller footprint on resources compared to Ubuntu. But you may very well choose Ubuntu, only some steps in below documentation would differ.&lt;br&gt;
This article deals with following technologies:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Windows 10:&lt;/strong&gt; The host operating system&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Oracle VirtualBox:&lt;/strong&gt; The Virtual Machine software&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Debian 9.3 x64:&lt;/strong&gt; The distro which we will install on the VM&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;nginx&lt;/strong&gt;: The web server&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;mariadb&lt;/strong&gt;: MySQL database solutions&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;php&lt;/strong&gt;: The package which installs on Debian automatically as a dependency&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;phpMyAdmin&lt;/strong&gt;: Administration tool for MariaDB&lt;/li&gt;
&lt;/ol&gt;</description></item><item><title>Commands to Analyze Space through Terminal</title><link>https://new.vineetkumar.me/2016/07/commands-to-analyze-space-through-terminal/</link><pubDate>Wed, 06 Jul 2016 15:04:01 +0000</pubDate><guid>https://new.vineetkumar.me/2016/07/commands-to-analyze-space-through-terminal/</guid><description>&lt;p&gt;This article lists a few ways to analyze the usage space of the hard disk through Terminal.&lt;/p&gt;
&lt;h3 id="space-occupied-by-all-folder-sorted-ascending-order" class="relative group"&gt;Space occupied by all folder sorted ascending order: &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#space-occupied-by-all-folder-sorted-ascending-order" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;pre&gt;sudo du -h * | sort -h&lt;/pre&gt;
&lt;p&gt;The command ‘du’ is used in terminal which stands for disk usage. But the command alone gives listing of all files along with their size. The above command sorts the list, so that the highest space folder appears in bottom of the list. SUDO added since if you want it to run in root folder, normal command won’t have access to system folders.&lt;/p&gt;</description></item><item><title>Steps to add a WordPress Site to an existing VPS</title><link>https://new.vineetkumar.me/2015/10/steps-to-add-a-wordpress-site-to-an-existing-vps/</link><pubDate>Fri, 09 Oct 2015 10:48:04 +0000</pubDate><guid>https://new.vineetkumar.me/2015/10/steps-to-add-a-wordpress-site-to-an-existing-vps/</guid><description>&lt;p&gt;I use to have a hard time configuring a new site under a common VPS. So I decided to document the steps for easy reference in future.&lt;br&gt;
Following are the steps to add a new site “site-name.com” under a new user account “username” on your Linux VPS. This is to note that this works if you have the following web service solution stack (LAMP):&lt;br&gt;
Linux OS : &lt;strong&gt;Debian&lt;/strong&gt;&lt;br&gt;
Web server: &lt;strong&gt;Nginx&lt;/strong&gt; (Not Apache)&lt;br&gt;
Database: &lt;strong&gt;MySQL&lt;/strong&gt;&lt;br&gt;
Application Programming Language: &lt;strong&gt;PHP&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;So here we go:&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Buy the domain. Call it &lt;strong&gt;site-name.com&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Set the nameserver of the domain to point to the IP address of your VPS under ‘A’ record which stands for ‘Address’. For reference, there are other kinds of record like ‘CNAME’ and ‘MX’, but you don’t need to set them at this point.&lt;/li&gt;
&lt;li&gt;Create a new user on VPS by command by following command.&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;sudo adduser username&lt;/pre&gt;
&lt;p&gt;This command also creates a new home directory for the user.&lt;/p&gt;</description></item><item><title>Stuff I do in Windows that needs an alternative in Linux</title><link>https://new.vineetkumar.me/2015/01/stuff-i-do-in-windows-that-needs-an-alternative-in-linux/</link><pubDate>Tue, 20 Jan 2015 06:51:30 +0000</pubDate><guid>https://new.vineetkumar.me/2015/01/stuff-i-do-in-windows-that-needs-an-alternative-in-linux/</guid><description>&lt;p&gt;In my &lt;a href="https://new.vineetkumar.me/2015/01/ubuntu-beginning-to-walk-on-unchartered-territory" target="_blank" rel="noopener noreferrer"&gt;previous post&lt;/a&gt; I said I would be looking an alternative in Linux for everything I do in Windows. Here’s an initial list of the applications that I am finding an alternative to. I would be updating this post fairly regularly, adding more things to the list and their alternatives, until I am confident that I can plan to make Ubuntu as my primary OS.&lt;br&gt;
 &lt;/p&gt;</description></item><item><title>I migrated to Digital Ocean</title><link>https://new.vineetkumar.me/2015/01/migration-to-digital-ocean/</link><pubDate>Tue, 13 Jan 2015 17:55:58 +0000</pubDate><guid>https://new.vineetkumar.me/2015/01/migration-to-digital-ocean/</guid><description>&lt;p&gt;It was about one year that this site was hosted on a VPS server of Leaseweb. They provided a good set of specs but had some amount of unreliability when it came to providing 24×7 up-time. Also it once had a service outage that resulted in the loss of our data. Thanks to offline backups and Google cache I was able to restore all my posts. So it was high time before we moved onto something more trustworthy. It was then when I came to know about Digital Ocean, an SSD only VPS hosting provider. After a lot of geeky research I realized how &lt;a href="https://www.digitalocean.com/company/blog/digitalocean-closes-37-2-million-series-a-led-by-andreessen-horowitz/droplet-growth-chart-b55ef979.png" target="_blank" rel="noopener noreferrer"&gt;quickly&lt;/a&gt; they grew their scope to provide a quality platform for VPS.&lt;br&gt;
What follows next in this article is the story of how I migrated to DigitalOcean with help from my friends. Be warned that this article is fairly technical and can also serve to anyone who wants to migrate to DigitalOcean. I wholeheartedly thank &lt;a href="http://u.krow.me/1197" target="_blank" rel="noopener noreferrer"&gt;Aaruni&lt;/a&gt; for his help on setting up the server, without his help it could have taken me days to do the same.&lt;/p&gt;
&lt;h3 id="1-new-server-on-digitalocean-do-vps" class="relative group"&gt;&lt;strong&gt;1. New Server on DigitalOcean (DO) VPS&lt;/strong&gt; &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#1-new-server-on-digitalocean-do-vps" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;There are numerous VPS providers but none at the feature to price ratio which DO provides. Hence me and my online friends decided to go for the most basic plan of $5 per month, which provided us with following features:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;512MB Memory&lt;/li&gt;
&lt;li&gt;1 Core Processor&lt;/li&gt;
&lt;li&gt;20 GB SSD Disk Space&lt;/li&gt;
&lt;li&gt;1TB Transfer Bandwidth&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This configuration is modest to run a Unreal Tournament (UrT) gaming server and to host numerous small websites which were our requirements. Plus its easy to upscale so starting from the smallest option seemed to be a wise decision.&lt;/p&gt;</description></item><item><title>Installing Ubuntu Touch on your rooted Nexus 7</title><link>https://new.vineetkumar.me/2013/10/installing-ubuntu-touch-on-your-rooted-nexus-7/</link><pubDate>Sun, 27 Oct 2013 11:40:42 +0000</pubDate><guid>https://new.vineetkumar.me/2013/10/installing-ubuntu-touch-on-your-rooted-nexus-7/</guid><description>&lt;p&gt;If you haven’t rooted your Nexus 7 yet, you can follow my previous post and do that easily. This guide assumes you have connected your device with your PC and can use ADB to push commands over to your device. If this doesn’t make any sense, read my &lt;a title="Rooting Nexus 7" href="https://new.vineetkumar.me/2013/10/rooting-nexus-7-unlocking-bootloader/" target="_blank" rel="noopener noreferrer"&gt;previous guide.&lt;/a&gt;&lt;br&gt;
In this post I am about to write how can you easily install Ubuntu Touch on your Nexus 7. Before we do that, you can read this article on why &lt;strong&gt;shouldn’t&lt;/strong&gt; install Ubuntu Touch: &lt;a href="http://www.omgubuntu.co.uk/2013/10/4-reasons-why-you-shouldnt-install-ubuntu-touch-1-0" target="_blank" rel="noopener noreferrer"&gt;4 Reasons Why You Shouldn’t Install Ubuntu Touch on Your Nexus | OMG! Ubuntu!&lt;/a&gt;&lt;br&gt;
But since we are dual booting the Ubuntu with Android, the reasons stated above won’t matter!&lt;img decoding="async" title="Wink" alt="" src="http://www.thinkdigit.com/forum/images/smilies/icon_wink.gif" border="0" /&gt;&lt;br&gt;
&lt;strong&gt;1. Installing Custom Recovery (Flashing TWRP Multi ROM)&lt;/strong&gt;&lt;br&gt;
Using adb commands the next you need to do is to flash a version of TWRP recovery which is tweaked for MultiROM support. The file I downloaded was “TWRP_multirom_grouper_20131022.img” from here: &lt;a href="http://forum.xda-developers.com/showthread.php?t=2011403" target="_blank" rel="noopener noreferrer"&gt;[MOD][OCT 22] MultiROM v16a (fix SuperSU for secondary ROMs) – xda-developers&lt;/a&gt;, and used following command to flash it.&lt;br&gt;
&lt;code&gt;fastboot flash recovery d:\path-to-recovery\TWRP_multirom_grouper_20131022.img&lt;/code&gt;&lt;br&gt;
**&lt;/p&gt;</description></item><item><title>Rooting Nexus 7 and Unlocking Bootloader</title><link>https://new.vineetkumar.me/2013/10/rooting-nexus-7-unlocking-bootloader/</link><pubDate>Sun, 27 Oct 2013 11:39:11 +0000</pubDate><guid>https://new.vineetkumar.me/2013/10/rooting-nexus-7-unlocking-bootloader/</guid><description>&lt;p&gt;In my &lt;a title="My Nexus 7" href="https://new.vineetkumar.me/2013/10/my-nexus-7/" target="_blank" rel="noopener noreferrer"&gt;previous post&lt;/a&gt; I posted a few screenshots of my new Nexus 7 which I bought recently. In this post I am going to write about how you can unlock the bootloader of your Nexus 7. This process can be basically done in 5 steps.&lt;br&gt;
&lt;strong&gt;Rooting the N7:&lt;/strong&gt;&lt;br&gt;
You can live your life with N7 without rooting it. But as one of the Android Commandments say: &lt;strong&gt;&lt;em&gt;&lt;span style="font-size: medium;"&gt;“Thou shalt not use thine nexus unrooted”&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt; I think you need to be awesome instead and do unlock it to get these features to work:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Ability to use an OTG cable to connect pen drives to the device, thereby overcoming the 16 GB (13 GB available actually) limitation.&lt;/li&gt;
&lt;li&gt;Using a 3G dongle to let your device take advantage of 3G (which by default this device don’t have)&lt;/li&gt;
&lt;li&gt;Take advantage of apps that only works when device is rooted, like Titanium Backup and Cache Cleaner&lt;/li&gt;
&lt;li&gt;Flash custom ROM’s and/or Install Ubuntu Touch on your device (and be a part of an OS in the making!)&lt;br&gt;
You can read this article that echoes my thoughts, until the part where he used a toolkit to root (I rooted the old fashioned adb way).&lt;br&gt;
&lt;a href="http://android.appstorm.net/how-to/rooting-and-roms/heres-how-to-root-the-nexus-7-but-should-you/" target="_blank" rel="noopener noreferrer"&gt;Here’s How to Root the Nexus 7 – But Should You? | Android.AppStorm&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Anyway, so how actually you root N7?&lt;/strong&gt;&lt;br&gt;
You can use the most popular Nexus Rootkit to do all kinds of stuff to your N7 including Rooting, flashing zips etc, but if you are geek like me, here is how to do it manually (and its way easier than you think):&lt;br&gt;
**&lt;/li&gt;
&lt;/ol&gt;</description></item></channel></rss>