Changes

Jump to: navigation, search

OPS235 Lab 5 - Fedora17

585 bytes removed, 09:33, 27 September 2012
Managing Run-Levels and System Services
{{Admon/note|Use fedora2|Perform these steps in the '''fedora2''' virtual machine.}}
'''Runlevel''' is a Unix/Linux term relating to the operating system's mode of operation. For example, if the operating system operates in text-based or graphical mode, reboot, shutdown, etc. We will be learning to switch to different runlevels in your fedora2 virtual machine. #Switch to your '''fedora2''' VM.#Issue the following Linux command to determine your runlevel:#*<code>runlevel</code><br />The number '''5''' indicates that your fedora2 VM is currently in '''"runlevel 5"''' or '''"graphical mode with networking"'''. {{Admon/note|The runlevel command is now deprecated|Although you can still use the '''runlevel''' command, it is considered obsolete (deprecated)in Fedora, and has been replaced by '''systemctl'''.<br />The newer system called '''systemd''' is a newer method to help simplify controlling both runlevels (referred to as "targets" and system services (referred to as "services").<br />Refer to the tutorial [[init vs systemd]] for systemctl command usages and reference.}} 
<ol>
<li value="3">Issue the following Linux command:
<ul>
<li><code>systemctl list-units --type=target</code></li>
</ul>
</li>
<li>Note the target labelled graphical. What does this indicate about your fedora2 VMNow trace the chain of links starting at /etc/systemd/system/default.target - what's it ultimately pointing to?</li> <li>Issue the following commands to switch the default mode (also known as target or , formerly runlevel):
<ul>
<li><code>rm /etc/systemd/system/default.target</code></li>
<li><code>ln -sf s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target</code></li>
</ul>
<li>Restart your fedora2 VM. What happens?</li>
<ul>
<li><code>rm /etc/systemd/system/default.target</code></li>
<li><code>ln -sf s /lib/systemd/system/graphical.target /etc/systemd/system/default.target</code></li>
</ul>
</li>

Navigation menu