The installation of the Debian operating system is generally the same, any version. And tutorials / installation guide Debian has been widely spread on the internet. You can easily get it in an instant through google search engine. Then what is so special this tutorial that I write this?
Hehehe … nothing special. Notes (not tutotial loh yah) I am just explaining how to manually install with partitions. Because most Debian installation tutorials are with auto partitioning. Well, on this note will be practiced how to install Debian 9 (Stretch) with automatic partitioning.
Okay, no need to be long. The example of this case:
You are required to install a server with the following conditions
- Create a 10GB partition and associate it to / (root partition)
- Make sure the swap partition size is 2xRAM
- Create a partition for / home with the maximum size
- Also create a partition for / var with a size of 30% of the partition for / home
All right, let’s be executed. When creating this note, I use VirtualBox to install Debian 9. Because if using a real server I can not take a screenshot :-P.
Figure 01: Initial view
Turn on VirtualBox, create and run the Debian VM so it looks like Figure 01 above. There are several options there, I will use the text mode installation, then I take the second option, Install. Press the up or down direction keys to change the selection, then press [Enter]
Figure 02: Select Language
Search and select the language to use in the Installation process, choose Bahasa Indonesia to follow my notes.
Figure 03: Are you sure you choose Indonesian?
Select [Yes] to continue with the selected language. The explanation on the picture is pretty clear, I think.
Figure 04: Select a location
Again, choose Indonesia.
Figure 05: Keyboard layout
For this one, leave the default (English American), do not change, directly press [Enter]. Unless you’re sure the keyboard layout you’re using is not it.
Figure 06: Setting up the network
Well, in this network configuration I chose not to set the network. My NAT is disabled, so will not be able to IP from DHCP server. Select the bottom, then press [Enter].
Figure 07: Setting up the network
Set hostname, hostname is the computer name. It’s free, as you please. In this case I use debian-server as its hostname. Press [Enter] to continue.
Figure 08: Password for root account
Ah, actually already quite clear explanation on the picture. Starting on this Debian 9 (Stretch), super root user account may not be given a password, instead a user account will be created and authorized to root with the “sudo” command. But incidentally, I chose to enter a password here :-P. Press [Enter] to continue.
Figure 09: Password again
Enter the password again.
Figure 10: User name
Type in your full name, or type samsul maarif if you want to use my name :-). Press [Enter] to continue.
Figure 11: Account name
The account name will usually automatically use the first name. Just press [Enter] to continue.
Figure 12: Password for user account
Type the password for the user’s account. This password is mandatory. This is used to log in to the system.
Figure 13: Time zone
Select the time zone corresponding to where you live. Then press [Enter] to continue.
Figure 14: Partition the hard disk
Well, here it is. The essence of this note. Because the installation will be done with manual partitioning. Select Manual, then press [Enter] to continue.
Figure 15: Partition the hard disk
In the picture 15, it looks hardisknya partition is still empty.
If on your hard drive there are many partitions, make sure the data on the hard disk partition is already DIBACKUP alias SHIPPED, delete all existing partitions. How to remove it? Navigate to the hard drive whose partition will be deleted, press [Enter], then select yes to delete it.
If you are not quite sure, please select the <back> button and uninstall.
After the partition is empty like the image 15, proceed to the next process. Select on EMPTY ROOM, then press [Enter] to continue.
Figure 16: Create a new partition
Select Create new partition, then press [Enter] to continue musikji.
Figure 17: partition size
Well again, because the requested 10 GB for /, then make first partition.
Figure 18: Partition type
Select Primary, then press [Enter] to continue.
Figure 19: partition location
Select Start, then press [Enter] to continue.
Figure 20: partition
If successful will appear as Figure 20. Make sure the hook point is /, the file system I currently use is the Ext4 journal file system. Select Done to compile the partition, then press [Enter] to continue.
Figure 21: create a new partition
Next, point to EMPTY ROOM, then press [Enter] to continue creating the partition again.
Figure 22: create a new partition
Select Create new partition, then press [Enter] to continue.
Figure 23: partition for swap
What is asked on the question is the 2xRAM swap partition, while the RAM I use on VirtualBox is 1 GB. So I created a new partition 2 GB size, press [Enter] to continue
Figure 24: New partition type
Select Logical, press [Enter] to continue.
Figure 25: the location of the partition
The explanation in the picture is clear enough, right? Select Start, press [Enter] to continue.
Figure 26: change the file system
Well, since this partition will be used as swap, point to Use as :, press [Enter].
Figure 27: file system options
Drag down, and select swap space, press [Enter] again.
Figure 28: swap done
Drag again down, select Done compile the partition, press [Enter] again.
Figure 29: blank space
Just 2 partitions are created, then point again to ROOM EMPTY, press [Enter] to create a new partition.
Figure 30: create a new partition
Just like before, select Create new partition, press [Enter] again.
Figure 31: partition size
Because the requested is to create the / home and / var partitions. First create partition for / var for easier, enter 30% number, press [Enter] to continue.
This will create a new partition of 30% of the rest of the hard drive.
Figure 32: partition type again
Select logical again, press [Enter] to continue.
Figure 33: new partition location again
Select Start, press [Enter] to continue again.
Figure 34: change the hook point
Point at the point of the hook where it appears / home, press [Enter], the latch point option will appear.
Figure 35: choice of hook point
Select / var to change / home. Partitions for / home are made later. Press [Enter] to continue.
Figure 36: Completed arranging the partition
Once sure enough looks like the picture above, the Hook point section is directed to / var. Select Done to compile the partition, press [Enter] on the keyboard to continue.
Figure 37: The remaining free space
Navigate back to ROOM, [Enter] again on the keyboard to continue.
Figure 38: Create a new partition
Press [Enter] on the keyboard to continue.
Figure 39: the size of the new partition
Well, the size of this partition should not be changed, because whatever the rest will be used entirely as partition for / home. Except, if will make partition again other than for which already mentioned here. Directly press [Enter] on the keyboard to continue the next stage.
Figure 40: Logical
Select the Logical partition type, press [Enter] to continue again.
Figure 41: partition / home
After looking like 41 above, this hook point leads to / home. Select Done compile the partition, [Enter] on the keyboard to continue.
Figure 42: Complete partitioning
In this step, the results of the created partition are created. As in the picture, there is a file system, size, hook point, etc.
– Logical partition always starts with number # 5, because maximum primary partition is 4 partition.
– f there means that the partition will be formatted.
Figure 43: Partition Confirmation
Up to this point, before <Yes> is selected, your hard drive remains intact. Have not done anything yet. So, if you cancel the installation process at this stage, your hard drive is still intact.
On the question Write the changes that occur on the hard disk ?, select <Yes>, press [Enter] to confirm the change. Wait a while, your hard drive is being formatted, created some partitions as requested.
Figure 44: Repository of the DVD
When the display appears as in figure 44 above, select <No>.
As is known, Debian is divided into several DVDs, DVD 1 is an installer and contains some packages, DVD 2 & 3 contains only packages. Packages in this case may be referred to as repositories. The repository is an application pack storehouse. When installing an application on Debian through a management package, the application package is retrieved from the repository.
Selecting <Yes> will require you to enter DVDs 2 & 3, will certainly extend the installation process.
Figure 45: use mirror?
Select <No> too, press [Enter] to confirm.
Repositories, either online or via DVD can be set after the installation process.
Figure 46: popularity contest
As written on the picture, the survey results will be used to determine which packages should be included on the first Debian CD. Select <Yes>, if you intend to participate, select <No> if you do not participate. Press [Enter] to confirm.
Figure 47: Choice of package
Because it will install Debian as a server, only some packages will be installed. Use the [Space] (space) button on the keyboard to enable and disable the package options to install.
Figure 48: SSH Server
Just select SSH Server and the only standard System tool on this practice. Press [Enter] to continue. Wait some time until the installation is complete, until the next display appears.
Figure 49: Install the boot loader
Well, pretty clear explanation on the picture, is not it? Select <Yes>, then press [Enter].
Figure 50: Select the hard disk
Select the device (hard disk) to install the boot loader. In this case the only hard disk is / dev / sda. If there are other hard disks, make sure to select the correct one, which is the hard disk associated with / earlier. Select / dev / sda in this case, then press [Enter].
Figure 51: The installation is complete
Up to this point the installation has been completed. Select <Continue> to end the installation and the computer will be restarted. For the next will go into the newly installed system.
Make sure CD / DVD installation media is removed. So when the computer re-ignited not go back to the installation process.
Figure 52: GRUB boot loader
Display GRUB Boot loader when logged in to the newly installed Debian system.
Figure 53: login view
This is a login view, like an entrance to a newly created home. Enter a username and password to log in to the system.
NOTE! The password in Linux will not be visible, so just type the password, then press [Enter]
Figure 54: successful login
If the username and password you type are correct, you will log in to the system. Marked with username @ namahost: ~ $, in this case my username is samsul and hostname is debian-server.
Oops, you forgot the password you typed during installation? Yes, please re-install your system. Make sure not forget again, itung-itung learn to understand the installation process. Or learn how to reset passwords to log into a Linux system, especially Debian