[[Top]]

* システム設定 [#o6f5b567]

** etckeeper [#pfe2e78b]
- [[Lubuntu 14.04 のシステム設定]]

 kenji@kenji-MacBook:~$ sudo apt-get install git
* ユーザ設定 [#k83f4eb4]

 $ sudo cp ~/.gitconfig /root/
 $ sudo vi /root/.gitconfig
- [[Lubuntu 14.04 のユーザ設定]]

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


* [[ユーザ設定]] [#k83f4eb4]

** ホームディレクトリのフォルダ名を日本語から英語に変更 [#ydbdd873]

 $ LANG=C xdg-user-dirs-gtk-update

** crontab [#v80a0b54]

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

 $ sudo cat /mnt/var/spool/cron/crontabs/kenji

自分の crontab に設定する。

 $ crontab -e

** ロックの設定 [#v499da86]

「設定」→「Light Lockerの設定」

「Lock on suspend」をオンに。

** フォント Ricty のインストール [#h98148d7]

#pre{{
$ sudo apt-get install fontforge
$ sudo apt-get install fonts-inconsolata
}}

http://mix-mplus-ipa.sourceforge.jp/download.html#migu1m より「Migu 1M」をダウンロード。

#pre{{
$ unzip migu-1m-20130617.zip
$ mkdir ~/.fonts/
$ mv migu-1m-20130617/migu-1m-bold.ttf migu-1m-20130617/migu-1m-regular.ttf \
~/.fonts/
}}

https://github.com/yascentur/Ricty/releases より v3.2.3 をダウンロード。

#pre{{
$ tar xvf Ricty-3.2.3.tar.gz
$ cd Ricty-3.2.3/
$ sh ricty_generator.sh auto
$ mv Ricty*.ttf ~/.fonts/
$ fc-cache -vf
}}

** フォントの追加 [#m5aef779]

*** MigMix フォント [#p295c6c0]

http://mix-mplus-ipa.sourceforge.jp/migmix/

*** M+ フォント [#we63a853]

http://mplus-fonts.sourceforge.jp/mplus-outline-fonts/download/index.html#download


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