[Tokyodebian-commits] TokyoDebian CVS update: monthly-report
debianmeetingresume2006-fuyu.tex
debianmeetingresume2006-fuyu.pdf ChangeLog
tokyodebian CVS Commit
tokyodebian-commits at lists.alioth.debian.org
Mon Oct 23 16:02:17 CEST 2006
User: dancer
Date: 06/10/23 14:02:17
Modified: . ChangeLog
Added: . debianmeetingresume2006-fuyu.tex
debianmeetingresume2006-fuyu.pdf
Log:
fuyu-book
Revision Changes Path
1.177 +4 -0 monthly-report/ChangeLog
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/ChangeLog?annotate=1.177&cvsroot=
CVSWeb: View this file: http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/ChangeLog?rev=1.177&content-type=text/x-cvsweb-markup&cvsroot=
CVSWeb: Diff to previous version: http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/ChangeLog.diff?r1=1.177&r2=1.176&cvsroot=
-----------------------------------
Index: ChangeLog
===================================================================
RCS file: /cvsroot/tokyodebian/monthly-report/ChangeLog,v
retrieving revision 1.176
retrieving revision 1.177
diff -u -r1.176 -r1.177
--- ChangeLog 19 Oct 2006 21:34:32 -0000 1.176
+++ ChangeLog 23 Oct 2006 14:02:17 -0000 1.177
@@ -1,3 +1,7 @@
+2006-10-23 Junichi Uekawa <dancer at debian.org>
+
+ * debianmeetingresume2006-fuyu.tex: initial
+
2006-10-20 Junichi Uekawa <dancer at debian.org>
* debianmeetingresume200610.tex: merge matsu
1.1 monthly-report/debianmeetingresume2006-fuyu.tex
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/debianmeetingresume2006-fuyu.tex?annotate=1.1&cvsroot=
CVSWeb: View this file: http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/debianmeetingresume2006-fuyu.tex?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
-----------------------------------
Index: debianmeetingresume2006-fuyu.tex
===================================================================
%; whizzy chapter
% -initex iniptex -latex platex -format platex -bibtex jbibtex -fmt fmt
% 以上 whizzytex を使用する場合の設定。
% Tokyo Debian Meeting resources
% Copyright (C) 2006 Junichi Uekawa
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (at your option) any later version.
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% You should have received a copy of the GNU General Public License
% along with this program; if not, write to the Free Software
% Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
% Pdf作成手順
% dvipdfmx debianmeetingresume200606.dvi
% preview (shell-command (concat "xpdf " (replace-regexp-in-string "tex$" "pdf"(buffer-file-name)) "&"))
% 画像ファイルを処理するためにはebbを利用してboundingboxを作成。
%(shell-command "cd image200606; ebb *.png")
%%ここからヘッダ開始。
\documentclass[mingoth,a4paper]{jsarticle}
\usepackage[dvipdfm]{graphicx}
\usepackage{fancybox}
\usepackage{longtable}
\usepackage{ascmac} % 囲み (screen,itembox)
\usepackage{fancyvrb} % 囲み Verbatim のために必要
\usepackage[dvipdfm]{hyperref}
\usepackage{url}
\usepackage[dvipdfm]{color}
\usepackage{wrapfig} % 図のまわりこみ
%http://www.naney.org/diki/dk/hyperref.html
%日本語EUC系環境の時
\AtBeginDvi{\special{pdf:tounicode EUC-UCS2}}
%シフトJIS系環境の時
%\AtBeginDvi{\special{pdf:tounicode 90ms-RKSJ-UCS2}}
%% spacing の設定をする。外枠を減らす。
\setlength\headheight{0mm}
\setlength\topmargin{-20mm}
\setlength\headsep{0mm}
\setlength\topskip{3mm}
\setlength\maxdepth{4pt}
\setlength\columnsep{6mm}
\setlength\textheight{252mm}
\setlength\topmargin{-5mm}
\setlength\textwidth{170mm}
\setlength\oddsidemargin{-5mm}
\setlength\evensidemargin{-5mm}
% commandline環境を定義。画面入出力についてはcommandline環境
% で表記する
\newenvironment{commandline}%
{\VerbatimEnvironment
\begin{Sbox}\begin{minipage}{15cm}\begin{fontsize}{7.3}{7.3} \begin{BVerbatim}}%
{\end{BVerbatim}\end{fontsize}\end{minipage}\end{Sbox}
\setlength{\fboxsep}{8pt}\fbox{\TheSbox}}
%%% start of santaku
\makeatletter
\newwrite\tf at jqz
\immediate\openout\tf at jqz\jobname.jqz\relax
\makeatother
\newcounter{santakucounter}
\newcommand{\santaku}[5]{%
\addtocounter{santakucounter}{1}
\addtocontents{jqz}{\arabic{santakucounter}. #5\\}
\begin{minipage}{1\hsize}
問題\arabic{santakucounter}.
#1\\
□ A #2\\
□ B #3\\
□ C #4
\end{minipage}
\hspace{1cm}
\\
}
%%% end of santaku
\newcommand{\emptyspace}{(\underline{\hspace{1cm}})}
\newcommand{\subsubsubsection}[1]{%
\vspace{1zw}{\bf #1}\\}
% sectionをセンタリングする
\makeatletter
\renewcommand{\section}{\@startsection{section}{1}{\z@}%
{\Cvs \@plus.5\Cdp \@minus.2\Cdp}% 前アキ
{.5\Cvs \@plus.3\Cdp}% 後アキ
{\normalfont\Huge\headfont\raggedright\centering}} % style
\makeatother
% section の代わりの環境
\newcommand{\dancersection}[2]{%
\newpage
東京エリアDebian勉強会 2006
\hrule
\vspace{0.5mm}
\hrule
%\hfill{}\includegraphics[width=3cm]{image200502/openlogo-nd.eps}\\
\hfill{}\includegraphics[width=16cm]{image2006-natsu/guruguru-sand-light.png}\\
\vspace{-5cm}
\begin{center}
\section{#1}
\end{center}
\hfill{}\colorbox{white}{#2}\hspace{3cm}\space\\
\vspace{1cm}
\hrule
\vspace{0.5mm}
\hrule
\vspace{1cm}
}
% BTSの番号を見るためのコマンド
\newcommand{\debianbug}[1]{#1\footnote{\url{http://bugs.debian.org/#1}}}
% for dancerj
\newcommand{\fgref}[1]{図\ref{#1}}
\newcommand{\tbref}[1]{表\ref{#1}}
\begin{document}
\begin{titlepage}
% 毎月変更する部分
\title{\includegraphics[width=9cm]{image200502/openlogo-nd.eps}\\
あんどきゅめんてっどでびあん}
\date{}
\author{\bf 東京エリアDebian勉強会}
%\maketitle % use the graphics instead of the text
%%FIXME
FIXME!!!!!!!!!!!!!!!!!!!!
\includegraphics[height=252mm]{image2006-natsu/titlepage-summer.eps}
%\thispagestyle{empty}
\end{titlepage}
\newpage
\setcounter{tocdepth}{1}
\tableofcontents
\vspace{6cm}
\large
\begin{itembox}{\bf『あんどきゅめんてっど でびあん』について}
本書は、東京周辺で毎月行なわれている『東京エリア Debian 勉強会』で
使用された資料・小ネタ・必殺技などを一冊にまとめたものです。
収録範囲は勉強会第18回から第22回まで。
内容は無保証、つっこみなどがあれば勉強会にて。
\end{itembox}
\normalfont
\dancersection{MacBook に Debian をインストール}{上川}
\label{dancerjmacbook}
Apple が2006年春に発売開始した Intel ベースのMacBook に MacOS X と Debian を
dual-boot でインストールの流れを紹介します。
MacOS X を削除してDebian のみをインストールする方法については、おそらく
liloをMBRから起動するように設定すれば最新ファームウェアは起動してくれま
すが、検証していません。
\subsection{インストール用にパーティション準備}
購入直後の状態では、Mac OS X が全部の領域を占めています。その MacOS X
パーティションを縮小し、Debianがインストールできるようにします。Mac OS X
は20GB程度の領域を必要とするようですので、20GBまで縮小してしまいましょう。
diskutil resizevolume コマンドでボリュームサイズを動的に変更することがで
きます。\footnote{resizevolumeコマンドはMac OS X 10.4.6の機能拡張のようです。}
\begin{commandline}
Mac OS X $ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/disk0s2 74G 17G 57G 23% /
devfs 95K 95K 0B 100% /dev
fdesc 1.0K 1.0K 0B 100% /dev
<volfs> 512K 512K 0B 100% /.vol
automount -nsl [171] 0B 0B 0B 100% /Network
automount -fstab [179] 0B 0B 0B 100% /automount/Servers
automount -static [179] 0B 0B 0B 100% /automount/static
/dev/disk0s1 197M 512B 197M 0% /efi
Mac OS X $ sudo diskutil resizevolume disk0s2 20G
Started resizing on disk disk0s2 Macintosh HD
Verifying
Resizing Volume
Adjusting Partitions
Finished resizing on disk disk0s2 Macintosh HD
WARNING: You must now reboot!
# diskutil list
/dev/disk0
#: type name size identifier
0: GUID_partition_scheme *74.5 GB disk0
1: EFI 200.0 MB disk0s1
2: Apple_HFS Macintosh HD 20.0 GB disk0s2
\end{commandline}
\subsection{rEFItのインストール}
rEFItはEFI専用ブートローダです。
rEFIt\footnote{\url{http://refit.sourceforge.net/} 執筆時点のバージョン
は0.7でした。} イメージを MacOS X にインストールします。インストールする
場所はどこでもよいのですが、ドキュメントに従ってみましょう。
\texttt{/efi} あたりにファイルを展開し、 rEFIt に含まれている、
\texttt{./enable.sh} を実行します。スクリプト内部で \texttt{bless} コマ
ンド\footnote{EFIでのOS起動優先順序を変更してくれるツール}を実行してくれ
ます。これで、起動時に自動で rEFIt が実行されるようになります。
DebianのrEFItパッケージを利用してインストールする場合にはバージョン0.7-3
時点では enable.sh を提供していません、直接blessコマンドを入力してくださ
い。
\texttt{sudo bless --folder \textit{[refit.efiのあるディレクトリへのフルパス]} --file \textit{[refit.efiへのフルパス]}}
\begin{center}
\includegraphics[width=0.5\hsize]{image200607/bootchain.ps}
\end{center}
\subsection{Debian のインストール}
2006年7月版以降のetch\footnote{これ以前については動作確認をしていません。}
のインストーラを利用してインストールします。
CDROMから起動するためには、CDROMを挿入してから、Cを押しながら起動すれば
よいです。もしくは、option キーを押しながら起動するとファームウェアの選
択画面が起動します。rEFItのメニューからもCDROMからの起動を選択できます。
\footnote{2006年7月時点でDebian Installer で利用しているLinux カーネル
2.6.15, 2.6.16 あたりでは Intel Mac に対応できていない問題があり、5回に
4回程度は「APICエラー」なるものが発生し、起動に失敗するので、根気よく起
動するまでがんばってください。2.6.17 以降ではIntel Mac 向けの修正が一部
マージされているので、状況は改善しています。}
パーティションを切る部分\footnote{注意事項としては、既存のEFI FATとMac
OS Xのパーティションは削除しないこと。LILOをインストールする予定のパーティ
ションはパーティション番号 3 か 4 にすること、ということがあります。5番
目以降のパーティションは MBRの制限があるので利用できません。}を過ぎ,パッ
ケージがインストールされたら,LILOをインストールする直前の部分まで実施し
ます。
この時点では LILO が現在動作できない状態になっています。\footnote{parted
が GPT の仕様に準拠しており、partition 1 のみしかない MBR上のパーティショ
ンテーブルを再作成していることによるようです。}ここで、MBRをGPTに同期さ
せる作業を実施します。ここで、Alt-F2 で仮想コンソールを切替え、コマンド
ラインにうつります。gptsync コマンドを実行してください\footnote{今後はイ
ンストーラから実施できるように改善したいです}。 現状のインストール方法と
しては,\texttt{chroot /target bin/sh}としてインストール先の chrootに入
り、そこから \texttt{apt-get install refit} でパッケージをインストール、
そして\texttt{ gptsync} コマンドでGPTからMBRに同期させます。
\includegraphics[width=0.9\hsize]{image200607/gptsync.png}
この状態で、インストーラの画面に Alt-F1で戻り、LILO を MBR ではなく、
Linux 用のパーティションにインストールします。再起動するとrEFItからLinux
を指定して起動できるようになっています。
\subsection{各種デバイスの設定}
\subsubsection{Xの設定}
\texttt{X} は \texttt{i810} ドライバで設定します。
\texttt{915resolution} パッケージをインストールします。
解像度は 1280x800 です。
\texttt{/etc/default/915resolution}の例です:\\
\begin{commandline}
#
# 915resolution default
#
# find free modes by /usr/sbin/915resolution -l
# and set it to MODE
# e.g. use MODE=54
MODE=32
#
# and set resolutions for the mode.
# e.g. use XRESO=1024 and YRESO=768
XRESO=1280
YRESO=800
#
# We can also set the pixel mode.
# e.g. use BIT=32
# Please note that this is optional,
# you can also leave this value blank.
BIT=
\end{commandline}
xorg.conf の例です\footnote{デフォルトで外部出力もするように設定してあります}:
\begin{commandline}
Section "Files"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
Option "XkbOptions" "ctrl:nocaps"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "Emulate3Buttons" "true"
EndSection
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
EndSection
Section "Device"
Identifier "Generic Video Card"
Driver "i810"
Screen 0
Option "MonitorLayout" "CRT,LFP"
BusID "PCI:0:2:0"
EndSection
Section "Device"
Identifier "Device1"
Driver "i810"
Screen 1
Option "MonitorLayout" "CRT,LFP"
BusID "PCI:0:2:0"
EndSection
\end{commandline}
\\続く
\begin{commandline}
Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 28-64
VertRefresh 43-60
EndSection
Section "Monitor"
Identifier "External Monitor"
Option "DPMS"
HorizSync 28-64
VertRefresh 43-60
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x800" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x800" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x800" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x800" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x800" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x800" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Screen"
Identifier "Secondary Screen"
Device "Device1"
Monitor "External Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768" "800x600"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "800x600"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "800x600"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Dual-monitor Layout"
Screen 0 "Default Screen"
Screen 1 "Secondary Screen" LeftOf "Default Screen"
# Option "Clone" "On"
#Option "Xinerama" "On"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection
Section "DRI"
Mode 0666
EndSection
\end{commandline}
キーバインドは .xsession \footnote{最近はデフォルトでは .gnomerc とい
うファイルが使われるようです。 GDMからデフォルトのシステムセッションを明
示的に選択すれば .xsession を実行してくれるようです。}の中で次のような
設定をしています。右のappleキーを押すと全角・半角キーに割り当てられてい
ます。option と apple キーはよく押し間違えるので、両方を Alt\_Lとして設
定しています。また、イジェクトキーとキーボードの下の部分にあるENTERキー
をマウス用のキーとして定義しています。\footnote{xkbsetパッケージが必要}。
また、外部マウスをUSBで接続した場合も問題なく動作します。
\begin{commandline}
xmodmap -e "keycode 115 = Alt_L"
xmodmap -e "keycode 116 = Zenkaku_Hankaku" # right-apple
xmodmap -e "keycode 108 = Pointer_Button3" # KP-ENTER
xmodmap -e "keycode 204 = Pointer_Button2" # eject
xkbset m
\end{commandline}
\subsubsection{liloの設定}
Reached max line limit 500!
1.1 monthly-report/debianmeetingresume2006-fuyu.pdf
<<Binary file>>
More information about the Tokyodebian-commits
mailing list