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.
I'm editing my first dhcp file and I googled the world to figure out how to view the errors <journalctl -xe> and received errors called out like the following:
/etc/dhcp/dhcpd.conf line 991: expecting left brace.
host B19-07-Alpha WB-6
I can find this host name in the file, but can't determine where the brace should exist, here is the host details in the file:
For every right brace, you need to have a matching left brace.
I know this is just a clip of the file, but it shows to right braces, and only one left brace. I'm assuming that the first right brace does have a matching term above that you just haven't shown. Meanwhile, whatever is parsing this file, does feel that there is an error.
Also, many times it is very typical that the first instance where the syntax rules are violated can cause every following, but correct syntax, instance become an error. Therefore look at the very first problem line and go backwards in the file to verify that the syntax is correct.
Probably should not post that level of detail in the future, or edit/erase what you've posted if it is identifiable for your system/setup.
I copied that all, put it in an editor and globally searched/replaced { with [ --> 34 occurrences. Globally searched/replace } with ] --> 34 occurrences.
I don't know if that's the entire file, please don't post it. Meanwhile, the "syntax" may be wrong. Just because you have the same amount of { as you do } doesn't mean that one is not in the correct place. What if that group term needs to be terminated right up top and not at the end of the section/file. I don't know the syntax, but as said before, the first line number of the complaint is a good place to search.
Meanwhile, did you once have a working file? Check a file that does work, if possible.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.