My wsl setup
Setting up a development environment on Windows was a bit tricky but I was able to get there in the end.
- Got WSL running on the machine, and installed Ubuntu
- Placed the code inside the home directory (~/) of the linux machine
- Rather than placing it on the C:// - which apparently is not cached and results in slower speeds
- Added exceptions to the Windows Defender Program - which apparently vastly slows down the WSL system
- Added the
- Because the standard Ubuntu Bash Terminal isn't great - I wanted to make a few tweaks
oh-my-zsh the standard way
- Download and install
Hyper which is an Electron based terminal which looks great
- Setup in the hyper preferences to open Ubuntu Bash instead of the Windows Cmd with:
- Setup Emacs
- Installed Emacs using
- Installed my
- Because I wanted to use the Emacs GUI, and WSL does not support GUI Linux programs - I needed to make use of the Windows X-Server protocol.
- Installed VcXsrv on the machine
DISPLAY=:0.0 to the
- Boot emacs with
emacs --display :0.0 and open VxXsrv
- Setup Postgres
- Installed Postgres on the windows side, and it can still be accessed inside WSL via localhost
- Thought it would be faster to access the database if its not on WSL as its well known for having slowing IO
- Installed phantomjs with npm.
- Global mode doesn't work, so I installed it in my WSL home folder
- I had initially only added the phantom path to the
zshrc file, but then I couldn't access it in when running specs in Emacs.
- I then needed to add this directly to my
bashrc path (as Emacs Rspec must use bash), so that when i type
phantomjs it boots