个人工具

UbuntuHelp:StartUpManager

来自Ubuntu中文

跳转至: 导航, 搜索

StartUp-Manager

Introduction

!StartUp-Manager is a free open-source GUI tool to manage settings for Grub (Grub Legacy), Grub 2, Usplash and Splashy. It provides a menu-driven interface which allows the user to set boot menu options such as the default operating system, menu timeouts and displays, password protection and much more. !StartUp-Manager accomplishes this by translating the user's GUI inputs into bootloader settings without the need to manually edit the bootloader file (in Ubuntu, normally /boot/grub/menu.lst). Grub 2 Note:. !StartUp-Manager ver 1.9.12-1 works with GRUB 2, however some of the options available with Grub Legacy have not yet been incorporated to work with Grub 2. The Boot Options tab remains essentially unchanged. The Appearance and Advanced tabs contain fewer entries at present, and the Security tab does not exist with Grub 2 fully-installed. Currently the following !StartUp-Manager options work with GRUB 2:

  • Timeout
  • Default OS/kernel
  • Misc. (Writes to the "GRUB_CMDLINE_LINUX=" line of /etc/default/grub but will not remove the same entries such as "splash" and "quiet" already entered on "GRUB_CMDLINE_LINUX_DEFAULT=")
  • Show text during boot
  • Display resolution - Placed on "GRUB_CMDLINE_LINUX=" line of /etc/default/grub as "vga=XXX". During boot GRUB 2 will note that the "vga=" option is deprecated.

Installation Instructions

  • Install with Synaptic:
  • Open Synaptic: System > Administration > Synaptic Package Manager.
  • Enable the universe repository: Synaptic, Settings > Repositories > Ubuntu Software. Select Community-maintained Open Source Software (universe).
  • Press Close and, from the Synaptic menu, Reload.
  • Select startupmanager in the right panel, mark for installation, and press Apply.
  • In a terminal, if the universe repository is enabled, run:
sudo apt-get install startupmanager

Running Start-UpManager

Since !StartUp-Manager (SUM) makes changes to an important system file (/boot/grub/menu.lst in the case of the original grub) the user may wish to create a copy of the original file before making significant changes:

sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.original

To Open: System > Administration > !StartUp-Manager, or in a terminal: startupmanager When SUM is started, it reads the existing bootloader file (normally the system's menu.lst file). Therefore, the settings displayed when SUM is opened reflect the current settings of the menu.lst file. The !StartUp-Manager interface is composed of 4 sections: Boot Options, Appearance, Security and Advanced. The options in each section will be explained and the corresponding line in menu.lst which is affected by the setting will be shown. Although the grub menu.lst lines are presented, the user does not need to make any changes to the file manually . The lines are presented so that users wishing to see how !StartUp-Manager affects menu.lst settings may do so.

Boot Options / Appearance

StartUpManager?action=AttachFile&do=get&target=sum.png StartUpManager?action=AttachFile&do=get&target=space.png StartUpManager?action=AttachFile&do=get&target=sum-appearance.png

Boot Options

  • Use timeout in bootloader menu / Timeout in seconds. Sets how long the menu is displayed before the default OS/kernel is automatically selected. The grub default is 3 seconds. If the timeout is set to 0 the user will not see the menu during boot. If necessary to see the menu when the timeout is set to 0, press the ESC key during boot.
  • Grub line: timeout 3
  • Default operating system. Sets the default boot OS or kernel. Clicking the OS window will reveal the installed kernels/operating systems known to Ubuntu.
  • The number entered into the bootloader is set by the location of the selected OS/kernel in the menu. The first uncommented title entry is 0, the second title is 1, etc. This number is automatically determined when using SUM.
  • Grub line: default 0
  • Display Resolution. The user sets the resolution and color depth. SUM determines the correct numerical equivalent and automatically enters it in the bootloader. A resolution entry is entered into the bootloader the first time it is changed by the user.
  • Grub line: # defoptions= vga=775
  • Display Color depth. Options available according to system capabilities.
  • Grub line: Incorporated into # defoptions line above.
  • Show bootloader menu. When selected the bootloader menu displays available options such as kernels, recovery modes, memtest86+, and other operating systems, if installed. If this option is not selected, no bootloader menu will be displayed during boot. The default or saved OS selection will be used.
  • Grub line: # hiddenmenu A leading # symbol hides the bootloader menu.
  • Show boot splash. Enables the splash screen viewed during the boot process.
  • Grub line: # defoptions= splash # Multiple entries allowed on this line.
  • Show text during boot. This option presents textual information as the system boots, generally with OK or Fail as a process is completed.
StartUpManager?action=AttachFile&do=get&target=sum-text-splash.png StartUpManager?action=AttachFile&do=get&target=space-sm.png StartUpManager?action=AttachFile&do=get&target=sum-boot-splash.png
Show text and Ubuntu Usplash theme StartUpManager?action=AttachFile&do=get&target=space-sm.png Show Boot Splash
  • Grub line: # defoptions= splash Note: Multiple entries such as splash, quiet, and vga will be entered on this line if selected via the menus.

Appearance

Grub 2 Note: Only the Usplash theme option is available for change. This tab presents many options on how the grub menu is presented, including colors, grub background image and themes. These settings apply only to the grub bootloader screens and not to your desktop themes once the system is fully-booted.

  • Use colors in bootloader menu. Set a solid background color and text when the bootloader menu is displayed.
  • Grub line: color cyan/blue white/blue

StartUpManager?action=AttachFile&do=get&target=sum-colors.png Use colors in bootloader menu

  • Use background image for bootloader menu. Enable a grub background image which is seen when boot options (kernel/OS, recovery mode, memtest86+, etc.) are displayed.
  • Grub background image. Select an installed grub background image.
  • Grub line: splashimage=/boot/grub/splashimages/grub_buddha.xpm.gz
  • Manage bootloader themes. Add or remove an installed bootloader theme.
  • Usplash theme. Select a pre-installed usplash theme.
  • Grub line: Usplash themes are not handled by Grub. This change is reflected in other system files.
  • Manage usplash themes. Add or remove an installed usplash theme.

Security / Advanced

Grub 2 Note: The Security tab is not available with !StartUp-Manager 1.9.12-1 and there are limited options available in the Advanced tab. StartUpManager?action=AttachFile&do=get&target=sum-security.png StartUpManager?action=AttachFile&do=get&target=space.png StartUpManager?action=AttachFile&do=get&target=sum-advanced.png

Security

Set passwords to prevent grub changes without authorization. Passwords can be set to require a password to change the bootloader, rescue mode and old boot options.

  • Password protect bootloader.
  • Grub line: # password topsecret If never activated and disabled. See below.
  • Password protect rescue mode.
  • Grub line: # lockalternative=true # Disabled = false.
  • Password protect old boot options.
  • Grub line: # lockold=true # Disabled = false.
  • Password/Confirm password. Once a password is entered and the Update Password button is pressed, this line is created. Enabling/Disabling is done with the other options in this section. If disabled, the line begins with a # symbol.
  • Grub line: password --md5 $1$hJTB1/$9Mh0fXSSIPeGmD25UBTJe1

Advanced

  • Limit the number of kernels / Number of kernels to keep. Sets the number of kernels to display on the boot menu.
  • The number does not include recovery mode options. Any kernel is accompanied by its 'recovery mode' option if the 'recovery mode' option for the default kernel is enabled.
  • This setting does not change the number of kernels kept on the system - only the number displayed.
  • This number can be increased as well as decreased. Since kernels are not physically removed from the system by SUM, the number can be increased to however many kernels are physically installed on the system.
  • The default is to show all kernels (deselected). With the default setting the number of kernels displayed will continue to increase whenever a new kernel is released and downloaded. Over time the number of displayed kernels can become quite large unless the user sets a limit in this entry.
  • Choosing "2" is a good compromise, as it allows the user see the current kernel plus one other kernel. Should the user have a problem with the default kernel, another one would be available on the menu without any further tweaking.
  • Grub line: # howmany=all "all" changes to a numeric value when enabled.
  • Create boot option for memtest86+. Provides an option to place the memtest86+ system memory check on the boot menu.
  • Grub line: # memtest86=true The disabled value is false.
  • Create boot option for recovery mode. Provides the ability to put a recovery mode option on the menu. This option, if selected, will provide a recovery option for every displayed kernel.
  • Grub line: # alternative=true The disabled value is false.
  • Automatically update default boot option. This setting, when enabled, will automatically replace the default kernel with a newer one when a new kernel is recognized. If disabled, the menu.lst will continue to boot the current selection until the user changes it.
  • Grub line: # updatedefaultentry=false # Enabled value is true.
  • Create rescue floppy. There is no option for using another device at present. The user can still make a rescue floppy image, install it in the grub folder, and use it for an emergency boot backup. The instructions on how to do this are found in here: GrubHowto/BootFloppy
  • Restore original settings. This option resets the selections to those existing in menu.lst when SUM was started. It does not restore menu.lst settings to the initial install settings. Think of this as a Cancel option.

Closing StartUp-Manager

The settings existing in !StartUp-Manager when closed are save those settings to the bootloader. If you don't want to save the changes you made, select Restore Original Settings before closing the application.

Links

https://launchpad.net/startup-manager/ GrubHowto/ChangeDefaultOS GrubHowto/BootFloppy GrubHowto