The document discusses setting up and configuring the GRUB2 bootloader on Fedora Linux. It describes creating an EFI system partition, installing GRUB2 bootloader files, and generating a GRUB2 configuration file.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
38 views
Project Assignment
The document discusses setting up and configuring the GRUB2 bootloader on Fedora Linux. It describes creating an EFI system partition, installing GRUB2 bootloader files, and generating a GRUB2 configuration file.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4
Project 7-7
OBJECTIVE: Set up and use the Z shell.
DESCRIPTION: In this hands-on project, you install and explore the Z shell Command line is becoming an ever more important part of our workflow. We use it to install packages from npm, to test API endpoints, to push commits to GitHub, and lots more besides. ZSH is a shell of choice. zsh is a highly customizable Unix shell, that packs some very powerful features such as killer tab completion, clever history, remote file expansion, and much more. Different methods are employed to install A shell in different operating systems. For Windows 10 and 11 operating system you’ll need to activate Windows Subsystem for Linux (WSL), an environment for running Linux libraries. The following are steps employed to install Z shell on Windows 10, Follow the WSL installation guide first, and then install Zsh within the WSL. 1. Set Zsh as the Default Shell: After installing Zsh, you need to set it as your default shell. 2. Install Oh My Zsh: Oh My Zsh is a popular framework that makes it easy to manage Zsh configuration. You can install it by running the following command 3. Configuration: Oh My Zsh comes with a default configuration, but you can customize it. The main configuration file is ~/.zshrc. You can edit it using a text editor of your choice. 4. Plugins: Oh My Zsh supports various plugins. You can enable them by adding them to the plugins section in your ~/.zshrc file. For example, to enable the git plugin. 5. Themes: You can change your Zsh prompt theme by setting the ZSH_THEME variable in your ~/.zshrc. Choose a theme from the Oh My Zsh theme gallery. 6. Restart Zsh: After making changes to your ~/.zshrc file, restart your Zsh session. 7. Additional Tools (Optional): Powerline Fonts:Install Powerline fonts for a better visual experience with certain themes. Syntax Highlighting and Autosuggestions: You can enhance your Zsh experience by adding syntax highlighting and autosuggestions. Popular choices are the zsh-syntax-highlighting and zsh-autosuggestions plugins. Reference Pena, D., & Pena, D. (2023, August 4). Best material UI themes for stunning web applications. SitePoint. https://www.sitepoint.com/zsh-tips-tricks/ Community, L. (2022, October 29). What is Zsh? Should You Use it? Linux Handbook. https://linuxhandbook.com/why-zsh/ Project 8-1 OBJECTIVE: Use GRUB2. DESCRIPTION: In this hands-on project, you use and configure the GRUB2 boot loader on Fedora Linux. GRUB stands for GRand Unified Bootloader. Its function is to take over from BIOS at boot time, load itself, load the Linux kernel into memory, and then turn over execution to the kernel. Once the kernel takes over, GRUB has done its job and it is no longer needed. Configuring the GRUB2 bootloader on Fedora involves several steps. This procedure shows the steps to install GRUB2 on a UEFI system on Fedora 18 or newer. The procedure consists of four parts. Creating an EFI System Partition The UEFI firmware requires to boot from an EFI System Partition on a disk with a GPT label. To create such a partition: 1. List available block devices to find a place to create your ESP. $ lsblk 2. Create at least a 128 MiB disk partition using a GPT label on the primary hard disk. # gdisk /dev/sda For the sake of this procedure, we assume that the created partition is recognized as /dev/sda1. 3. Format the partition with the FAT32 file system. # mkfs.vfat /dev/sda1 4. Create the /boot/efi directory as a mount point for the new partition. # mkdir /boot/efi 5. Mount the partition to the /boot/efi mount point. # mount /dev/sda1 /boot/efi 6. Proceed to the next part. Install the bootloader files In order to use GRUB2 with on the UEFI systems, you need to install or re-install appropriate packages: 1. Re-install the necessary packages. # dnf reinstall grub2-efi grub2-efi-modules shim 2. If the above command ends with an error, install the packages. # dnf install grub2-efi grub2-efi-modules shim Create a GRUB2 configuration If you already have a working GRUB2 EFI configuration file, you do not need to do anything else. Otherwise, create the configuration file using the grub2-mkconfig command. # grub2-mkconfig -o /boot/grub2/grub.cfg Reference The GRUB2 Bootloader – installation and configuration. (n.d.). Fedora Docs. https://docs.fedoraproject.org/en-US/quick-docs/grub2-bootloader/ Both, D. (n.d.). An introduction to GRUB2 configuration for your Linux machine. Opensource.com. https://opensource.com/article/17/3/introduction-grub2-configuration-linux