[[Top]]

** etckeeper [#pfe2e78b]

 kenji@kenji-MacBook:~$ sudo apt-get install git

 $ sudo cp ~/.gitconfig /root/
 $ sudo vi /root/.gitconfig

https://github.com/git/git/tree/master/contrib/diff-highlight から /usr/local/bin/ へ。

#pre{{
kenji@kenji-MacBook:~$ sudo apt-get install etckeeper
}}

#pre{{
kenji@kenji-MacBook:/etc/etckeeper$ diff -u etckeeper.conf.orig etckeeper.conf
--- etckeeper.conf.orig	2014-02-23 23:33:41.000000000 +0900
+++ etckeeper.conf	2014-11-19 22:35:51.654481460 +0900
@@ -1,7 +1,7 @@
 # The VCS to use.
 #VCS="hg"
-#VCS="git"
-VCS="bzr"
+VCS="git"
+#VCS="bzr"
 #VCS="darcs"
 
 # Options passed to git commit when run by etckeeper.
}}

#pre{{
kenji@kenji-MacBook:/etc/etckeeper$ sudo etckeeper uninit
kenji@kenji-MacBook:/etc$ sudo etckeeper init
kenji@kenji-MacBook:/etc$ sudo etckeeper commit "Lubuntu 14.04"
kenji@kenji-MacBook:/etc$ sudo apt-get remove bzr
}}

(追記)
git に変えたのは失敗だった。
https://bugs.launchpad.net/ubuntu/+source/etckeeper/+bug/1335391
のバグで運用に支障が出る。

Mercurial へ変更。

#pre{{
$ sudo apt-get install mercurial
}}

#pre{{
--- a/etckeeper/etckeeper.conf
+++ b/etckeeper/etckeeper.conf
@@ -1,6 +1,6 @@
 # The VCS to use.
-#VCS="hg"
-VCS="git"
+VCS="hg"
+#VCS="git"
 #VCS="bzr"
 #VCS="darcs"
 
}}

#pre{{
$ cd /etc
$ sudo mv .git ~/backup/.../etc/
$ sudo etckeeper uninit
$ sudo etckeeper init
$ sudo etckeeper commit "Change VCS from git to hg"
}}

** IPv6 の無効化 [#aece7763]

#pre{{
diff --git a/sysctl.conf b/sysctl.conf
index d9acd92..0d849b0 100644
--- a/sysctl.conf
+++ b/sysctl.conf
@@ -58,3 +58,8 @@
 # Log Martian Packets
 #net.ipv4.conf.all.log_martians = 1
 #
+
+# disable IPv6
+net.ipv6.conf.all.disable_ipv6 = 1
+net.ipv6.conf.default.disable_ipv6 = 1
+
}}

** ファイアウォール [#bcf04ac1]

- [[Lubuntu 14.04 のファイアウォール設定]]

** ntpd [#k9c321d0]

参考: http://www2.nict.go.jp/aeri/sts/tsp/PubNtp/qa.html#q1-1

#pre{{
diff --git a/ntp.conf b/ntp.conf
index 4457652..607d95d 100644
--- a/ntp.conf
+++ b/ntp.conf
@@ -13,6 +13,8 @@ filegen clockstats file clockstats type day enable
 
 # Specify one or more NTP servers.
 
+pool ntp.nict.jp
+
 # Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board
 # on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for
 # more information.
@@ -22,7 +24,7 @@ server 2.ubuntu.pool.ntp.org
 server 3.ubuntu.pool.ntp.org
 
 # Use Ubuntu's ntp server as a fallback.
-server ntp.ubuntu.com
+#server ntp.ubuntu.com
 
 # Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
 # details.  The web page <http://support.ntp.org/bin/view/Support/AccessRestric
}}

 $ sudo /etc/init.d/ntp restart
 $ sudo ntpq -p

** エディタ [#kb65b458]

#pre{{
kenji@kenji-MacBook:~$ sudo update-alternatives --config editor
alternative editor (/usr/bin/editor を提供) には 3 個の選択肢があります。

  選択肢    パス             優先度  状態
------------------------------------------------------------
* 0            /bin/nano           40        自動モード
  1            /bin/ed            -100       手動モード
  2            /bin/nano           40        手動モード
  3            /usr/bin/vim.tiny   10        手動モード

現在の選択 [*] を保持するには Enter、さもなければ選択肢の番号のキーを押してください: 3
update-alternatives: /usr/bin/editor (editor) を提供するために 手動モード で /usr/bin/vim.tiny を使います
}}

** macfanctld [#n9b66f1e]

 $ sudo apt-get install macfanctld

** crontab [#qaa55657]

マウントしたバックアップの / パーティションから crontab を確認。

 $ ls -l /mnt/etc/cron.daily/

** 電源管理 [#h4ba3380]

「設定」→「電源管理」から調整。

** 無線ドライバ [#wb84805e]

「設定」→「追加のドライバー」から「Broadcom 802.11 Linux STA wireless driver source」を追加。

しかし、接続はできるが、他のマシンと IP 通信ができない。
@TODO

** Pulse Audio [#i1eab9d4]

Skype で必要なため、「Pulseaudio 音量コントロール (pavucontrol)」を「Lubuntu ソフトウェアセンター」からインストール。

** ゲストセッションの無効化 [#lcf1d6be]

#pre{{
$ cat /etc/lightdm/lightdm.conf.d/50-disable-guest-session.conf 
[SeatDefaults]
allow-guest=false
}}


トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS