Preparing the host name: echo "ENTER_YOUR_HOSTNAME_HERE" > /etc/hostnameĮcho 127.0. Ln -sf /usr/share/zoneinfo/Asia/Tbilsi /etc/localtime Let's start with some time zone and locale settings: # Timezone Remember: Change values as needed for YOUR setup. Set the root password right away, that way you won't forget later on (happened multiple times to me ) ): passwd rootĪfter this point you're working within your actual Arch installation. This is very helpful if you have trouble booting into your system and need to perform repairs from within the system. Tip: You can repeat the chroot step at any time. Think of this as life support for your not quite ready Arch installation. Instead we'll use chroot to jump into it from the live boot environment using it's kernel and everything. Your Arch Linux Root has been prepared, but of course it doesn't run just yet. What happens next is a bit mystifying to new users. You can skip them for now if you like and install them later on using pacman -S base-devel. Some of these need to be compiled from source and you'll also need the makepkg command as well as some other commonly used ones. Installing the base-devel collection will enable you to use AUR packages later on. This comes down to essentially two lines: pacstrap /mnt base linux linux-firmware base-devel Mount $ROOT_PART /mnt Installing Arch Linuxįinally we're ready to run the installation. Sizeįinally format and mount: mkfs.fat -F32 $EFI_PART When asked about the partition type choose gpt. Create the partitions as described in the table below or in whatever way you intend to layout your partitions. There are many other ways, but I find cfdisk to be hazle free and simple to use. I'm using cfdisk to set up the actual partitions. export SYSTEM_DEV = /dev/sdaĭd bs= 4 M count= 20 if=/dev/urandom of= $SYSTEM_DEV List your installed disks with fdisk -l to find out. Your disk might be called something like /dev/nvme0n1. Of course /dev/sda is just an example value. So use these instructions as a guide to come up with your own set of commands. A lot depends on your hardware and your preferred partition layout. Feel free to suggest changes to my way of doing it.Ĭonsider the following examples as just that. All I know is that installing an OS on computers with it is more challenging then it used to be. Timedatectl set-ntp true Disk preparationĭisclaimer: I'm not very knowledgeable about UEFI simply because I don't really care about it. Lastly I'm enabling NTP to make sure the system time is accurate: # Enable NTP If you're limited to WiFi, check out the wireless guide If you don't have a working internet connection, check out the "Connect to the Internet" section of the installation guide. Use ip a to list your network connection if you don't know your IP. This makes copy & pasting commands possible. No installer, no instructions, just a command line and root access.Īt this point I usually enable SSH access and continue the installation from another computer. Once you're booting from your freshly minted Arch Linux USB stick you'll find yourself in a terminal environment. I'm using it to burn the iso to a USB stick: sudo dd bs= 4 M if=/path/to/archlinux.iso of=/dev/sdx status=progress oflag=sync Post-Boot On Linux or Unix you'll find the dd command. Refer to this article if you're not on a Linux or UNIX system or can't use the command below for some reason. The Arch Linux Wiki provides a long-winded article on how to create a bootable USB stick covering almost all options. It's usually the fastest way to download the image and reduces the stress on the various HTTP/FTP mirrors. If you haven't done so already, download the Arch Linux iso. I used this approach multiple times to install Arch on Laptops, Desktops and VMs and ended up with solid and practical systems I use on daily basis. It's the first of three articles documenting my complete setup from bare metal to Plasma/KDE desktop. In this article I share my usual Arch Linux installation procedure on UEFI systems. The official installation guide is an excellent starting point. It's all part of the learning curve and looks a lot scarier then it really is. This makes Arch appear much less friendly to potential new users. It does not come with an installer like many other Linux distributions. It's greatly customizable and comes with a formidable selection of official packages and community maintained packages in the Arch User Repository. No major version updates and rarely ever will any of your packages be outdated by more then a few days. It's based on the rolling release philosophy. Arch Linux is a hugely popular Linux distribution.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |