윈도우 개발환경 설정

윈도우 설정

  1. 제어판에서 hyper-v, WSL 설정 켜기

  2. WSL ubuntu 설치

  3. chocolatey 설치

  4. wox 설치 (choco install wox)

  5. vscode 설치 (choco install vscode)

  6. D2Coding 폰트 설치 (choco install d2codingfont)

  7. Notion 설치

  8. 키보드 shift+space, 한영키 둘 다 먹히게 만들기

WSL설정

/etc/wsl.conf

[automount]
enabled = true
root = /
options = "metadata"

파일 생성 이후 admin 권한으로 실행한 PowerShell에서 Restart-Service LxssManager 실행하고 WSL 재시작

/etc/passwd

mkdir /c/Users/{user name}/ubuntu-home

실행 이후 /etc/passwd 에서 {user name}의 home path를 /c/Users/{user name}/ubuntu-home 으로 수정

ubuntu 세팅

$ sudo update-alternatives --config editor
$ sudo visudo # %sudo   ALL=(ALL:ALL) NOPASSWD:ALL
$ sudo vi /etc/apt/sources.list
# :%s/archive.ubuntu.com/mirror.kakao.com/g
# :%s/security.ubuntu.com/mirror.kakao.com/g
$ sudo apt update && sudo apt upgrade
$ sudo apt install build-essential zsh

ZSH 세팅

  1. oh-my-zsh 설치

키보드 shift space, 한영키 동시에 먹히게 만들기

Golang 환경 세팅

  1. https://go.dev/dl/ 다운로드

    1. windows의 경우 그냥 msi버전 다운로드 받아서 설치하고 끝

    2. linux의 경우 압축 해제 후 $GOROOT, $GOPATH 및 $PATH 등록

$ git config core.fileMode false
$ git config --global credential.helper store
$ git config --global url.ssh://git@oss.navercorp.com/.insteadOf https://oss.navercorp.com/

Last updated