Install and Configure CentOS7


  • check if GCC has been installed: sudo yum install gcc gcc-c++
  • Download tar.gz file from Node.js website and extract it
  • In terminal, go to this folder, then do ./configure to configure software
  • do make to make this software
  • do sudo make install to install node.js
  • Check success: node --version npm --version
  • do sudo npm install -g hexo to install Hexo. My sudo not work right so I did su to be root first, then do npm install -g hexo.

  • Install Dependence: sudo yum install gcc g++ make automake autoconf curl-devel openssl-devel zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel
  • Install Dependence: sudo yum install ruby-rdoc ruby-devel
  • Ruby:sudo yum install ruby
  • RubyGem: sudo yum install rubygems
  • Jekyll: gem install jekyll

Development Softwares

  • Dropbox: install from Dropbox website. After installation, you may get error when you do sudo yum update, showing rpm is not found. To solve this problem, do cd /etc/yum.repos.d to go to repos folder, then do mv dropbox.repo dropbox to rename existing repo

Virtual Box Usage

  • If you use virtual box, the way to add Guest Additions to CentOS7 is: In virtual box menu bar, select Devices -> Insert Guest Additions Image..., then in CentOS7, a iso file will automatically run. You just need to give allowance then wait to the end of installation. If you find screen resolution not change, shutdown vm then adjust RAM a littble bit in settings. Make sure 3D acceleration is enabled. The re-start VM.


  • whereis XXX: check program location
  • which XXX: check if program is in $PATH
  • Temporary Add to PATH: echo $PATH -> PATH=$PATH:/usr/... (no space) -> export PATH