歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 15.04安裝不完全指南

Ubuntu 15.04安裝不完全指南

日期:2017/2/28 14:00:20   编辑:Linux教程

0x00. 燒盤

使用UltraISO燒錄到U盤裡,設置電腦從U盤啟動,即可安裝。

安裝時可能出現not COM32R image的命令行,“boot:” 後面直接輸入live即可解決問題。

軟碟通UltraISO v9.5.3.2901 簡體中文完美注冊版 http://www.linuxidc.com/Linux/2012-11/74577.htm

Ubuntu 15.04 正式版發布下載 http://www.linuxidc.com/Linux/2015-04/116634.htm

Windows 7下硬盤安裝Ubuntu 14.10圖文教程 http://www.linuxidc.com/Linux/2014-10/108430.htm

U盤安裝Ubuntu 14.10 http://www.linuxidc.com/Linux/2014-10/108402.htm

Ubuntu 14.10 正式發布下載 http://www.linuxidc.com/Linux/2014-10/108363.htm

Ubuntu 14.04 LTS 如何升級到 Ubuntu 14.10 http://www.linuxidc.com/Linux/2014-10/108381.htm

0x01. 順序結構安裝

這步不用多講,就按順序安裝就行。

0x02. 更新

sudo apt-get update
sudo apt-get upgrade

系統安裝完需要更新,這兩行命令提供系統更新。有人估計會說要更換源,公司網速可以的話,也沒必要。

0x03. aptitude

sudo apt-get install aptitude

aptitude包管理器,系統默認的是apt包管理器,aptitude在刪除一個包時,會刪除其依賴包,這樣系統不會殘留無用的包,使系統更加干淨。

0x04. git

sudo 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=aegic

9~16行是我安裝的幾個基本插件。

效果如下:

0x06. oh-my-zsh

看到上面的Powerline效果很炫,shell也能這麼炫酷麼?當然可以。

這裡我們只要安裝oh-my-zsh即可。

首先得安裝zsh,系統默認的是bash shell

1 sudo apt-get install zsh

上面一行的代碼安裝了zsh。

1 cat /etc/shells 
2 # /etc/shells: valid login shells
3 /bin/sh
4 /bin/dash
5 /bin/bash
6 /bin/rbash
7 /bin/zsh
8 /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/ppa
2 sudo apt-get update
3 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

Copyright © Linux教程網 All Rights Reserved