安装Ubuntu 16.04后要做的事

来源:互联网 发布:热云数据 编辑:程序博客网 时间:2024/04/25 13:31

Ubuntu 16.04发布了,带来了很多新特性,同样也依然带着很多不习惯的东西,所以装完系统后还要进行一系列的优化。


1.删除libreoffice

libreoffice虽然是开源的,但是Java写出来的office执行效率实在不敢恭维,装完系统后果断删掉

[html] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo apt-get remove libreoffice-common  

2.删除Amazon的链接

[html] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo apt-get remove unity-webapps-common  

3.删掉基本不用的自带软件(用的时候再装也来得及)


[html] view plain copy 在CODE上查看代码片派生到我的代码片
  1. 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  
[html] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo apt-get remove onboard deja-dup  

这样系统就基本上干净了。


4.安装Vim

居然默认没有集成Vim神器,只能手动安装了。

[html] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo apt-get install vim  


5.设置时间使用UTC

[html] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo vim /etc/default/rcS   

将UTC=no改为UTC=yes


6.安装Chrome

到 https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb 下载最新的安装文件。

然后
[html] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo apt-get install libappindicator1 libindicator7  
  2. sudo dpkg -i google-chrome-stable_current_amd64.deb   
  3. sudo apt-get -f install  
这样以后就可以apt安装和更新chrome浏览器了。


7.安装搜狗输入法

vim /etc/apt/sources.list.d/ubuntukylin.list文件,加入ubuntu kylin的apt源

[html] view plain copy 在CODE上查看代码片派生到我的代码片
  1. deb http://archive.ubuntukylin.com:10006/ubuntukylin trusty main  

然后
[html] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo apt-get update  
  2. sudo apt-get install sogoupinyin  

这样就可以apt安装和更新搜狗输入法了。


8.安装WPS Office

目前MS一直不出Linux版的Office,只能凑合着用WPS了

[html] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo apt-get install wps-office   


9.安装Oracle Java

[html] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo add-apt-repository ppa:webupd8team/java    
  2. sudo apt-get update    
  3. sudo apt-get install oracle-java8-installer   

由于系统自带的是OpenJDK,卸载OpenJDK之后会带有残留,导致运行

[python] view plain copy 在CODE上查看代码片派生到我的代码片
  1. java -version  
时第一行不是java的版本号,会是Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar这个提示,导致很多检测java版本号的脚本会运行出错,因此需要手动清除残留。

[python] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo rm /usr/share/upstart/sessions/jayatana.conf  
删除/usr/share/upstart/sessions/jayatana.conf文件,重启之后再运行java -version就不会再有Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar提示了。


10.安装Sublime Text 3

[html] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo add-apt-repository ppa:webupd8team/sublime-text-3    
  2. sudo apt-get update    
  3. sudo apt-get install sublime-text   

11.安装经典菜单指示器

[html] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo add-apt-repository ppa:diesch/testing  
  2. sudo apt-get update  
  3. sudo apt-get install classicmenu-indicator  

12.安装系统指示器SysPeek

[html] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo add-apt-repository ppa:nilarimogard/webupd8    
  2. sudo apt-get update    
  3. sudo apt-get install syspeek    


13.自定义DHCP网络的DNS Server IP地址

sudo vim /etc/dhcp/dhclient.conf文件,在第21行#prepend domain-name-servers 127.0.0.1;下一行添加如下2行使用aliyun和114的DNS

[html] view plain copy 在CODE上查看代码片派生到我的代码片
  1. prepend domain-name-servers 114.114.114.114;  
  2. prepend domain-name-servers 223.5.5.5;  

这样可以优先使用aliyun的dns,次要使用114的DNS。


14.安装git和vpnc

git和vpn大家都懂的,程序员的好工具。
[html] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo apt-get install vpnc git  


15.安装axel

axel是Linux命令行界面的多线程下载工具,比wget的好处就是可以指定多个线程同时在命令行终端里下载文件。
[python] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo apt-get install axel  

安装之后,就可以代替wget用多线程下载了。


16.安装openssh-server

[python] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo apt-get install openssh-server  

安装之后,就可以在Win下用ssh工具远程登陆了,当然也多了一个安全隐患,如果不想远程登陆本机的话,可以不装openssh-server。

17.安装CMake和Qt Creator

CMake和Qt Creator是Linux下开发C++程序的神器,Ubuntu 15.04已经集成了最新版的Qt Creator (3.1.1)。

[html] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo apt-get install cmake qtcreator  


18.安装ExFat文件系统驱动

Ubuntu默认不支持exFat文件系统的挂载,需要手动安装exfat的支持

[python] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo apt-get install exfat-fuse  

装上exfat-fuse之后就可以挂载exfat分区的磁盘了。


19.安装lnav

lnav工具是在终端界面看日志的神器

[python] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo apt-get install lnav  

装上之后在终端里就可以用lnav彩色显示日志了。


20.安装unrar

系统默认不带解压缩rar文件的功能,手动安装unrar程序

[python] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo apt-get install unrar  

装上之后就可以用命令解压缩rar文件了。

使用如下命令解压缩文件到当前目录。

[python] view plain copy 在CODE上查看代码片派生到我的代码片
  1. unrar x test.rar  






0 0
原创粉丝点击