Home / Tools and services / wsl (Windows Subsystem For Linux) edit
Try Documentalist, my app that offers fast, offline access to 190+ programmer API docs.

.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"
cdsrc
For installation script for gcc 7, clang 5, go, valgrind: https://raw.githubusercontent.com/kjk/exp/master/bootstrap_ubuntu.sh
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
Commands:
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:
wget https://redirector.gvt1.com/edgedl/go/go1.9.2.linux-amd64.tar.gz 
sudo tar -C /usr/local -xzf go1.9.2.linux-amd64.tar.gz
rm go1.9.2.linux-amd64.tar.gz
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
sudo apt-get install libc6-dbg  # valgrind needs debug info for library code
wget ftp://sourceware.org/pub/valgrind/valgrind-3.13.0.tar.bz2 
tar -xvjf valgrind-3.13.0.tar.bz2 
cd valgrind-3.13.0 
./configure 
make 
sudo make install 
Links:

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:

Share on        

Need fast, offline access to 190+ programmer API docs? Try my app Documentalist for Windows