Skip to content
Personal checklist for setting up a new Ubuntu's dev environment on Windows.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md

README.md

Config

OS: Ubuntu on Windows 10 // Windows Subsystem for Linux (WSL)

screenshot

Config is a basic checklist I follow to set up a new Ubuntu's development environment. It gets me up to speed with Git, Ruby, GitHub, Jekyll, and more so I can more quickly get back to coding.

Checklist

1. Install WSL

  • Before installing Ubuntu distro enable WSL feature with the Powershell Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

  • Get Ubuntu distro from the Microsoft Store or with command-line/script on Powershell

2. Prepare OS

  • Update OS packages: $ sudo apt-get update -y && sudo apt-get upgrade -y

3. Setup Ruby and gems

  • Install Ruby: $ sudo apt-get ruby

Or,

  • Add optimised Ruby Version Manager repo from Brightbox:
$ sudo apt-add-repository ppa:brightbox/ruby-ng
  • update system $ sudo apt-get update

  • Installing Specific Ruby versions:

$ sudo apt-get install ruby2.5 ruby2.5-dev build-essential dh-autoreconf
  • Install Bundler gem: $ sudo gem install bundler

  • Place the Gemfile in the project folder and install gem: $ bundle install

4. Setup Node.js

  • Node.js v12.x:
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
  • Install Gulp command line tools: sudo npm install -g gulp-cli

How to flush DNS in Ubuntu?

Install nscd using the following command if not yet

sudo apt-get install nscd

Flush DNS Cache in Ubuntu by restarting the nscd

sudo /etc/init.d/nscd restart

License

You can’t perform that action at this time.