Monday, January 29, 2018

Install Centos and CRTM

Refresher (Last time I used Linux is 4 months ago and I almost forgot everything)
  • robo vm is 3 GB .vmdk file, password: robo-nd
  • open terminal: ctrl + option + t
main take-away:
  1. use stable version of VirtualBox(older version)
  2. use ready-to-use version of centos VM. So you have GUI and Firefox.

install on Mac OS, fail

cd config-setup
chmod u+x gfortran.setup  # change user access to write
./gfortran.setup   # source some shell code
source config-setup/gfortran-debug.setup
## following is error, setenv may be linux command
-bash: setenv: command not found
-bash: setenv: command not found
-bash: setenv: command not found
-bash: setenv: command not found
cp Makefile # **.in is for linux
./config.status --recheck
make: ./config.status: No such file or directory
make: *** [config.status] Error 1

install on Ubuntu, fail

cd config-setup
chmod u+x gfortran-debug.setup
cd ..
./configure --prefix=/bin/
# configure ...
# recipe for target "CRTM_CloudCover_Efine.o" failed
# recipe for target "all" failed
make check
# Error 2
gfortran --version
# GNU Fortran (Ubuntu 5.4.0)  5.4.0
gcc --version
# gcc (Ubuntu 5.4.0)  5.4.0

install on Centos 7 DVD ISO, but no GUI

install virtual box on macOS High Sierra
University of Oklahoma Open Source Software Mirror:
Virtual Box 5.2.6 doesn’t work on macOS High Sierra. Use VirtualBox 5.2.4.
Installation failure? System configuration -> Seurity & Privacy -> authroize changes ( the lock sign)

install centos on virtual box

Installing Centos 7 on VirtualBox:
Virtual box - new -> name: centos7 -> next -> 2048 MB->create a virtual hard disk now -> Hard disk file type: VDI -> dynamically allocated
Localhost login: root
Password: wnixxxxxxx

add user

adduser yuchao
passwd yuchao
usermod -aG wheel username
CentOS 使用 yum,Ubuntu 使用 apt-get,近些年又出现了一些与发行版无关的第三方包管理器,比如 Linuxbrew.
The problem is no GUI, so inconvenient to use. May try everything ISO next time.

install on Centos, ready-to-use VirtualBox by OSBoxes, success!

Centos 7-1708, password:
transfer file?
df -h
scp jiang@*.sh .
# connection refused
directly download from official website
sudo yum install gcc-gfortran
gfortran --version
# GNU Fortran (GCC) 4.8.5 (Red Hat 4.8.5-16)
gcc --version
# gcc (GCC) 4.8.5 (Red Hat 4.8.5-16)
cd config-setup
chmod u+x gfortran-debug.setup
cd ..
./configure --prefix=/bin/
make check
sudo make install
make clean