[SOLVED] Need Exact Terminal Commands To Edit /etc/default/grub Mint Mate 19.3 Help Please
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You want us volunteers who are just perhaps a bit to solve your problems, dress them up, and serve them up on a plate for you? That's not how these forums work.
There's vi & alternatives, nano, pico, joe or, heaven forbid, you could use an X terminal.
You are correct about root. so in a terminal, type
Code:
sudo passwd root
then follow the prompts. I'd advise caution with root.
Well, I don't know what editor you used back in 18.3, but basically any text editor will do. Have you tried nano? It should be installed by default.
Alternatively, edit it with a script (you have to run it as root or via sudo):
Code:
#!/bin/sh
file='/etc/default/grub'
for v in GRUB_TIMEOUT=-1 GRUB_TIMEOUT_STYLE=menu
do
key=${v%=*} val=${v#*=}
if grep -q ^"$key"= "$file"
then sed -i "/^$key=/s/=.*/=$val/" "$file"
else echo $v >>"$file"
fi
done
During installation I was not prompted to set a root password.
If you have been using Mint for several versions you should be aware that your primary user has root privileges using sudo and the root user is not used in a default install. Use any of the text editors mentioned aboe from a terminal.
You want us volunteers who are just perhaps a bit to solve your problems, dress them up, and serve them up on a plate for you? That's not how these forums work.
There's vi & alternatives, nano, pico, joe or, heaven forbid, you could use an X terminal.
You are correct about root. so in a terminal, type
Code:
sudo passwd root
then follow the prompts. I'd advise caution with root.
Sorry, was not intending to seem like I deserved a privileged response. Just being perhaps more specific than usual.
Thanks again, KC1DI. I ran the command: xed admin:///etc/default/grub as suggested. The etc/default/grub file opened, but when i started to change the first line I got this:
** (xed:22280): WARNING **: 00:59:00.228: The specified location is not mounted
So I bailed out posthaste. What does that mean? It was frightening at best. -ll
Thanks again, KC1DI. I ran the command: xed admin:///etc/default/grub as suggested. The etc/default/grub file opened, but when i started to change the first line I got this:
** (xed:22280): WARNING **: 00:59:00.228: The specified location is not mounted
So I bailed out posthaste. What does that mean? It was frightening at best. -ll
Probably unrelated - just a warning anyhow.
Being careful is one thing - and good for you - but this is going too far.
Why don't you just 'sudo nano /etc/default/grub' instead.
Thanks again, KC1DI. I ran the command: xed admin:///etc/default/grub as suggested. The etc/default/grub file opened, but when i started to change the first line I got this:
** (xed:22280): WARNING **: 00:59:00.228: The specified location is not mounted
So I bailed out posthaste. What does that mean? It was frightening at best. -ll
That warning is nothing to worry about. Go ahead and make your changes and save the file. What is it you want to modify bye the way?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.