System Maintenance (Topic 2.211)

Review Questions

  1. You want a central logging server to accept log entries from several remote systems. What option in the syslogd or sysklogd file would you enter to enable the logging daemon to accept remote log entries?

  2. What is the format of an entry in the /etc/syslogd file?

  3. You wish to configure the /etc/hosts file so that remote logging always works, even if the DNS server fails. Which should be specified first when creating a host entry: the host's IP address or the host's name?

  4. What is the syntax of a log entry in the /var/log/messages file?

  5. What command builds a Debian package?

  6. What is the command used to build an RPM package?

Answers

  1. The option is -r.

  2. facility/priority.

  3. The host's IP address is entered first.

  4. The date, the time, the hostname, the daemon that prompted the log entry, and the message from the daemon.

  5. The -b option tells dpkg to build a package. This option specifies the name of the directory that contains the files necessary for building the package. Finally, you specify the name of the package that you are building:

    dpkg -b file_system_tree_directory name_of_package.deb
  6. Use the -ba option to tell the RPM facility to build binary and source packages. The command also specifies the spec filename, not the name of the built package.

    rpm -ba spec_file_name-1.0.spec

Exercises

  1. Go onto the Internet and read about the construction of an RPM spec file. When it comes to understanding a spec file, be able to identify the purpose of the following:

    Header ...

Get LPI Linux Certification in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.