Open main menu

CDOT Wiki β

Changes

OPS335 Lab 1

935 bytes removed, 15:15, 31 August 2015
m
Removing section on making VMs run in command-line. They do that automatically now.
**Restart the sshd service on your host and try to ssh in again. Now it should prevent you.
*The configuration files for most services follow a very similar format. Some use an = between the parameter and its value, some require you to group certain parameters together, and most use # to be a comment. You will get lots of experience working with the configuration files for services in this course.
 
===Minimizing your VM's footprint===
*Since all VMs used in this course are intended to be servers, the presence of a GUI in not recommended - servers are typically managed from the command line.
* Make it boot by default to the command line only
**Fedora 17 and onward do not use '/etc/inittab' to set the default run level but rather use targets as a more flexible replacement. Note the output of the following command:
ll /etc/systemd/system/*.target
lrwxrwxrwx. 1 root root 36 Dec 3 09:35 /etc/systemd/system/default.target -> /lib/systemd/system/runlevel5.target
and
ll /lib/systemd/system/*.target
Systemd uses symbolic links to point to the default runlevel in use. To change the default runlevel:
systemctl set-default multi-user.target
*Make note of the output of that command.
*Test your VM to make sure that it boots correctly before moving on.
*Modify VM2 and VM3 so that they both boot to the command line as well.
== Completing the Lab ==
932
edits