

Remember to replace hostname in the command with the system hostname you set in the previous step. Leave the comments as is and append the following text to the file. You’ll notice that the file already contains some comments.

vim /etc/hostnameĬreate another text file with the name hosts under the /etc directory. When you’re done, don’t forget to save the file. This can be anything you want, and you don’t need to enter anything but the name. Next, create a new hostname file inside /etc and add the hostname you want for your computer in the file. vim /etc/locale.genĪfter editing the file, type locale-gen in the terminal to generate the locale configuration.

For the purpose of this guide, we will uncomment the en_US.UTF-8 UTF-8 line in the file using Vim. Next, edit the “/etc/locale.gen” file using your text editor and uncomment the locale statement that suits your needs. Format the /dev/sda1 (EFI) partition to FAT32 by typing: mkfs.fat -F32 /dev/sda1 Now you need to format the partitions using the mkfs command. RELATED: How to Choose a Partition Scheme for Your Linux PC Formatting the Partitions Type w and hit “Enter” to write the changes to the disk. The root partition should be of Linux filesystem type, so we don’t need to change it. Similarly, select the swap partition (partition number 2) and type 82 to convert the partition type to Linux swap. Then, type ef to change the filesystem to EFI System type. To change this, type t and hit “Enter” to proceed. RELATED: How Big Should Your Page File or Swap Partition Be?īy default, all the partitions will have the “Linux Filesystem” type. Finally, create a root partition and allocate all the remaining sectors to it by simply continuing with the default configurations. Similarly, create a swap partition with +2G as the last sector value. You are free to replace 550M in the aforementioned command with the size you want for the partition. Type +550M and press “Enter” to continue. Since you don’t want to waste disk space on EFI partitions, any number between 500M and 1G would work. For the partition size, you can either enter the sector number manually or specify the size you want the partition to have.
