- Open
cmd.exe
as Administrator: - Run:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
Open PowerShell as Administrator and run:
.\windows\install-choco-dependencies.bat
Open PowerShell as Administrator and run:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Now open Microsoft Store and install Ubuntu 18.04
Copy .hyper.js
to c:\Users\carlo\.hyper.js
and overwrite.
We need to configure git twice, once for Windows apps like VS Code and another time for the WSL:
- Open
Git GUI
and generate an SSH key - Add to permitted GitHub SSH keys in GitHub settings
- Open
Git Bash
windows app - Configure git:
git config --global user.email "email@example.com"
git config --global user.name "Carlos Baraza"
- Finally add github.com to
known_hosts
:
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
Now we configure Git for WSL:
- Open Hyper, which should open
bash.exe
terminal - Generate another key
ssh-keygen
- Copy
~/.ssh/id_rsa.pub
- Add to permitted GitHub SSH keys in GitHub settings
- Configure git:
# Add my custom GitHub configuration
./windows/link-gitconfig.sh
- Finally add github.com to
known_hosts
:
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
Done, now we can use Git with GitHub
Using Hyper (with Bash):
./windows/install-oh-my-zsh.sh
This will set up Oh My ZSH, which in my opinion is better than just pure Bash.
Change the shell to WSL in settings.json
(ctrl+,
to open):
{
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\wsl.exe",
"files.eol": "\n"
}
It's important to change the default EOL because Windows behaves differently than most UNIX systems, and GIT does not like that, creating some merge conflicts and other nasty situations.
In Hyper (now ZSH)
./windows/install-node.sh
In Hyper (now ZSH)
./windows/install-golang.sh
In Hyper (now ZSH)
./windows/install-python.sh
Follow the MobaXterm section of this article
I use a Magic Keyboard to work and it was slowing me down a lot not to have the right mappings, at least while I get used to the Windows shortcuts. Therefore I added a script to accelerate the development while adapting.
To use just open the magic-keyboard.ahk
file and it will open with AutoHotkey, which was
installed with Choco. To stop it, just close the program.
We installed anaconda3
with choco
and then we need to take the following steps,
taken from this article.
- Install Geforce Experience (already done with choco)
- Install Cuda Toolkit 9, not available in choco :(. TF 1.13.0 adds support for Cuda 10, so you should be able to upgrade soon. -> Manual install
- Run Sample and confirm CUDA works C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.0\1_Utilities\deviceQuery
- Install cuDNN. This library accelerates deep learning algorithms
- Run the
./windows/setup-anaconda.bat
usingcmd.exe
. Anaconda environments don't work in PowerShell