Linux Notice App

Grub

 


Installation:

==> Add theme to your /etc/default/grub:

==> GRUB_THEME="/boot/grub/themes/arch-suse/theme.txt"

==> Preferred resolution 1024x768: GRUB_GFXMODE=1024x768

==> Update grub:# grub-mkconfig -o /boot/grub/grub.cfg

You should:

 1. edit /etc/default/grub ,add (or modify) the line

  GRUB_THEME="/boot/grub/themes/solarized-dark-materialized/theme.txt"

 2. execute

  sudo grub-mkconfig -o /boot/grub/grub.cfg after installation.

------------------------------------

 also you can use a gui app -- grub-customizer for changing grub


***

If you forgot to add windows when installing Linux, or if you need to add windows to the boot manager later, you can see the commands below.

First of all, we assume that you are on linux, in which case you need to see which operating systems are available on your computer.

There are a few ways to do that. You can examine your disk from the disk partitioning tools.


One of the most widely used partitioning tools is gparted

or enter the command line

fdisk -l

Give the trailing letter "l" to be misunderstood. In this way, you can see which part of the windows and other partitions are on your disk.

The second stage is to make the necessary changes to ensure that your computer connects the relevant section at startup.

This requires root to be

You need to edit the "/ etc / fstab" file which can be nate can gedit can kate with a simple text editor that you use too

it is possible to link this section to the file as follows, but first you need to have ntfs-3g installed in your installation, and you need to create the folder you want to mount as root you can connect windowsu or any other partition as you want / wndows or / mount / windows or / ntfs or backup folder when creating "/" you do not need to set, but the full permissions of the folder you create will be easy to use.

For this

sudo nautilus

file managers like sudo dolphin or file manager like krusader (root privilege) will provide great convenience.

The line to insert into the fstab file

/ dev / sda1 / wndows is a line such as ntfs-3g force 0 0.

When you turn your computer on and off, you can easily access the relevant section from your file result

After this you need to update the boot manager can use a simple command for it

sudo update-grub

or

You can update it by installing a program like grub-customizer, after which the other operating system will be connected to your computer and it will appear in the boot manager.

****

If you use multiple operating systems on the same computer, you are definitely using a boot manager. In this article, I write how to customize the first page with the operating system option on a computer where grub is installed.


First, gfxboot needs to be installed on your system. Gfxboot is standard installed with GRUB from most Linux distributions. You must install this package if it is not installed. It probably goes by a name like grub-gfxboot. Check with your package manager. To use gfxboot in GRUB, /boot/grub/menu.lst should have a line like gfxmenu/boot/grub/message. Otherwise, gfxboot is probably not installed on you.


The /boot/grub/message file is the gfxboot file. This file contains splash screen files, language files, and settings files. You can modify your own files and create your own gfxboot screen. The file named Message is a cpio archive. To open cpio archives, you must have cpio software on your system.


Use the following command to open the message file: cpio -idv


You can also download existing bootsplash files from the Internet,


for example:


http://kde-look.org/content/show.php/MIB+Ossigeno+Ultimate+Gfxboot?content=126946


Now you can change the files according to your needs. All files opened. Before archiving, delete the old message file in the same folder. Finally, I remind you that the message must be in the file / boot / grub / message and in the line gfxmenu / boot / grub / message in the menu.lst file.


To archive the files again, use the following command: ls | cpio -ov> message


If you need to know when to use the commands below, you can boot your system from a live cd and reload the boot manager. For all these steps, it is enough to know the following commands.


sudo cp message (new) / boot / grub


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


gksu gedit /boot/grub/menu.lst, add the following line to the first line: gfxmenu /boot/grub/message.suse


To re-establish the group


sudo grub grub> find / boot / grub / stage1


Here you will get feedback (hdx, y). In the following command, use the numbers given here instead of x and y. For example, if you get (hd0.0), replace x with 0 and replace y with 0.


group > root (hdx, y)


group> setup (hdx)

*****

No comments

Powered by Blogger.