Book Image

Ubuntu Server Essentials

By : Abdelmonam Kouka
Book Image

Ubuntu Server Essentials

By: Abdelmonam Kouka

Overview of this book

Ubuntu is a Debian-based Linux operating system built on top of the Debian architecture. It is used to make operating systems for multiple platforms, including phones, desktops, TVs and mobiles. It has made some serious progress in the realms of efficiency and user friendliness. With evolving technology trends, demands on software have changed, with more and more skilled users. Over the past few years, services such as Facebook, Twitter, and push notifications on smartphones mean that users are used to being up to date with everything that happens all the time. With SignalR, the applications stay connected and will generate notifications when something happens either from the system or by other users. This provides new opportunities for the system administrators, to enter this new and exciting world of real-time application development. This is a concise and a cost-friendly guide, packed with up-to-date essentials on Ubuntu Server fundamentals. It will guide you through deploying and configuring Ubuntu servers in your office environments. You’ll start by installing Ubuntu Server, then move to the most useful aspect —the command-line interface inside it. You’ll extend your knowledge by learning how to administrate and configure Ubuntu Server. You will also see how to deploy services on Ubuntu Server and find out how to secure it. You’ll get to grips with the virtualization and cloud computing facilities provided by Ubuntu, and finally, you’ll gain some very useful tips.
Table of Contents (13 chapters)

Index

A

  • administration tasks
    • configuring, with sudo / Configuring administration tasks with sudo
  • advanced installation, Ubuntu
    • about / The advanced installation
    • RAID, using / Using RAID
    • LVM, using / Using LVM
  • advanced security configuration
    • about / Advanced security configuration
    • SSH security enhancement / SSH security enhancement
    • firewalls, configuring / Configuring firewalls
  • Amavisd-new
    • about / Filters and security for an e-mail server
  • Apache
    • stopping / Stopping Apache gracefully
  • apache2ctl
    • about / apache2ctl
    • commands / Diagnostic apache2ctl commands
  • apache management
    • about / Apache management and testing
  • Apache tools
    • about / Apache management and testing
    • apache2ctl / apache2ctl
  • AppArmor tool
    • configuring / Configuring the AppArmor tool
  • approaches, towards virtualization
    • paravirtualization / Paravirtualization
    • full virtualization / Full virtualization
  • apt (Advanced Packaging Tool)
    • about / The aptitude tool
  • aptitude tool
    • about / The aptitude tool
  • apt tools
    • about / The apt tools
    • apt-get tool / The apt tools
  • Areca Backup
    • about / Backup tools
  • automated installation, Ubuntu
    • about / The automated installation
    • PXE process / The PXE process
    • additional resources / Additional resources

B

  • BackInTime
    • about / Backup tools
  • backup
    • performing / Backuping and restoring
    • principles / The principles of backup
    • drive imaging / Drive imaging
    • database backups / Database backups
  • Backup-Manager
    • about / Backup tools
  • BackupPC
    • about / Backup tools
  • backups tools
    • about / Backup tools
    • well-known tools / Backup tools
  • backup tools
    • about / Backup tools
  • Bacula
    • about / Backup tools
  • bare-metal hypervisor
    • about / Type 1 hypervisor
  • basic security settings
    • about / The basic security settings
    • users, managing / Managing users
    • user quota, applying to user accounts / Applying quota to user accounts
  • brute force attack / Password administration

C

  • ClamAV
    • about / Filters and security for an e-mail server
  • Clonezilla
    • about / Backup tools
  • Cloud computing, for Ubuntu server
    • about / Cloud computing for the Ubuntu Server
    • ownCloud software / The ownCloud software
    • CozyCloud / CozyCloud
    • OpenStack / OpenStack
  • command-line interface (CLI)
    • about / General tips
  • command language interpreter (CLI) / The KVM installation
  • complain mode / Configuring the AppArmor tool
  • Container / Using Docker
  • container
    • about / Different techniques of virtualization
  • CozyCloud
    • about / CozyCloud
    • installing, on Ubuntu server / Installing CozyCloud on Ubuntu Server
    • using / Using CozyCloud

D

  • database server
    • setting up / Setting up a database server
    • MySQL server / The MySQL server
    • Postgre server / The Postgre server
  • DHCP (Dynamic Host Configuration Protocol) / A simple installation from a CD
  • DHCP (Dynamic Host Control Protocol) / Setting up a DHCP server
  • DHCP server
    • setting up / Setting up a DHCP server
    • installing / Installing DHCP
    • Ubuntu DHCP conventions / Ubuntu DHCP Conventions
    • configuring / Configuring DHCP
  • DNS server, setting up
    • about / Setting up a DNS server
    • BIND installation / The BIND installation
    • Ubuntu BIND conventions / Ubuntu's BIND conventions
    • BIND, configuring / Configuring BIND
    • zone file configuration / Zone file configuration
    • DNS redundancy / DNS redundancy
    • DNS testing / DNS testing
  • Docker
    • about / An introduction to Docker
    • working / How Docker works
    • installing / Installing Docker
    • using / Using Docker
  • DockerFile / Using Docker
  • DomainKeys Identified Mail (DKIM)
    • about / Filters and security for an e-mail server
  • dpkg tool
    • about / The dpkg tool
  • Duplicity
    • about / Backup tools
  • dynamic DHCP / Configuring DHCP
  • Déjà Dup
    • about / Backup tools

E

  • e-mail server
    • filters and security / Filters and security for an e-mail server
    • facilities / Other facilities
  • end of file (EOF) signal / Administering using the command line
  • enforce mode / Configuring the AppArmor tool

F

  • file server
    • installing / Installing a file server
    • FTP server / The FTP server
    • Samba server / The Samba server
  • FTP server
    • about / The FTP server

G

  • GNU Privacy Guard (GPG) key
    • about / Webmin: the famous system administration tool
  • GRand Unified Bootloader (GRUB) / Installing XenServer
  • greylisting
    • about / Filters and security for an e-mail server

H

  • hosted hypervisor
    • about / Type 2 hypervisor
  • HostKey directive
    • about / Configuring the OpenSSH server
  • hypervisor
    • about / Different techniques of virtualization
    • type 1 hypervisor / Type 1 hypervisor
    • type 2 hypervisor / Type 2 hypervisor

I

  • IaaS (Infrastructure as a Service) / OpenStack
  • Image / Using Docker
  • IMAP / Deploying an e-mail server
  • Internet of Things (IoT)
    • about / Snappy
  • isolator
    • about / Different techniques of virtualization, An isolator

J

  • Juju
    • about / Juju

K

  • KVM (Kernel-based Virtual Machine)
    • about / Virtualization, Type 2 hypervisor, KVM (Kernel-based Virtual Machine)
    • prerequisites / Prerequisites
    • networking, configuring / Configuring the KVM networking
    • installing / The KVM installation
    • virtual machines, managing / Managing virtual machines

L

  • LAMP (Linux Apache MySQL PHP) / Turning on a web server
  • LAMP installation
    • performing / The LAMP Installation
    • Ubuntu LAMP conventions / Ubuntu's LAMP Conventions
  • Landscape
    • about / Landscape
  • log rotation
    • about / Customizing log rotation on Ubuntu Server
  • LuckyBackup
    • about / Backup tools
  • LVM (Logical Volume Manager)
    • using / Using LVM
  • LXC (Linux Containers) / The latest Ubuntu release, How Docker works

M

  • mail server
    • deploying / Deploying an e-mail server
    • MTA server / The MTA server
    • MDA server / The MDA server
  • main repository
    • about / Package repositories
  • manual installation, Ubuntu
    • about / The manual installation
    • installation from CD / A simple installation from a CD
    • upgrading / Upgrading from an old release
  • Master Boot Recorder (MBR) / A simple installation from a CD
  • MDA (Mail Delivery Agent)
    • about / Deploying an e-mail server
  • MDA server
    • about / The MDA server
  • Metal as a Service (MAAS)
    • about / MAAS
  • MTA (Mail Transfer Agent)
    • about / Deploying an e-mail server
    • Postfix, installing / Installing Postfix
    • Postfix, managing / Managing Postfix

  • MTA server
    • about / The MTA server
  • multitail
    • using / Tailing multiple files using multitail
  • multiverse repository
    • about / Package repositories
  • MySQL server
    • about / The MySQL server

N

  • NAT (Network Address Translation) / Configuring the KVM networking
  • native hypervisor
    • about / Type 1 hypervisor
  • NetHogs
    • about / NetHogs, a network monitoring tool
  • network configuration, Ubuntu server
    • about / The network configuration for an Ubuntu Server
    • configuration files / The configuration files
    • network utilities / The network utilities
  • network interfaces (NICs)
    • about / The manual installation

O

  • OpenDKIM
    • about / Filters and security for an e-mail server
  • OpenSSH server
    • deploying / Deploying an OpenSSH server
    • about / Deploying an OpenSSH server
    • installing / Installing the OpenSSH server
    • configuration / Configuring the OpenSSH server
  • OpenStack
    • about / OpenStack
    • tools / OpenStack tools
    • Juju / Juju
    • MAAS / MAAS
    • Landscape / Landscape
    • LXD / LXD
    • Snappy / Snappy
    • setting up / The OpenStack setup
    • installing, DevStack used / Installing OpenStack using DevStack
    • manual installation / The manual installation
  • OpenXenManager / Managing virtual machines
  • operating-system-level virtualization
    • about / Different techniques of virtualization
  • operating system (OS) / Password administration
  • operating systems (OS)
    • about / An introduction to virtualization
  • Oracle VirtualBox
    • about / Type 2 hypervisor
  • ownCloud software
    • about / The ownCloud software
    • technology / The technology used in ownCloud
    • installing / The ownCloud server installation

P

  • PaaS (Platform as a Service) / CozyCloud
  • package management
    • about / The package management for an Ubuntu Server
  • package management utilities
    • about / Package management utilities
    • dpkg tool / The dpkg tool
    • aptitude tool / The aptitude tool
    • apt tools / The apt tools
    • tasksel tool / Adding software collections using tasksel
  • packages repositories
    • about / Package repositories
    • main / Package repositories
    • restricted / Package repositories
    • universe / Package repositories
    • multiverse / Package repositories
  • paravirtualization approach
    • about / Paravirtualization
  • Partclone
    • about / Backup tools
  • permission settings
    • about / Permission settings
    • file ownership / File ownership
    • permissions, configuring / Configuring permissions
  • Personal Package Archives (PPA)
    • about / Package repositories
  • phpMyAdmin / The LAMP Installation
  • platform as a service (PaaS) mode / How Docker works
  • POP / Deploying an e-mail server
  • Postfix
    • about / The MTA server
    • installing / Installing Postfix
    • managing / Managing Postfix

    • postqueue command / Managing Postfix

    • postsuper command / Managing Postfix

    • postconf command / Managing Postfix

  • Postgre server
    • about / The Postgre server
  • Postgrey
    • about / Filters and security for an e-mail server
  • Preboot Execution Environment (PXE)
    • about / The manual installation
  • prerequisites, Ubuntu server installation
    • about / Preparation before the installation
    • latest Ubuntu release / The latest Ubuntu release
    • system requirements / System requirements
    • additional resources / Additional resources
  • Primary Domain Controller (PDC)
    • about / The Samba server
  • Process Identification Number (PID)
    • about / Getting information from /proc
  • program cockpit
    • about / The program cockpit – a remote manager for Ubuntu servers
  • PV (physical volume) / Using LVM
  • PXE (Preboot Execution Environment)
    • about / The PXE process
    • installation procedure / The PXE installation procedure

R

  • RAID (Redundant Array of Inexpensive Disks)
    • about / Using RAID
    • using / Using RAID
  • restricted repository
    • about / Package repositories
  • Rsync
    • about / Backup tools

S

  • Samba server
    • about / The Samba server
  • SBackup
    • about / Backup tools
  • Sender Policy Framework (SPF)
    • about / Filters and security for an e-mail server
  • Sendmail Mail Filter (Milter)
    • about / Filters and security for an e-mail server
  • SFTP (SSH File Transfer Protocol)
    • about / The FTP server
  • single user mode
    • about / Recovering the root password under Ubuntu Server
  • SMTP / Deploying an e-mail server
  • Snappy
    • about / Snappy
  • spam / Filters and security for an e-mail server
  • Spamassassin
    • about / Filters and security for an e-mail server
  • static DHCP / Configuring DHCP
  • system administration tasks, Ubuntu server
    • performing / Performing essential system administration tasks
    • resources, monitoring / Monitoring resources
    • processes, managing / Processes management
    • processes, scheduling for run / Scheduling the processes that need to be run
  • system calls / Administering using the command line

T

  • tasksel tool
    • used, for adding software collections / Adding software collections using tasksel
    • about / Adding software collections using tasksel
  • tips and tricks
    • for Ubuntu Server CLI / Ubuntu Server CLI tips and tricks
    • server daemons, avoiding at installation / How to prevent server daemons from starting during installation
    • directory, moving / How to move or copy a directory
    • directory, copying / How to move or copy a directory
    • system resource, limiting / System resource limits
    • command, executing / Running a command over and over
  • tools and utilities
    • NetHogs / NetHogs, a network monitoring tool
    • vnStat / vnStat, a network monitoring tool
    • multitail / Tailing multiple files using multitail
    • program cockpit / The program cockpit – a remote manager for Ubuntu servers
    • Webmin / Webmin: the famous system administration tool
    • uvtool program / Using the uvtool program and extending the use of Cloud images
  • troubleshooting tips
    • log rotation, customizing / Customizing log rotation on Ubuntu Server
    • system log files / The main system log files
    • opened files, checking / Checking opened files
    • information, obtaining from /proc files / Getting information from /proc
    • root password, recovering / Recovering the root password under Ubuntu Server

U

  • Ubuntu server
    • administering, command line used / Administering using the command line
    • package management / The package management for an Ubuntu Server
    • network configuration / The network configuration for an Ubuntu Server
    • system administration tasks, performing / Performing essential system administration tasks
  • Ubuntu Server CLI
    • tips and tricks / Ubuntu Server CLI tips and tricks
  • Ubuntu server installation
    • prerequisites / Preparation before the installation
    • manual installation / The manual installation
    • advanced installation / The advanced installation
    • automated installation / The automated installation
  • Unison
    • about / Backup tools
  • universe repository
    • about / Package repositories
  • Unsolicited Bulk Email (UBE) / Filters and security for an e-mail server
  • user account administration
    • about / User account administration
    • useradd / User account administration
    • usermod / User account administration
    • userdel / User account administration
    • passwd command / User account administration
    • -m option / User account administration
    • -e date option / User account administration
    • -G groups / User account administration
  • user management
    • about / Managing users
    • user account administration / User account administration
    • password administration / Password administration
    • permission settings / Permission settings
  • user quota
    • about / Applying quota to user accounts
    • applying, to user accounts / Applying quota to user accounts
  • utilities, for e-mail server
    • Amavisd-new / Filters and security for an e-mail server
    • Spamassassin / Filters and security for an e-mail server
    • ClamAV / Filters and security for an e-mail server
    • Postgrey / Filters and security for an e-mail server
    • OpenDKIM / Filters and security for an e-mail server
  • uvtool program
    • used, for extending Cloud images usage / Using the uvtool program and extending the use of Cloud images
    • URL / Using the uvtool program and extending the use of Cloud images

V

  • VEs
    • about / An introduction to virtualization
  • VG (volume group) / Using LVM
  • Virt-manager / Managing virtual machines
  • virtualization
    • about / Virtualization, An introduction to virtualization
    • benefits / The benefits of virtualization
    • techniques / Different techniques of virtualization
    • hypervisor / Different techniques of virtualization
    • isolator / An isolator
    • approaches / The different approaches towards virtualization
    • KVM (Kernel-based Virtual Machine) / KVM (Kernel-based Virtual Machine)
    • XenServer / XenServer
    • Docker / An introduction to Docker
  • virtualization engine
    • about / Different techniques of virtualization
  • virtual machines (VMs)
    • about / An introduction to virtualization
  • vnStat
    • about / vnStat, a network monitoring tool
    • options / vnStat, a network monitoring tool

W

  • Webmin
    • about / Webmin: the famous system administration tool
  • web server
    • turning on / Turning on a web server
    • LAMP installation / The LAMP Installation
    • Apache management / Apache management and testing

X

  • XCP Project Kronos / Managing virtual machines
  • xen-tools / Managing virtual machines
  • Xen Cloud Platform / Managing virtual machines
  • XenServer
    • about / Type 1 hypervisor, XenServer
    • domain 0 OS / XenServer
    • domain U machines / XenServer
    • prerequisites / Prerequisites
    • installing / Installing XenServer
    • networking / The networking concept in a XenServer environment
    • virtual machines, managing / Managing virtual machines