Ubuntu 安装使用

Ubuntu 安装 (Updating)


sudo apt-get install git
git config --global user.email "you@example.com"
git config --global user.name "Your name"


Install ZSH shell with on-my-zsh. Use the following commands one by one:

sudo apt-get install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
sudo chsh -s `which zsh`

Then, restart the computer with

sudo shutdown -r 0

Reference: https://gist.github.com/tsabat/1498393


Hexo requires Git and Node.js. Git has been installed in the previous section. To install Node.js, nvm is used through Wget.

To install nvm:

wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh

Afterwards, restart the terminal. To install Node.js:

nvm install stable

To install Hexo:

npm install -g hexo-cli

Afterwards, you can enjoy blogging with Hexo!

Consolas font

Consolas is a good coding font. To apply Consolas on Ubuntu, please check out this post: Ubuntu Consolas Font Install.