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.
When my machine boots, a list of operating systems is provided and I choose which one I want to use. If I don't select anything then linux loads by default.
I want to change this so that windows loads by default. Through the help of these forums I know I need to change:
/etc/lilo.conf as root
then run
/sbin/lilo to effect the changes.
I was given a link to http://www.linuxcommand.org/ for further info. I have now read this site and it has been an excellect source for getting to know the shell. But it has not provided any info on how to edit a file and save. Could somoene please explain how to do the above steps?
Also what was meant in the above by then run /sbin/lilo to effect the changes.
Or, even easier, try XEmacs if you have it. It's a nice X-windows shell for Emacs, and easier to use for new users. You didn't mention your release, so I can't suggest how you'd get XEmacs. You'd probably do something like "yum install xemacs" or "apt-get xemacs."
Originally posted by PTrenholme Or, even easier, try XEmacs if you have it. It's a nice X-windows shell for Emacs, and easier to use for new users. You didn't mention your release, so I can't suggest how you'd get XEmacs. You'd probably do something like "yum install xemacs" or "apt-get xemacs."
Are you aware of the fact that the "normal" emacs has a GUI
frontend, too? No need to install xemacs which exclusively
runs in X ...
$ vi your_file_name
To edit the file: Press i.
Then navigate through the file normally and make any changes.
When complete, press ESC once.
That may be oversimplifying it a bit. On any vi I've used, you had to hit ESC everytime you wanted to move to another line ... then i again to edit that line. ... vim works as you describe.
That being said, kos147, ... Do extend the effort to gain at least rudimentary skills with vi ... once you begin to get comfortable with it switch to vim, and don't use the GUI's until you're comfortable using them in the shell. vi is different, but it's not really hard ... and it's ubiquitous on Unix type systems.
If I want to use a GUI editor, I prefer nedit ... but for things like a quick edit of your lilo.conf files, vi is the right tool. A big part of becoming proficient any any endeavor is learning the use of the right tool for the task at hand.
Also, when you're through editing {SHIFT} ZZ works just like :wq ... If you mess it up and want to start over ... :q!
Originally posted by kos147
I assume because I cannot save ny chnages that I am not root user. Is there a way of confirming this?
Also how do I now modify the file?
Type "whoami" on the command line. If it says anything other than "root" (and it probably will), you need to issue the command "su" followed by your root password. Then you may edit lilo.conf in your favorite editor.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.