Linux(Ubuntu)安装配置

安装

分区

挂载点 说明 大小
/ 主分区 100G
/home 100G
/efi 与其他系统共用即可 200M

挂载分区到/home

1
2
sudo fdisk /dev/vdb
mount /dev/sda4 /home

开机自动挂载:

1
2
vi /etc/fstab
/dev/sda4 /home ext4 defaults 0 0

验证:

1
df -h

配置

  • 安装win10双系统会导致时间差问题
1
timedatectl set-local-rtc true
  • 更换镜像源

查看系统代号(Ubuntu19.10)
lsb_release -c

1.镜像源文件存放在/etc/apt/sources.list下,拷贝一份sources.list文件,以防万一。

1
sudo cp -v /etc/apt/sources.list /etc/apt/sources.list.backup

2.使用gedit编辑镜像源文件

1
sudo  gedit /etc/apt/sources.list

3.替换文件,将以下内容拷贝到sources.list,将下面代码中的  eoan 改为自己版本的系统代号即可。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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

4.改好之后更新一下

1
2
sudo apt-get update
sudo apt-get upgrade
  • 代理
协议 ip 端口
http 127.0.0.1 端口一般12333
socks v5 127.0.0.1 1080