ubuntu 16.04 安装 docker
一、环境准备 Docker CE 支持以下版本的 Ubuntu 操作系统: Artful 17.10 (Docker CE 17.11 Edge +) Xenial 16.04 (LTS) Trusty 14.04 (LTS) Docker CE 可以安装在 64 位的 x86 平台或 ARM 平台上。 Ubuntu 发行 ... 阅读更多
一、环境准备 Docker CE 支持以下版本的 Ubuntu 操作系统: Artful 17.10 (Docker CE 17.11 Edge +) Xenial 16.04 (LTS) Trusty 14.04 (LTS) Docker CE 可以安装在 64 位的 x86 平台或 ARM 平台上。 Ubuntu 发行 ... 阅读更多
ubuntu 版本 16.04:
|
1 2 |
root@vm:/data/software# cat /etc/issue Ubuntu 16.04.4 LTS \n \l |
搜狗输入法基于 fcitx,ubuntu 默认是 IBus,如要使用先得添加 fcitx 相关组件的支持。 下载安装 fcitx 极其相关组件:
|
1 2 3 4 5 6 |
# 添加软件库 sudo add-apt-repository ppa:fcitx-team/nightly sudo apt-get install fcitx sudo apt-get install fcitx-config-gtk sudo apt-get install fcitx-table-all sudo apt-get install im-switch |
然后在 ... 阅读更多
问题描述 使用 apt update 的时候遇到错误:
|
1 2 3 4 5 6 7 |
Failed to stop snapd.autoimport.service: Unit snapd.autoimport.service not loaded. Failed to stop snapd.socket: Unit snapd.socket not loaded. Failed to stop snapd.service: Unit snapd.service not loaded. dpkg: error processing package snapd (--purge): subprocess installed pre-removal script returned error exit status 5 Errors were encountered while processing: snapd |
解决方案 添加 exit 0 到/var/lib/dpkg/info/snapd.prerm 的第一行尾 (不是文件尾),然后强制删除 snapd: [crayon-694d895ace154 ... 阅读更多
一、生成密钥 使用 ssh-keygen 命令生成密钥:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
> ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/ma/.ssh/id_rsa): Created directory '/home/ma/.ssh'. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/ma/.ssh/id_rsa. Your public key has been saved in /home/ma/.ssh/id_rsa.pub. The key fingerprint is: 5b:78:9f:ca:37:c0:80:f3:43:af:0c:64:78:5a:60:df ma@localhost.localdomain The key's randomart image is: +--[ RSA 2048]----+ | | | o | | . + o | | . O E. | | * +S+o | | . . o++. . | | o.o .o | | o. .o | | o. . | +-----------------+ |
生成的密钥默认位于~/.ssh/目录下,有两个文件,id_rsa 是私钥,id_rsa.pub 是公钥:
|
1 2 3 4 5 |
> cd ~/.ssh/ > ll total 8 -rw-------. 1 ma root 1675 Mar 16 19:02 id_rsa -rw-r--r--. 1 ma root 406 Mar 16 19:02 id_rsa.pub |
把公钥内容 ... 阅读更多
一、临时修改主机名 使用 hostname 命令可以临时修改主机名,如 hostname pc 将会把主机命名为 pc ,关闭终端后失效。 二、永久修改主机名 2.1 ubuntu 系统 修改/etc/hostname 文件:
|
1 |
PC_MA ## 主机名 |
保存后重启生效 ... 阅读更多
一、概述 win10 周年更新之后就带了 ubuntu 子系统了,无需再安装虚拟机就能直接在 windows 上运行 linux 环境,像安装应用一样在应用商店安装就可以用了。网上说磁盘读取速度比虚拟机还慢,试了一下感觉也还好。 二、安装方法 安装前先检测系统环境,要求必须是周年版之后的版本,系统也必须要 ... 阅读更多
一、概述 autotools 是一个工具包,包含以下工具: aclocal autoscan autoconf autoheader automake 二、安装方法
|
1 2 3 4 |
# 安装 sudo apt-get install autoconf # 建议同时安装的软件包 sudo apt-get install autotools-dev m4 autoconf2.13 autoconf-archive gnu-standards autoconf-doc libtool |
步骤 1. 下载 地址:Chrome 下载地址,进入后选择 linux 版的安装包下载。 wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb 2. 安装 [crayon-694d895ace95621 ... 阅读更多
修改方法
|
1 2 3 4 5 6 7 |
# 备份原有源 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak sudo vi /etc/apt/sources.list ####填入源地址 #### # 更新 sudo apt-get update |
国内源地址 阿里云
|
1 2 3 4 5 6 7 8 9 10 |
deb https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse |
东北大学
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
deb-src https://mirror.neu.edu.cn/ubuntu/ xenial main restricted #Added by software-properties deb https://mirror.neu.edu.cn/ubuntu/ xenial main restricted deb-src https://mirror.neu.edu.cn/ubuntu/ xenial restricted multiverse universe #Added by software-properties deb https://mirror.neu.edu.cn/ubuntu/ xenial-updates main restricted deb-src https://mirror.neu.edu.cn/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties deb https://mirror.neu.edu.cn/ubuntu/ xenial universe deb https://mirror.neu.edu.cn/ubuntu/ xenial-updates universe deb https://mirror.neu.edu.cn/ubuntu/ xenial multiverse deb https://mirror.neu.edu.cn/ubuntu/ xenial-updates multiverse deb https://mirror.neu.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse deb-src https://mirror.neu.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties deb https://archive.canonical.com/ubuntu xenial partner deb-src https://archive.canonical.com/ubuntu xenial partner deb https://mirror.neu.edu.cn/ubuntu/ xenial-security main restricted deb-src https://mirror.neu.edu.cn/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties deb https://mirror.neu.edu.cn/ubuntu/ xenial-security universe deb https://mirror.neu.edu.cn/ubuntu/ xenial-security multiverse |
清华大学 [crayon-694d895acead418742 ... 阅读更多