Open main menu

CDOT Wiki β

Changes

OPS235 Lab 3 - CentOS7 - SSD

102 bytes added, 13:28, 23 June 2016
no edit summary
#Launch the VMware application.
#Select Open Virtual Machine, and select the VM called c7host on your Solid State Drive.#Launch your '''c7host ''' machine, and login as as a regular user.#Boot-up your '''c7hostcentos1''' VM. '''when the Grub Boot menu appears''', press the letter <b><code><span style="color:#3366CC;font-size:1.2em;">e</span></code></b> (for "edit").
#Using your arrow keys, scroll to next screen to '''linux''', or '''linux16''', or '''linux-efi''' command and type the word <b><code><span style="color:#3366CC;font-size:1.2em;">single</span></code></b> as an argument after '''quiet''' (see diagram for reference) and then press <b><code><span style="color:#3366CC;font-size:1.2em;">ctrl-x</span></code></b> to boot.
#The system should boot into text-based mode. Enter your '''root''' password.
:'''Perform the following steps:'''
#The procedure to reset rootShutdown and restart your '''centos1'''s password is different than shown above. Press VM, and press <b><code><span style="color:#3366CC;font-size:1.2em;">e</span></code></b> at the Grub boot menu.#Using your arrow keys, move to '''linux''' or '''linux-efi''' command and replace the argument '''"ro"''' with the argument <b><code><span style="color:#3366CC;font-size:1.2em;">rw init=/sysroot/bin/sh</span></code></b> (see diagram for reference) and then press <b><code><span style="color:#3366CC;font-size:1.2em;">ctrl-x</span></code></b> to boot.
#The system should boot into text-based mode without prompting for root's password.
#Issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">chroot /sysroot</span></code></b><br><br>
#Issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">passwd root</span></code></b> in order to change your root password (press '''ctrl-c''' if you wish to abort - i.e. not change password).
#To restart in graphical mode, simply enter the command <b><code><span style="color:#3366CC;font-size:1.2em;">reboot</span></code></b>.<br><br>NOTE: If you VM does not shut down, you may be required to click on the VM menu at the top, select The '''Shutdown''' menu option, and select the '''Force Off''' menu option.
#Create the directory '''/tmp/extract2'''
#Move the file '''archive2.tgz''' to the '''/tmp/extract2''' directory.
#Extract the files from the second archiveby issuing the command:#*<b><code><span style="color:#3366CC;font-size:1.2em;">tar xvzf /tmp/extract2/archive2.tar.gz</span></code></b>
#Note that this time a separate <b><code><span style="color:#3366CC;font-size:1.2em;">gunzip</span></code></b> command was not needed. Why?
#Repeat the previous command, leaving out the option '''z'''. Does it work? Why?
13,420
edits