ubuntu 20.04新系统设置
1、设置root密码
sudo passwd root
2、修改软件源为国内
sudo nano /etc/apt/sources.list
删除或注释以前内容,新增
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
3、更新软件
sudo apt-get update
sudo apt-get upgrade
4、增加鼠标右键以root用户打开选项:
sudo apt-get install nautilus-admin
重启生效
5、定制grub引导界面
下载grub界面
https://www.gnome-look.org/browse?cat=109&ord=latest
右下角有最受欢迎的界面排序,按照右侧指示安装
1)下载后解压拷贝至/boot/grub/themes/
2)编辑/etc/default/grub
新增
GRUB_THEME="/boot/grub/themes/bigsur/theme.txt"
bigsur是你下载解压的目录名称
3)执行update-grub
如上需su权限执行
6、指定缺省启动项目,隐藏启动项目
删除memtest
sudo chmod -x /etc/grub.d/20_memtest86+
修改缺省启动
sudo nano /etc/default/grub
GRUB_DEFAULT=0,其中0改为需启动的条目,条目从0开始从上往下编号
sudo update-grub
发表评论