优化Ubuntu

1. 更换 apt 源

echo 'deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse' >/etc/apt/sources.list

2. 系统更新

sudo apt update
sudo apt upgrade

3. 安装搜狗输入法

3.1 安装 fcitx 输入框架

sudo apt install fcitx

3.2 下载 linux 版本搜狗输入法

wget http://cdn2.ime.sogou.com/dl/index/1524572264/sogoupinyin_2.2.0.0108_amd64.deb

3.3 安装

sudo dpkg -i sogoupinyin_2.2.0.0108_amd64.deb

如果出现依赖包的问题执行

sudo apt --fix-broken install

3.4 进入设置

  1. 根据提示安装输入法

  1. 将输入框架改为 fcitx

点击Apply System-Wide后将用户注销,如果注销没有效果那么就重启吧。

  1. 登陆后右上角出现小键盘

点击Configure Current Input Method,进入Input Method界面,选择加号添加搜狗输入法。

4. 软件卸载、安装

4.1 卸载 libreOffice 安装 wps

sudo apt remove libreoffice-common

4.2 安装 wps

wget https://wdl1.cache.wps.cn/wps/download/ep/Linux2019/8722/wps-office_11.1.0.8722_amd64.deb
sudo dpkg -i wps-office_11.1.0.8722_amd64.deb

4.3 卸载 firefox 安装 chrome

sudp apt remove firefox

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb

5. vim 配置

5.1 下载 vim

sudo apt install vim

5.2 编辑 vim 配置文件

sudo vim /etc/vim/vimrc

添加如下代码:

配置还在更新

6. 美化 ubuntu

6.1 安装 unity-tweak-tool

sudo apt intall unity-tweak-tool

6.2 下载 flatabulous 主题

# 按照官方教程使用 add-apt-repository 方法定位不到 flatabulous 包,改用手动安装
sudo add-apt-repository ppa://noobslab/themes
sudo apt update
sudo apt install flatabulous-theme
wget https://github.com/anmoljagetia/Flatabulous/archive/master.zip
mkdir .theme
mv ./master.zip ~/.theme
unzip master.zip

6.3 下载 flat icons

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

6.4 打开 unity-tweak-tool

再打开 unity-tweak-tool 时出现:

 Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk
Error: schema com.canonical.notify-osd not installed

解决办法如下:

sudo apt install notify-osd
sudo apt install overlay-scrollbar

图标配置好了,但是主题因为 GTK 的原因没有成功,记录如下:

6.5 下载字体

在 monaco-font 库中下载 zip 包

unzip monaco-font-master.zip
sudo ./install-font-ubuntu.sh https://github.com/todylu/monaco.ttf/blob/master/monaco.ttf?raw=true

下载完成后使用unity-tweak-tool设置字体。

7. 终端

这个才是重头戏。

因为很多 linux 默认的终端 shell 都是 bash,但是不太好用,所以改为 zsh。

7.1 下载 zsh

sudo apt install zsh

7.2 下载 oh-my-zsh

sh -c "$(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

7.3 修改默认 shell

sudo usermod --shell /bin/zsh $USERNAME

修改后记得 log_out 重新登录用户。

7.4 修改皮肤

vim ~/.zshrc

# 修改皮肤
ZSH_THEME="robbyrussell"

8. 插件安装

8.1 autojump

  1. 下载
sudo apt install aotujump
  1. 配置 autojump
vim /usr/share/doc/autojump/README.Debian
echo '. /usr/share/autojump/autojump.sh' >> ~/.zshrc
source ~/.zshrc

8.2 zsh-syntax-highlighting

  1. 安装
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
  1. 配置
plugins=(zsh-syntax-highlighting)
source ~/.zshrc

8.3 zsh-autosuggestions

  1. 安装
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
  1. 配置
plugins=(zsh-autosuggestions)
source ~/.zshrc

8.4 git-open

  1. 下载
git clone https://github.com/paulirish/git-open.git $ZSH_CUSTOM/plugins/git-open
  1. 配置
plugins=(git-open)
source ~/.zshrc

8.5 修改查看 history 格式

HIST_STAMPS="yyyy-mm-dd"

优化 Ubuntu的更多相关文章

  1. 优化Ubuntu 16.04系统的几件事

    安装完Ubuntu 16.04后,要更换为国内的软件源: sudo gedit /etc/apt/sources.list #用文本编辑器打开源列表 在文件开头添加下面的阿里云的软件源: deb ht ...

  2. 优化ubuntu桌面

    ---恢复内容开始--- 此博主写的很全 http://blog.csdn.net/terence1212/article/details/52270210 使用安装Unity Tweak Tool ...

  3. 对Ubuntu操作系统进行彻底优化

    在安装Linux系统之初,就应该考虑怎样使Linux系统得到最好的性能.Linux本身也设计成可以良好扩展的形态,比如在Linux系统中,我们可以随心所欲地组织磁盘分区,有些朋友喜欢一个/,一个swa ...

  4. 更换ubuntu apt-get 源

    为了优化ubuntu软件安装/更新速度,我测试了国内几家apt源的速度,发现北京交大的apt源速度相对最快,然后可以通过以下步骤更新ubuntu源 1) 备份默认的apt源 $ cd /etc/apt ...

  5. SQL Server on Ubuntu——Ubuntu上的SQL Server(全截图)

    本文从零开始一步一步介绍如何在Ubuntu上搭建SQL Server 2017,包括安装系统.安装SQL等相关步骤和方法(仅供测试学习之用,基础篇). 一.   创建Ubuntu系统(Create U ...

  6. Ubuntu基于zsh自定义设置shell主题

    为优化Ubuntu命令行页面效果,Google一番选择github上开源项目zsh,以自定义Shell主题,注:本机系统为Ubuntu 14.04 1.安装zsh sudo apt-get insta ...

  7. 更换ubuntu apt-get源

    原文地址:http://www.cnblogs.com/zhangpengshou/p/3591387.html 为了优化ubuntu软件安装/更新速度,我测试了国内几家apt源的速度,发现北京交大的 ...

  8. SQL Server on Ubuntu

    本文从零开始一步一步介绍如何在Ubuntu上搭建SQL Server 2017,包括安装系统.安装SQL等相关步骤和方法(仅供测试学习之用,基础篇). 一.   创建Ubuntu系统(Create U ...

  9. linux安装、使用优化、常用软件

    定制自己的ubuntu桌面系统 一.安装ubuntu 1.下载ubuntu镜像Iso文件 ubuntu官网下载:https://cn.ubuntu.com/download 2.u盘写入 (1)下载U ...

随机推荐

  1. [Err] 1146 - Table 'performance_schema.session_status' doesn't exist已解决

    刚刚接触MySQL,就往数据库添加数据,就遇到这个问题 解决方案就是找到你安装MySQL的bin目录 然后在cmd输入 mysql_upgrade -u root -p --force 回车,然后输入 ...

  2. SYN591-A型 计数器

       SYN591-A型 计数器 秒表计数器累计计数器电机测速表使用说明视频链接: http://www.syn029.com/h-pd-248-0_310_44_-1.html 请将此链接复制到浏览 ...

  3. ABP开发框架前后端开发系列---(12)配置模块的管理

    一般来说,一个系统或多或少都会涉及到一些系统参数或者用户信息的配置,而ABP框架也提供了一套配置信息的管理模块,ABP框架的配置信息,必须提前定义好配置的各项内容,然后才能在系统中初始化或者通过接口查 ...

  4. 编写loadrunner的ftp脚本(详细步骤)

    大家好,主要给大家讲解编写loadrunner的ftp脚本详细步骤,及FTP函数注释,及FTP脚本两种编写方式,手动和录制.亲测 No problem!^_^ 1.首先要了解loadrunner中几个 ...

  5. 每周分享五个 PyCharm 使用技巧(五)

    文章首发于 微信公众号:Python编程时光 大家好,这是本系列 PyCharm 的高效使用技巧的第五篇.按照惯例,本次还是分享 5 个. 本系列前四篇如下,若还没看的,你可以点击查阅 21. 随处折 ...

  6. [apue] 测试管道容量的一些疑问

    所谓管道的容量,指不消费(读)的情况下,最大能写入的数据量.有两种方式来测试一个管道的容量: 1)使用阻塞写,每次写一个字节,并打印写入的总字节数,最后写入阻塞时,上次打印的就是管道的容量: 2)使用 ...

  7. 大规模SDN云计算数据中心组网的架构设计

    本文首先分析了在大规模SDN数据中心组网中遇到的问题.一方面Underlay底层组网规模受限于设备实际的转发能力和端口密度,单一Spine-leaf的Fabric架构无法满足大规模组网的需求:另一方面 ...

  8. spring mvc重定向问题

    在页面提交时中,路径应该使用“/默认上下文/controller路径”,在controller重定向中,应该使用“/controller路径”,不加上下文.

  9. 剑指offer第二版-7.重建二叉树

    描述:输入某二叉树的前序遍历和中序遍历结果,重建该二叉树.假设前序遍历或中序遍历的结果中无重复的数字. 思路:前序遍历的第一个元素为根节点的值,据此将中序遍历数组拆分为左子树+root+右子树,前序遍 ...

  10. Logstash : 从 SQL Server 读取数据

    有些既存的项目把一部分日志信息写入到数据库中了,或者是由于其它的原因我们希望把关系型数据库中的信息读取到 elasticsearch 中.这种情况可以使用 logstash 的 jdbc input ...