# Ubuntu

Ubuntu is an operating system that is developed by a worldwide community of programmers as well as by employees of Ubuntu's commercial sponsor, Canonical. Ubuntu is based on the concept of free or open-source software, meaning that you do not pay any licensing fees for Ubuntu, and you can download, use, and share the operating system free of charge. Being a Linux-based operating system, Ubuntu has a well-deserved reputation for stability and security. Historically, Linux has proven itself to be a workhorse server operating system, and this is where, up until now, it has been most widely used and best known.

# Initial server setup

Complete the steps below to prepare a Ubuntu server or VM for development or production.

  • Upgrade packages:
sudo apt-get update && apt-get upgrade
  • Install common packages:
sudo apt-get install \
    gparted \
    nano \
    openssh-server
DETAILS
  • Gparted: for resizing disks.
  • Nano: easy to use file editor (from the terminal).
  • OpenSSH Server: enables SSH-access to the server.

# Mount a network share

This guide covers the installation and configuration of a network share on Ubuntu.

  • Install CIFS:
sudo apt-get install cifs-utils
  • Create mount directory:
mkdir -p /mnt/share
  • Get your user ID:
id -u
  • Edit /etc/fstab:
sudo nano /etc/fstab
  • Add share configuration to /etc/fsab:
//<server-ip>/<share-name> /mnt/share cifs username=<share-username>,password=<share-password>,uid=<user-id>,iocharset=utf8 0 0

TIP

The folder will be mounted when the server is rebooted. Run the following command to mount without a reboot:

sudo mount /mnt/share