69 西 Debian
西 Debian
2013 2 24
69 西 Debian 2013 2
1 Introduction
Debian JP
西 Debian 勉強 Debian GNU/Linux さまなト (いパケー Debian 有のの仕
Debian です
的と次の考えす。
ML 掲示はな接顔せるの情の促
期的まれ
料の
れで楽しをお下さ
1
西Debian
1 Introduction 1
2 近の Debian 関係イベ 3
3 前課 4
4 Debian Installer ラブ 7
5 Ruby In Wheezy 13
6 Debian Policy ペレ」そ 2 16
7 後の 17
8 18
2
69 西 Debian 強会 2013 2
2 Debian
Debian JP
2.1 68 西 Debian
68 目の西 Debian 会は 1 27 () 研修で行まし
Using Drupal on Debian Drupal Debian よく
野方さん 月刊 Debian Policy オペレーングシステム」は一回で収まらない内容たので前半のユーザと
ープとなた。 init スク以降回とした続きみで
の奈催でが、場は園内くの気の場所た。は大外の所で会を催し
です
2.2 97 Debian 2013 2 2013 OSC
97 の東 Debian 強会 2 23 () ープスカ 2013 Tokyo/Spring
版と開催した
ミナは野によ Debian update - Debian 新動いてます表がわれ
2.3 2013 Hamamatsu
2 9 () センーで催さたオプンースンフ 2013 Hamamatsu
Debian 強会ースまし
2.4 1 Debian
2 9 () に京で第 1 Debian ケーグ道催さした
日は 9 名の参加者が午前中に岩松さんから基本的なケージの作成方法と最新のージング事情と使い方の説
をう午後自が思いないた。
TitanPad ます照してく http://debian-pkg-dojo.titanpad.com/1
3
69 西 Debian 強会 2013 2
3
Debian JP
回はの課題し.
1. リーート B. preseed インール化」
a
読ん下さ
た、で気点なればて下
2. Wheezy しく sid apt-get install ruby してて下い。
3. (業務くは) お使 Ruby ソフアがればえて
た、 Debian
a
http://www.debian.org/releases/stable/i386/apb.html.ja
加者さんは以りで
3.1 西
1. んと読んでいたら長くなてしまたの https://gist.github.com/znz/831f7bd6b0c5eff06530
きま
B.1.1. hd-media hd なのなりた。
B.2.1. ンスラがに正事前イル取得るのこの定です。
、こ md5sum 前設
。一ない、イトー前設使ませ
須かかわくいいま
B.2.2.
Linux ーネ (2.6.9 ) は、 (ンスラが指定オプ含め)
ンドライオプンを 32 、環境オプシンを 32 受け取れます。この数を超 と、ーネルは
() してまい (のカでは字が)
さのがあどうになた。
B.2.3. auto ートは、どこ義さませ
auto url=...」とのが使のかかわせん
B.2.5. の文字列、ネトワーク上の全マンに preseed でインストールするのではなく、特定のホストに対し
うよもで
の文とは?
B3 と値はよませ
はタ (タイ) ?
4
B.4.1. 方法は費用に使うのが容易ですが、言語、国、ロケールの用可能な組み合わせをすべ preseed でき
けでりま [29]語と、どブーラメ指定す。
用に使のがいうろの分かんで
B.4.5. ワーてい事前アクきるに、
事前設定イルが」 前設イルは」 事前設定イルを」かの方が良いのでない
B.4.10. のパータは、ネルマンインのまされで、マか白で
リス取れ
ーネマンンでに空りは使いはで、のよえま
B.5.2. 場合質問れま
こも訳で? () (状態
戻す続く) 意味ます
B.5.2. ージ
typo?
B.5.3. イルよりな設定す
specific かなと訳
2. ンスルし
3. nadoka とい IRC proxy のようなものを使ているのですが、新しいバーンが Debian ケージ
3.2
1. んでした
preseed 使たこはなすが告がうにがし
2. てあす。
3. redmine, nokogiri, rabbit
3.3
1. い、ら頑す。
2. い。 schroot の中 sid 環境インルしきま
3. Redmine 使てい
3.4 murase syuka
1. く読みた分か
2. rvm install
3. rvm/irb(pry)/rails
3.5
1. い読したいま HDD ーテンのがよてな
http://www.nofuture.tv/linux/debianautoinstall
2. い。
3. tDiary 使てま
5
3.6
1. んでます
2. sid 境で apt-get install ruby 実行まし
3. rabbit らい
3.7 yyatsuo
1. 通りでみ
2. Ruby 1.9.1
3. 段使 RedMine
まで使のは Milkode Termtter
3.8
1. 読んす。
たい、時...(
2. 想環 squeeze 、昨やく wheezy にあした
ーと ruby てる (確認)
3. tdiary ブロいてす。
3.9
1. preceed く使
2. 段か使 mruby ruby2.0
3. redmine Jekyll いとにく。あ今回ゼン rabbit
3.10
1. 通りまし
2. Wheezy 実験にイールした
だネ VM のででは使ないれま
場で使えけるすが
3. yard, rmagick, test-unit, NArray, depq
3.11 kazuhito.sumpic
(回答)
6
69 西 Debian 強会 2013 2
4 Debian Installer
Yuryu
4.1
Yuryu (twitter: @Yuryu)
社でフラニア
potato woody (浮気) Ubuntu(Gusty) ... Ubuntu(Precise)
社で Debian 使
きなンド xargs
4.2 Preseed
4.2.1 Preseed
Debian Installer 応答
べて択肢
PXE 組みると
体で使えま ()
locale=en_US language=en country=JP
console-keymaps-at/keymap=jp106
keyboard-configuration/xkb-keymap=jp106
interface=eth0 hostname=debian
domain=local url=http://holo.yuryu.jp/preseed.cfg
DEBCONF_DEBUG=5
4.2.2 boot ンの
Preseed るの定が
前にンスーのはあ
ブープシ
いの打ち PXE を使
4.2.3 expert install
expert options automated install
中で preseed イルでき
7
りあ試す
4.2.4 url
preseed
http, ftp, tftp
https 使 (!)
4.2.5
d-i 項目 の羅
### Clock and time zone setup
# Controls whether or not the hardware clock is set to UTC.
d-i clock-setup/utc boolean true
# You may set this to any valid setting for $TZ; see the contents of
# /usr/share/zoneinfo/ for valid values.
d-i time/zone string Asia/Tokyo
# Controls whether to use NTP to set the clock during the install
d-i clock-setup/ntp boolean true
# NTP server to use. The default is almost always fine here.
d-i clock-setup/ntp-server string ntp.nict.go.jp
4.2.6
本的サン
も、つか穴が...
番大のが partitioning
4.3 partitioning
4.3.1 partitioning
d-i partman-auto/choose recipe
atomic - /
home - /home け分
multi - /home, /usr, /var, /tmp
d-i partman-auto/expert recipe
4.3.2 recipe
d-i partman-auto/expert_recipe string \
boot-root :: \
40 50 100 ext2 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext2 } \
mountpoint{ /boot } \
. \
500 10000 -1 ext4 \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
. \
64 512 300% linux-swap \
method{ swap } format{ } \
.
8
4.3.3 シピ
シピ ::
低容 (MB) 最大 FS
ーテン内 .
500 1000 -1 ext4 \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /home }
4.3.4
大を -1 使
先度字がほう
=せず 100MB 程度もた
4.3.5 method
format
常通使
swap
プパ使
keep
もせ画だ
4.3.6
量のに書と、 filesystem{ }
本的同じ
ext[2-4], xfs, btrfs, jfs, linux-swap
keep (free ok)
4.3.7 約束
長にてもでき
format{ }
use filesystem{ }
filesystem{ ext4 }
4.4
4.4.1 primary
$primary{ } ライ須指
$logical{ } あり?
は無
略す logical
9
4.4.2 行で
末に \ 書く
\ 後にスがとそれま
4.4.3 シピ
シピ必須
partman-auto/choose recipe
expert recipe 使ならはい
を書も動係な...
d-i partman-auto/expert_recipe string \
boot-root :: \
4.4.4 ペー
本的スペ
きカ
method{ format }
× method { format }
grep パーるの格で...
4.4.5 シピされ?
/tmp/expert recipe
際に使れたが入
~ # cd /tmp
/tmp # ls
connection_type expert_recipe mdadm.conf
/tmp # cat expert_recipe
boot-root :: 40 50 100 ext3 #primary{ } $bootable{ } method{ format } format{ } use_filesystem{ } filesystem{ ext3 }
mountpoint{ /boot } . 500 10000 1000000000 ext3 method{ format } format{ } use_filesystem{ } filesystem{ ext3 }
mountpoint{ / } . 64 512 300% linux-swap method{ swap } format{ } .
/tmp #
4.4.6 の他
$iflabel{ label } - ルが
$defaultignore{ } - LVM 使い時
$lvmok{ } - LVM 良い
$lvmignore{ } - LVM 無視
4.4.7 ーテン再
存のンを利用
$reusemethod{ }
method(format, swap)
biosgrub, swap ?
$iflabel{ label } み合
http://lists.debian.org/debian-boot/2011/04/msg00333.html
10
4.5 troubleshoot
4.5.1 d-i
d-i 始ま行も
tasksel
popularity-contest
ピペに注
4.5.2 たら
syslog 確認
INPUT ... ラメ
4.5.3
Alt+F4 ログ
ンスル中 /var/log/syslog
ンスル後 /var/log/installer/syslog
DEBCONF DEBUG
4.5.4 わく
debian installer 実態
レク for で順でる
目名 grep ると
4.5.5 debian/*.templates
debian-installer 各種 debian/*.templates
数名、説
レンわりりま
Template: partman-partitioning/bootable_logical
Type: boolean
Default: false
# :sl2:
_Description: Are you sure you want a bootable logical partition?
You are trying to set the bootable flag on a logical partition. The
4.5.6 debconf-get-selections
ンスル済 OS 定を
debconf-get-selections –installer
ルト含め量に
要な取捨る必
4.5.7 Ubuntu
本的同じ
くつ加の
d-i pkgsel/update-policy select none
11
d-i user-setup/allow-password-weak boolean true
d-i user-setup/encrypt-home boolean false
しく https://help.ubuntu.com/lts/installation-guide/i386/preseed-contents.html
4.6
syslog
recipe スペ気を
DEBCONF DEBUG=5 !
12
69 西 Debian 強会 2013 2
5 Ruby In Wheezy
期安 Debian 7.0 (Wheezy) Ruby て、に複 Ruby 装の Gem との付き
の仕つい単にしし
5.1 “Ruby” in Wheezy
Ruby てい Debian Wheezy は以 Ruby 使:
ンタリタ 注意
MRI 1.8.7 ruby1.8
MRI 1.9.3 ruby1.9.3 ruby1.9.1 ruby1.9.3 たりす。
JRuby jruby Debian Java Maintainers
Rubinius rubinius 在作. ITP#591817
mruby mruby 現在. ITP#697835
ruby1.9.1
ケージの
ruby1.9.3
たりしま。」いて
Ruby
soname
ていない
libruby1.9.1 ジが ruby1.9.3 ジは /usr/bin/ruby1.9.1 symbolic link
供すけだ
% dpkg -S ruby1.9.3
ruby1.9.3: /usr/bin/ruby1.9.3
ruby1.9.3: /usr/share/man/man1/ruby1.9.3.1.gz
ruby1.9.3: /usr/share/doc/ruby1.9.3
ruby1.9.3: /usr/share/doc/ruby1.9.3/NEWS.Debian.gz
ruby1.9.3: /usr/share/doc/ruby1.9.3/NEWS.gz
ruby1.9.3: /usr/share/doc/ruby1.9.3/changelog.Debian.gz
ruby1.9.3: /usr/share/doc/ruby1.9.3/changelog.gz
ruby1.9.3: /usr/share/doc/ruby1.9.3/copyright
ruby1.9.3: /usr/share/doc/ruby1.9.3/README.gz
% ls -la /usr/bin/ruby1.9.3
lrwxrwxrwx 1 root root 9 Feb 23 23:44 /usr/bin/ruby1.9.3 -> ruby1.9.1*
にも Topaz HPC Ruby Compiler など (人的) にな実装がありますが、ま Debian でどこう
うおはな
5.2 Ruby
さてこれだけ数の Ruby があと、れを切りえて使いたなるが人だといま Debian
は、同じ機能を提供するソフトウアをきりかえる update-alternatives という仕組みが既にあります。ですが、
/usr/bin/ruby 切り替えたら gem irb なんかもり替えたなるでしう。のため、れらを一に変換す
めのンドされます
13
5.2.1 ステでデ Ruby える?: ruby-switch
ステム全体でルト Ruby ンタープリタを選するため ruby-switch ージが使用可です
root とし ( sudo を使)
# ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
# ruby-switch --list
ruby1.8
ruby1.9.1
# ruby-switch --set ruby1.9.1
update-alternatives: using /usr/bin/gem1.9.1 to provide /usr/bin/gem (gem) in manual mode.
update-alternatives: using /usr/bin/ruby1.9.1 to provide /usr/bin/ruby (ruby) in manual mode.
# ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
# ruby-switch --auto
update-alternatives: using /usr/bin/ruby1.8 to provide /usr/bin/ruby (ruby) in auto mode.
update-alternatives: using /usr/bin/gem1.8 to provide /usr/bin/gem (gem) in auto mode.
# ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
5.2.2 ーザルト Ruby には: rbenv
ユーザアカウント毎にデフルトの Ruby インタープリタを切り替えるには rbenv ケージを使うのが良いで
% ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
% rbenv init
# Load rbenv automatically by adding
# the following to ~/.bash_profile:
eval ‘‘$(rbenv init -)"
% echo ’eval ‘‘$(rbenv init -)"’ >> ~/.bash_profile # or ~/.bashrc, depends on your setup
% rbenv versions
% rbenv alternatives
% rbenv versions
1.8.7-debian
1.9.3-debian
% rbenv global 1.9.3-debian
% ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
見ちようえま、こ現在行中 ”ruby” /usr/bin/ruby
ャッているかです。新しい開始た後には、デトの Ruby 来たり切替えることが
きま
% ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
% rbenv global 1.9.3-debian
% ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
% rbenv global 1.8.7-debian
% ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
5.2.3 Debian Ruby をイトーには: ruby-build
ruby-build 使用す Debian だ使 Ruby インるこ
がです。ながこの README.Debian 容にて下:
While ruby-build is a great tool to build Ruby versions that are not
available via APT, you should still use the Debian-packaged versions
of Ruby whenever possible since they are tested and supported by the
Debian community.
Please do not report bugs you encounter while using your homebuilt
Rubies to the Debian team; Rubies built by yourself are not supported.
いうで、 man ruby-build で。
14
5.3 Debian Ruby
Debian では Ruby 本体のパケージン pkg-ruby チーム、 Gem 配布されてい (拡張) イブラリやア
ケーンは pkg-ruby-extras ームてメンテされています。次の話題は pkg-ruby-extras ーム良く
すな Gem 布さいる Ruby () Debian
5.4 Gem Debian : gem2deb
Gem で配布されている Ruby () ライブラリは gem2deb を用いること Debian ージに変換可です
ていの場合は gem2deb によるお手軽ケージングの成功率は perl dh make perl
*
1
らい、だと思て下
()
とえ hogehoge gem Debian 場合
% sudo apt-get install gem2deb
...
% gem fetch hogehoge
...
% gem2deb hogehoge[version].gem
...
% sudo dpkg -i ruby-hogehoge_[version].deb
良いす。にこ MRI 1.8.7, MRI 1.9.3 のパ
5.5 ...?
日の demo る予す。
*
1
CPAN perl ブラ/モジルを Debian ジにするコマ
15
69 西 Debian 強会 2013 2
6 Debian Policy
2
のが
みま。今みで
16
69 西 Debian 強会 2013 2
7
Debian JP
7.1 西 Debian
70 とな 70 西 Debian 勉強 3 24 () に港
GNOME とあいくん、によ GNOME3 立て
7.2 Debian
98 京エ Debian 会は 3 16 ()
17
69 西 Debian 強会 2013 2
8
18
西Debian
Debian
2013 2 24 1
西 Debian
19