Install CentOS 7 on VMware Workstation 12 Player on Windows 8.1 (x86-64)

Table of Contents

これまで,Debian,CentOS,Scientific Linux,Ubuntuと使ってきましたが,Ubuntu 14.04LtsでDennou RubyのGPhysがどうしてもインストールできなかったため,CentOS 7を試すことにしました.結果的にGPhys,GMT5.1.2が動き快適です.Ubuntuの方が見た目はよいですが,CentOSの方が扱いやすい印象です.
First, VMware Workstation 12 Player should be installed.

Download and install

CentOS 7 iso image should be downloaded from this download site. You may choose "Everything."
On VMware Player, selecting iso image that you downloaded and then easy installation and editing settings and then you will be able to install easily.
Windows shared folder function should be activated and add e.g. the following in .bashrc where winc and wind are Windows C and D drives, respectively:
[cce]
# Shared folders
if [ -d wind ] ; then
echo "Windows shared folders ready"
else
ln -s /mnt/hgfs/winc winc
ln -s /mnt/hgfs/wind wind
fi
[/cce]
On terminal, set the time zone as follows for the case of Tokyo:
[cc]
# timedatectl set-timezone Asia/Tokyo
# timedatectl
[/cc]
Network should be manually activated whenever you login or restore from suspension at the top panel of CentOS.
After installation of CentOS, make the system update by:
[cc]
# yum update
[/cc]
You then need to reinstall vmware-tools, or some functions may not work well, including Windows shared folders. When updating, reinstallation of vmware-tools will be required.
vmware-tools may be automatically installed and updated if you set so in the settings of VMware Player.

Language and keyboard

You may change the settings for language at the top panel of CentOS and "Application -> System tools -> Settings -> Area and Language" or "アプリケーション -> システムツール -> 設定 -> 地域と言語" in Japanese. Then set the language. You also need rebooting to activate the change. 一度logoutしてloginすると言語が変わります.
Regarding changing keyboard, you need to edit the following file:
[cc]
/etc/vconsole.conf
[/cc]
and add the following in case of JP106 keyboard and comment out "us" as follows:
[cc]
#KEYMAP="us"
KEYMAP="jp106"
[/cc]

ターミナルの言語環境の変更

一時的にターミナルの言語環境を英語または日本語に変更するには次の様にします.Matplotlibを英語環境で使うにはこの設定で英語環境にしておく必要があります.こちらを参照.
[cc]$ export LANG=en_US.UTF-8[/cc]
[cc]$ export LANG=ja_JP.UTF-8[/cc]
また,上記は.bashrcに書くことで常態化できます.

Install gv

gv is a viewer for postscript files and can be installed as follows:
[cc]
# yum install gv
[/cc]

Install Dennou Ruby

You should install epel first as follows:
[cc]
# yum install epel-release
[/cc]
Then download GFD-Dennou.repo file and copy it into the following directory:
[cc]
/etc/yum.repos.d/
[/cc]
Then you can install dennou ruby by:
[cc]
# yum install gphys
[/cc]
Put gphys instead of gave.

Install GMT 5.2.1

There is some information about installation of GMT 5 using yum but I found it did not work. Thus I built it basically following this post.

First, you need to install following:
[cc] # yum install cmake28 netcdf-devel gdal-devel pcre-devel fftw3-devel[/cc]

Also, ./cmake/ConfigUserTemplate.cmake should be copied as ./cmake/ConfigUser.cmake and it should be modified like:
[cc]
set (CMAKE_INSTALL_PREFIX "/usr/local/gmt/5.2.1")
set (GSHHG_ROOT "/usr/local/gmt/5.2.1/gshhg-gmt-2.3.4")
set (DCW_ROOT "/usr/local/gmt/5.2.1/dcw-gmt-1.1.2")
[/cc]
After completion of install, the following environmental variables should be added in .bashrc.
[cc]
# GMT 5.2.1
export PATH=$PATH:/usr/local/gmt/5.2.1/bin
export MANPATH=/usr/local/gmt/5.2.1/share/man/:$MANPATH
[/cc]

Install Anaconda

*It may be better to manage using pyenv.
Download Anaconda for Linux from this site.
Moving onto the directory where the above file is downloaded and execute the following:
[cc]
# bash Anaconda-2.3.0-Linux-x86_64.sh
[/cc]
During the installation process, specify the following directory into which anaconda will be installed:
[cc]
/usr/local/anaconda
[/cc]
Add the following in .bashrc:
[cc]
export PATH=/usr/local/anaconda/bin:$PATH
[/cc]

Install nco

nco is a netCDF operator for extracting subdomain of netCDF file. More explanation is given in this post.
[cc]
# yun install nco
[/cc]

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください