LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LL/Win8.1 UEFI dual boot: How do I use 'Vim' software to edit grub.cfg
#1
As some of you may know I used Nehal J Wani's YouTube video to successfully set up a LL2.4/Win8.1  dual-boot, with UEFI fully enabled on an Asus G750js laptop.  Within the next month I intend to post here a step-by-step tutorial on how to do this. 

However, I have one very minor issue to resolve, and would appreciate guidance on this.
My grub-screen lists the choice of the above two operating systems, except that LL is listed as Ubuntu: this is because an Ubuntu live disk is needed to enable UEFI in the final stages of LL installation.  Now Wani's video does show how to edit grub.cfg using 'Vim' software, so that the grub-screen listing of 'Ubuntu' is changed to 'Linux Lite', but his video runs so fast I find it almost impossible to clarify what he's done. Also he uses LL2.0, so the inside of grub.cfg looks a bit different to LL2.4.

Using sudo apt-get install vim I downloaded the required software but am unsure what to do next.
Any help/guidance gratefully received.

Regards
Mike 
64bit OS (32-bit on Samsung[i] netbook) installed in [i]Legacy mode on MBR-formatted SSDs (except pi which uses a micro SDHC card):
2017 - Raspberry pi 3B (4cores) ~ [email protected] - LibreElec, used for upgrading our Samsung TV (excellent for the task)  
2012 - Lenovo G580 2689 (2cores; 4threads] ~ [email protected] - LL3.8/Win8.1 dual-boot (LL working smoothly)
2011 - Samsung NP-N145 Plus (1core; 2threads) ~ Intel Atom [email protected] - LL 3.8 32-bit (64-bit too 'laggy')
2008 - Asus X71Q (2cores) ~ Intel [email protected] - LL4.6/Win8.1 dual-boot, LL works fine with kernel 4.15
2007 - Dell Latitude D630 (2cores) ~ Intel [email protected] - LL4.6, works well with kernel 4.4; 4.15 doesn't work
Reply
#2
Hi m654321,

I have no experience with this kind of dual install, only give you my 2c on the following:

1. There is no need for installing vim if you don't want to. For editing on the command line now and then you can just use vi, an editor that you will find on any Linux/Unix systems. In LL if you run vi you actually start the compact version of vim, which is by default installed (vim-tiny).
Code:
sudo vi /boot/grub/grub.cfg
BUT, see 3.

2. You can also use a GUI editor like the installed Text Editor (leafpad) if you want to avoid learning vi.
Code:
sudo leafpad /boot/grub/grub.cfg
BUT, see 3.

3. grub.cfg is not meant to be edited! It will be overwritten the next time you manually run update-grub or install a new kernel which will trigger off update-grub to be run. If you want to change your GRUB configuration, you need to edit /etc/default/grub and/or the appropriate file(s)n in /etc/grub.d/.

Hope that helps Smile
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)