👩‍🌾 도비의 농장/🍓 딸기밭

[Windows] Ubuntu | VirtualBox Setting

오모짱_ 2023. 11. 1. 01:09

1. 본인 컴퓨터 환경에 맞는 가상환경 설치

https://www.virtualbox.org/wiki/Downloads

Visual c++ 2019 redistributable package 설치

(https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170)

 

2. Ubuntu 20.04 설치

(https://releases.ubuntu.com/20.04/)

 

3. 새로 만들기

- ISO = Linux

- 종류, 버전 선택 = Ubuntu 20.04 LTS

 

>기본 메모리 = 4096

>CPU 4개

>비디오 메모리 32MB

>공유 폴더: 자동 마운트/항상 사용하기

 

✂️ Trobule

* 키보드 설정시 계속하기 버튼 안보여..

참고 (https://min0114.tistory.com/29)

= display settings에서 해상도 설정하면 보여요

 

 

 

4. 공유 폴더

Terminal 에서 root 권한 실행: 

$ su

 

공유 폴더 생성

$ mkdir {name} (mkdir VB_share)

 

공유 폴더 마운트

$ mount -t vboxsf {windows 공유 폴더} { 생성한 공유 폴더 경로 }

 

5. 필요한 library 설치

apt-get update

apt-install python3-pip

pip install pytorch-lightning==1.9.5

pip install transformers

pip install onnx

pip install onnxruntime

 

VScode 설치

 


ssh 서버 설치 및 로컬에서 접속

 

* open ssh 서버와 클라이언트 모두 설치

$ sudo apt-get install ssh

 

$ sudo systemtl status ssh

서버가 활성화 상태인지 확인ㅇㅇ -> active(running) 보이면 실행중인 상태

 

방화벽 상태를 확잉ㄴ하고 사용중이라면? ssh 허용하도록 변경

$ sudo ufw status

$ sudo ufs allow ssh

 

서버 접속을 위한 ip 주소 알아내기

$ ifconfig

필요한 경우 net-tools 설치

$ sudo apt install net-tools

 

inet 값이 ip 주소!!