Ubuntu 12.04 (Precise Pangolin)の初期設定メモ。
- このメモの目的と内容
- デスクトップPCを開発機兼内向けサーバ機として使うための自分用メモ
- アップグレードではなくクリーンインストール
- デスクトップ環境をインストール後、サーバ用カーネルを追加でインストールした
最新バージョンでの初期設定内容はUbuntuにて掲載しています。
インストール手順
Alternate install CDを使ったインストール
ubuntu-12.04-alternate-i386.iso.torrentを使用した場合の手順。
ブート画面
- F2 Language: [日本語]を選択
- F3 Keymap: [Japanese]を選択
- [Ubuntuをインストール]を選択
[場所の選択]
- 国・領土・地域: [日本]を選択
[ネットワークの設定]
- プライマリネットワークインターフェイス: 使用するネットワークインターフェイスを選択
- ネットワークの設定方法: [ネットワークを手動で設定]を選択
- (以下ダイアログに従ってIPアドレス等を入力)
[ユーザとパスワードのセットアップ]
- (ダイアログに従ってユーザ名・パスワード等を入力)
- ホームディレクトリを暗号化しますか: <いいえ>を選択
[ディスクのパーティショニング]
- パーティショニングの方法: [手動]を選択
- (パーティションを設定)
- [パーティショニングの終了とディスクへの変更の書き込み]を選択
[ベースシステムをインストールしています]
- (インストールが終わるまで待つ)
[パッケージマネージャの設定]
- HTTP プロキシの情報: 空欄のままもしくは必要に応じて適切なURLを入力
[ソフトウェアの選択とインストール]
- 言語サポートをダウンロードしますか?: <はい>を選択
- [Postfix Configuration]
- メール設定の一般形式: [サテライトシステム]を選択
- システムメール名: (適切な名前を入力)
- SMTP リレーホスト: (適切な名前を入力)
- (インストールが終わるまで待つ)
[ハードディスクへのGRUBブートローダのインストール]
- マスターブートレコードにGRUBブートローダをインストールしますか?: <はい>を選択
[インストールの完了]
- システム時間を UTC に設定していますか?: <はい>を選択
- インストールの完了: CD-ROMを取り出して<続ける>を選択
- 再起動
Desktop CDを使ったインストール
ubuntu-12.04-desktop-i386.iso.torrentを使用した場合の手順。
ようこそ
- 左の言語一覧から[日本語]を選択
- [Ubuntuをインストール]をクリック
Ubuntuのインストール準備
- 右上のネットワーク設定のアイコンをクリックし、ネットワーク接続の設定を済ませておく
- [インストール中にアップデートをダウンロードする]にチェックを入れる
- [続ける]
インストールの種類
- [(既存のOS)を削除して再インストール]を選択
- [続ける]
(既存のシステム)を削除して再インストール
- 必要に応じてパーティション設定をする
- [インストール]をクリック
インストールが開始される
どこに住んでいますか?
- 適切なタイムゾーンを選択
- [続ける]
キーボードレイアウト
- 適切なキーボードレイアウトを選択
- [続ける]
あなたの情報を入力してください
- ユーザー名、コンピューター名、パスワード等を入力
- [続ける]
以降、インストールが終了するまで待つ。 終了したらディスクを取り出して再起動。
ターミナル・シェル周りの設定
デフォルトエディタの変更
デフォルトのエディタをvimにする。
$ sudo update-alternatives --config editor There are 3 choices for the alternative editor (providing /usr/bin/editor). Selection Path Priority Status ------------------------------------------------------------ * 0 /bin/nano 40 auto mode 1 /bin/ed -100 manual mode 2 /bin/nano 40 manual mode 3 /usr/bin/vim.tiny 10 manual mode Press enter to keep the current choice[*], or type selection number: 3 update-alternatives: using /usr/bin/vim.tiny to provide /usr/bin/editor (editor) in manual mode.
~/.vimrc
以下の内容で作成。
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=utf-8,utf-16,japan
set backspace=2
set tabstop=2
set shiftwidth=4
set expandtab
highlight tabs ctermbg=green guibg=green
set list
set number
set ruler
set smartindent
~/.bashrc
以下の内容を追記。
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
PS1='\!> \[\033[0;33m\]\u\[\033[m\]@\[\033[0;36m\]\h\[\033[m\] [\[\033[0;32m\]\t\[\033[m\] \w]\$ '
case $TERM in
kterm|xterm|cygwin)
TITLEBAR="\u@\h:\w"
PS1="\[\033]0;${TITLEBAR}\007\]${PS1}"
;;
esac
ネットワークの設定
NetworkManagerを使わず、/etc/network/interfacesを直接編集してネットワークを管理する手順。
NetworkManagerの削除
NetworkManagerによる管理を無効にするため、停止したのち削除する。
$ sudo service network-manager stop network-manager stop/waiting $ sudo update-rc.d -f network-manager remove Removing any system startup links for /etc/init.d/network-manager ... $ sudo apt-get remove network-manager
ネットワークインターフェースの設定
/etc/network/interfacesの内容を編集。
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers (必要に応じてDNSサーバを記入)
dns-search example.com
設定を反映させるためにネットワークサービスを再起動。
sudo /etc/init.d/networking restart
IPv6の無効化
以下の内容を追記。
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
変更を反映させて、無効になったか確認。
$ cat /proc/net/if_inet6 : : $ sudo sysctl -p $ cat /proc/net/if_inet6
sysctl -pの後、何も表示されなければ無効になっている。
ブリッジの設定
仮想マシンのネットワークで使用するブリッジを設定する。 まずはbridge-utils, uml-utilitiesをインストール。
sudo apt-get install bridge-utils uml-utilities
/etc/network/interfacesを以下の内容に変更。
auto lo
iface lo inet loopback
iface eth0 inet manual
auto br0
iface br0 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers (必要に応じてDNSサーバを記入)
dns-search example.com
pre-up /sbin/ifconfig eth0 0.0.0.0 promisc up
pre-up /sbin/brctl addbr br0
pre-up /usr/sbin/tunctl -u (ユーザ名) -t tap0
pre-up /sbin/ifconfig tap0 0.0.0.0 promisc up
post-up /sbin/brctl addif br0 eth0
post-up /sbin/brctl addif br0 tap0
pre-down /sbin/ifconfig tap0 down
pre-down /sbin/ifconfig eth0 down
post-down /sbin/ifconfig br0 down
post-down /sbin/brctl delbr br0
設定を反映させるためにネットワークサービスを再起動。
sudo /etc/init.d/networking restart
ifconfig -aでbr0とtap0が追加されていることを確認しておく。
$ ifconfig -a br0 Link encap:イーサネット ハードウェアアドレス xx:xx:xx:xx:xx:xx inetアドレス:192.168.0.10 ブロードキャスト:192.168.0.255 マスク:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 メトリック:1 : : tap0 Link encap:イーサネット ハードウェアアドレス xx:xx:xx:xx:xx:xx UP BROADCAST PROMISC MULTICAST MTU:1500 メトリック:1 : :
ソフトウェアの追加と削除
medibuntuリポジトリの追加
sudo -E wget http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list --output-document=/etc/apt/sources.list.d/medibuntu.list
sudo apt-get update && sudo apt-get --allow-unauthenticated install medibuntu-keyring
sudo apt-get update && sudo apt-get install app-install-data-medibuntu apport-hooks-medibuntu
ソフトウェアの削除・インストール
不要なソフトウェアの削除
sudo apt-get remove --purge \
avahi-daemon avahi-autoipd \
'bluez(-.*)?' \
bc \
cups cups-bsd cups-client cups-common cups-driver-gutenprint libcupscgi1 libcupsdriver1 libcupsmime1 libcupsppdc1 \
deja-dup \
espeak espeak-data \
example-content \
'foomatic(-.*)?' \
ghostscript \
gnome-bluetooth pulseaudio-module-bluetooth \
gnome-games-common gnome-mag gnome-orca libgnome-bluetooth.* \
gnome-accessibility-themes \
'gwibber-service(-.*)?' \
hpijs hplip hplip hplip-data \
indicator-messages \
libgutenprint2 \
libspeechd2 \
modemmanager \
ntfs-3g libntfs-3g.* libntfs.* \
nano \
ppp \
rhythmbox \
sane-utils libsane.* \
system-config-printer-common system-config-printer-gnome \
'telepathy(-.*)?' libtelepathy.* \
toshset \
ubuntuone-client ubuntuone-couch ubuntuone-installer \
usb-creator-common usb-creator-gtk \
wamerican
削除するソフトウェアの概要は次のとおり。
パッケージ名 | 概要 |
---|---|
avahi-daemon | Avahi mDNS/DNS-SD daemon |
avahi-autoipd | Avahi IPv4LL network address configuration daemon |
'bluez(-.*)?' | Bluetooth 用ツールとデーモン |
bc | 任意精度の計算言語 |
cups | Common UNIX Printing System(tm) - サーバ |
cups-bsd | Common UNIX Printing System(tm) - BSD commands |
cups-client | Common UNIX Printing System(tm) - client programs (SysV) |
cups-common | Common UNIX Printing System(tm) - common files |
cups-driver-gutenprint | transitional dummy package for gutenprint printer driver |
libcupscgi1 | Common UNIX Printing System(tm) - CGI library |
libcupsdriver1 | Common UNIX Printing System(tm) - Driver library |
libcupsmime1 | Common UNIX Printing System(tm) - MIME library |
libcupsppdc1 | Common UNIX Printing System(tm) - PPD manipulation library |
deja-dup | Back up your files |
espeak | Multi-lingual software speech synthesizer |
espeak-data | speech data files |
example-content | Ubuntu example content |
'foomatic(-.*)?' | OpenPrinting printer support - Compressed PPDs derived from the database |
ghostscript | interpreter for the PostScript language and for PDF |
gnome-bluetooth | GNOME Bluetooth ツール |
pulseaudio-module-bluetooth | Bluetooth module for PulseAudio sound server |
gnome-mag | GNOME デスクトップ用スクリーン拡大鏡 |
gnome-orca | Scriptable screen reader |
libgnome-bluetooth.* | GNOME Bluetooth tools - support library |
gnome-accessibility-themes | accessibility themes for the GNOME desktop |
'gwibber-service(-.*)?' | Open source social networking client for GNOME |
hpijs | transitional dummy package for hpijs printer driver |
hplip | HP Linux Printing and Imaging System (HPLIP) |
hplip | HP Linux Printing and Imaging System (HPLIP) |
hplip-data | HP Linux Printing and Imaging - data files |
indicator-messages | indicator that collects messages that need a response |
libgutenprint2 | Gutenprint プリンタドライバライブラリ用ランタイム |
libspeechd2 | Shared libraries |
modemmanager | モデムを管理する D-Bus サービス |
ntfs-3g | read/write NTFS driver for FUSE |
libntfs.* | 共通の NTFS アクセス用関数を提供するライブラリ (開発用ファイル) |
nano | Pico にヒントを得て作られた、コンパクトで使いやすいテキストエディタ |
ppp | Point-to-Point Protocol (PPP) デーモン |
rhythmbox | GNOME 用音楽プレイヤーおよびオーガナイザー |
sane-utils | スキャナ用 API ライブラリ - ユーティリティ |
libsane.* | スキャナのための API ライブラリ |
system-config-printer-common | Printer configuration GUI |
system-config-printer-gnome | Printer configuration GUI |
'telepathy(-.*)?' | Telepathy backend for libfolks |
libtelepathy.* | Glue library between telepathy and farstream |
toshset | Access much of the Toshiba laptop hardware interface |
ubuntuone-client | Ubuntu One client |
ubuntuone-couch | Ubuntu One CouchDB |
ubuntuone-installer | Ubuntu One Installer |
usb-creator-common | create a startup disk using a CD or disc image (common files) |
usb-creator-gtk | create a startup disk using a CD or disc image (for GNOME) |
wamerican | /usr/share/dict 用米国英語単語リスト |
パッケージ名 | 概要 |
使用するソフトウェアのインストール
sudo apt-get install \
autoconf automake autotools-dev build-essential gettext libtool bison \
cadaver \
colordiff \
chromium-browser \
epiphany-browser \
flashplugin-installer \
gedit-plugins \
git-core \
gsmartcontrol \
gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly \
gimp \
hddtemp \
ibus-anthy \
indicator-multiload \
icedax \
lighttpd lighttpd-mod-magnet lighttpd-mod-webdav \
logwatch \
lha \
lm-sensors \
mono-.*mcs mono-csharp-shell libmono-simd.*-cil \
munin munin-node \
nasm \
nautilus-open-terminal \
nethogs \
nfs-kernel-server \
nkf \
ntp \
php5-cgi \
ruby \
samba smbfs \
smartmontools \
swig \
subversion subversion-tools \
system-config-lvm \
synaptic \
tree \
ttf-sazanami-.* fonts-vlgothic fonts-ipafont.* fonts-monapo fonts-takao.* fonts-mikachan \
virt-manager qemu-kvm \
vlc \
w3c-dtd-xhtml \
xinetd \
yasm
インストールするソフトウェアの概要は次のとおり。
パッケージ名 | 概要 |
---|---|
autoconf | configure スクリプト自動作成プログラム |
automake | Tool for generating GNU Standards-compliant Makefiles |
autotools-dev | Update infrastructure for config.{guess,sub} files |
build-essential | build-essential なパッケージの一覧情報 |
gettext | GNU 国際化ユーティリティ |
libtool | 汎用ライブラリサポートスクリプト |
bison | YACC-compatible parser generator |
cadaver | コマンドライン WebDAV クライアント |
colordiff | 'diff' の出力をカラー化するツール |
chromium-browser | Chromium ブラウザ |
epiphany-browser | Intuitive GNOME web browser |
flashplugin-installer | Adobe Flash Player plugin installer |
gedit-plugins | set of plugins for gedit |
git-core | fast, scalable, distributed revision control system (obsolete) |
gsmartcontrol | graphical user interface for smartctl |
gstreamer0.10-ffmpeg | GStreamer 用 FFmpeg プラグイン |
gstreamer0.10-plugins-bad | GStreamer プラグインの「不良な」セット |
gstreamer0.10-plugins-ugly | GStreamer プラグインの「厄介な」セット |
gimp | The GNU Image Manipulation Program |
hddtemp | hard drive temperature monitoring utility |
ibus-anthy | IBus 用 anthy エンジン |
indicator-multiload | Graphical system load indicator for CPU, ram, etc. |
icedax | オーディオ CD から WAV を生成する |
lighttpd | 最小限のメモリしか使用しない高速で軽量なウェブサーバ |
lighttpd-mod-magnet | Control the request handling module for lighttpd |
lighttpd-mod-webdav | WebDAV module for lighttpd |
logwatch | 出力が優れ、Perl で書かれたログアナライザ |
lha | lzh archiver |
lm-sensors | utilities to read temperature/voltage/fan sensors |
mono-.*mcs | Mono C# 4.0 compiler for CLI 4.0 |
mono-csharp-shell | interactive C# shell |
libmono-simd.*-cil | Mono SIMD (for CLI 2.0) |
munin | ネットワーク中をグラフ化するフレームワーク (グラフ生成/データ収集器) |
munin-node | network-wide graphing framework (node) |
nasm | 汎用の x86 アセンブラ |
nautilus-open-terminal | nautilus plugin for opening terminals in arbitrary paths |
nethogs | Net top tool grouping bandwidth per process |
nfs-kernel-server | support for NFS kernel server |
nkf | ネットワーク漢字コード変換フィルタ |
ntp | Network Time Protocol デーモンおよびユーティリティプログラム |
php5-cgi | server-side, HTML-embedded scripting language (CGI binary) |
ruby | Transitional package for ruby1.8 |
samba | SMB/CIFS file, print, and login server for Unix |
smbfs | Common Internet File System utilities - compatibility package |
smartmontools | S.M.A.R.T を使ってストレージシステムの制御と監視を実施 |
swig | Generate scripting interfaces to C/C++ code |
subversion | 先進的なバージョン管理システム |
subversion-tools | Assorted tools related to Subversion |
system-config-lvm | A utility for graphically configuring Logical Volumes |
synaptic | グラフィカルなパッケージマネージャ |
tree | ディレクトリツリーをカラー表示する |
ttf-sazanami-.* | Sazanami Mincho Japanese TrueType font |
fonts-vlgothic | Japanese TrueType font from Vine Linux |
fonts-ipafont.* | Japanese OpenType font set, IPA Gothic font |
fonts-monapo | Japanese TrueType font, Monapo |
fonts-takao.* | Japanese TrueType font set, Takao Gothic Fonts |
fonts-mikachan | handwritten Japanese Truetype font |
virt-manager | 仮想マシン管理用デスクトップアプリケーション |
qemu-kvm | Full virtualization on i386 and amd64 hardware |
vlc | multimedia player and streamer |
w3c-dtd-xhtml | W3C eXtensible HyperText Markup Language (XHTML) DTD |
xinetd | replacement for inetd with many enhancements |
yasm | modular assembler with multiple syntaxes support |
パッケージ名 | 概要 |
サーバカーネル・ヘッダのインストール
sudo apt-get install linux-server linux-headers-server
ドライバ類のインストール
[電源ボタン]→[システム設定]→[追加のドライバー]
- 有効にできるドライバを有効にする
その他のソフトウェアの削除
[電源ボタン]→[システムの設定]→[パッケージの整理]
- 削除できる不要なソフトウェアを削除する
パッケージ情報の更新とアップデート
sudo apt-get update && sudo apt-get dist-upgrade
GRUBの設定
/etc/default/grubを編集
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""
- GRUB_HIDDEN_TIMEOUTをコメントアウト
- メニュー画面を表示する
- GRUB_TIMEOUT=5
- タイムアウト時間を5秒にする
- GRUB_CMDLINE_LINUX_DEFAULTを"quiet splash"から""に変更
- ブート画面をテキスト表示にする
編集が終わったら、update-grub2で設定を反映させる。
$ sudo update-grub2 Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.0.0-12-generic-pae Found initrd image: /boot/initrd.img-3.0.0-12-generic-pae Found linux image: /boot/vmlinuz-3.0.0-12-generic Found initrd image: /boot/initrd.img-3.0.0-12-generic Found memtest86+ image: /memtest86+.bin done
再起動
ここまででいったん再起動。 再起動後にps, pstree, topで必要なさそうなプロセスが動いてないかチェックする。
デスクトップ環境の設定とカスタマイズ
メニュー項目からサスペンドを削除する
/var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pklaを編集して、以下の内容を追記する。 なお、ハイバーネートについては、デフォルトで無効にされている。
[Disable suspend]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend
ResultActive=no
この変更は再起動することで有効になる。
/home/の不要なディレクトリを削除する
「デスクトップ」を含めデフォルトで作成されるディレクトリの表記を英語にする。
LANG=C xdg-user-dirs-gtk-update
表示されるダイアログにしたがって変更すればOK。 ディレクトリを削除する前に、以下の内容を記述した~/.config/user-dirs.confを作成し、ディレクトリを削除しても二度と作成させないようにする。
enabled=False
その後、不要なディレクトリを削除する。
rmdir Documents/ Public/ Templates/
mozc
憩いの場で配布されている、強化されたmozcをインストールする。
sudo apt-add-repository ppa:ikoinoba/ppa
sudo apt-get update
sudo apt-get install mozc-server+dict ibus-mozc
設定ダイアログを開いて設定を変更する。
/usr/lib/mozc/mozc_tool --mode=config_dialog
- [一般]タブ
- キー設定
- キー設定の選択 ATOKに変更
- キー設定
IBusの設定で使用するインプットメソッドをmozcに変更する。 (一旦ログアウトしないと、インプットメソッドの一覧に現れない点に注意)
IBus
[キーボードのアイコン]→[設定]
- [一般]タブ
- 「切り替え」→Zenkaku_Hankakuのみに変更
- [インプットメソッド]タブ
- [インプットメソッドの選択]→[日本語]→[Mozc]を選択して[追加]
- 追加された[日本語 - Mozc]を一番上に移動する
Launcher
[電源ボタン]→[システム設定]→ユーザー向け欄の[外観]
- [外観]タブ
- Launcherアイコンのサイズ→最小にする
- [挙動]タブ
- 「Launcherを自動的に隠す」→オンに変更
- 「表示感度」→高めに変更
アクティビティの記録
[電源ボタン]→[システム設定]→ユーザー向け欄の[プライバシー]
- 右下にある「アクティビティの記録」をオフにする
- [ファイル]タブ
- すべてのファイル形式でアクティビティを記録しないようにする
キーボード
[電源ボタン]→[システム設定]→ハードウェア欄の[キーボード]
- [タイピング]タブ
- (希望の動作に設定する)
- [ショートカット]タブ
- (希望のショートカットを設定する)
パワーマネージメント
[電源ボタン]→[システム設定]→ハードウェア欄の[電源]
- (希望の動作に設定する)
NTP
[電源ボタン]→[システム設定]→システム欄の[時刻と日付]
- [時刻と日付]タブ
- 「時刻設定」→「インターネット経由で自動的に時刻を合わせる」になっていることを確認する
Firefox
- [編集]メニュー→[設定]
- [セキュリティー]タブ
- 「サイトのパスワードを保存する」のチェックを外す
- [セキュリティー]タブ
- about:config
- 「network.dns.disableIPv6」を「true」にしてIPv6を無効にする
- 「network.http.spdy.enabled」を「true」にしてSPDYを有効にする
- [F7]を押してキャレットブラウズを有効にする
Thunderbird
「メッセージの同期」機能を無効にする
- [編集]メニュー→[アカウント設定]
- 各アカウントの[同期とディスク領域]→「このアカウントのメッセージをこのコンピュータに保存する」のチェックを外す
すべてのIMAPフォルダの新着メールをチェックする
user.jsに以下の内容を書く。
user_pref("mail.check_all_imap_folders_for_new", true);
Nautilus
- [表示]タブ
- 「新しいフォルダーの表示形式」→「一覧表示」にする
ロケーションバーを常に表示するようにする
gsettings set org.gnome.nautilus.preferences always-use-location-entry true
Ubuntu Tweak
sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak
- [Tweaks]タブ
- [スタートアップ]欄の[Session Indicator]
- User indicator→オフにする
- [Appearance]欄の[Theme]
- テーマを変更する
- [スタートアップ]欄の[Session Indicator]
テーマをインストールする例として、
- elementary Dark - GTK3 Themeからテーマファイルをダウンロードする
- ダウンロードしたファイルを展開し、~/.themes/(ユーザ個人用)または/usr/share/themes/(全ユーザ共通用)に移動
- Ubuntu Tweakを開いて、インストールしたテーマを選択する
Synaptic
[設定]メニュー→[リポジトリ]
- [Ubuntuのソフトウェア]タブ
- main, universe, restricted, multiverseにチェックを入れる
- (「CD-ROM/DVDからのインストール」にチェックが入っていないことを確認)
- [他のソフトウェア]タブ
- (Medibuntuが追加されていることを確認)
- [アップデート]タブ
- セキュリティアップデートがあるとき: すぐに表示
- [統計情報]タブ
- 統計情報を提供する
開発環境の設定
Munin
# 収集したデータ、HTMLの出力先などを設定
dbdir /var/lib/munin
htmldir /srv/www/munin
logdir /var/log/munin
rundir /var/run/munin
# a simple host tree
[localhost.localdomain]
address 127.0.0.1
use_node_name yes
# 以下、監視するノードをここに追記
localhostからのアクセスのみを許可するように変更する。
allow ^127\.0\.0\.1$
munin-nodeを再起動。
sudo service munin-node restart
xinetd
/etc/hosts.allow, /etc/hosts.denyを編集。
svnserve : 127.0.0.1 192.168.0.0/24
git-daemon : 127.0.0.1 192.168.0.0/24
portmap rpcbind mountd nfsd statd lockd rquotad : 192.168.0.0/24
ALL: PARANOID
/etc/xinetd.d/以下の設定ファイルを編集した後、再起動。
sudo service xinetd restart
svnserve
/etc/xinetd.d/svnを作成。
service svn
{
disable = no
socket_type = stream
user = svn
wait = no
server = /usr/bin/svnserve
server_args = -i -r /srv/repos/svn
only_from = 192.168.0.0/24 127.0.0.1
log_on_failure += USERID
}
ユーザを追加。
sudo groupadd -g 601 svn
sudo adduser --uid 601 --gid 601 --disabled-login --disabled-password --no-create-home svn
ディレクトリを作成。
sudo mkdir -p /srv/repos/svn
sudo chown svn:svn /srv/repos/svn/
Subversionクライアント
~/.subversion/configのテンプレートを作成する。
svn help
~/.subversion/configを編集。
[auth]
# 認証情報を保存しない (毎回ユーザ名とパスワードを入力する)
store-passwords = no
store-auth-creds = no
password-stores =
[helpers]
# diffの代わりにcolordiffを使う
diff-cmd = colordiff
[tunnels]
# ssh = $SVN_SSH ssh
# rsh = rsh
# rsh = /path/to/rsh -l myusername
[miscellany]
# log-encoding = latin1
use-commit-times = yes
# no-unlock = yes
enable-auto-props = yes
global-ignores = *.o *.lo *.obj *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store *.suo *.pidb *.mdb *.userprefs *.usertasks
[auto-props]
(省略)
~/.colordiffrcをコピーする。
cp /etc/colordiffrc ~/.colordiffrc
~/.colordiffrcを編集。
banner=no
color_patches=no
plain=off
newtext=yellow
oldtext=blue
diffstuff=green
cvsstuff=red
NFS
/etc/exportsを編集。
# エクスポートするディレクトリを追記
NFSサーバを再起動。
sudo service nfs-kernel-server restart
libvirt
Intel VTが有効になっているか確認する。
$ cat /proc/cpuinfo | grep vm flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm dts tpr_shadow flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc
root宛てメールの送信先の変更
/etc/aliasに追記。
# Added by installer for initial user
root: root@example.com
aliasを更新。
sudo newaliases