Ubuntuのターミナルで丸数字がずれる問題の対処法

問題

Ubuntuのターミナルで丸数字や特殊な全角を使っていると、表示がずれる問題があります。

f:id:xterm256color:20161120202407p:plain

画像のように、丸数字とその後の文字が重なってしまっています。

原因は、丸数字の表示幅が「半角」になってしまっていること。

続きを読む

XenServer の dom0 で yum を使う

XenServer はデフォルトでは yum が使えなかったので、使える方法を探しました。

環境

XenServer 7.0.0

yum 有効化

/etc/yum.repos.d/CentOS-Base.repo 内のリポジトリ情報を編集します

  1. コメントアウトされた baseurl を有効にする(#baseurlbaseurl に変更)
  2. enabled=0enabled=1 に変更
  3. name 行の $releasever7.2.1511 に置換する
sed -i "s/^#baseurl/baseurl/" /etc/yum.repos.d/CentOS-Base.repo
sed -i "s/^enabled=0/enabled=1/" /etc/yum.repos.d/CentOS-Base.repo
sed -i "s/\$releasever/7.2.1511/g" /etc/yum.repos.d/CentOS-Base.repo

ダメなところ

yum update をしてパッケージ更新しようとすると、エラーメッセージが表示される。

Error: Package: sm-1.12.2-xs202.518.x86_64 (@install/$releasever)
           Requires: xenserver-multipath
           Removing: device-mapper-multipath-0.4.9-85.el7_2.1.xs13.x86_64 (@install/$releasever)
               xenserver-multipath
           Updated By: device-mapper-multipath-0.4.9-85.el7_2.5.x86_64 (updates)
               Not found
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

とりあえす --skip-broken オプションを付けて対処。

参考サイト

Xenserver 7.0 Repositories - Command-Line Interface - Discussions

TensorFlow ソースコードからのビルド方法

TensorFlow は Pip を使ってインストールするのがおそらく一般的。ですが、ソースコードからもビルドすることができます。

環境

  • Ubuntu 16.04.1
  • Geforce GTX 1060
  • NVIDIA Driver 367.44
  • ※ CUDA Toolkit 8.0
  • ※ cuDNN 5.1
  • ※ TensorFlow (Commit: 2a6d7511f13a0387857081f1cf64d282d2816a62)

※が今回のインストール対象

続きを読む

XenServer 7 インストール手順

仮想化ハイパーバイザの XenServer の新しいバージョン XenServer 7 がリリースされていたので早速インストールしてみました。

インストール環境

  • 筐体:Intel NUC6i5SYH
  • CPU:Intel Core™ i5-6260U
  • メモリ:Crucail CT8G4SFD8213 (DDR4 8GB)
  • HDD:PLEXTOR PX-128M5S (128GB)
続きを読む