Ubuntu
install Ubuntu
install Ubuntu
- install "EASEUS Partition Master Home Edition" to Windows, and make an empty partition
- install "Universal USB Installer" to Windows, and make an Ubuntu bootable USB stick
- Restart computer, and boot from the USB.
- Follow the instruction, and install Ubuntu to your machine.
setup
setup
- update and upgrade apt-get
- % sudo apt-get update
- % sudo apt-get upgrade
- install emacs
- % sudo apt-get install emacs
- install GMT & NetCDF
- Option 1 From apt-get: this is easy, but due to library problem, netcdf library doesn't work on gfortran program.
- % sudo apt-get install gmt
- % sudo apt-get install netcdf-bin
- Option 2 From GMT web site: this takes time, but you can choose C compiler manually. If you have both ifort and icc and are going to use ifort for standard fortran compiler, take this option setting C compiler to icc.
- get a shell script "install_gmt" at http://gmt.soest.hawaii.edu
- get a parameter file "param.txt" at http://gmt.soest.hawaii.edu/
- % sudo sh install_gmt param.txt
- install imagemagick
- % sudo apt-get install imagemagick
- install gfortran
- % sudo apt-get install gfortran
install unix semi material
install unix semi material
- install my materials
- Visit https://sites.google.com/site/naotahanasaki/japanese-contents/memo
- Get "code and data"
- Extract it
- Change name from unix_semi_20091128 to unix_semi
- goto unix_semi/src
- Edit Makefile (Specify fortran compiler (FC) as gfortran)
- % make all
- Edit ~/.bashrc and add...
- export GFORTRAN_CONVERT_UNIT="big;little:25-26"
- export PATH=.:$PATH:/home/sunattapong/Desktop/GMT4.5.1/bin:/home/sunattapong/Desktop/unix_semi/src
- Edit ~/.bashrc and remove
- export GFORTRAN_CONVERT_UNIT="big;little:25-26"
- Recompile my materials.
- Set binary files in the directory
- % cd unix_semi/lesson8/
- % exercise.sh
- % cd unix_semi/lesson6/
- % asc2bin.sh