Skip to content

ubuntu

向军大叔每晚八点在 抖音bilibli 直播

ubuntu 在个人工作站与服务器领域都表现的非常稳定优秀,工程师使用 ubuntu 做为个人开发电脑完全没有问题,功能齐全性能稳定,因为用户众多解决问题也比较容易。

img

安装系统

下面介绍安装 ubuntu 系统,你可以安装成双系统或整台电脑只是 ubuntu 系统

  1. 从官网 https://ubuntu.com/download 下载软件,选择 LTS 版本可以获得更久的支持
  2. 将下载的 ISO 文件使用 rufus 软件制作到 U 盘中
  3. 启动电脑并选择 U 盘启动即可安装
  4. 安装时可以选择与 windows 系统共存,ubuntu 会帮助分区

国内镜像

修改国内镜像源可以加快软件下载速度,我们介绍两种方式。

软件设置

下面使用系统自带的软件进行设置,这适合于ubuntu桌面课,选择软件与更新程序

image-20191023095832391

修改为阿里云服务器

image-20191023095946689

手动更改

下面通过修改文件来设置国内阿里云镜像

  1. 首先配置源文件

    sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
  2. 然后修改sources.list文件内容

    sudo vim /etc/apt/sources.list
  3. 删除sources.list文件所有内容,然后添加以下内容

    Ubuntu 安装源

    deb https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
    deb https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
    
    deb https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
    
    deb https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
    
    ## Not recommended
    # deb https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
    # deb-src https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

    Arm 源配置

    deb https://mirrors.aliyun.com/ubuntu-ports/ xenial main restricted universe multiverse
    # deb-src https://mirrors.aliyun.com/ubuntu-ports/ xenial main main restricted universe multiverse
    deb https://mirrors.aliyun.com/ubuntu-ports/ xenial-updates main restricted universe multiverse
    # deb-src https://mirrors.aliyun.com/ubuntu-ports/ xenial-updates main restricted universe multiverse
    deb https://mirrors.aliyun.com/ubuntu-ports/ xenial-backports main restricted universe multiverse
    # deb-src https://mirrors.aliyun.com/ubuntu-ports/ xenial-backports main restricted universe multiverse
    deb https://mirrors.aliyun.com/ubuntu-ports/ xenial-security main restricted universe multiverse
    # deb-src https://mirrors.aliyun.com/ubuntu-ports/ xenial-security main restricted universe multiverse
  4. 然后执行命令更新

    sudo rm -rf /var/lib/apt/lists/* 
    sudo apt-get update
    sudo apt-get upgrade

系统更新

我们也可以使用软件进行更新

image-20191023100105522

执行系统更新

image-20191023100202650

终端使用

调出命令行终端

image-20191023100326467

安装基本工具

sudo apt install git

sudo apt install php

sudo apt install vim

软件商店

系统提供的应用商店包含众多好用的软件

应用商店不存在的软件可以去官网查看安装如 wps

基本使用

大部分软件都可以在 ubuntu 的软件商店中找到,下面介绍一些常用软件。

image-20191023100629899

可以通过搜索安装软件

image-20191023100746253

卸载掉不需要的软件节省空间

image-20191023103319745

常用软件

  • gTitle 分屏软件

  • Dash to Panel 一款定制 Dash 栏的风格软件

  • Inkscape 一个开源的矢量图形编辑器,功能类似于 Illustrator

  • Flameshot 桌面截图软件

  • Blender 3D 建模、动画、渲染和后期制作

界面设置

tweak

tweak 是对系统界面进行定制化操作,在系统应用商店中搜索安装 tweak

image-20191023100915283

下面是软件启动界面

1569457637201

基本设置

隐藏桌面图标

image-20191023101153579

顶部菜单定制

image-20191023101402957

Dock

应用商店搜索Dash to Panel并安装

Snipaste_2019-10-23_10-43-03

打开优化配置 dock

Snipaste_2019-10-23_10-45-40

更换背景

设置中选择背景,或在桌点右键菜单中选择

image-20191023105041324

定制风格

ocs-url

使用 ocs-url 可以快速安装风格

  1. 访问 https://www.pling.com/p/1136805/ ,在 Files 标签中选择 ubuntu 版本
  2. 直接打开系统将开启软件管理进行安装

1569458195515

下载风格

访问 https://vinceliuice.github.io/ 获取多种界面风格,下面以安装 Yosemite Gtk Theme 风格为例说明。

  1. 访问网站 https://vinceliuice.github.io/theme-yosemite.html 点击 Get Yosemite 按钮

  2. Files 标签中选择风格进行安装即可 1569458375100

  3. tweak 软件中选择要使用的风格 1569458476792

系统图标

项目地址

图标项目地址 https://github.com/vinceliuice/vimix-icon-theme

安装步骤

  1. clone 项目到本地
  2. 解包后执行 ./install.sh 文件
  3. tweak 优化软件中选择图标 1569458622184

开发软件

VSCODE

  • 在 ubuntu 软件商店中安装的 vscode 不能输入中文,所以需要从官网下载安装

下载deb的软件

image-20191023105327882

详细 vscode 的使用请在 后盾人文档查看

chrome

和安装 vscode 一样,也是下载deb的软件包

image-20191023110021246

wps

wps 是跨平台的办公软件,访问官网 下载安装deb即可。

image-20191023115357396

五笔输入法

向军大叔使用的是五笔拼音使用以下命令安装,如果你使用拼音系统已经默认已经就有了。

下面介绍两种五笔输入法,推荐使用rime 五笔输入法。

rime

软件官网 http://rime.im/

sudo apt-get install ibus-rime

sudo apt-get install librime-data-wubi librime-data-pinyin-simp librime-data-stroke-simp

配置

  1. 编辑文件~/.config/ibus/rime/build/default.yaml
  2. schema_list 添加 - schema: wubi_pinyin
  3. 重新部署或重启电脑

fcitx

安装

sudo apt install fcitx-table-wbpy
sudo apt update

安装后需要重新启动系统后生效

配置

image-20191023112309731

在弹出的菜单一直选择是,然后选择 fcitx 输入法

1569459685029

选择语言支持

image-20191023112619193

键盘输入法为 fcitx

image-20191023112717844

移除不需要的输入法

image-20191023114636678

最终调整后的输入法如下

image-20191023115212033