由于多次安装Ubuntu16.04用于学习,其中出了多次问题。每次找参考文件太麻烦,于是写了这篇总结,方便之后备用。

一、精简系统,删除不常用软件

  参考资料来自:https://blog.csdn.net/skykingf/article/details/45267517

 1、删除libreoffice

   sudo apt remove libreoffice-common  

 2、删除Amazon的链接

  sudo apt-get remove unity-webapps-common  

 3、卸载火狐

  首先,查看火狐有哪些安装包:

   dpkg --get-selections |grep firefox 

  然后,依次卸载:

   sudo apt-get purge firefox firefox-locale-en firefox-locale-zh-hans 

 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

二、做一些配置工作

 1、安装Vim

   sudo apt-get install vim 

 2、更换国内源

  1.备份系统自带源

   mv /etc/apt/sources.list /etc/apt/sources.list.bak 

  2.修改/etc/apt/sources.list文件

   vim /etc/apt/sources.list 

  3.加入国内源

deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse

  4.更新生效

   apt-get update 

 3、安装Sublime Text 3

  1、通过apt安装:

  2、安装GPG key:

  wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - 

  3、确保apt能够使用https源

  sudo apt-get install apt-transport-https 

  4、使用稳定版源

  echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list 

  5、更新apt源并安装sublime-text,并打开

sudo apt-get update
sudo apt-get install sublime-text
subl

  6、输入注册码

----- BEGIN LICENSE -----
sgbteam
Single User License
EA7E-1153259
8891CBB9 F1513E4F 1A3405C1 A865D53F
115F202E 7B91AB2D 0D2A40ED 352B269B
76E84F0B CD69BFC7 59F2DFEF E267328F
215652A3 E88F9D8F 4C38E3BA 5B2DAAE4
969624E7 DC9CD4D5 717FB40C 1B9738CF
20B3C4F1 E917B5B3 87C38D9C ACCE7DD8
5F7EF854 86B9743C FADC04AA FB0DA5C0
F913BE58 42FEA319 F954EFDD AE881E0B
------ END LICENSE ------
----- BEGIN LICENSE -----
Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F
942194A6 02396E98 E62C9979 4BB979FE
91424C9D A45400BF F6747D88 2FB88078
90F5CC94 1CDC92DC 8457107A F151657B
1D22E383 A997F016 42397640 33F41CFC
E1D0AE85 A0BBD039 0E9C8D55 E1B89D5D
5CDB7036 E56DE1C0 EFCC0840 650CD3A6
B98FC99C 8FAC73EE D2B95564 DF450523
------ END LICENSE ------

  7、安装Packeage Contro

  sublime Text 3 打开按shift+`按键打开控制台将下边代码贴进去:

import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

 

posted on 2018-07-16 02:09  Cjv  阅读(574)  评论(0编辑  收藏  举报