Tag Archives: Linux

Install VSCode on Linux

 

https://nickjanetakis.com/blog/using-wsl-and-mobaxterm-to-create-a-linux-dev-environment-on-windows#getting-docker-up-and-running

https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly

 

Advertisements

Let’s Encrypt free SSL certificate authority (CA)

Let’s Encrypt is a free, automated, and open certificate authority (CA), run for the public’s benefit. It is a service provided by the Internet Security Research Group (ISRG).

The key principles behind Let’s Encrypt are:

  • Free: Anyone who owns a domain name can use Let’s Encrypt to obtain a trusted certificate at zero cost.
  • Automatic: Software running on a web server can interact with Let’s Encrypt to painlessly obtain a certificate, securely configure it for use, and automatically take care of renewal.
  • Milestone: 100 Million Certificates Issued

https://letsencrypt.org/

Enable Linux subsystem on Windows

We need to enable Windows Subsystem for Linux (Beta) which is basically Ubuntu linux on Windows.

1. Before installing the Linux Subsystem, you have to have:

  • Windows 10 (Anniversary update or later version)
    64-bit installation (can’t run on 32-bit systems)

2. Go to Windows Settings and click on pushbutton to Enable developer mode. It may take 30min or so to install packages. It failed once and retry was successful.

3. Next go to Programs and Features->Turn Windows features on or off. Click the Windows Subsystem for Linux (Beta). Go ahead and reboot if it asks.

4. After the reboot open a Windows command prompt and type bash and type “y” to continue. Chose root as the initial linux userid when prompted.

Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\Users\>bash
— Beta feature —
This will install Ubuntu on Windows, distributed by Canonical
and licensed under its terms available here:
https://aka.ms/uowterms

Type “y” to continue: y
Downloading from the Windows Store… 100%
Extracting filesystem, this will take a few minutes…
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: root
Found UNIX user: root
Installation successful!
The environment will start momentarily…
Documentation is available at: https://aka.ms/wsldocs
root@localhost:/mnt/c/Users/#

5. Bash on Ubuntu on Windows app will show up in Windows Start. Click on it. You will get a bash terminal and Ubuntu will be up and running now.

6. Check the Linux version:

$ lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description: Ubuntu 16.04.2 LTS

Release: 16.04

Codename: xenial

Note the windows drives are mounted in the Subsystem inside the /mnt directory

cd into your Windows user’s Documents directory:

$cd /mnt/c/Users/youruserid/Documents/

You will now have a running Ubuntu on Windows where you can install any Ubuntu packages. And it takes only couple of GB of space and little bit of cpu so wont slow down your laptop like running a Linux VM on Windows.

You can access this Ubuntu server on Windows using Mobaxterm terminal as below:

Download Mobaxterm if you dont have it and install it. Click on the Session icon and then click on Shell icon. Then select Terminal shell dropdown as Ubuntu Bash (WSL). Select any Startup directory such as c:\ and click ok. Thats all you should be able to see a terminal session on your Ubuntu server to work with just like Putty. For more info see the blog:   https://blog.mobatek.net/post/mobaxterm-new-release-9.3/