gvm icon indicating copy to clipboard operation
gvm copied to clipboard

Test on Windows WSL 2

Open benjivesterby opened this issue 4 years ago • 1 comments

Determine if this runs properly on WSL 2 running ubuntu.

Correct issues if it doesn't and update documentation to list as supported.

benjivesterby avatar Dec 15 '21 20:12 benjivesterby

In order for this to work, the $PATH needs to be updated in the .profile in root, instead of .bashrc.

Here's a sample of my .profile from a fresh install of Ubuntu on WSL2:

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
	. "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi

export PATH="/home/kcent/.gvm/go/bin:$PATH"


madewithsalt avatar Jun 08 '22 14:06 madewithsalt