1. 安装目录说明
- ~/software 目录下安装离线下载的安装包
- /opt 目录下,安装个人下载的软件包
2. 换源
$ sudo vim /etc/apt/source.list
# 将source.list下的内容全部换成下面的内容
deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
# 更新升级软件
$ sudo apt update & sudo apt upgrade
3. 将时区改为北京时间
# 1.Ubuntu时钟分为系统时钟(System Clock)和硬件(Real Time Clock,简称RTC)时钟。
# 2.查看系统时间:date -R
# 3.查看硬件时间: sudo hwclock --show
# 修改时间
$ tzselect # 依次选择4->9->1->1 #Asia->China-> Beijing->yes
$ sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
$ sudo hwclock --systohc # 修改生效
4.基本设置
# ## 4.1 更改字符集
## 4.1.1 查看当前的系统的字符集
$ echo $LANG
## 4.1.2 查看系统支持的字符集
$ locale -a
## 4.1.3 下载中文字符集
$ sudo apt install language-pack-zh-hans
## 4.1.4 修改全局配置文件 /etc/profile
# 在 /etc/profile 下加入 LANG="zh_CN.utf8"
$ source /etc/profile
软件安装
- docker