Changes

Jump to: navigation, search

OPS235 Lab 5 - CentOS6

948 bytes added, 12:15, 27 November 2019
no edit summary
{{Admon/caution|THIS IS AN OLD VERSION OF THE LAB|'''This is an archived version. Do not use this in your OPS235 course.'''}}
=Archiving Files, Compiling Software Packages from Source, Managing Services=
[[Category:OPS235]][[Category:OPS235 Labs]]
<ul>
<li><code>make</code></li>
<li>Did the command work? Why? Use the "<code>yum" </code> command to install the package '''gcc'''. What do you think the package ''gcc '' does?</li>
</ul>
<li>Reissue the <code>make</code> command. Where you successful? What does <code>make</code> do?</li> <li>Issue the command as root: <code>yum list ncurses</code>. What do you see? Issue the command at root: <code>yum search ncurses</code>. What do you observe?</li> <li>In this case, you need to install the ncurses development libraries as well. Issue the following command as root: <code>yum install ncurses-devel.x86_64</code>. Now issue the command: <code>make</code></li>
<li>Some software distributed as source code can automatically install itself. Try this command:
<ul>
</li>
<li>Most but not all source code archives include the capability of installing themselves this way.</li>
<li>If the command <code>make install</code> does not work (how can you tell? What command did you learn from ULI101 to confirm that this command cannot be run from the command line?), copy the <code>nled</code> program manually:
<ul>
<li><code>cp nled /usr/local/bin</code></li>
</li>
<li>Test <code>nled</code> to make sure it works.</li>
<li>Why did copying the nled executable to /usr/local/bin allow the nled command to be run by name anywhere in the command prompt?</li>
</ol>
</li>
<li>Note the difference in output between centos2 and centos3.</li>
<li>You can use the <code>init </code> command to change the current runlevel. See a list of runlevels [https://www.centos.org/docs/5/html/5.2/Installation_Guide/s2-init-boot-shutdown-rl.html here]. Change Use the <code>man</code> command to learn how to use the <code></code>init command. Use this command to change the current runlevel in centos2 to 3. What happened? What happens after your reboot?</li>
<li>Change the default runlevel on centos2 to 3. What happens now after you reboot?</li>
<li>Issue the following Linux command:

Navigation menu