Top

etckeeper

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/ へ。

kenji@kenji-MacBook:~$ sudo apt-get install etckeeper
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.
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 へ変更。

$ sudo apt-get install mercurial
--- 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"
 
$ cd /etc
$ sudo mv .git ~/backup/.../etc/
$ sudo etckeeper uninit
$ sudo etckeeper init
$ sudo etckeeper commit "Change VCS from git to hg"

IPv6 の無効化

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
+

ファイアウォール

ntpd

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

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

エディタ



macfanctld

$ sudo apt-get install macfanctld

crontab

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

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

電源管理

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

無線ドライバ

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

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

Pulse Audio

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

ゲストセッションの無効化

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


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2015-08-17 (月) 12:35:27 (3183d)