while [ $# -gt 0 ]; do case $1 in --distribution) distribution=$2; shift 2 ;; --codename) codename=$2; shift 2 ;; --release) release=$2; shift 2 ;; --arch) bsarch=$2; shift 2 ;; --tag) tag=$2; shift 2 ;; --bucket) bucket=$2; shift 2 ;; --prefix) prefix=$2; shift 2 ;; --user) AWS_USER_ID=$2; shift 2 ;; --access-key) AWS_ACCESS_KEY_ID=$2; shift 2 ;; --secret-key) AWS_SECRET_ACCESS_KEY=$2; shift 2 ;; --private-key) EC2_PRIVATE_KEY=$2; shift 2 ;; --cert) EC2_CERT=$2; shift 2 ;; --timezone) timezone=$2; shift 2 ;; --locale) locale=$2; shift 2 ;; --charmap) charmap=$2; shift 2 ;; --size) size=$2; shift 2 ;; --no-run-user-data) no_run_user_data=1; shift ;; --script) scripts=("${scripts[@]}" "$2"); shift 2 ;; --package) packages="$packages $2"; shift 2 ;; --kernel) kernel=$2; shift 2 ;; --ramdisk) ramdisk=$2; shift 2 ;; --modules) modules=$2; shift 2 ;; --desktop) desktop=$2; shift 2 ;; --rightscale) rightscale=1; shift ;; --builddir) builddir=$2; shift 2 ;; --bundle-opts) bundle_vol_options=$2; shift 2 ;; --location) location=$2; shift 2 ;; --ec2-ami-tools-version) tools_version=$2; shift 2 ;; *) echo "$0: Unrecognized option: $1" >&2; exit 1; esac done
Ubuntu and Debian AMIs for Amazon EC2
us-east-1
Ubuntu Release server
32-bitserver
64-bitdesktop
32-bitdesktop
64-bitUbuntu 9.04 Jaunty ami-ccf615a5 ami-eef61587 ami-caf615a3 ami-ecf61585 Ubuntu 8.10 Intrepid ami-c0f615a9 ami-e2f6158b ami-cef615a7 ami-e0f61589 Ubuntu 8.04 Hardy ami-c4f615ad ami-e6f6158f ami-c2f615ab ami-e4f6158d Ubuntu 6.06 Dapper ami-c6f615af ami-f8f61591 Debian Release server
32-bitserver
64-bitdesktop
32-bitdesktop
64-bitDebian Squeeze ami-daf615b3 ami-fcf61595 ami-d8f615b1 ami-faf61593 Debian 5.0 Lenny ami-dcf615b5 ami-f0f61599 ami-0af51663 ami-fef61597 Debian 4.0 Etch ami-def615b7 ami-f2f6159b
Amazon Elastic Compute Cloud (EC2) provides self-serve, on-demand servers where you pay for the capacity you use.
The Ubuntu and Debian images listed above are built for Amazon EC2 using a collection of best practices collected from the EC2, Ubuntu, and Debian communities.
Mac OS X
Command Line Interface
- Download the desired .img file
- Open a Terminal (in /Applications/Utilities/)
Run diskutil list to get the current list of devices
- Insert your flash media
Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2)
Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command; in the previous example, N would be 2)
Execute sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m (replace /path/to/downloaded.img with the path where the image file is located; for example, ./ubuntu.img, /dev/rdiskN is faster than /dev/diskN). If you see the error dd: Invalid number `1m', you are using GNU dd. Use the same command but replace bs=1m with bs=1M.
Run diskutil eject /dev/diskN and remove your flash media when the command completes
Ubuntu USB イメージを作る。
「アプリケーション」>「端末」を開いて「sudo nautilus」と入力しEnterすることで、ファイルブラウザを管理者権限で起動。こうしないと、USB接続の500GBのHDに書き込みができないので。
This project maintains a script which can be used to build Amazon EC2 Machine Images (AMIs) with a base install of the Ubuntu or Debian distribution.
The latest version of the script is available using this link:
http://ec2ubuntu-build-ami.notlong.comA list of Ubuntu and Debian AMIs built using this script is available here:
http://www.alestic.comSupport for the Ubuntu EC2 AMIs and this build script is available on the ec2ubuntu Google Group:
http://groups.google.com/group/ec2ubuntuSupport for the Debian EC2 AMIs is available on the ec2debian Google Group:
http://groups.google.com/group/ec2debianSupport for EC2 in general is available on the EC2 forum:
http://ec2forum.notlong.com
Native Ubuntu Linux package John Leach from Brightbox has kindly provided an Ubuntu 8.04 package for Phusion Passenger. The package is available from the Brightbox repository which you can find at http://apt.brightbox.net.
Add the following line to the Third Party Software Sources:
(The simplest way to do that is to create a file in /etc/apt/sources.list.d/ containing the deb instruction, and then run 'apt-get update').deb http://apt.brightbox.net hardy mainOnce you've done this then you can install Phusion Passenger by running:
or, for the Nginx version:apt-get install libapache2-mod-passengerapt-get install nginx-brightboxPlease also visit the package's wiki page for more documentation about this package.
Ubuntuだとaptで入るPassenger