Arch Linux with Hyprland: A Beginner's Guide
Thu Jan 11 2024
Discover the power of Arch Linux and Hyprland, two popular choices for minimalist and highly customizable desktop setups. This tutorial will teach you how to install and configure both, providing you with a tailored desktop experience.
Introduction
What is Hyprland?
Hyprland is a Linux distribution based on Arch Linux. It is a rolling release distribution that is focused on simplicity and minimalism. It is designed to be lightweight and fast, with a clean and simple user interface. Hyprland is designed to be easy to install and use, with a focus on providing a stable and reliable operating system that is easy to maintain and update.
Why Hyprland?
Hyprland is a great choice for users who want a simple and lightweight Linux distribution that is easy to install and use. It is designed to be fast and efficient, with a clean and simple user interface that is easy to navigate. Hyprland is a rolling release distribution, which means that it is constantly updated with the latest software and security updates. This makes it a great choice for users who want to stay up to date with the latest software and security updates.
Hyprland is also a great choice for users who want a stable and reliable operating system that is easy to maintain and update. It is designed to be easy to install and use, with a focus on providing a stable and reliable operating system that is easy to maintain and update. Hyprland is a great choice for users who want a simple and lightweight Linux distribution that is easy to install and use.
Installation
Requirements
- A usb drive with at least 8GB of storage
- A ISO image of Arch Linux Download
- A computer with a 64-bit processor
- A stable internet connection
Installation steps
First, you need to download the Arch Linux ISO image from the Arch Linux website. You can download the ISO image from the Arch Linux website by clicking on the download link on the Arch Linux website.
Then, use Ventoy
to burn the ISO image to the USB drive. You can download Ventoy from ths website . Once you have downloaded Ventoy, you can craete bootable USB, then copy the ISO file to this.
Second, plug the USB drive into the computer that you want to install Arch Linux on. Then, you need to boot the computer from the USB drive. You can do this by restarting the computer and pressing the boot menu key when the computer starts up. The boot menu key is usually F12, but it can vary depending on the computer. Once you have booted the computer from the USB drive, you need to select the Arch Linux installation option from the boot menu.
Remember to disable
Secure Boot
in the BIOS settings
Now, started to install Arch Linux on your computer. You can follow the Arch Linux installation guide to install Arch Linux on your computer.
Check the internet connection.
If the internet connection is not working, you can use the following command to connect to the internet.
Set up drive partitions to install Arch Linux.
Create the partitions on the drive.
- Move the cursor to the free space and press
Enter
- Select the
New
option and pressEnter
- Set the size of the partition is
1G
and pressEnter
- Select
type
toEFI System
and pressEnter
- Go to the free space again and select the
New
option and pressEnter
- Set the size of the partition is at least
40GB
and pressEnter
Note: this partition is used to home directory
- Select
write
and pressEnter
to write the changes to the disk thenquit
to exit the cfdisk
Run archinstall
script to start the installation. In archinstall script, you can choose the following options:
Disk configuration
:- Choose
Pre-mounted configuration
to use the partitions that you have created - Enter the directory:
/mnt/archinstall
- Choose
Bootloader
: ChooseGRUB
as the bootloaderHostname
: Enter the hostname for the computerRoot password
: Enter the root passwordUser
: Create your user account and remember to set user assuperuser
Profile
:- Choose
Desktop
as the profile and selectHyprland
as the desktop environment - Choose
Graphics driver
and select GPU driver for your computer. In my case, I chooseNvidia
driver Greeter
: ChooseSDDM
as the greeter or something you like
- Choose
- Dont select
Audio
because I will installPulseaudio
later Additional packages
:- Choose
Yes
to install additional packages - Enter the package name:
pulseaudio
,grub
,efibootmgr
,os-prober
,neovim
- Press enter to verify the package name
- Choose
Network configuration
: ChooseUse NetworkManager
to manage the network connectionTimezone
: Choose the timezone for your location. In my case, I chooseAsia/Ho_Chi_Minh
- Finally, choose
Install
to start the installation process
After that, configure the system to boot into Arch Linux.
Then, config grub
boot menu
Uncomment the following line
Update the grub resolution by find and update the following line
Finally, reboot the computer and select the Arch Linux in the boot menu to start the system.
After reboot, open the terminal by press Win + Q
, and start to set up dual boot with Windows 11.
Now, you can reboot the computer and can see the Windows 11 in the boot menu.
Congratulation! You have successfully installed Arch Linux with Hyprland OS on your computer. Then, customize the system.
Set up
Installation
- Install
yay
- Install all packages
- Install
oh-my-zsh
Remember to choose
zsh
as your default shell
Then, install zsh plugins
- Optional: Install some stuffs
- UV (Python package manager)
- NVM (Node Version Manager)
- Generate SSH key
Then, add the SSH key to github using github-cli
- Uninstall unnecessary packages (optional)
Usage
- To apply my config, you can run the following command:
Then, create the symbolic links to the config files
- Change Wallpaper in
~/dotfiles/hypr/hyprpaper.conf
Or change file in ~/dotfiles/assets/_background.png
Note: If it show wrong time on Windows, you can run the following command to fix it
Conclusion
In this tutorial, you have learned how to install Arch Linux with Hyprland OS on your computer. You have also learned how to set up the system and customize it to your liking. I hope this tutorial has been helpful to you, and I wish you the best of luck with your new Arch Linux system. If you have any questions or need further assistance, please feel free to ask. Thank you for reading!
References
Document: Hyprland