Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选

首页 / 操作系统 / Linux / Ubuntu 15.04安装不完全指南

0x00. 烧盘使用UltraISO烧录到U盘里,设置电脑从U盘启动,即可安装。安装时可能出现not COM32R image的命令行,“boot:” 后面直接输入live即可解决问题。软碟通UltraISO v9.5.3.2901 简体中文完美注册版  http://www.linuxidc.com/Linux/2012-11/74577.htmUbuntu 15.04 正式版发布下载  http://www.linuxidc.com/Linux/2015-04/116634.htmWindows 7下硬盘安装Ubuntu 14.10图文教程 http://www.linuxidc.com/Linux/2014-10/108430.htmU盘安装Ubuntu 14.10 http://www.linuxidc.com/Linux/2014-10/108402.htmUbuntu 14.10 正式发布下载 http://www.linuxidc.com/Linux/2014-10/108363.htmUbuntu 14.04 LTS 如何升级到 Ubuntu 14.10  http://www.linuxidc.com/Linux/2014-10/108381.htm0x01. 顺序结构安装这步不用多讲,就按顺序安装就行。0x02. 更新sudo apt-get update
sudo apt-get upgrade系统安装完需要更新,这两行命令提供系统更新。有人估计会说要更换源,公司网速可以的话,也没必要。0x03. aptitudesudo apt-get install aptitudeaptitude包管理器,系统默认的是apt包管理器,aptitude在删除一个包时,会删除其依赖包,这样系统不会残留无用的包,使系统更加干净。0x04. gitsudo apt-get install git这样就安装了git。0x05. Vim打开Terminal。Ubuntu 15.04自带了solarized主题。可以在偏好里设置。一个没有插件的Vim就好像失去了活力的孩子。在用户主目录下新建文件:.vimrc,需要在里面手动配置自己的vim,我的.vimrc如下:"Use vundle to manage plugin, required turn file type off and nocompatible
filetype off
set nocompatible
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
"Let vundle manage vundle, required
Bundle "gmarik/vundle"
"My bundles here:
Bundle "altercation/vim-colors-solarized"
Bundle "taglist.vim"
Bundle "The-NERD-tree"
Bundle "a.vim"
Bundle "c.vim"
Bundle "python.vim"
Bundle "Lokaltog/vim-powerline"
Bundle "OmniCppComplete"
"Brief help of vundle
    ":BundleList
    ":BundleInstall
    ":BundleSearch
    ":BundleClean
    ":help vundle
"End brief help"Show line number, command, status line and so on
set history=1000
set ruler
set number
set showcmd
set showmode
set laststatus=2
set cmdheight=2
set scrolloff=3"Fill space between windows
set fillchars=stl: ,stlnc: ,vert:"Turn off annoying error sound
set noerrorbells
set novisualbell
set t_vb="Turn off splash screen
set shortmess=atI"syntax and theme
syntax enable
colorscheme solarized
set background=dark
set cursorline
set cursorcolumn"Configure backspace to be able to across two lines
set backspace=2
set whichwrap+=<,>,h,l"Tab and indent
set expandtab
set smarttab
set shiftwidth=4
set tabstop=4
set autoindent
set cindent"Files, backups and encoding
set nobackup
set noswapfile
set autoread
set autowrite
set autochdir
set fileencoding=utf-8
set fileformats=unix,dos,mac
filetype plugin on
filetype indent on"Text search and repalce
set showmatch
set matchtime=2
set hlsearch
set incsearch
set ignorecase
set smartcase
set magic
set lazyredraw
set nowrapscan
set iskeyword+=_,$,@,%,#,-,."powerline
let g:Powerline_sysmbols="fancy"
set t_Co=256
let Powerline_symbols="compatible"
set laststatus=2
set encoding=utf-8"Gvim config
if has("gui_running")
    colorscheme solarized
endif
set guifont=DejaVu Sans Mono 15
set guioptions=aegic9~16行是我安装的几个基本插件。效果如下:0x06. oh-my-zsh看到上面的Powerline效果很炫,shell也能这么炫酷么?当然可以。这里我们只要安装oh-my-zsh即可。首先得安装zsh,系统默认的是bash shell1 sudo apt-get install zsh上面一行的代码安装了zsh。1 cat /etc/shells 2 # /etc/shells: valid login shells3 /bin/sh4 /bin/dash5 /bin/bash6 /bin/rbash7 /bin/zsh8 /usr/bin/zsh查看发现zsh已经安装。接下来要将zsh设置为默认shell。1 sudo chsh -s zsh此即更改了当前的shell,但不会立即生效,需要reboot计算机。重启之后,我们按照oh-my-zsh主页的安装方式进行安装: curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh或者wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | sh成功安装oh-my-zsh之后,用vim打开.zshrc文件。修改ZSH——THEME参数的值即可修改zsh主题,如ZSH_THEME="agnoster"即可在Terminal中显示Powerline效果,如下:当然,可能有些同学发现箭头显示不了,打上字体补丁就OK了,Powerline的作者给出了详细的解决方案,链接如下:https://powerline.readthedocs.org/en/latest/installation/linux.html#installation-on-linux,当然,你也可以去Powerline的github主页寻找相关的信息。0x07. Numix拥有Numix主题的Ubuntu系统就像穿了鲜艳服装的小朋友。从github进入NumixProject项目主页。1 sudo add-apt-repository ppa:numix/ppa2 sudo apt-get update3 sudo apt-get install numix-icon-theme-circle这3行语句即可安装Numix主题。可是发现系统并没有什么改变。0x08. unity-tweak-tool当然,我们需要用unity-tweak-tool来切换主题。1 sudo apt-get install unity-tweak-tool首先安装unity-tweak-tool。切换后效果如下:0x09. fcitx && flashplugin-installer输入法是安装的fcitx。flsah插件也是要安装的。0x0A. Browser最后来说一下浏览器。其实浏览器最大的一个问题是FQ。我平时喜欢用红杏。无奈Ubuntu默认的浏览器是Firefox。那就选择安装Chromium浏览器,在Extension里打开开发者模式。即可添加红杏插件,登录即可使用。最后,附上我的红杏邀请,接受我的邀请并开通服务的同学,你和我都将获得10天的优惠。(小伙伴们快来快来~~~)附换上壁纸后整体效果:更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2本文永久更新链接地址