Mastering Linux System Administration. Richard Blum

Чтение книги онлайн.

Читать онлайн книгу Mastering Linux System Administration - Richard Blum страница 22

Mastering Linux System Administration - Richard Blum

Скачать книгу

the Ubuntu Server VM within the VirtualBox hypervisor, you can perform the actual installation of the Linux OS. Conducting the installation process on a VM is similar to conducting it on a physical server. Just a few differences exist, such as loading the ISO image file into the virtualized DVD drive.

      1 Open the Oracle VirtualBox hypervisor app on your host system if it's not already open.

      2 If you have multiple VMs configured in your hypervisor, click one time on the Ubuntu Server VM to select it.

      3 Click the Settings button in the VirtualBox Manager's top‐right pane, which opens the Settings window for the Ubuntu Server VM.

      4 In the Settings window, click Storage in the left pane to open the Storage settings window for the Ubuntu Server. It will look similar to the following:

      5 In the Storage settings window's middle pane under Controller: IDE, click the word Empty to open the Attributes pane for the IDE optical drive.

      6 In the Storage settings window's Attributes pane, click the DVD image to produce a drop‐down menu, and select Choose/Create A Virtual Optical Disk. An Optical Disk Selector window will appear that looks similar to the following:

      7 In the Optical Disk Selector window, click the Add icon, which will open the Windows Explorer utility, and you will see “Please choose an optical disk file” in the window's title bar.

      8 Navigate to the location of your Ubuntu Server ISO image file, select the file by clicking it, and then click Open. The Optical Disk Selector window now looks similar to the following:

      9 In the Optical Disk Selector window, click Choose, and you are returned to the Storage settings window's Attributes pane with the Ubuntu Server ISO image filename displayed under Controller: IDE.

      10 Click OK to keep the virtually loaded ISO image file and return to the main VirtualBox Manager window.

      11 Boot your Ubuntu Server VM by clicking the Start button in the VirtualBox Manager's top‐right pane.You may see lots of messages go by on your screen. Let the process continue until you reach this window:

      12 Using your arrow keys, select the language you prefer and press Enter.

      13 In the Keyboard configuration window, select your desired keyboard layout (the defaults are typically OK), and press Enter.

      14 In the Network Connections window, review the displayed information, and press Enter.

      15 In the Configure Proxy window, review the displayed information, and if you need to enter a proxy address, do so. Otherwise, press Enter.

      16 In the Configure Ubuntu Archive Mirror window, press Enter.

      17 If you receive the Install Update Available window, select Update To The New Installer, and press Enter. You have to wait until the installer is updated. This may take a few minutes depending on the speed of your Internet connection. When it is complete, you should see the next installation window, which looks similar to the following:

      18 In the Guided Storage Configuration screen, keep the defaults, tab to Done, and press Enter.

      19 Read through the information provided in the storage configuration window, and press Enter. You'll receive a warning message similar to the following:Don't let this warning message scare you. Remember that your virtual hard drive for this Ubuntu Server is merely a file on your host machine.

      20 Tab to Continue, and press Enter.

      21 Within the Profile Setup screen, type your first and last names in the Your Name field.

      22 Tab to the Your Server's Name field, and type ubuntu‐server.

      23 Tab to the Pick A Username field, and type sysadmin.

      24 Now tab to the Choose A Password field, and type in a password. Be sure to choose one that you will remember!

      25 Tab to the Confirm Your Password field, and type in the same password as you did in the previous step. Your screen should now look similar to the following:

      26 Once all the fields in the Profile Setup window are filled, tab to Done and press Enter.

      27 In the SSH Setup window, tab to Done and press Enter.You'll receive a message in the next screen when the initial installation is complete that looks similar to the following:

      28 Press Enter to select Reboot Now.

      29 Because the Ubuntu Server ISO image file has not yet been removed from the virtual DVD drive, you'll most likely get a “Failed” message along with a request to remove the installation medium. Click the X in the VM's upper‐right corner. You'll receive the Close Virtual Machine screen, which looks similar to the following:

      30 Click the circle next to Power Off The Machine.

      31 Click OK to power off the Ubuntu Server virtual machine. At this point, the VirtualBox hypervisor typically automatically removes the ISO image file from the virtual DVD drive for you. But you should check to make sure it is gone.

      32 Click the Settings button in the VirtualBox Manager's top‐right pane, which opens the Settings window for the Ubuntu Server VM.

      33 In the Settings window, click Storage in the left pane to open the Storage settings window for the Ubuntu Server. Here you should see the word Empty in the window's middle pane under the Controller: IDE.

      34 Click OK to return to the VirtualBox Manager window.

      35 Boot up your Ubuntu Server VM by clicking the Start button in the VirtualBox Manager's top‐right pane.You may see lots of messages go by on your screen. Let the process continue until you reach this window:Because this first terminal, called tty1, gets messages displayed on it, it's best to jump to a different terminal where you can work in peace.

      36 Press Ctrl+Alt+F2 to reach the tty2 terminal.

      37 In the Username field, type sysadmin and press Enter.

      38 In the Password field, be aware that nothing will show as you type in your password. There are no symbols such as asterisks or dots shown. Type in the password you created for this system earlier, and press Enter.

      39 After you log into the system successfully, you receive a prompt similar to the following:sysadmin@ubuntu-server:~$This prompt is where you enter your commands, and it's called the command‐line interface.The next several commands assume that your host machine is connected to a network.

      40 As part of the installation process, update the software information by typing sudoapt update, and press Enter. When it asks for a password, type in the same password you used to log into the system.

      41 When you receive a prompt, update the software by typing sudo apt dist‐upgrade, and press Enter. It may ask you for a sudo password, and if it does, type in the same password you used to log into the system.

      42 When the software update process asks “Do you want to continue? [Y/n],” type Y and press Enter.This software update may take a while, so go get a cup of coffee and check the latest statuses on social media.

      43 When you receive a command‐line prompt, the installation process is complete. Type sudo poweroff at the prompt and press Enter. It may ask you for a sudo password,

Скачать книгу