debian on ec2

17
Debian on AWS EC2 Aya Komuro 2012729日日曜日

Upload: aya-komuro

Post on 12-Nov-2014

1.192 views

Category:

Technology


2 download

DESCRIPTION

第1回目福岡Debian勉強会で発表した、DebianをEC2で使う方法についての資料です!

TRANSCRIPT

Page 1: Debian on EC2

Debian on AWS EC2Aya Komuro

2012年7月29日日曜日

Page 2: Debian on EC2

お知らせ

Keynoteで作った資料です。

Mac Book AirはMac OS Xです。

ざわ...

ざわ..

m9( ´д)ヒソ(´д`)ヒソ(д` )c9m

ざわ...

ざわ..

ざわ...

ざわ..

2012年7月29日日曜日

Page 3: Debian on EC2

本日の目次

AWSでの仮想サーバの立て方

Debianの探し方、見方

自分でイメージを作る方法

2012年7月29日日曜日

Page 4: Debian on EC2

http://aws.amazon.com/jp/

Amazon Web Services

2012年7月29日日曜日

Page 5: Debian on EC2

マネージメントコンソールにログインEC2を選択

Launch Instanceをクリック

Create a New Insntacesから、Classic Wizardを選択

EC2の使い方

2012年7月29日日曜日

Page 6: Debian on EC2

Community AMIsタブを選択、検索でDebianを入力(検索に少し時間がかかる...)

EC2の使い方

2012年7月29日日曜日

Page 7: Debian on EC2

面倒だ!という貴方には

2012年7月29日日曜日

Page 8: Debian on EC2

ルートディバイス選択

Instance Store: 停止させたらデータが消える(揮発性)

EBS: 停止、再起動させてもデータは消えない

AMI IDからの検索

ユニークなID

Community AMIsの見方

2012年7月29日日曜日

Page 9: Debian on EC2

Community AMIsの見方ap-northeast-1.aws157-team/images/2012-01-27-01-11-12/debian-i386/debian-i386.manifest.xml

2ndquadrant-ami-ap-northeast-1/debian-squeeze-amd64-beta2.img.manifest.xml

rightscale-oss-rightimages-ap-northeast-1/rightimage_debian_6.0.1_i386_20110405.1.manifest.xml

624081292306/debian-6.0-squeeze-base-i386-20110417

750753468831/[email protected]

arakisa/ami/xvdg.img.manifest.xml

246035562716/debian-installer-squeeze4-amd64

2012年7月29日日曜日

Page 10: Debian on EC2

EC2の起動方法

2012年7月29日日曜日

Page 11: Debian on EC2

$ ssh -i dev-komuro-debian.pem [email protected] authenticity of host 'ec2-175-41-213-228.ap-northeast-1.compute.amazonaws.com (175.41.213.228)' can't be established.RSA key fingerprint is ed:18:4e:2c:c6:b6:c7:5e:ed:1b:f4:93:7e:7b:2c:50.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added 'ec2-175-41-213-228.ap-northeast-1.compute.amazonaws.com,175.41.213.228' (RSA) to the list of known hosts.Linux ip-10-156-119-96 2.6.32-5-xen-amd64 #1 SMP Mon Oct 3 07:53:54 UTC 2011 x86_64

The programs included with the Debian GNU/Linux system are free software;the exact distribution terms for each program are described in theindividual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extentpermitted by applicable law.root@ip-10-156-119-96:~# uname -aLinux ip-10-156-119-96 2.6.32-5-xen-amd64 #1 SMP Mon Oct 3 07:53:54 UTC 2011 x86_64 GNU/Linuxroot@ip-10-156-119-96:~# cat /etc/apt/sources.listdeb http://security.debian.org/ squeeze/updates main contrib non-freedeb-src http://security.debian.org/ squeeze/updates main contrib non-freedeb http://ftp.debian.org/debian/ squeeze main contrib non-freedeb-src http://ftp.debian.org/debian/ squeeze main contrib non-free

arakisa/ami/debian-squeeze-64/xvdg.img.manifest.xml(ami-b216a1b3)

2012年7月29日日曜日

Page 12: Debian on EC2

rightscale-oss-rightimages-ap-northeast-1/rightimage_debian_6.0.1_i386_20110405.1.manifest.xml (ami-42cc6643)

$ ssh -i dev-komuro-debian.pem [email protected] authenticity of host 'ec2-54-248-40-245.ap-northeast-1.compute.amazonaws.com (54.248.40.245)' can't be established.RSA key fingerprint is 1b:35:36:b1:f7:3a:e2:47:3a:3c:4b:b6:1e:bd:cb:8f.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added 'ec2-54-248-40-245.ap-northeast-1.compute.amazonaws.com,54.248.40.245' (RSA) to the list of known hosts.Linux ip-10-158-165-225 2.6.32-5-xen-686 #1 SMP Wed Mar 9 01:27:54 UTC 2011 i686

The programs included with the Debian GNU/Linux system are free software;the exact distribution terms for each program are described in theindividual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.root@ip-10-158-165-225:~# uname -aLinux ip-10-158-165-225 2.6.32-5-xen-686 #1 SMP Wed Mar 9 01:27:54 UTC 2011 i686 GNU/Linuxroot@ip-10-158-165-225:~# cat /etc/apt/sources.listdeb http://ftp.us.debian.org/debian squeeze maindeb-src http://ftp.us.debian.org/debian/ squeeze maindeb http://security.debian.org/ squeeze/updates maindeb-src http://security.debian.org/ squeeze/updates main

2012年7月29日日曜日

Page 13: Debian on EC2

ap-northeast-1.aws157-team/images/2012-06-12-04-20-30/debian-amd64/debian-amd64.manifest.xml (ami-24883b25)

$ ssh -i dev-komuro-debian.pem [email protected] authenticity of host 'ec2-176-34-10-252.ap-northeast-1.compute.amazonaws.com (176.34.10.252)' can't be established.RSA key fingerprint is 06:02:67:2e:59:b2:ec:9f:a5:63:f7:0a:fc:a8:c4:e2.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added 'ec2-176-34-10-252.ap-northeast-1.compute.amazonaws.com,176.34.10.252' (RSA) to the list of known hosts.Permission denied (publickey).komuro-bun-no-MacBook-Air:Downloads aya$ ssh -i dev-komuro-debian.pem root@ec2-176-34-10-252.ap-northeast-1.compute.amazonaws.comPermission denied (publickey).

ap-northeast-1.aws157-team/images/2012-01-27-01-11-12/debian-i386/debian-i386.manifest.xmlap-northeast-1.aws157-team/images/2012-01-27-03-09-33/debian-amd64/debian-amd64.manifest.xmlap-northeast-1.aws157-team/images/2012-06-12-04-18-47/debian-i386/debian-i386.manifest.xmlap-northeast-1.aws157-team/images/2012-06-12-04-20-30/debian-amd64/debian-amd64.manifest.xml

AMI: Amazon Elastic MapReduce 2012-06-12-04-18-47 pvm/s3

一般的な仮想サーバとしては使えない!2012年7月29日日曜日

Page 14: Debian on EC2

ec2debianDebianのイメージを作成、公開したり、DebianをEC2上で動かす際の情報共有などを行う

メンバー数: 339人

2012年7月29日日曜日

Page 15: Debian on EC2

ec2debianCamptocamphttps://github.com/camptocamp/ec2debian-build-ami

ec2ubuntuのfork版 http://code.google.com/p/ec2ubuntu/2012年7月29日日曜日

Page 17: Debian on EC2

Debian in everywhere

Debianをもっと使って行きましょう♥

2012年7月29日日曜日