프로젝트 코드리뷰/Code Bridge

Code Server 환경구축

SooHw 2023. 11. 21. 10:08

1. wsl 

개발자 설정 -> 개발자 모드 켬

 

 

 

2. Linux용 Windows 하위 시스템

windows 기능 켜기/끄기 -> Linux용 Windows 하위 시스템 체크

 

3. Ubuntu 설치

Microsoft Store -> Ubuntu 설치

 

 

4. Ubuntu 실행 및 CodeServer 설치

  $ sudo apt-get install build-essential net-tools
  
  최신버전(4.17.1) 설치
  $ wget -q wget -q https://github.com/coder/code-server/releases/download/v4.17.1/code-server_4.17.1_amd64.deb
  $ sudo dpkg -i code-server_4.17.1_amd64.deb
  
  config파일 수정
  $ nano ~/.config/code-server/config.yaml
  비밀번호 필요 없을 시 auth: none
  
  실행
   $ code-server

 

 

5. CodeServer 포트포워딩

code-server --bind-addr IP주소:포트번호

 

 

6. JDK

extension 설치

 

# install the necessary dependencies
sudo apt-get -q update
sudo apt-get -yq install gnupg curl 

# add Azul's public key
sudo apt-key adv \
  --keyserver hkp://keyserver.ubuntu.com:80 \
  --recv-keys 0xB1998361219BD9C9

# download and install the package that adds 
# the Azul APT repository to the list of sources 
curl -O https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb

# install the package
sudo apt-get install ./zulu-repo_1.0.0-3_all.deb

# update the package sources
sudo apt-get update

# install OpenJDK 17 (LTS)
sudo apt-get install zulu17-jdk

# OpenJDk Version Check
java -version

 

 

7. 확장프로그램 설치방법

마켓플레이스 접속

https://marketplace.visualstudio.com/

 

Visual Studio Marketplace

Extensions for Visual Studio family of products on Visual Studio Marketplace

marketplace.visualstudio.com

 

 

원하는 extension 다운로드

 

 

다운받은 vsix파일 드래그 앤 드랍

 

검색창에 vsix 검색 후 다운받은 파일 실행