用Burg双系统美化之后如何设置win默认启动

用Burg双系统美化之后如何设置win默认启动

首先我痛恨看一行一行的设置,最后找到不同了,
用Burg美化请参考:[分享] 用burg美化你的启动画面【适合linux deepin】此帖子.
http://bbs.deepin.org/thread-1804318-1-1.html
如按照帖子美化过,想设置win默认启动,用sudo gedit /boot/burg/burg.cfg 命令,Burg manger没用的。 请看我的配置程序

# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/burg-mkconfig using templates
# from /etc/burg.d and settings from /etc/default/burg
#

### BEGIN /etc/burg.d/00_header ###
set theme_name=burg
if [ -s $prefix/burgenv ]; then
  load_env
fi
set default="2"
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}
set gfxmode=1280x800
function select_menu {
  if menu_popup -t template_popup theme_menu ; then
    free_config template_popup template_subitem menu class screen
    load_config ${prefix}/themes/${theme_name}/theme ${prefix}/themes/custom/theme_${theme_name}
    save_env theme_name
    menu_refresh
  fi
}
function toggle_fold {
  if test -z $theme_fold ; then
    set theme_fold=1
  else
    set theme_fold=
  fi
  save_env theme_fold
  menu_refresh
}
function select_resolution {
  if menu_popup -t template_popup resolution_menu ; then
    menu_reload_mode
  fi
}
if test -f ${prefix}/themes/${theme_name}/theme ; then
  insmod coreui
  menu_region.text
  load_string '+theme_menu { -arabic_and_freedom { command="set theme_name=arabic_and_freedom" }}'
  load_string '+theme_menu { -black_and_white { command="set theme_name=black_and_white" }}'
  load_string '+theme_menu { -burg { command="set theme_name=burg" }}'
  load_string '+theme_menu { -chiva { command="set theme_name=chiva" }}'
  load_string '+theme_menu { -coffee { command="set theme_name=coffee" }}'
  load_string '+theme_menu { -minimum { command="set theme_name=minimum" }}'
  load_string '+theme_menu { -proto { command="set theme_name=proto" }}'
  load_string '+theme_menu { -radiance { command="set theme_name=radiance" }}'
  load_string '+theme_menu { -radiancetext { command="set theme_name=radiancetext" }}'
  load_string '+theme_menu { -refit { command="set theme_name=refit" }}'
  load_string '+theme_menu { -sora { command="set theme_name=sora" }}'
  load_string '+theme_menu { -sora_clean { command="set theme_name=sora_clean" }}'
  load_string '+theme_menu { -sora_extended { command="set theme_name=sora_extended" }}'
  load_string '+theme_menu { -ubuntu { command="set theme_name=ubuntu" }}'
  load_string '+theme_menu { -ubuntu2 { command="set theme_name=ubuntu2" }}'
  load_string '+theme_menu { -winter { command="set theme_name=winter" }}'
  load_config ${prefix}/themes/conf.d/10_hotkey
  load_config ${prefix}/themes/${theme_name}/theme ${prefix}/themes/custom/theme_${theme_name}
  insmod vbe
  insmod png
  insmod jpeg
  set gfxfont="Unifont Regular 16"
  menu_region.gfx
  vmenu resolution_menu
  controller.ext
fi
insmod ext2
set root='(hd0,4)'
search --no-floppy --fs-uuid --set 0df0aaff-c211-4ae9-918e-aec48fea93ca
set locale_dir=($root)/boot/burg/locale
set lang=zh
insmod gettext
set timeout=3
### END /etc/burg.d/00_header ###

### BEGIN /etc/burg.d/10_linux ###
menuentry 'Deepin GNU/Linux, with Linux 2.6.35-23-generic' --class deepin --class gnu-linux --class gnu --class os --group group_main {
        insmod ext2
        set root='(hd0,4)'
        search --no-floppy --fs-uuid --set 0df0aaff-c211-4ae9-918e-aec48fea93ca
        echo        'Loading Linux 2.6.35-23-generic ...'
        linux        /boot/vmlinuz-2.6.35-23-generic root=UUID=0df0aaff-c211-4ae9-918e-aec48fea93ca ro  quiet splash
        echo        'Loading initial ramdisk ...'
        initrd        /boot/initrd.img-2.6.35-23-generic
}
menuentry 'Deepin GNU/Linux, with Linux 2.6.35-23-generic (recovery mode)' --class deepin --class gnu-linux --class gnu --class os --group group_main {
        insmod ext2
        set root='(hd0,4)'
        search --no-floppy --fs-uuid --set 0df0aaff-c211-4ae9-918e-aec48fea93ca
        echo        'Loading Linux 2.6.35-23-generic ...'
        linux        /boot/vmlinuz-2.6.35-23-generic root=UUID=0df0aaff-c211-4ae9-918e-aec48fea93ca ro single 
        echo        'Loading initial ramdisk ...'
        initrd        /boot/initrd.img-2.6.35-23-generic
}
### END /etc/burg.d/10_linux ###

### BEGIN /etc/burg.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" --class windows --class os {
        insmod ntfs
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set a670d46e70d446a9
        drivemap -s (hd0) ${root}
        chainloader +1
}
### END /etc/burg.d/30_os-prober ###

### BEGIN /etc/burg.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
set default="Boot Microsoft Windows XP Professional (on /dev/sda1)"
### END /etc/burg.d/40_custom ###
秘密就再红色的一行,名字随便改,把位置写对即可.希望对你有帮助。我看了一晚上搞定的

更简单的方法是 :

直接将menuentry为Window系统的代码块上移到第一位.

 

 

安裝 BURG Boot Loader

 

sudo add-apt-repository ppa:n-muench/burg
sudo apt-get update
sudo apt-get install burg burg-themes

 

看效果

 

burg-emu

sudo reboot

 

安裝 BURG Manager

 

echo "deb http://www.sourceslist.eu/repo/ubuntu lucid main non-free" | sudo tee -a /etc/apt/sources.list
wget http://www.sourceslist.eu/?download=public.key -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install burg-manager
burg-manager

 

整理開機清單

 

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
gksudo grub-customizer

 

還原為 GRUB 選單

 

sudo apt-get autoremove burg burg-themes burg-manager
sudo rm -rf /boot/burg
sudo update-grub2
sudo grub-install /dev/sda

 

玩掛了: 開機後無法載入開機選單的處理

 

以光碟或 USB 隨身碟開機
gnome-terminal
sudo su -
mount /dev/sda1 /mnt
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
mount -o bind /dev /mnt/dev
chroot /mnt

將 BURG 重新寫入 MBR

update-burg
burg-install "(hd0)"

將 GRUB 重新寫入 MBR

update-grub2
grub-install /dev/sda

 

转载于:https://www.cnblogs.com/sos-blue/archive/2013/04/21/3033490.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值