From 63a13122d5b96d585b32fe650a8e88029e35a46f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=AD=E5=BC=80=E7=AE=B1?= Date: Mon, 12 Dec 2022 18:52:49 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=89=8B=E5=8A=A8=E9=80=89=E9=A2=98][tech]:?= =?UTF-8?q?=2020221212.1=20=E2=AD=90=EF=B8=8F=E2=AD=90=EF=B8=8F=20How=20to?= =?UTF-8?q?=20Install=20the=20Minimalist=20ArchBang=20Linux=20Distro.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...to Install the Minimalist ArchBang Linux Distro.md | 301 ++++++++++++++++++ 1 file changed, 301 insertions(+) create mode 100644 sources/tech/20221212.1 ⭐️⭐️ How to Install the Minimalist ArchBang Linux Distro.md diff --git a/sources/tech/20221212.1 ⭐️⭐️ How to Install the Minimalist ArchBang Linux Distro.md b/sources/tech/20221212.1 ⭐️⭐️ How to Install the Minimalist ArchBang Linux Distro.md new file mode 100644 index 0000000000..2a0195401f --- /dev/null +++ b/sources/tech/20221212.1 ⭐️⭐️ How to Install the Minimalist ArchBang Linux Distro.md @@ -0,0 +1,301 @@ +[#]: subject: "How to Install the Minimalist ArchBang Linux Distro" +[#]: via: "https://itsfoss.com/install-archbang/" +[#]: author: "Sreenath https://itsfoss.com/author/sreenath/" +[#]: collector: "lkxed" +[#]: translator: " " +[#]: reviewer: " " +[#]: publisher: " " +[#]: url: " " + +How to Install the Minimalist ArchBang Linux Distro +====== + +ArchBang is a minimal and lightweight [Arch Linux based distribution][1]. It uses the i3 window manager. With its minimal nature, ArchBang can help you revive your old computer or low-end devices. + +There are two ways to install Arch Bang: + +- Using the guided installer script +- Following Arch wiki + +No prizes for guessing that using the guided installer script will be easier to follow. + +In this tutorial, I’ll show you the steps for installing ArchBang with its text-based installer script. + +Please [check if your computer has UEFI or the legacy BIOS system][2]. Some steps are different for them. + +I have performed the demo in a virtual machine. And hence the wifi configuration part is not there. Internet connection is not mandatory here; you can also install it offline. You can connect to wifi from within the system after successfully installing ArchBang. + +Also, this method will remove any other operating system installed on your disk. Please be mindful of that. + +### Download ArchBang Live ISO + +To install ArchBang, you need the live ISO first. + +You can go to their [official website and download the required ISO][3], as shown in the below screenshot. + +![go to archbang iso images to download the iso file from sourceforge][4] + +It brings you to their Sourceforge page. Download the ISO, which is approximately 1.2 GiB in size. + +### Create the Live USB of ArchBang + +Once downloaded, you should make a bootable USB of ArchBang. You can [use software like Balena Etcher][5] to create it. It’s quite simple to use. + +Plug in your USB, browse to the downloaded ISO file and then hit the Flash button. + +![etcher flash][6] + +### Using text-based ArchBang installer + +ArchBang live ISO will bring you to the default i3 desktop with conky running. + +![archbang live iso home screen][7] + +You have two methods to start the installation process: + +- Press **Super + I** (as per desktop conky) to start installation directly. +- Press **Super + T** to enter the terminal and use the command: `sudo abinstall` + +A terminal with several options will appear when you do the above step: + +![archbang installer][8] + +The above screenshot shows the main menu of ArchBang installer. You can select each section with the associated number. + +When you complete each category of the above installer, it will return to this menu and you can select the next category by pressing the corresponding number and Enter key. + +Also, the completed sections will be checked with an “x” mark. + +#### Step 1: Select / Set Partition + +On the new installer screen, enter “1” to start [partitioning the disk][9]. + +Inside this, select the **Default** option. The installer has several tools to partition the disk, like cfdisk, fdisk, parted, etc. I used fdisk to do the job. + +##### Partitioning for Non-UEFI system + +Once the tool is selected, it will ask to choose the storage device. In my case, it was `/dev/sda` . Select the appropriate choice in your context. + +To start partitioning, enter “n” for a new partition. After that, select **Primary Partition.** + +![creating partition for non uefi system][10] + +For [non-UEFI systems][2], you can create one single root partition for all purposes. So, accept all the default values for “First Sector” and “Last Sector”. Then, press “w” to write the changes. + +On the next screen, you have to choose your filesystem and swap method. In this tutorial, I am using the EXT4 file system and Swap to File as the swap method. + +So set those according to the screenshot. + +![format the disk and select ext4 partition][11] + +##### Partitioning for UEFI system + +For UEFI users, you need to have two partitions, one EFI, with a 550 MB space, and another main root partition with the rest of the space (Swap as a file setting). + +Press n and select **Primary Partition.** Then select the Partition number as 1. + +Accept the default value for “First sector”. Now enter “+550M” as the value for “Last Sector”. + +Once again, press “n” and select **Primary Partition**. Accept the default value for the first and last sectors. + +![create two partitions for efi system][12] + +Press “t” to change the type and select the partition number “1” or `/dev/sda1`, whose type is to be changed from “Linux” to “EFI”. + +Select the partition type as EFI, as shown below: + +![change type of smaller partition to efi][13] + +Press “w” to write the changes. Then it will ask for filesystem selection. Here, you need to select the larger partition as the root partition (/dev/sda2, that is option 2 in the below screenshot). + +![select larger partition for root partition in efi system][14] + +Select EXT4 filesystem. This will again ask for mounting EFI partition. + +![select efi partition][15] + +In this step, you need to select the EFI partition at `/dev/sda1` and choose the mount point as `/boot/efi` . This will ask for format. Give consent by pressing “y”. + +Also, don’t forget to choose the swap to file option. + +#### Step 2: Start ArchBang installation + +This is pretty simple. Select the Install ArchBang option from the main menu by pressing the corresponding number (2 in this case). It will start the installation process. + +![installing archbang progress bar][16] + +You should wait for some time to complete the installation. + +#### Step 3: Set Hostname + +Once installation is completed, Select the 3rd option on the main menu, which is for setting the hostname. You need to enter a hostname. + +![provide hostname and press enter][17] + +#### Step 4: Set Location + +Location/Time Zone is typically mentioned in Zone/City format. I used Asia/Kolkata as the time zone. + +The installer provides the list of available zones and cities; you need to enter the number corresponding to your choice. + +![set time zone info][18] + +Also, set your location the same way. + +#### Step 5: Set Hardware Clock + +You have two options; Set Hardware Clock to UTC or Local Time. + +![set hardware clock time][19] + +There are two time standards:** localtime** and Coordinated Universal Time (UTC). The localtime standard depends on the current time zone, while UTC is the global time standard and is independent of time zone values. + +Enter your choice and press Enter key. + +#### Step 6: Set Locale + +Usually, you set the locale to en_US, if you are unsure what to do. That should be fine for most English-speaking users. + +If you want to use the operating system in some other language like French, Spanish, Dutch etc, you can choose the appropriate locale from the list. + +![set locale][20] + +#### Step 7: Desktop Keyboard Layout + +Similarly, most users should be fine with US keyboard. If you have some other keyboard (like French, or Italian), enter the appropriate choice from the available ones. + +![set desktop keyboard layout][21] + +#### Step 8: Configure Bootloader + +In ArchBang, you get GRUB2, Syslinux, or Systemd for the bootloader. To make it simple, I am selecting GRUB2 from the choice. + +![select grub2 as bootloader][22] + +Now, it will ask you to specify the method to install GRUB. Select **Automatic** and press enter. + +![select automatic grub][23] + +#### Step 9: Set Root Password + +Now, you should enter the root password. Select “Root Password” from the main menu. + +![enter and confirm root password][24] + +Here, enter and confirm the root password. + +#### Step 10: Create a New User + +Using a system with only a Root User is not secure. So, you should create a new user. In this installer, select the 10th option. Here, you should type a user name, password and confirm the password. + +![create user and password][25] + +Once done, press Enter to go to the main menu. + +#### Step 11: Finish configuration + +At this stage, you have reviewed all the configurations needed. You can now make it to effect by entering the letter “d” as shown in the screenshot below: + +![enter d option to finish the installation][26] + +This will ask permission to reboot your system. + +![press y to reboot your system to new archbang][27] + +Entering “y” will reboot your system to the newly installed ArchBang system. + +### Post Installation Tweaks + +Once rebooted, you will land in the same console. Probably there is no [display manager][28] installed. Here you should enter the username and password and press enter. + +![login to archbang through tty][29] + +This will bring you to the i3WM. + +![installed archbang with i3wm][30] + +Once installed, you need to do a couple of update tasks. **Connect to the internet first**. + +Firstly, you need to update the Pacman keys and archlinux-keyring. + +To do the same, open a terminal by pressing **Super + T** and run the following commands one by one: + +``` +sudo pacman-key –init +sudo pacman-key –populate +sudo pacman -Syyu archlinux-keyring +``` + +This will update system packages and keyrings. Reboot your system. + +Now, you should install a display manager. I prefer LightDM display manager. So open a terminal and enter the following command to install it: + +``` +sudo pacman -S lightdm lightdm-gtk-greeter +``` + +Once installed, use the following command to start the Lightdm service: + +``` +sudo systemctl enable lightdm.service +``` + +You will get a good and minimal login screen from the next reboot. + +![lightdm login screen in archbang][31] + +You can now enjoy ArchBang Linux according to your liking. + +### Wrapping Up + +ArchBang brings a good Arch Linux experience coupled with a not-so-hard installer and i3WM as the window manager. + +I understand that using a text-based installer like this one could be intimidating for some users. But then, it is [one of the joys of the Arch Linux][32] domain. It feels like a challenge and when you successfully install it, it gives you a sense of accomplishment. + +I have tried to detail all the steps with the necessary explanation. Please let me know if you face any issues or if you have any questions. + +-------------------------------------------------------------------------------- + +via: https://itsfoss.com/install-archbang/ + +作者:[Sreenath][a] +选题:[lkxed][b] +译者:[译者ID](https://github.com/译者ID) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 + +[a]: https://itsfoss.com/author/sreenath/ +[b]: https://github.com/lkxed +[1]: https://itsfoss.com/arch-based-linux-distros/ +[2]: https://itsfoss.com/check-uefi-or-bios/ +[3]: https://sourceforge.net/projects/archbang/files/ +[4]: https://itsfoss.com/wp-content/uploads/2022/12/go-to-archbang-iso-images-to-download-the-iso-file-from-sourceforge.png +[5]: https://itsfoss.com/install-etcher-linux/ +[6]: https://itsfoss.com/wp-content/uploads/2022/06/etcher-flash.png +[7]: https://itsfoss.com/wp-content/uploads/2022/12/archbang-live-iso-home-screen.webp +[8]: https://itsfoss.com/wp-content/uploads/2022/12/archbang-installer.png +[9]: https://itsfoss.com/partition-managers-linux/ +[10]: https://itsfoss.com/wp-content/uploads/2022/12/creating-partition-for-non-uefi-system.png +[11]: https://itsfoss.com/wp-content/uploads/2022/12/format-the-disk-and-select-ext4-partition.png +[12]: https://itsfoss.com/wp-content/uploads/2022/12/create-two-partitions-for-efi-system.png +[13]: https://itsfoss.com/wp-content/uploads/2022/12/change-type-of-smaller-partition-to_efi.png +[14]: https://itsfoss.com/wp-content/uploads/2022/12/select-larger-partition-for-root-partition-in-efi-system.png +[15]: https://itsfoss.com/wp-content/uploads/2022/12/select-efi-partition.png +[16]: https://itsfoss.com/wp-content/uploads/2022/12/installing-archbang-progress-bar.png +[17]: https://itsfoss.com/wp-content/uploads/2022/12/provide-hostname-and-press-enter.png +[18]: https://itsfoss.com/wp-content/uploads/2022/12/set-time-zone-info.png +[19]: https://itsfoss.com/wp-content/uploads/2022/12/set-hardware-clock-time.png +[20]: https://itsfoss.com/wp-content/uploads/2022/12/set-locale.png +[21]: https://itsfoss.com/wp-content/uploads/2022/12/set-desktop-keyboard-layout.png +[22]: https://itsfoss.com/wp-content/uploads/2022/12/select-grub2-as-bootloader.png +[23]: https://itsfoss.com/wp-content/uploads/2022/12/select-automatic-grub.png +[24]: https://itsfoss.com/wp-content/uploads/2022/12/enter-and-confirm-root-password.png +[25]: https://itsfoss.com/wp-content/uploads/2022/12/create-user-and-password.png +[26]: https://itsfoss.com/wp-content/uploads/2022/12/enter-d-option-to-finish-the-installation.png +[27]: https://itsfoss.com/wp-content/uploads/2022/12/press-y-to-reboot-your-system-to-new-archbang.png +[28]: https://itsfoss.com/display-manager/ +[29]: https://itsfoss.com/wp-content/uploads/2022/12/login-to-archbang-through-tty.png +[30]: https://itsfoss.com/wp-content/uploads/2022/12/installed-archbang-with-i3wm.png +[31]: https://itsfoss.com/wp-content/uploads/2022/12/lightdm-login-screen-in-archbang.png +[32]: https://itsfoss.com/why-arch-linux/