Sunday, February 28, 2016

Extract a .tar.bz2 file

Use tar can unzip a .tar.bz2 file. Run

sudo tar -xjvf VESTA-x86_64.tar.bz2

Here sudo is required, or it doesn't work well.

Saturday, February 27, 2016

Ubuntu reconnect wireless network

Sometimes Ubuntu loses the wireless internet connection, and never(greater than the time you can wait) gets it back. Restart the wireless scan can solve it. Run:
sudo service network-manager restart

ifort command not found

After install Intel FORTRAN on Ubuntu, compiling fortran source code gives:


ifort: command not found
This is because the current user doesn't have correct environment variables. Run

source /opt/intel/compilers_and_libraries_2016.2.181/linux/bin/ifortvars.sh intel64
or add this line to the .bashrc file at home directory.

Direction keys and Sogou Pinyin malfunction in Vi for Ubuntu

When use Vi edit some file, the direction keys, up, down, left and right, enter a character, instead of direction. Besides of this, Sogou Pinyin does't work for Vi as well. In this case,  edit your .vimrc file under home directory and add:

set nocompatible

The problem will be solved.