Difference between revisions of "Grub2"

From RHS Wiki
Jump to navigation Jump to search
Line 25: Line 25:
 
  sudo apt-get install -y boot-repair
 
  sudo apt-get install -y boot-repair
 
  boot-repair
 
  boot-repair
 +
 +
== Ubuntu server resolution ==
 +
Edit /etc/default/grub and set:
 +
GRUB_CMDLINE_LINUX_DEFAULT="splash vga=789" ??
 +
GRUB_CMDLINE_LINUX_DEFAULT="splash vga=792" # 1024x768@24bit
 +
Save and run:
 +
sudo update-grub
 +
sudo reboot

Revision as of 12:23, 23 April 2016

Change Grub2 background image

  1. Choose a background image following this criteria:
    • Format: PNG | JPG | JPEG | TGA
    • JPG/JPEG images must be 8-bit (256 color)
    • Images should be non-indexed, RGB
  2. Copy to Default folder: /usr/share/images/desktop-base/ or other folder
  3. Edit /etc/default/grub
    • Add: GRUB_BACKGROUND="/path/to/the/image.jpg"
  4. Run:
update-grub


Some images that will work:

Halcón Milenario
Kali

Boot order and default

/boot/grub/grub.cfg

Repair broken grub2 ubuntu

Boot from life usb

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair
boot-repair

Ubuntu server resolution

Edit /etc/default/grub and set:

GRUB_CMDLINE_LINUX_DEFAULT="splash vga=789" ??
GRUB_CMDLINE_LINUX_DEFAULT="splash vga=792" # 1024x768@24bit

Save and run:

sudo update-grub
sudo reboot