. Complete the following:
1. Boot your Linux system and log in as your student user using a password of student.
2. Open a terminal session.
3. Switch to your root user account by entering su – followed by your root user’s password (student).
4. Change your default boot target to the equivalent of runlevel 3 by doing the following:
a. Open a terminal session.
b. At the shell prompt, change to your root user account using the su – command.
c. At the shell prompt, enter systemctl set-default multi-user.target.
d. Reboot your system by entering init 6 at the shell prompt.
Notice that this command still works even though the system doesn’t use the init daemon. Your system should boot into a text-based login shell.
Notice that this command still works even though the system doesn’t use the init daemon. Your system should boot into a text-based login shell.
e. Log in as your root user.
f. At the shell prompt, use the systemctl command to change the default boot target back to graphical.
g. Power off the system by entering init 0 at the shell prompt. Again, notice that the command works even though the system doesn’t use the init daemon.
h. Power the system back on and log back in to your system as a normal user.
5. Practice enabling the ntp daemon at system boot. Complete the following:
a. Open a terminal session and change to your root user account.
b. At the shell prompt, enter vi /etc/ntp.conf.
c. Scroll down to the lines that read
server 127.127.1.0 #local clock (LCL)
fudge 127.127.1.0 stratum 10 #LCL is unsynchronized
server 127.127.1.0 #local clock (LCL)
fudge 127.127.1.0 stratum 10 #LCL is unsynchronized
d Press insert.
e Add a new line below the fudge line.
f. Add the following directive on the new line: server bigben.cac.washington.edu
This directive configures the ntp service to synchronize your local computer time with the time on the bigben.cac.washington.edu public ntp server on the Internet.
This directive configures the ntp service to synchronize your local computer time with the time on the bigben.cac.washington.edu public ntp server on the Internet.
g. Press esc; then enter :exit.
h. Start the ntp service by entering systemctl start ntp.service at the shell prompt.
i Check the status of the ntp daemon by entering systemctl status ntp.service at the shell prompt.
No comments:
Post a Comment