Install Debian 11 (Bullseye) Minimal Server
How to install a Debian 11 "Bullseye" server. Minimal setup with no GUI and with a minimum of packages installed.
In most production environments, you want to build a server without a GUI. And with a minimum of packages installed, this means that your server uses less memory and CPU resources and has fewer packages to update/maintain, which also improves security by reducing the software "attack surface".
Download the latest DVD amd64 (64-bit) ISO image for Debian
Debian on CDs/DVDs
Start Debian Installation
Attach the Debian ISO to the virtual machine
Power on the VM and connect to the console, the Debian installer will start.
Select Language and Keyboard Layout
Select a language - English
Select your location - United Kingdom
Configure the keyboard - British English
Configure Server Hostname
Configure the network - enter the server hostname
Domain name - leave blank
Set up User Accounts
Set root password and save it in your password manager
Verify root password
Set up users and passwords - create another admin user account
In the next server setup guides, we will disable SSH access for root, so root can only be used to login to the VM console for emergency access.
"Root is your Spiderman costume. It gives you great power but requires great responsibility. It's there in the closet whenever you need it, so you don't have to wear it all the time."by Author
Username for your account
Set a password for the new user
Guided - use entire disk
In this example, we are creating a single partition that uses the entire disk.
Having separate partitions allows you to manage disk space usage and backups for different types of data.
Reference:Debian GNU/Linux Installation Guide
C.3. Recommended Partitioning Scheme
https://www.debian.org/releases/bullseye/amd64/apcs03.en.html by Author
Press [Enter] to select the virtual hard disk
Partition disks - All files in one partition (recommended for new users)
Finish partitioning and write changes to disk
Write the changes to disks - Yes
Configure Package Manager
Scan extra installation media - No
Use a network mirror - Yes
Select country for mirror
Debian archive mirror - deb.debian.org
The deb.debian.org mirror is backed by a global Content Delivery Network (CDN) that will connect you to the repository that is closest to your geographic/network location.
HTTP proxy - leave blank (unless you are using a web proxy on your network)
Participate in the package usage survey - No
Software selectionSelect these packages for a minimal server installation with no GUI:
- SSH server
- Standard system utilities
Install the GRUB boot loader
Install the GRUB boot loader to your primary drive - Yes
Device for bootloader installation - select the hard drive /dev/sda
Finish the installation - Continue
Install Useful Administration Utilities
These are some useful admin utilities that are not included in the Debian "standard system utilities" package.
apt-get install sudo curl unzip git
Debian GNU/Linux Installation Guideby Author