Skip to content

Instantly share code, notes, and snippets.

View hoainamcse's full-sized avatar

Nam Nguyen hoainamcse

View GitHub Profile

Build a flutter app in WSL2

Install, build and debug a flutter app in WSL2 (Windows Subsystem for Linux).

Linux setup

Install Java

To install the JDK, execute the following command, which will also install the JRE:

sudo apt install default-jdk

Add the following two lines to /etc/profile (setting the JAVA_HOME environment variable):

How to install Postman on WSL2 without snap

  1. Download the latest tarball file of the Postman API Platform from its official website
cd Downloads && wget https://dl.pstmn.io/download/latest/linux_64
  1. Extract Postman Linux64 compressed file
tar -xvf linux64 -C ~/Applications
  1. Add this API testing tool to PATH