8
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ubuntu-debootstrapを日本仕様にしといた

Last updated at Posted at 2014-07-13

officialのubuntu-14.04のイメージサイズが276.1MBと大きかったので
常用するために小さいイメージを用意した。

  • イメージ化するときにサイズを小さくするための一連のコマンドを用意した。
    • apt-clean

todo: ミラーサイトを ubuntutym.u-toyama.ac.jp にしたい

追加パッケージ

  1. vim-tiny
  2. dialog

使い方

90.56MB
docker run -it tukiyo3/ubuntu-bootstrap-ja:14.04 /bin/bash
126.6MB
docker run -it tukiyo3/ubuntu-bootstrap-ja:14.10 /bin/bash
2014-12-27作成
docker run -it tukiyo3/ubuntu-bootstrap-base /bin/bash

作成手順

docker run -it ubuntu-bootstrap:14.04 /bin/bash
作り方
unlink /etc/localtime
ln -s /usr/share/zoneinfo/Japan /etc/localtime
cp -a .bashrc /.bashrc
cp -a sources.list /etc/apt/
locale-gen ja_JP.UTF-8

apt-get update -qq
apt-get install -y vim-tiny dialog

mv /etc/apt/sources.list /etc/apt/sources.list.bak
apt-get clean
apt-get update
mv /etc/apt/sources.list.bak /etc/apt/sources.list

ファイル

sources.list
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty main restricted
#deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-updates main restricted
#deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty universe
#deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty universe
deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-updates universe
#deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-updates universe

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-backports main restricted
# deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-backports main restricted

deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-security main restricted
#deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-security main restricted
deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-security universe
#deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-security universe
# deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-security multiverse
# deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-security multiverse
.bashrc
export LANG=ja_JP.UTF-8
apt-clean() {
    mv /etc/apt/sources.list{,.bak}
    apt-get clean
    apt-get update
    mv /etc/apt/sources.list{.bak,}
}
8
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?