윈도우 기반의 기기를 새로 구입한 뒤 초기 세팅 및 개발환경 구축하기에 관한 내용이다.
1. 윈도우 시작을 한 뒤, 사용자 이름을 바꾸고 싶다면 아래 포스팅을 바탕으로 마음에 드는 사용자 이름을 먼저 설정하자.
윈도우에서 사용자 폴더의 하위 폴더 이름 변경하기
0. 들어가기에 앞서 드리는 말 컴퓨터를 구매한지 얼마 되지 않은 상태라면 다음과 같은 방법으로 변경하는 것을 더 추천한다.(사실 추천이 아니라 강요에 가깝다. 이게 훨씬 간편하고 훨씬 안정
xpectation.tistory.com
2. 윈도우 업데이트 및 평소 자신이 쓰는 보안프로그램이 있다면 설치(기본으로 탑재된 Windows Defender로도 충분함)
3. Chrome 설치 (Edge써도 되긴 함)
https://www.google.com/chrome/
Chrome 웹브라우저
더욱 스마트해진 Google로 더 간편하고 안전하고 빠르게.
www.google.com
4. Chocolately 설치(취사선택, 윈도우에 개발관련 프로그램을 굳이 설치 하지 않을 것이라면 설치할 필요 없다.)
https://chocolatey.org/install#individual
Installing Chocolatey
Chocolatey is software management automation for Windows that wraps installers, executables, zips, and scripts into compiled packages. Chocolatey integrates w/SCCM, Puppet, Chef, etc. Chocolatey is trusted by businesses to manage software deployments.
chocolatey.org
5. VSCode 등 텍스트 에디터 설치
https://code.visualstudio.com/
Visual Studio Code - Code Editing. Redefined
Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.
code.visualstudio.com
설치할때 기타옵션 모두 체크하는걸 추천
6. Git 과 Github 등 Git과 Git관리 프로그램 설치
Git for Windows
Git for Windows focuses on offering a lightweight, native set of tools that bring the full feature set of the Git SCM to Windows while providing appropriate user interfaces for experienced Git users and novices alike. Git BASH Git for Windows provides a BA
gitforwindows.org
깃 설치시 추천 옵션
- Use Visual Studio Code as Git's default editor 옵션
Vim의 경우 적혀 있듯, "vim is the default editor of git for windows only for historical reasons, and it is highly recommended to switch to a modern gui editor instead." 이다. - Override the default branch name for new repositories 옵션
master는 주인-노예 의 관계를 연상시키므로 개발업계에서 점점 안쓰는 추세이다. master 대신 main을 쓰는 버릇을 들이자. - 나머지는 잘 모르겠으면 기본 옵션을 선택하자.
설치가 끝난 뒤에는 Git Bash를 실행시켜 이름과 이메일을 설정해주자.
아래 코드에서 [] 부분에 원하는 내용을 넣으면 된다.
마지막 명령어를 통해 제대로 설정되었는지 체크할 수 있다.
$git config --global user.name [name]
$git config --global user.email [email]
$git config --list
GitHub Desktop
Simple collaboration from your desktop
desktop.github.com
7. Ubuntu 등 WSL 설치
https://docs.microsoft.com/ko-kr/windows/wsl/install
WSL 설치
wsl --install 명령을 사용하여 Linux용 Windows 하위 시스템을 설치합니다. Ubuntu, Debian, SUSE, Kali, Fedora, Pengwin, Alpine 등 원하는 Linux 배포판에서 실행되는 Windows 머신에서 Bash 터미널을 사용할 수 있습니
docs.microsoft.com
8. 기본 터미널 Ubuntu로 설정
9. oh-my-zsh 등 Ubuntu 커스터마이징
아래 링크를 참조하여 zsh를 설치한다.
https://github.com/ohmyzsh/ohmyzsh/wiki
GitHub - ohmyzsh/ohmyzsh: 🙃 A delightful community-driven (with 2,000+ contributors) framework for managing your zsh config
🙃 A delightful community-driven (with 2,000+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, pyth...
github.com
sudo apt install zsh
아래 링크를 참조하여 oh-my-zsh 를 설치한다.
Oh My Zsh - a delightful & open source framework for Zsh
Oh My Zsh is a delightful, open source, community-driven framework for managing your Zsh configuration. It comes bundled with several helpful functions, helpers, plugins, themes, and a few things that make you shout... OH MY ZSH!
ohmyz.sh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
아래 링크를 참조하여 powerlevel10k를 설치한다.
https://github.com/romkatv/powerlevel10k
GitHub - romkatv/powerlevel10k: A Zsh theme
A Zsh theme. Contribute to romkatv/powerlevel10k development by creating an account on GitHub.
github.com
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
code ~/.zshrc
참고로 폰트는 여기서 받을 수 있다.
https://github.com/romkatv/powerlevel10k#meslo-nerd-font-patched-for-powerlevel10k
GitHub - romkatv/powerlevel10k: A Zsh theme
A Zsh theme. Contribute to romkatv/powerlevel10k development by creating an account on GitHub.
github.com
p10k configure : powerlevel10k 설정을 처음부터 다시 진행하는 명령어
10. Ubuntu에 Python, NodeJS 등 필요 모듈 설치
WSL환경을 기본 터미널로 쓸 것이기 때문에 윈도우에 Python이나 Node를 깔아봐야 어차피 새로 깔아야한다. 따라서 윈도우에는 굳이 깔지 않는 것을 추천한다. 괜히 컴퓨터만 지저분해지고 용량만 잡아먹는다.