Learn how to install a GUI-less, minimal server based on Debian 10.
If you're looking to bolster your data center with a few Linux servers, why not add Debian into the mix? After all, you probably already have a few Ubuntu servers working non-stop for you, so why not include the mothership distribution?
SEE: Hiring kit: Database administrator (TechRepublic Premium)
With Debian as your server-based distribution, you'll be getting a stability and reliability that you might not experience with any other platform. Considering uptime and reliability are the goals with data center servers, it makes for a pretty simple answer to the question, "why?" Debian is also less bulky compared to similar platforms, and often Debian will have bugs fixed before many of the derivative distributions.
With that said, I'm going to walk you through the process of installing a minimal server. The end result will have no desktop environment and a basic web and SSH server. From that foundation, nearly anything can be added.
How to download the ISO
The first thing that must be done is downloading the ISO image of the latest Debian version. I'm going to use the CD image as that installation only requires a single image file and will be installing it as a VirtualBox VM. To get that file, head over to the Debian CD ISO download page and grab the latest release.
During the installation, you'll interact with about 24 ncurses screens. That might sound like a lot of hoops to jump through, but the questions asked are incredibly easy to answer. I won't show screenshots of each window (only the more important ones), but any IT admin, no matter the experience level, should be able to breeze through this installation.
The first screen you'll see is the Installer Menu (Figure A). In this screen, select Install (not Graphical Install, as there are certain options to be had in the standard installation that you'll want).
The next set of screens are:
As this installer is ncurses based (Figure B), you'll use your keyboard cursor keys to move up and down a selection list, your space bar to select an option, and the Tab key to switch from selection list to the OK/Go Back/Yes/No options.
The next window that will require your interaction is the hostname configuration (Figure C).
Type the hostname for the system, hit the Tab key to Continue, and hit Enter on your keyboard.
From this, the next screens you'll interact with are:
Full Name for standard user
Username for standard user
Once you have the time zone configured, you'll be presented with the disk partition tool (Figure D).
Select the type of partitioning you want to use and hit Enter. Next you'll select the disk to be partitioned (Figure E).
Once you've selected your disk, the next screens require you to:
Select your partitioning scheme
Okay the partitioning
Write changes to disks
Next comes the package management section of the installation. For this you'll be required to:
Select whether you want to use a network mirror (select Yes)
Select your mirror country
Select your mirror (Figure F)
In the next window, configure your network proxy. If you don't need a proxy, leave it blank, tab to Continue and hit Enter.
Next you can opt in to the package survey feature. If you'd rather not participate, tab to No and hit Enter.
We finally reach the package selection window (Figure G).
There aren't many options here. This is intentional, as this is the more minimal ISO image. For the minimal installation, deselect any desktop environment, select web server, print server, SSH server, and standard system utilities. Once you've made the selections, tab to Continue and hit Enter.
The final two screens ask if you want to install the GRUB boot loader (you do) and where to install it (most likely /dev/sda). Once you've taken care of this, you will be informed that the installation is complete. Tab to Continue and hit Enter. Your Debian minimal server will reboot and you can log in to start working.
And that's all there is to installing a minimal Debian 10 server. Use this as a foundation to build your ideal Linux data center server and it won't let you down.
- How to become a database administrator: A cheat sheet (TechRepublic)
- 10 things companies are keeping in their own data centers (TechRepublic download)
- How to cleanly remove a package from a Debian-based distribution (TechRepublic)
- How to create an SSH jailed user on Debian 9 (TechRepublic)
- How to stop, start, and restart Apache on various Linux distributions (TechRepublic)
- How to tell the difference between apt-get upgrade, apt-get dist-upgrade, and do-release-upgrade (TechRepublic)
- Debian 10 'Buster' Linux arrives (ZDNet)
- Best cloud services for small businesses (CNET)
- DevOps: More must-read coverage (TechRepublic on Flipboard)