Home / Tools and services / wsl (Windows Subsystem For Linux) edit

configuring via .profile
Content of .profile
# kjk modifications
export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/src/go
export PATH=$PATH:$GOPATH/bin

alias cdsrc="cd /mnt/c/Users/kjk/src"
For installation script for gcc 7, clang 5, go, valgrind: https://raw.githubusercontent.com/kjk/exp/master/bootstrap_ubuntu.sh
Installing gcc 7
sudo apt-get update -y && \
sudo apt-get upgrade -y && \
sudo apt-get dist-upgrade -y && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
sudo apt-get update -y && \
sudo apt-get install gcc-7 g++-7 -y && \
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7 && \
sudo update-alternatives --config gcc
installing clang 5
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main"
sudo apt-get update
sudo apt-get install clang-5.0
Based on:
installing latest go
installing powershell
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
sudo apt-get update
sudo apt-get install -y powershell
installing latest valgrind
sudo apt-get install libc6-dbg
Go to index of articles.

Share on