How to Install Debian Linux

Debian Linux Server SSH Uncategorized VirtualBox Virtualization

I will be installing this using VirtualBox.

Create a new virtual machine by selecting the ‘New’ button in Oracle VM VirtualBox Manager

Create Virtual Machine

Now choose the location you would like to store your VDI file and select the size you would like to allocate. I will be setting the size to 8 GB and choosing to use a dynamically allocated storage. This will only use the space that the VM is using on my physical hard disk. Then select ‘Create’.

Create Virtual Hard Disk

Now we need to mount out ISO. From the main manager screen, select your Debian machine on the left, then ‘Settings’ on the top. In the new dialog box, select ‘Storage’ on the left, then select the ‘Empty’ icon under ‘Storage Devices’. Now on the right select the disk icon next to ‘IDE Secondary Master’. Brows to wherever you downloaded your copy of Debian and select it. Now click ‘OK’.

Virtual Box Storage Settings

Now select ‘Start’. A new window will open, you should see the Debian GNU/Linux installer menu. From this menu you will select a ‘Graphical install’ or a non-graphical ‘Install’. I will be choosing the ‘Install’ option.

Debian GNU/Linux installer menu

The next steps are straight forward. Select your language, choose your location and choose the keyboard layout.

5.01

Image 1 of 3

Debian Select a language

Now we will setup the network. My install picked up DHCP so we will configure a static IP address after we complete the setup. You will need to create a hostname. I am going to be very original and name it Debian.

Debian Configure the network

As always you are going to want to create a strong password for the root user. In a future how-to we will disable the root user from SSH login. You will also need to create a new user for non admin use.

7

Image 1 of 3

Debian Set up users and password

You may need to select your time zone.

Debian Time Zone

The next screen will be the options for partitioning the disk. I will be choosing the first option of “Guided – use entire disk”. Information on the other two guided options can be found <here>. Then select the disk to be partitioned.

11

Image 1 of 2

Debian Partition disks

You can make a few different selections on the next screen. I will be going with the first options.

Debian Partition disks

If everything looks good, select ‘Finish partitioning and write changes to disk’. Because this will format the partition you have to confirm that you want to do this. Choose “Yes” on the next screen.

14

Image 1 of 2

Debian Partition disks

I will be choosing “No” on the next screen. You will need to select your country on the next screen. Then you will need to select the deb.debian.org mirror.

Configure the package manager

Image 1 of 3

Configure the package manager

If you are using a proxy, you will enter the info on this screen. I will not, so it will be left blank.

If you would like you can send statistics to the developers. I will be choosing ‘No’ for this.

Debian Configuring popularity-contest

On this screen I will choose to not install a Debian desktop environment. I will also de-select print server and select SSH server.

Debian Software selection

Now we are going to choose ‘Yes’ to install the GRUB boot loader on the HD. Select /dev/sda option on the next screen

Install the GRUB boot loader

Image 1 of 2

Install the GRUB boot loader

Lastly select ‘Continue’ to complete the installation.
If all has gone correctly the system should reboot. When the system is booted back up you should be at a Debian login prompt. Your next steps will be to install an SSH server, disable root SSH login and create a private key to use for SSH authentication.

 

https://amzn.to/33Wekkb

https://amzn.to/3cpgaxB

Leave a Reply