Ubuntu 14.04 LTS新安装的系列软件(步骤)

2014-05-02
#Unix

从Ubuntu13.10更新到Ubuntu14.04LTS

$ sudo apt-get install update-manager-core
$ sudo do-release-upgrade -d

注意:调换到源为主服务器并且设置源的一些基本信息;

具体参照官网:http://www.ubuntu.com/download/desktop/upgrade

一. 更换源,使得下载和更新速度达到最快

打开“软件更新器(software updater)”或者“软件和更新”,根据自己网络选择。

二. 安装博客工具Octopress

参看Ubuntu13.10下使用Github和Octopress搭建个人博客的简要做法

期间错误解决

$ gem install bundler

出现:

Fetching: bundler-1.6.2.gem (100%)
ERROR:  While executing gem ... (Errno::EACCES)
Permission denied - /var/lib/gems

输入:

$ sudo gem install bundler

提示需要安装:

$ sudo apt-get install rbenv

第二步与之前不一样,即为把已经上传的文档download到本地:

本地同步:

$ git clone git@github.com:xiaoledeng/xiaoledeng.github.io.git

提示:Permission denied (publickey).

解决办法: 用下面的命令生成public key

$ ssh-keygen -t rsa
$ cd .ssh
$ gedit id_rsa.pub

复制 id_rsa.pub中文件到你账户的list of SSH keys

$ git clone git@github.com:xiaoledeng/xiaoledeng.github.io.git
$ cd xiaoledeng.github.io
xiaoledeng.github.io$ git checkout source
xiaoledeng.github.io$ mkdir _deploy
xiaoledeng.github.io$ cd _deploy
xiaoledeng.github.io/_deploy$ git init
xiaoledeng.github.io/_deploy$ git remote add origin git@github.com:xiaoledeng/xiaoledeng.github.io.git
xiaoledeng.github.io/_deploy$ git pull origin master
xiaoledeng.github.io/_deploy$ cd ..

至此,同步完成。

三. 安装GMT4.5

具体命令:

1.在终端运行

$ sudo apt-get install GMT

2.安装建议安装的软件包:

$ sudo apt-get install gmt-tutorial-pdf gmt-doc-pdf gmt-examples gmt-gshhs-high gmt-gshhs-full

3.添加环境变量:

$ gedit ~/.bashrc

(打开.bashrc) 在文档末尾添加三行:

export NETCDFHOME="/usr/lib"
export GMTHOME="/usr/lib/gmt"
export PATH="$PATH:$GMTHOME/bin"

4.验证是否安装正确以及版本

输入:

$ GMT -v
GMT Version 4.5.11
Copyright 1991-2013 Paul Wessel and Walter H. F. Smith

This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of this program under the terms of the
GNU General Public License.
For more information about these matters, see the file named LICENSE.TXT.
For a brief description of GMT programs, type GMT --help

四. 安装Markdown编辑器retext

博客编辑工具retext

$ sudo apt-get install retext