Post on 24-Feb-2021
ESP30076 임베디드 시스템 프로그래밍(Embedded System Programming)
1
조 윤 석
전산전자공학부
Module 2: Installation of VPC and Linux
가상 컴퓨터(Virtual PC)에 대한 이해
호스트 컴퓨터에 Virtual PC설치 하기
가상머신에 우분투 설치 하기
가상머신 설정 방법에 대한 이해
주차별 목표
2
가상 PC 프로그램
– 시스템 콜을 사용할 수 있는 커널 모드가 아닌 사용자 모드에서 동작하는 응용프로그램
– 사용자 모드에서 가상 사용자 모드와 가상 커널 모드를사용자에게 지원해 주어 PC 안에 또 하나의 가상 PC를 운영할 수 있도록 환경을 만들어 주는 소프트웨어
Virtual PC
3
가상 PC 프로그램
– 오라클사의 버추얼박스 (VirtualBox)
– VMware사의 VMware 워크스테이션
– 마이크로소프트사의 Microsoft Virtual PC
VirtualBox
– 독일계 이노텍사에서 초기 개발된 이후, 썬마이크로시스템즈 사에 합병되어 프로그램이 제공됨
– 현재는 오라클에서 인수하여 프로그램을 무료로 제공
– 윈도우와 맥 OS X, 리눅스, 솔라리스 등에서 실행 가능하며, 다양한 종류의 게스트 운영체제 (DOS, 윈도우, 리눅스, 솔라리스, 오픈 솔라리스, OS/2, 오픈 BSD 등)를 지원
Virtual PC Programs
4
Ubuntu 다운로드
– http://releases.ubuntu.com/lucid/ 에서 프로그램 다운
Program Installation
5
Program Installation
6
Ubuntu 버전 정보버전
코드명해석 커널버전 배포
지원 기간
Adjective Animal 데스크톱 서버
4.10 Warty Warthog 혹 난 혹멧돼지 2.6.8-1 2004/10/20 ~2006/04
5.04 Hoary Hedgehog 백발의 고슴도치 2.6.10 2005/04/08 ~2006/10
5.10 Breezy Badger 산들바람의 오소리 2.6.12 2005/10/13 ~2007/04
*6.06 Dapper Drake 날렵한 수오리 2.6.15 2006/06/01 ~2009/06 ~2011/06
6.10 Edgy Eft 날카로운 영원 2.6.17 2006/10/26 ~2008/04
7.04 Feisty Fawn 기운찬 새끼사슴 2.6.20 2007/04/19 ~2008/10
7.10 Gutsy Gibbon 용감한 긴팔원숭이 2.6.22 2007/10/18 ~2009/04
*8.04 Hardy Heron 강건한 왜가리 2.6.24 2008/04/24 ~2011/04 ~2013/04
8.10 Intrepid Ibex 용맹한 야생염소 2.6.27 2008/10/30 ~2010/04
9.04 Jaunty Jackalope 쾌활한 뿔토끼 2.6.28 2009/04/23 ~2010/10
9.10 Karmic Koala 숙명의 코알라 2.6.31 2009/10/29 ~2011/04
*10.04 Lucid Lynx 맑은 스라소니 2.6.32 2010/04/29 ~2013/04 ~2015/04
10.10 Maverick Meerkat 사나운 미어캣 2.6.35 2010/10/10 ~2012/04
11.04 Natty Narwhal 산뜻한 외뿔고래 2.6.38 2011/04/28 ~2012/10
11.10 Oneiric Ocelot 꿈꾸는 표범 3.0 2011/10/13 ~2013/04
*12.04 Precise Pangolin 정밀한 천산갑 3.2 2012/04/26 ~2017/04
12.10 Quantal Quetzal 양질의 케트살 3.5 2012/10/18 ~2014/04
13.04 Raring Ringtail 근질근질한 링테일 3.8 2013/04/25 ~2014/1
13.10 Saucy Salamander 건방진 도롱뇽 TBA 2013/10 ~2014/7
프로그램 다운로드
– https://www.virtualbox.org/ 에서 프로그램 다운
VirtualBox Installation
7
프로그램 다운로드
– 사용하고 있는 OS에 맞는 프로그램 내려받기
VirtualBox Installation
8
다운로드 된 파일 확인
VirtualBox Installation
9
VirtualBox 설치파일 실행
VirtualBox Installation
10
VirtualBox 설치 진행
VirtualBox Installation
11
VirtualBox 설치 진행
VirtualBox Installation
12
VirtualBox 설치 진행
VirtualBox Installation
13
VirtualBox 설치 진행
VirtualBox Installation
14
VirtualBox 설치 진행
VirtualBox Installation
15
VirtualBox 설치 진행
– Install Device Software
VirtualBox Installation
16
VirtualBox 설치 진행
VirtualBox Installation
17
VirtualBox 설치 완료
VirtualBox Installation
18
우분투용 가상머신 생성
Virtual Machine for Ubuntu
19
우분투용 가상머신 생성
Virtual Machine for Ubuntu
20
우분투용 가상 머신 생성
– 가상 머신 이름 할당
Virtual Machine for Ubuntu
21
우분투용 가상 머신 생성
– 메모리 크기 할당
Virtual Machine for Ubuntu
22
우분투용 가상 머신 생성
– 가상 머신 하드 드라이브 생성
Virtual Machine for Ubuntu
23
우분투용 가상 머신 생성
– 가상 머신 하드 드라이브 생성
Virtual Machine for Ubuntu
24
우분투용 가상 머신 생성
– 가상 머신 하드 드라이브 생성
Virtual Machine for Ubuntu
25
우분투용 가상 머신 생성
– 가상 머신 하드 드라이브 생성
Virtual Machine for Ubuntu
26
우분투용 가상 머신 생성 완료
Virtual Machine for Ubuntu
27
우분투 설치하기
Ubuntu Installation
28
시동 디스크 선택
Ubuntu Installation
29
VirtualBox 정보 확인
Ubuntu Installation
30
Ubuntu 언어 설정
Ubuntu Installation
31
Ubuntu 지역 및 시간대 설정
Ubuntu Installation
32
Ubuntu 키보드 설정
Ubuntu Installation
33
Ubuntu 설치 디스크 설정
Ubuntu Installation
34
사용자 이름 및 비밀번호 설정
Ubuntu Installation
35
Ubuntu 설치 하기
Ubuntu Installation
36
Ubuntu 설치 화면
Ubuntu Installation
37
Ubuntu 설치 완료 및 컴퓨터 다시 시작
Ubuntu Installation
38
Ubuntu 리눅스로 로그인 하기
Ubuntu Installation
39
Ubuntu 리눅스로 로그인 하기
Ubuntu Installation
40
우분투 실행 화면
Ubuntu Installation
41
언어 설치하기
Ubuntu Installation
42
공유폴더 지정
VirtualBox Guest Additions Installation
43
공유폴더 지정
VirtualBox Guest Additions Installation
44
공유폴더 지정
VirtualBox Guest Additions Installation
45
공유폴더 지정
VirtualBox Guest Additions Installation
46
공유폴더 지정
VirtualBox Guest Additions Installation
47
공유폴더 마운트 하기
– vboxsf 파일시스템 오류
VirtualBox Guest Additions Installation
48
게스트 확장 설치
VirtualBox Guest Additions Installation
49
게스트 확장 설치
VirtualBox Guest Additions Installation
50
게스트 확장 설치
VirtualBox Guest Additions Installation
51
게스트 확장 설치
VirtualBox Guest Additions Installation
52
게스트 확장 설치
VirtualBox Guest Additions Installation
53
공유폴더 마운트 하기
– 정상적으로 마운트 된 것 확인
VirtualBox Guest Additions Installation
54
VirtualBox 설정하기
VirtualBox Configuration
55
VirtualBox 설정 화면
VirtualBox Configuration
56
VirtualBox 설정 화면
– 시스템 설정
VirtualBox Configuration
57
VirtualBox 설정 화면
– 디스플레이 설정
VirtualBox Configuration
58
VirtualBox 설정 화면
– 저장소 설정
VirtualBox Configuration
59
VirtualBox 설정 화면
– 연결되어 있는 CD/DVD 제거하기
VirtualBox Configuration
60
VirtualBox 설정 화면
– 네트워크 설정
VirtualBox Configuration
61
VirtualBox 설정 화면
– Serial(직렬) 포트 설정
VirtualBox Configuration
62
VirtualBox 설정 화면
– 공유폴더 설정
VirtualBox Configuration
63
VirtualBox 설정 화면
– 공유폴더 설정
VirtualBox Configuration
64
VirtualBox 설정 화면
– 시스템 설정
VirtualBox Configuration
65
VirtualBox 설정 화면
– 공유폴더 마운트 확인
VirtualBox Configuration
66
우분투 환경 설정
– 해상도 설정
Ubuntu Environments Setting
67
우분투 환경 설정
– 테마 변경
Ubuntu Environments Setting
68
우분투 환경 설정
– 패널 설정
Ubuntu Environments Setting
69
우분투 환경 설정
– 패널 설정
Ubuntu Environments Setting
70
우분투 환경 설정
– 변경된 테마 확인
Ubuntu Environments Setting
71
루트계정 생성하기
To Make Root Account
72
esp@esp-desktop:~$ sudo passwd root[sudo] password for esp:새 UNIX 암호 입력:새 UNIX 암호 재입력:passwd: 암호를 성공적으로 업데이트했습니다esp@esp-desktop:~$
루트계정 생성하기
– 루트계정으로 로그인하기
To Make Root Account
73
루트계정 생성하기
– 루트계정 확인
To Make Root Account
74
폰트(Fonts) 변경하기
To Change Fonts
75
폰트(Fonts) 다운로드
Fonts Download
76
# apt-get install xfonts-terminusroot@esp-desktop:~# wgethttp://cdn.naver.com/naver/dic/naverdic.tgz--2012-09-17 15:37:13-- http://cdn.naver.com/naver/dic/naverdic.tgzResolving cdn.naver.com... 1.226.51.108, 183.111.25.74, 183.111.26.5접속 cdn.naver.com|1.226.51.108|:80... 접속됨.HTTP request sent, awaiting response... 200 OKLength: 16057420 (15M) [text/plain]Saving to: `naverdic.tgz'100%[=============================================>] 16,057,420 15.7M/s in 1.0s 2012-09-17 15:37:15 (15.7 MB/s) - `naverdic.tgz' saved [16057420/16057420]root@esp-desktop:~# lsroot@esp-desktop:~# tar xvfz naverdic.tgznaverdic.ttfroot@esp-desktop:~# mv naverdic.ttf /usr/share/fonts/truetyperoot@esp-desktop:~# fc-cache -v/usr/share/fonts: skipping, existing cache is valid: 0 fonts, 3 dirs/usr/share/fonts/X11: skipping, existing cache is valid: 0 fonts, 6 dirs
77
Fonts Change