Ubuntu+Windows10引导方式的变更
一、ubuntu下安装refind
通常安装了双系统的同学都不喜欢Ubuntu的传统的丑陋样子吧,作为一名技术宅,怎么可以忍受如此丑陋的引导方式呢
所以今天,我给大家介绍一下一个新的引导方式refind引导(需要UEFI引导,在BIOS里面设置)
refind下载网站 可以直接去下载 在ubuntu下解压refind-bin-0.11.2.ziprefind-bin-0.11.2.zip
进入解压后的文件夹 在终端运行
sudo bash refind-install一个简单的命令就可以安装啦(不推荐win去安装有些繁琐)
安装成功以后运行 su root 进行root权限
cd /boot/efi/EFI/refind/
rename refind.conf-sample refind.conf 将 refind.conf-sample 重新命名为 refind.conf
二、对主题进行更换
里面有一些网友自愿提供的主题
我觉得refind-minimal这个主题还是挺好看的 同时也是用的最多的吧
比如下载主题minimal以后: 最好改下文件夹名称方便操作一些 将rEFInd-minimal-master改为minimal
- su root给root权限
- cd /boot/EFI/refind 进入refind目录
- mkdir themes 创建一个themes文件夹
- cp -r /home/xxx/下载/minimal/ (此处为自己主题的位置) /boot/efi/EFI/refind/themes/ 将下载的主题复制到themes文件夹内
- gedit refind.conf 编辑refind.conf的内容 将minimal内的theme.conf内容全部复制过来
- 将icons_dir themes/rEFInd-minimal/icons 改成icons_dir themes/minimal/icons
- 将banner themes/rEFInd-minimal/background.png 改成banner themes/minimal/background.png
- selection_big themes/rEFInd-minimal/selection_big.png
selection_small themes/rEFInd-minimal/selection_small.png 改成 selection_big themes/minimal/selection_big.png selection_small themes/minimal/selection_small.png- 保存 重启bios里设置为refind启动
- 接下来你就可以看到minimal主题啦
三、修改Ubuntu下的grub
进入Ubuntu系统后发现仍然存在grub的引导这令人很苦恼啊,这时候就需要修改grub文件了
- sudo gedit /etc/default/grub
- 将内容改成
- # If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=true
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"即可- sudo update grub
- 重启会发现没有了grub引导
四、diy自己的引导界面
喜欢的朋友可以百度refind.conf去查查里面具体需要修改的参数
这是我自己做的一个开机界面(ps功底不够轻喷)
喜欢的可以在我的csdn上下载,应用方式和上面差不多,直接把refind.conf改成themes.connf的内容即可,不同的系统可能有一些小问题,
可以查询refind具体修改一下。
http://download.youkuaiyun.com/download/tianjiazhao/10236538