AMI イメージ作成ツール( ecubuntu.googlecode.com )

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

EC2 and Ubuntu - Alestic.com

Ubuntu and Debian AMIs for Amazon EC2

us-east-1
Ubuntu Release server
32-bit
server
64-bit
desktop
32-bit
desktop
64-bit
Ubuntu 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-bit
server
64-bit
desktop
32-bit
desktop
64-bit
Debian 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
us-west-1
Ubuntu Release server
32-bit
server
64-bit
desktop
32-bit
desktop
64-bit
Ubuntu 9.04 Jaunty ami-b53a6bf0 ami-b93a6bfc ami-613d6c24 ami-733d6c36
Ubuntu 8.10 Intrepid ami-a33a6be6 ami-b73a6bf2 ami-593d6c1c ami-753d6c30
Ubuntu 8.04 Hardy ami-913a6bd4 ami-9d3a6bd8 ami-513d6c14 ami-693d6c2c
Ubuntu 6.06 Dapper ami-9b3a6bde ami-a13a6be4
Debian Release server
32-bit
server
64-bit
desktop
32-bit
desktop
64-bit
Debian Squeeze ami-bb3a6bfe ami-493d6c0c ami-013d6c44
Debian 5.0 Lenny ami-b33a6bf6 ami-4d3d6c08 ami-793d6c3c ami-0d3d6c48
Debian 4.0 Etch ami-ab3a6bee ami-473d6c02
   eu-west-1   
Ubuntu Release server
32-bit
server
64-bit
desktop
32-bit
desktop
64-bit
Ubuntu 9.04 Jaunty ami-605b7014 ami-6e5b701a ami-625b7016 ami-685b701c
Ubuntu 8.10 Intrepid ami-84446ff0 ami-785b700c ami-94446fe0 ami-785b700c
Ubuntu 8.04 Hardy ami-98446fec ami-7c5b7008 ami-9a446fee ami-7e5b700a
Ubuntu 6.06 Dapper ami-8a446ffe ami-705b7004
Debian Release server
32-bit
server
64-bit
desktop
32-bit
desktop
64-bit
Debian Squeeze ami-8c446ff8 ami-745b7000 ami-8e446ffa ami-765b7002
Debian 5.0 Lenny ami-b8446fcc ami-80446ff4 ami-725b7006 ami-82446ff6
Debian 4.0 Etch ami-be446fca ami-86446ff2


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.

Installation/FromImgFiles - Community Ubuntu Documentation

Mac OS X

Command Line Interface

  1. Download the desired .img file
  2. Open a Terminal (in /Applications/Utilities/)
  3. Run diskutil list to get the current list of devices

  4. Insert your flash media
  5. Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2)

  6. Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command; in the previous example, N would be 2)

  7. 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.

  8. Run diskutil eject /dev/diskN and remove your flash media when the command completes

Ubuntu USB イメージを作る。

ec2ubuntu - Project Hosting on Google Code

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.com

A list of Ubuntu and Debian AMIs built using this script is available here:

http://www.alestic.com

Support for the Ubuntu EC2 AMIs and this build script is available on the ec2ubuntu Google Group:

http://groups.google.com/group/ec2ubuntu

Support for the Debian EC2 AMIs is available on the ec2debian Google Group:

http://groups.google.com/group/ec2debian

Support for EC2 in general is available on the EC2 forum:

http://ec2forum.notlong.com

Ubuntu:Django:1.0.2 Install

root@ubu01:# easy_install-2.5 Django
Searching for Django
Reading http://pypi.python.org/simple/Django/
Reading http://www.djangoproject.com/
Reading http://www.djangoproject.com/download/1.0.1-beta-1/tarball/
Best match: Django 1.0.2-final
Downloading
http://media.djangoproject.com/releases/1.0.2/Django-1.0.2-final.tar.gz
Processing Django-1.0.2-final.tar.gz
Running Django-1.0.2-final/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-PKmF7K/Django-1.0.2-final/egg-dist-tmp-d9PUn-
zip_safe flag not set; analyzing archive contents...
django.template.loaders.app_directories: module references __file__
django.core.management.base: module references __path__
django.core.management.__init__: module references __file__
django.core.management.__init__: module references __path__
django.core.management.sql: module references __file__
django.core.management.commands.loaddata: module references __file__
django.core.management.commands.runserver: module references __path__
django.core.servers.basehttp: module references __path__
django.conf.__init__: module references __file__
django.conf.project_template.manage: module references __file__
django.templatetags.__init__: module references __path__
django.db.__init__: module references __path__
django.db.models.loading: module references __file__
django.test.simple: module references __file__
django.test._doctest: module references __file__
django.test._doctest: module MAY be using inspect.getsourcefile
django.utils.version: module references __path__
django.utils.autoreload: module references __file__
django.utils.translation.trans_real: module references __file__
django.contrib.admindocs.views: module references __path__
django.contrib.auth.tests.views: module references __file__
django.contrib.admin.__init__: module references __path__
django.contrib.gis.tests.test_gdal_ds: module references __file__
django.contrib.gis.tests.layermap.tests: module references __file__
django.contrib.gis.tests.geoapp.tests: module references __file__
django.views.i18n: module references __file__
Adding Django 1.0.2-final to easy-install.pth file
Installing django-admin.py script to /usr/bin

 Installed /usr/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg
Processing dependencies for Django
Finished processing dependencies for Django

Install — Phusion Passenger™ (a.k.a. mod_rails / mod_rack)

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:

deb http://apt.brightbox.net hardy main
(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').

Once you've done this then you can install Phusion Passenger by running:

apt-get install libapache2-mod-passenger
or, for the Nginx version:
apt-get install nginx-brightbox

Please also visit the package's wiki page for more documentation about this package.

Ubuntuだとaptで入るPassenger

Ubuntu: SHIFT-JIS : あーあ

hoge@ubuntu-vbox:/etc/default$ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
de_AT.utf8
de_BE.utf8
de_CH.utf8
de_DE.utf8
de_LI.utf8
de_LU.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NG
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
fr_BE.utf8
fr_CA.utf8
fr_CH.utf8
fr_FR.utf8
fr_LU.utf8
ja_JP.utf8

hoge@ubuntu-vbox:/etc/default$ sudo aptitude install convmv
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done     
The following NEW packages will be installed:
  convmv
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 18.7kB of archives. After unpacking 90.1kB will be used.
Writing extended state information... Done
Get:1 http://ubuntutym.u-toyama.ac.jp hardy/universe convmv 1.10-0.1 [18.7kB]
Fetched 18.7kB in 0s (94.8kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "ja_JP.SJIS"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously deselected package convmv.
(Reading database ... 120613 files and directories currently installed.)
Unpacking convmv (from .../convmv_1.10-0.1_all.deb) ...
Setting up convmv (1.10-0.1) ...
Reading package lists... Done            
Building dependency tree      
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Writing extended state information... Done
Building tag database... Done            
関係なかった。

こっちです。

hoge@ubuntu-vbox:/etc/default$  sudo localedef -f SHIFT_JIS -i ja_JP ja_JP.SJIS
character map `SHIFT_JIS' is not ASCII compatible, locale not ISO C compliant

hoge@ubuntu-vbox:/etc/default$ locale -a | grep jis
ja_JP.sjis