- 追加された行はこの色です。
- 削除された行はこの色です。
* もくじ [#u631eb8d]
#contents
Cent OS7 でおえかきマシンを構築するよ.
なるべく参考にしたページのアドレスを併記するようにしたいと思いますが,
漏れがあったらごめんなさい.
** 部品選定 [#tcbd76bb]
お予算は10万円前後で.
| CPU | i7-4790 | 84w | | 35151 | LGA1150 |
| | i7-4790s | 65w | 36480 | | |
| mother | GA-H97-HD3 | H97 | 9028 | | |
| | | DDR3x4 | | | |
| | | PCIe x16 x2 | | | |
| | | PCIe x4 x1 | | | |
| | | PCIe x1 x2 | | | |
| | | PCI x2 | | | |
| | | SPDIF out | | | |
| | GA-H97-D3H | H97 | | | |
| | | DDR3x4 | | | |
| | | PCIe x16 x1 | | | |
| | | PCIe x4 x1 | | | |
| | | PCIe x1 x2 | | | |
| | | PCI x3 | | | |
| | | SPDIF out | | | |
| | GA-Z97X-SLI | Z97 | | 11556 | 限定数完売 |
| | | DDR3x4 | | | |
| | | SPDIF out | | | |
| | | PCIe x16 x1 | | | |
| | | PCIe x8 x1 | | | |
| | | PCIe x1 x3 | | | |
| | | PCI x2 | | | |
| | GA-Z97X-UD3H | Z97 | | 15223 | |
| mem | AD3U1600W8G11-2 | DDR3 | 13871 | | |
| | | 1600 8Gx2 | | | |
| SSD | Intel SSD 730 SSDSC2BP240G4R5 | 240G | | 19426 | |
| | Intel SSD 530 SSDSC2BW240A401 | 240G | 20352 | | |
| case | coolmaster | 横置き | 8480 | | tsukumo |
| | Elite 361 RC-361-KKN1-JP | | | | |
| | 幅 150mm x | | | | |
| | 奥行き 368mm x | | | | |
| | 高さ 464mm | | | | |
| | CPU クーラーの高さ:122mm まで | | | | |
| | ビデオカードの長さ: | | | | |
| | 227mm まで(HDD ケージ搭載時) | | | | |
| | 312mm まで(HDD ケージ取り外し時) | | | | |
| | 前部:80mm ファン x 1(オプション) | | | | |
| | 後部:80mm ファン x 2(オプション) | | | | |
| | 上部:120mm ファン x 1 | | | | |
| | (90mm ファン x 1または | | | | |
| | 80mm ファン x 1 に換装可能) | | | | |
| | 左側面:120mm ファン x 1 | | | | |
| | または 90mm ファン x 1または | | | | |
| | 80mm ファン x 1(オプション) | | | | |
| | SilverStone SST-GD10B | 横置き | | 13912 | |
| | Grandia SST-GD08B | 横置き | | 21060 | |
| power | SF-500P14FG | ファンレス | 11556 | | |
| | | 500W | | | |
| cpu cooler | CoolMaster Xdream i117 | | | 2297 | |
| | CoolMaster Vortex Plus | H83.5mm | 2993 | | |
| | RR-VTPS-28PK-R2 | | | | |
| case fan | DEEPCOOL Xfan 80 | | 191 | | |
| case fan | DEEPCOOL Xfan 80 | | 191 | | |
| snd | | | | | |
| 合計 | | | 103142 | | |
備考(選定基準とか):
- CPU: 低消費電力にしたのは,趣味です.
- mother: やっぱりギガバイ子!
- mem: ふだんは店頭で最も安いの!ですが,ちょっと奮発してADATAにしました.今回,おかいものに行く時間なくて全て通販で済ませてしまったのですが,通販だと謎の不安感があって,保守的になるです...
- SSD: Intelコンシューマ向けは現行2ライン(7xxと5xx).なんか7xxの方が耐久度高そう,みたいな情報を見かけた気がしたので.
- case: 横置きにしたかったのです.しかしながら,横置きはハイエンド指向のが多くて嗜好に合わないなぁ..と思っていたのですが,Coolermasterのがあったので.
- power: 電源も,いままではとにかく安いの一択!だったのですが,やっぱし実物見てないと保守的に..なりすぎた結果,結構高価なものを買ってしまった..
** selinux [#b74e90d4]
/etc/sysconfig/selinux
** xfce [#o20b87c6]
yum install epel-release.noarch
/etc/yum.conf
group_package_types=default,mandatory
yum --enablerepo=epel groups install Xfce
yum groups install "X Window System"
$ startxfce4
で起動確認
yum install gdm
ランレベル変更
$ sudo systemctl set-default graphical.target
** theme [#xc3c71e5]
http://xfce-look.org/content/show.php/Win3x?content=169112
169112-win3x.tar.gz
/usr/share/themes
にコピー
settings -> window manager
で変更
** ログアウト時にセッションを保存しない [#s2de384d]
settings -> セッションと起動
これだけだったか自信がない...
** 英字配列 [#h97440f5]
/etc/vconsole.conf
KEYPAM="us"
** wget [#kca046e9]
$ sudo yum install wget
** vivaldi [#sfe55c9d]
wget https://vivaldi.com/download/Vivaldi_TP3.1.0.162.9-1.x86_64.rpm
$ sudo yum install lsb
あと,XcreenSaverかなにかを依存関係で追加したけど,忘れてしまいました..
不足ファイルについては
yum provides "*.so"
のようにして,提供パッケージを確認.
** terminal [#t0015744]
xfce4-terminal
** cifs [#d1b1384a]
動作確認
sudo mount.cifs \\\\10.0.0.1\\storage \
/mnt/storage -o user=kosame
オートマウント
fstab:
//10.0.0.1/storage /mnt/storage/ cifs username=user,password=* 0 0
** unzip [#c81865a6]
$ sudo yum install unzip
** uim [#l753239b]
''yum localinstall'' で以下をインストール
uim-1.8.6-6.fc22.x86_64.rpm
uim-gtk2-1.8.6-6.fc22.x86_64.rpm
eb-4.4.3-3.fc22.i686.rpm
uim-gtk2-1.8.6-6.fc22.x86_64.rpm
libskk-1.0.2-1.fc22.x86_64.rpm
sudo yum install gtk2*
sudo yum install gtk3*
** uim設定 [#l6827d08]
''settings'' -> ''セッションと起動'' -> ''自動開始アプリケーション''で,
以下を追加
name: uim
desc: uim
command:
/usr/bin/imsettings-switch uim.conf
もひとつ追加
name: uim-toolbar
desc: uim-toolbar
command: /usr/bin/uim-toolbar-gtk
"入力メソッドのスターター"は無効にしておく.
** caps->ctrl [#r7335c75]
''settings'' -> ''セッションと起動'' -> ''自動開始アプリケーション''
で以下を追加
name: CapsLock2Ctrl
desc: CapsLock2Ctrl
command: /usr/bin/setxkbmap -option -option 'ctrl:nocaps'
しかし,上記だとemacsでshiftも押されたみたいになっちゃう(表現しにくい..)&
コンソールで有効でないので以下をためしてみる.
http://lambdalisue.hatenablog.com/entry/2013/09/27/212118
sudo mkdir -p /usr/share/keymaps
sudo dumpkeys | head -1 | sudo tee /usr/share/keymaps/Caps2Ctrl.map
以下を追加する
keycode 58 = Control # CapsLock act as Ctrl
## keycode 29 = Caps_Lock # Ctrl act as CapsLock
## alt_is_meta # Fix the Alt key
/etc/systemd/system
sudo touch caps2ctrl.service
[Unit]
Type=simple
Description=Caps2Ctrl
After=network.target
[Service]
ExecStart=/usr/bin/loadkeys /usr/share/keymaps/Caps2Ctrl.map
[Install]
WantedBy=multi-user.target
http://tire-retire.blogspot.jp/2014/12/centos7rclocal.html
有効化
# systemctl enable caps2ctrl.service
開始
# systemctl start caps2ctrl.service
上記に加えて,xでの対応が必要なのですが,'' ~/.xmodmaprc'' などを
使用した手法が,どうもうまくいかないのです..
スクリプトの起動はしているようなので,そのあとにuimが起動した際,
設定がちゃらになっていると予想しました.
そこで実験として,''自動開始アプリケーション''に,uim関連のプロセスが起動しきるのを
待ったあとで,xmodmapを実行するスクリプトを追加してみました.
結果として,期待どおり''CapsLock''->''Ctrl''が実現できました.
とりあえず所望のことが実現できたので,あまり考察はしてませんが...
なお,以下のスクリプトの ps で grep した結果の数の確認を,
3より大きいかどうかで判定しているのは,uim関連のプロセスと思われるものがが3つあったからです.
(起動後に''ps aux | grep -i uim'' で調べただけですが..)
ついでに,GUIログイン直後にCapcLockを連打していると
Capsが有効になった瞬間にコマンドが実行されて,
ひどい目にあったりします(CapsLockが解除できなくなる..)
以下を作って,''Settings'' -> ''セッションと起動''にスクリプトを登録しました.
chmod +x もわすれずに.
http://www.yukun.info/blog/2008/01/shell-script-kill-process.html
~/xmodmapAfterUim.sh
#!/usr/bin/sh
inter=2 #
wait=5 #
while true
do
isAliveSev=`ps aux | grep "uim" |
grep -v grep | wc -l`
if [ $isAliveSev -gt 3 ]; then
echo "uim alive"
xmodmap ~/.xmodmap
exit
else
echo "no uim"
fi
sleep $inter
done
** emacs [#j6f34070]
emacs-24.5.tar.xz
patch-bgex_20150515_0-emacs-24.5.tar.xz
特に問題なくパッチがあたりました.
./configure --prefix=/opt/emacs-24.5
make
sudo make install
** リポジトリ追加_nux-dextop,rpmforge [#sb9d096e]
sudo yum localinstall http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
sudo yum localinstall http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
** optsndout [#n9f0e03d]
$ sudo yum install pulseaudio
$ sudo yum install alsa-plugins-pulseaudio
** mixer [#tdbc80de]
xfce4-mixer
SPDIFから出力したいと思います.
まず,''cat /proc/asound/cards''でカード番号を確認
次に,''/etc/asound.conf''に以下を追記.
pcm.!default {
type hw
card 1
device 0
}
参考 http://alsa.opensrc.org/DigitalOut
aplay -L
の出力を眺めるのも楽しいです.
** flash install, vlc [#jd2bdb02]
http://ufuso.jp/wp/?p=15419
yum -y --enablerepo=rpmforge install flash-plugin
** vlc [#b4cf25aa]
''ツール'' -> ''設定'' -> ''オーディオ''で,''出力モジュール : ALSAオーディオ出力''
を選択します.
''使用可能な場合,S/PDIFを使用''を有効化します.
デバイスは,S/PDIFを選択します.
** global [#n15c8560]
global-6.2.12-4.fc21.x86_64.rpm
** mewインストール [#ee81731e]
どっとこんふぃぎゃー
./configure --prefix=/opt/emacs-24.5/ \
--with-emacs=/opt/emacs-24.5/bin/emacs \
--with-elispdir=/opt/emacs-24.5/share/emacs/site-lisp \
--with-etcdir=/opt/emacs-24.5/share/emacs/24.5/etc \
--localstatedir=/opt/emacs-24.5/var \
--infodir=/opt/emacs-24.5/share/info \
--mandir=/opt/emacs-24.5/share/man
けっか
***************************
Mew configuration results
***************************
use emacs : /opt/emacs-24.5/bin/emacs
elisp files should go : /opt/emacs-24.5/share/emacs/site-lisp/
etc files should go : /opt/emacs-24.5/share/emacs/24.5/etc
exec files should go : /opt/emacs-24.5/bin
info files should go : /opt/emacs-24.5/share/info
man files should go : /opt/emacs-24.5/share/man/man1
** xclock [#b585b9f6]
yum install xclock
xclock -bg gray -fg white -hd white -padding 0 -render -geometry 80x80+1920-0
** コマンドでディスプレイをスタンバイにしたい [#x60731e5]
http://www.xmisao.com/2014/02/17/how-to-pub-screen-into-standby-on-linux.html
sleep 2; xset dpms force standby
ターミナルで実行する場合sleepを入れないと,(おそらく)xsetを入力したときの
キー入力(RET)に反応してしまって,ディスプレイがOFF->ONとなってしまいました.
** ThinkPad USB トラックポイントキーボード [#nb80dc0f]
http://www.mazn.net/blog/2012/07/01/778.html
** その他 [#uf2bdd56]
[[Fedoraにっき]]