0.Ubuntu分区大小:

  • boot 2g  主分区
  • swap 8g
  • / 20g 逻辑分区
  • /home 70g逻辑分区

1.网易云失败后需要安装依赖 sudo apt-get install -f
sudo dpkg -i netease-cloud-music_1.0.0_amd64_ubuntu16.04.deb

3. 设置root 
sudo su -
 ##输入账户密码 
passwd 
##输入新的root密码
##再次输入root密码
4.更新软件源
将软件源更换为国内的源,自己选择了aliyun,速度最快(清华的源也可以) 
Ubuntu 的软件源配置文件是/etc/apt/sources.list。将系统自带的该文件做个备份,
进入/etc/apt/
cd /etc/apt

在修改前先对 sources.list文件进行备份
sudo cp sources.list sources.list.bak

修改sources.list文件
sudo vi sources.list

将该文件替换为下面内容,即可使用 TUNA 的软件源镜像。

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
--------------------- 
5.二、系统美化
系统更新
安装完系统之后,需要更新一些补丁。ALT+CTRL+T打开终端,输入下面代码:

sudo apt-get update
sudo apt-get upgrade

卸载libreOffice
LibreOffice是Ubuntu自带的开源office软件,后面我们会换成WPS,个人喜欢WPS。

sudo apt-get remove libreoffice-common

卸载WPS

sudo apt-get purge wps-office:i386

删除Amazon的链接
sudo apt-get remove unity-webapps-common
--------------------- 
删除不常用的软件
sudo apt-get remove thunderbird totem rhythmbox empathy brasero simple-scan gnome-mahjongg aisleriot

sudo apt-get remove gnome-mines cheese transmission-common gnome-orca webbrowser-app gnome-sudoku landscape-client-ui-install

sudo apt-get remove onboard deja-dup

4.删掉基本不用的自带软件(用的时候再装也来得及)
sudo apt-get remove thunderbird totem rhythmbox empathy brasero simple-scan gnome-mahjongg aisleriot gnome-mines cheese transmission-common gnome-orca webbrowser-app gnome-sudoku  landscape-client-ui-install
sudo apt-get remove onboard deja-dup

--------------------- 
三、主题美化篇
安装桌面unity-tweak-tool
调整Unity桌面环境,推荐使用unity-tweak-tool。

sudo apt-get install unity-tweak-tool

Flatabulous主题
使用下面命令安装Flatabulous主题

sudo add-apt-repository ppa:noobslab/themes
sudo apt-get update
sudo apt-get install flatabulous-theme

该主题有配套图标,安装方式如下:

sudo add-apt-repository ppa:noobslab/icons
sudo apt-get update
sudo apt-get install ultra-flat-icons

安装往后打开unity-tweak-tool,进入主题,修改为Flatabulous,进入图标修改为Ultra-flat

桌面特效的教程:https://forum.ubuntu.org.cn/viewtopic.php?t=140531
--------------------- 

安装Chrome浏览器
最好用的浏览器,没有之一,强大的插件功能。

安装命令如下:

sudo wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/
# 以下是一条语句
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub  | sudo apt-key add -   

sudo apt-get update
sudo apt-get install google-chrome-stable
google-chrome-stable

安装Git
sudo apt-get install git

配置用户名和邮箱:

git config --global user.name "smile"
git config --global user.email "smilelingyong@163.com"
--------------------- 
6. vim的配置
输入命令:sudo vim /etc/vim/vimrc
请在您的VIM的最后一行,输入他们,可以让您的VIM变得更漂亮、舒服。

set nu                           // 在左侧行号
set tabstop                  //tab 长度设置为 4
set nobackup               //覆盖文件时不备份
set cursorline               //突出显示当前行
set ruler                       //在右下角显示光标位置的状态行
set autoindent             //自动缩进

7. 登录密钥环
  在终端输入seahorse打开管理密钥环的软件,视图->根据密码环 在密码区会有一个“登录”为名字的密钥环,右击将其删除。    在终端输入seahorse打开管理密钥环的软件,文件->新建->密码和密钥->输入名字(这里是以”chrome”为例)。
(密码设置为空)
8. docky安装 sudo apt-get install docky
9. 解压问题 
1.安装:sudo apt-get install rar;
2.卸载rar:sudo apt-get remove rar ; 
3.只装unra:sudo apt-get install unrar .

11.anaconda安装:4.2.0版本对应的是3.5.2,下载好后输入 bash+anaconda文件全名,注意把路径也选上。
(4)当执行完成上面的步骤之后,对Anaconda 的环境进行测试;

执行命令:conda --version (作用:查看当前Anaconda的版本)

如果,出现对应的安装版本,那么就表示安装成功,可以继续后面的安装步骤。
(5) 安装conda的清华源:TUNA 还提供了 Anaconda 仓库的镜像,运行以下命令:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes

(5)添加tensorflow的环境。执行命令:conda create -n tensorflow python=3.5(版本的话,我个人比较喜欢3.X+版本)。当执行完成之后,就根据提示,进行输入yes就可以了,慢慢等待。

(6)激活环境,执行命令:source activate tensorflow (作用:进入到tensorflow的环境)

(7)激活tensorflow的环境,执行命令:
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.1-cp35-cp35m-linux_x86_64.whl
运行以下命令安装和升级到 PyPi 中最新版本的 TensorFlow:

(tensorflow-dev) $ pip3 install --upgrade tensorflow
(9)安装完成之后,进行测试。
具体步骤:

1:在tensorflow的环境下,执行命令:python      (作用:表示进入python环境)

2:然后输入代码(这个其实和windows安装的时候测试时一样):

import tensorflow as tf
 hello = tf.constant('first tensorflow')
 sess = tf.Session()
 print sess.run(hello)


如果:输出first tensorflow ,那么就表示安装成功了。
3:在tensorflow下安装ipython:conda install ipython

12.安装pycharm:https://jingyan.baidu.com/article/c45ad29c030102051753e20f.html
13.配置vpn:https://mystery0.vip/2017/01/12/Ubuntu%E4%BD%BF%E7%94%A8Shadowsocks-qt5%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91/
14.购买vpn:https://hkjss.cn/pricing.php

15.atom安装:首先安装好了之后,主要是安装插件,去官网下载好,解压,然后复制到.atom/packages,进入要安装的文件夹,打开终端输入npm install就行。另一种方法是:
首先,修改插件的安装源,

在Ubuntu下,在~/.atom目录下,新建一个.apmrc文件,并添加如下内容
registry=https://registry.npm.taobao.org/
strict-ssl=false
接着执行如下命令

wxer@wxer:~/.atom$ apm install --check
接下来就是安装atom插件了,以下以安装tidy-markdown为例,说明安装的命令,如下

wxer@wxer:~/.atom$ apm install tidy-markdown

编译C++ 按F6,python用ctrl+shift+b

16.python代码美化:https://zhuanlan.zhihu.com/p/59763076
17.roboware安装
教程:https://blog.csdn.net/qq_41450811/article/details/80305846
18.pip安装太慢:
Linux下,修改 ~/.pip/pip.conf (没有就创建一个文件夹及文件。文件夹要加“.”,表示是隐藏文件夹)

内容如下:

[global] 
index-url = https://pypi.tuna.tsinghua.edu.cn/simple 
[install] 
trusted-host=mirrors.aliyun.com 
19.上传文件到github:
git add task.ipynb
git commit -m  "第一次作业"
git push origin master

20.安装XMind:解压后直接进去输入sudo ./setup.sh来安装依赖,然后进入64位的那个文件夹看看能不能运行;接着是创建快捷方式:进入/usr/share/applications/,输入sudo gedit XMind.desktop,然后复制下面的

[Desktop Entry]
 Encoding=UTF-8
 Name=XMind
 Comment=The Most Popular Mind Mapping Software on The Planet
 Path=/home/xxx/opt/xmind-8-update8-linux/XMind_amd64/
 Exec=/home/xxx/opt/xmind-8-update8-linux/XMind_amd64/XMind
 Icon=/home/xxx/opt/xmind-8-update8-linux/XMind_amd64/XMind.png
 Terminal=false
 StartupNotify=false
 Type=Application
 Categories=Application;


xxx 替换为你的用户名,Path、Exec和Icon都替换为你相应的路径。下图另存为图片到对应目录。
破解教程:先下载好破解文件XMindCrack.jar,然后将其复制到那个amd64的文件夹中,然后打开XMind.ini文件,在最后一行加入-javaagent:/home/midi/下载/xmind-8-update8-linux/XMind_amd64/XMindCrack.jar,然后找到hosts文件追加127.0.0.1 xmind.net

      127.0.0.1 www.xmind.net,然后打开软件,帮助,序列号,邮箱随便输,序列号为:
XAka34A2rVRYJ4XBIU35UZMUEEF64CMMIYZCK2FZZUQNODEKUHGJLFMSLIQMQUCUBXRENLK6NZL37JXP4PZXQFILMQ2RG5R7G4QNDO3PSOEUBOCDRYSSXZGRARV6MGA33TN2AMUBHEL4FXMWYTTJDEINJXUAV4BAYKBDCZQWVF3LWYXSDCXY546U3NBGOI3ZPAP2SO3CSQFNB7VVIY123456789012345

21.安装typora

1 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE
2 sudo add-apt-repository 'deb https://typora.io ./linux/'
3 sudo apt-get update
4 sudo apt-get install typora