blog's People
blog's Issues
Windows SubSystem For Linux setup that I like with some developers stuff mixed in
Setting Up WSL
Install A Distro:
-
Run the following in powershell as admin
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
-
Install a distro (ex: Ubuntu 18.04 LTS - https://www.microsoft.com/store/apps/9N9TNGVNDL3Q)
-
Open your distro you installed via the start menu, let it setup
-
Update and upgrade
sudo apt-get update
sudo apt-get upgrade
Install and configure a terminal
Alacritty
choco install alacritty
To use WSL, go to %APPDATA%\alacritty\alacritty.yml, and set to use bash shell:
shell:
program: "C:\\Windows\\System32\\wsl.exe"
Install zsh, oh-my-zsh, and nice themes and fonts
- Install zsh and oh my zsh
sudo apt-get install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Switch to use ZSH by default (
nano ~/.bashrc
):
if [ -t 1 ]; then
exec zsh
fi
- Reload terminal (
source ~/.bashrc
), install powerlevel10k
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
- Set to use powerlevel10k theme (
nano ~/.zshrc
):
ZSH_THEME=powerlevel10k/powerlevel10k
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir vcs)
- Reload terminal (
source ~/.zshrc
), install fonts:
git clone https://github.com/powerline/fonts.git
Alternatively, grab something like https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/Meslo/M/Regular/complete
- Install fonts via powershell (open as admin):
Set-ExecutionPolicy Bypass
cd C:\Users\Alan\Fonts
.\install.ps1
-
Set font for terminal
Alacritty:font: normal: family: Noto Mono for Powerline
If you got a nerd font like I had above, use it instead:
font: normal: family: MesloLGM NF size: 9.0
Also set the following in your .zshrc:
POWERLEVEL9K_MODE='nerdfont-complete'
-
Set a terminal theme:
# Colors (iTerm 2 default theme)
colors:
# Default colors
primary:
background: '0x101421'
foreground: '0xfffbf6'
# Normal colors
normal:
black: '0x2e2e2e'
red: '0xeb4129'
green: '0xabe047'
yellow: '0xf6c744'
blue: '0x47a0f3'
magenta: '0x7b5cb0'
cyan: '0x64dbed'
white: '0xe5e9f0'
# Bright colors
bright:
black: '0x565656'
red: '0xec5357'
green: '0xc0e17d'
yellow: '0xf9da6a'
blue: '0x49a4f8'
magenta: '0xa47de9'
cyan: '0x99faf2'
white: '0xffffff'
- Fix dir colors (in .zshrc):
LS_COLORS="ow=01;36;40" && export LS_COLORS
Install Dev Tools
Node and npm
- Install nodenv
curl -fsSL https://github.com/nodenv/nodenv-installer/raw/master/bin/nodenv-installer | bash
- Setup nodenv path (
nano ~/.zshrc
):
export PATH="$HOME/.nodenv/bin:$PATH"
eval "$(nodenv init -)"
- Install node and update npm after reloading terminal (
source ~/.zshrc
)
nodenv install 10.16.1
nodenv global 10.16.1
npm install -g npm@latest
Python and pip
- Install pyenv:
curl https://pyenv.run | bash
- Setup pyenv path (
nano ~/.zshrc
):
export PATH="/home/alan/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
- Install dependencies, python version, and update pip after reloading terminal (
source ~/.zshrc
):
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl git
pyenv install 3.7.3
pyenv global 3.7.3
pip install --upgrade pip
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.