Study/GIT

개발자를 위한 윈도우셋업 WSL2 간략정리

짬송 2021. 5. 4. 16:21

1. Windows 2004 update

2. Chrome + VSC(Visual Studio Code)

3. Git , VSC(Prettier , ESLint, Material Theme(+icon))

4-1 Chocolatey powershell(관리자권한)실행

4-2 powershell : choco install python

5-1 WSL설치

5-2 ubuntu설치 [windows store 에서 ubuntu 18.04 lts]

6-1 기본으로 우분투 사용 셋팅

wsl --set-version Ubuntu-18.04 2

7-1 powershell- 설정 실행 후 vsc내에서 extension [remote-wsl]

7-2 default profile ubuntu로 변경

7-3 zsh 설치 [ubuntu에서 관리자 계정]

7-4 oh my zsh 설치

8-1 font설치

8-2 powerlevel10k설치

8-3 Set ZSH_THEME="powerlevel10k/powerlevel10k" in ~/.zshrc

8-5 VSC setting -terminal font family 8-4 "fontFace": "MesloLGS NF"

9-1 VSC setting-terminal integrated shell window settings.json에

c:\\windows\\system32\\wsl.exe 넣기

9-2 ~/.zshrc 마지막에 넣어서 글자 색 바꾸기 LS_COLORS="ow=01;36;40" && export LS_COLORS

10-1 APT UPDATE하기

curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -

sudo apt-get install -y nodejs

10-2 sudo apt-get install -y nodejs

11-1

ppa 패키저장소 설치 sudo add-apt-repository ppa:deadsnakes/ppa

11-2 업데이트 리스트 sudo apt-get update

11-3 파이선 설치 sudo apt-get install python 3.8

11-4 alias 설정 ~/.zshrc 맨밑에 alias python=python3.8

12-1

prettier (installed on ubuntu) 하고 setting에서 remote ubuntu옵션에서format on save

12-2 npm init, mkdir, mv, rm, rm-rf 등 학습

13-1 git설치 sudo apt-get install git

13-2 gh_1.1.0_linux_amd64.deb 다운로드

13-3 다운로드 폴더에서 sudo apt-install ./gh_1.1.0_linux_amd64.deb

13-4 git config --global user.email "이메일"

13-4 git config --global user.name "이름"

13-5

gh auth login "권한얻기"

→ 강의대로 되지않아서 git에 ssh인증서를 등록하여 상호인증하게 하였다.

→ 토큰사용

14-1 nvm설치

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash

14-2 .zshrc에 추가

export NVM_DIR="$([ -z "$" ] && printf %s "$/.nvm" || printf %s "$/nvm")"

[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

14-3 nvm ls-remote --lts (nvm 최신 lts 버젼 확인)

14-4 node -v (현재 버젼 확인)

 

 

 

[출처]

https://nomadcoders.co/windows-setup-for-developers/lectures/1842

페이지의 drjoey님 댓글을 참고하여 수정함