Ubuntu 20.04 Essentials
eBook - ePub

Ubuntu 20.04 Essentials

A Guide to Ubuntu 20.04 Desktop and Server Editions

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Ubuntu 20.04 Essentials

A Guide to Ubuntu 20.04 Desktop and Server Editions

About this book

Arguably one of the most highly regarded and widely used enterprise level operating systems available today is the Ubuntu 20.04 distribution. Not only is it considered to be among the most stable and reliable operating systems, it is also backed by the considerable resources and technical skills of Canonical, Ltd.

Ubuntu 20.04 Essentials is designed to provide detailed information on the installation, use and administration of the Ubuntu 20.04 distribution. For beginners, the book covers topics such as operating system installation, the basics of the GNOME desktop environment, configuring email and web servers and installing packages and system updates. Additional installation topics such as dual booting with Microsoft Windows are also covered, together with all important security topics such as configuring a firewall and user and group administration.

For the experienced user, topics such as remote desktop access, the Cockpit web interface, logical volume management (LVM), disk partitioning, swap management, KVM virtualization, Secure Shell (SSH), Linux Containers and file sharing using both Samba and NFS are covered in detail to provide a thorough overview of this enterprise class operating system.

Information

Year
2020
Print ISBN
9781951442187
eBook ISBN
9781951442057
1. Introduction
Ubuntu is arguably one of the most highly regarded and widely used Linux distributions available today. Praised both for its ease of use and reliability, Ubuntu also has a loyal following of Linux users and an active community of developers.
Ubuntu 20.04 Essentials is designed to provide detailed information on the installation, use and administration of the Ubuntu 20.04 distribution. For beginners, the book covers topics such as operating system installation, the basics of the GNOME desktop environment, configuring email and web servers and installing packages and system updates. Additional installation topics such as dual booting with Microsoft Windows are also covered, together with all important security topics such as configuring a firewall and user and group administration.
For the experienced user, topics such as remote desktop access, the Cockpit web interface, logical volume management (LVM), disk partitioning, swap management, KVM virtualization, Secure Shell (SSH), Linux Containers and file sharing using both Samba and NFS are covered in detail to provide a thorough overview of this enterprise class operating system.
1.1 Superuser Conventions
Ubuntu, in common with Linux in general, has two types of user account, one being a standard user account with restricted access to many of the administrative files and features of the operating system, and the other a superuser (root) account with elevated privileges. Typically, a user can gain root access either by logging in as the root user, or using the su - command and entering the root password. In the following example, a user is gaining root access via the su - command:
[neil@demo-server ~]$ su -
Password:
[root@demo-server ~]#
Note that the command prompt for a regular user ends with a $ sign while the root user has a # character. When working with the command-line, this is a useful indication as to whether or not you are currently issuing commands as the root user.
If the su - command fails, the root account on the system has most likely been disabled for security reasons. In this case, the sudo command can be used instead as outlined below.
Using sudo, a single command requiring root privileges may be executed by a non-root user. Consider the following attempt to update the operating system with the latest patches and packages:
$ apt update
Reading package lists... Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
Optionally, user accounts may be configured so that they have access to root level privileges. Instead of using the su - command to first gain root access, user accounts with administration privileges are able to run otherwise restricted commands using sudo.
$ sudo apt update
[sudo] password for demo:
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
.
.
To perform multiple commands without repeatedly using the sudo command, a command prompt with persistent super-user privileges may be accessed as follows:
[neil@demo-server]$ sudo su -
[neil@demo-server]#
The reason for raising this issue so early in the book is that many of the command-line examples outlined in this book will require root privileges. Rather than repetitively preface every command-line example with directions to run the command as root, the command prompt at the start of the line will be us...

Table of contents

  1. 1. Introduction
  2. 2. A Brief History of Linux
  3. 3. Installing Ubuntu on a Clean Disk Drive
  4. 4. Installing Ubuntu with the Network Installer
  5. 5. Dual Booting Ubuntu with Windows
  6. 6. Allocating Windows Disk Partitions to Ubuntu
  7. 7. A Guided Tour of the GNOME 3 Desktop
  8. 8. An Overview of the Ubuntu Cockpit Web Interface
  9. 9. Using the Bash Shell on Ubuntu
  10. 10. Managing Ubuntu Users and Groups
  11. 11. Managing Ubuntu systemd Units
  12. 12. Ubuntu Software Package Management and Updates
  13. 13. Ubuntu Snap Package Management
  14. 14. Ubuntu Network Management
  15. 15. Ubuntu Firewall Basics
  16. 16. Using gufw and ufw to Configure an Ubuntu Firewall
  17. 17. Basic Ubuntu Firewall Configuration with firewalld
  18. 18. Configuring SSH Key-based Authentication on Ubuntu
  19. 19. Ubuntu Remote Desktop Access with Vino
  20. 20. Ubuntu Remote Desktop Access with VNC
  21. 21. Displaying Ubuntu Applications Remotely (X11 Forwarding)
  22. 22. Using NFS to Share Ubuntu Files with Remote Systems
  23. 23. Sharing Files between Ubuntu and Windows Systems with Samba
  24. 24. An Overview of Virtualization Techniques
  25. 25. Installing KVM Virtualization on Ubuntu
  26. 26. Creating KVM Virtual Machines using Cockpit and virt-manager
  27. 27. Creating KVM Virtual Machines with virt-install and virsh
  28. 28. Creating an Ubuntu KVM Networked Bridge Interface
  29. 29. Managing KVM using the virsh Command-Line Tool
  30. 30. An Introduction to Linux Containers
  31. 31. Working with Containers on Ubuntu
  32. 32. Setting Up an Ubuntu Web Server
  33. 33. Configuring an Ubuntu Postfix Email Server
  34. 34. Adding a New Disk Drive to an Ubuntu System
  35. 35. Adding a New Disk to an Ubuntu Volume Group and Logical Volume
  36. 36. Adding and Managing Ubuntu Swap Space
  37. 37. Ubuntu System and Process Monitoring
  38. Index

Trusted by 375,005 students

Access to over 1.5 million titles for a fair monthly price.

Study more efficiently using our study tools.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Ubuntu 20.04 Essentials by Neil Smyth in PDF and/or ePUB format, as well as other popular books in Computer Science & Operating Systems. We have over 1.5 million books available in our catalogue for you to explore.