Personalized Gentoo Linux Installation on the Acer Predator Neo 16
Date: Sunday, September 1st, 2024
Introduction
This guide provides a step-by-step walkthrough for installing Gentoo Linux on an Acer Predator Neo 16 laptop. Gentoo Linux is a source-based distribution that allows for extensive customization and optimization, making it an ideal choice for users who want a tailored operating system that performs optimally on their hardware.
Motivation
Transitioning from Windows to Linux can be challenging. Instead of taking the gradual approach, I decided to immerse myself completely by installing Gentoo Linux. My aim was to wipe my hard drive and start fresh, leveraging the flexibility and customization that Gentoo offers.
Goals
- Utilize as few commands as possible.
- Conduct the installation primarily from the command line.
- Automate as much of the process as possible.
- Complete a minimal Gentoo Linux installation.
- Streamline the installation process.
- Customize Gentoo Linux to personal preferences.
Preparation
Hardware Requirements
According to the Gentoo Linux Handbook, the AMD64 live disk requires:
- CPU: Any x86-64 CPU.
- Memory: At least 2 GB.
- Disk Space: Minimum of 8 GB.
- Swap Space: At least 2 GB.
Installation Environment
To install Gentoo Linux, you'll need a suitable installation environment, which includes:
- Gentoo Linux Minimal Installation CD: A small, bootable image with a self-contained Gentoo environment.
- Bootable Media: A USB flash drive (preferred) or CD/DVD to write the installation image.
Writing a Bootable USB Flash Drive
Writing with Microsoft Windows
1. Install Gpg4win for File Verification
-
Download Gpg4win:
- Visit gpg4win.org.
- Click Download Gpg4win.
- Choose an amount to donate or enter 0 to download for free.
- Click Download.
-
Verify Gpg4win Installer Signature:
- After downloading, right-click the Gpg4win executable and select Properties.
- Navigate to the Digital Signatures tab.
- Select the signature and click Details.
- Click View Certificate, then Details.
- Verify the certificate details to ensure authenticity.
-
Install Gpg4win:
- Run the Gpg4win installer and follow the on-screen instructions.
2. Download Gentoo Installation Files
-
Download the Minimal Installation CD:
- Visit the Gentoo Downloads Page.
- Under Minimal Installation CD, click the appropriate link for your architecture (e.g., amd64).
- Save the ISO file to your Downloads folder.
-
Download the Signature File:
- Right-click the
.asc file corresponding to the ISO.
- Select Save link as... and save it to your Downloads folder.
3. Verify the Gentoo ISO File
-
Open PowerShell:
- Press Win + X and select Windows PowerShell.
-
Import Gentoo's GPG Key:
gpg --keyserver hkps://keys.gentoo.org --recv-keys 13EBBDBEDE7A12775DFDB1BABB572E0E2D182910
-
Navigate to Downloads Folder:
cd Downloads
-
Verify the ISO File:
gpg --verify .\install-amd64-minimal-*.iso.asc
- Ensure the output states that the signature is good.
4. Create a Bootable USB with balenaEtcher
-
Download balenaEtcher:
-
Install balenaEtcher:
- Run the installer and follow the prompts.
-
Flash the Gentoo ISO to USB:
- Open balenaEtcher.
- Click Flash from file and select the Gentoo ISO.
- Click Select target and choose your USB flash drive.
- Click Flash! and wait for the process to complete.
Booting into the Installation Media
-
Insert the Bootable USB into the Acer Predator Neo 16.
-
Restart the Computer and access the BIOS/UEFI setup:
- During startup, press F2 to enter the BIOS settings.
-
Change Boot Order:
- Navigate to the Boot section.
- Set the USB flash drive as the first boot device.
- Save changes and exit the BIOS setup.
-
Boot from USB:
- The system will reboot and present the GRUB boot prompt.
- Press Enter to boot with default options.
-
Select Keyboard Layout:
- When prompted, press Enter to select the default US keyboard layout.
-
Access the Terminal:
- After booting, you'll be presented with a root prompt in the terminal.
Installation Steps
Configuring Wi-Fi
To connect to a Wi-Fi network from the command line:
1. Generate Wi-Fi Configuration
Replace <SSID> with your Wi-Fi network name and <password> with your Wi-Fi password (include the quotation marks around the password):
wpa_passphrase <SSID> "<password>" > /etc/wpa_supplicant/wpa_supplicant.conf
2. Remove Plaintext Password from Configuration
To prevent the password from being stored in plain text:
sed -i '/^#/d' /etc/wpa_supplicant/wpa_supplicant.conf
3. Identify Wireless Interface
Find the name of your wireless network interface:
iwdev=$(ip link show | awk '/wl/{print $2}' | sed 's/:$//')
4. Connect to the Wi-Fi Network
Start the wpa_supplicant service with your wireless interface:
wpa_supplicant -B -i "$iwdev" -c /etc/wpa_supplicant/wpa_supplicant.conf
5. Obtain an IP Address
Get an IP address using DHCP:
dhcpcd "$iwdev"
6. Verify Network Connectivity
Test the connection by pinging external servers:
ping -c 3 1.1.1.1
ping -c 3 gentoo.org
- If you receive replies, the network connection is successful.
Proceed with Gentoo Installation
With network connectivity established, you can now follow the official Gentoo Handbook to complete the installation process, which includes:
- Partitioning the disks.
- Installing the base system.
- Configuring the kernel.
- Setting up boot loaders and services.
Conclusion
By following this guide, you've prepared your Acer Predator Neo 16 for a personalized Gentoo Linux installation. The process emphasizes command-line proficiency, minimalism, and automation, aligning with the goals of a tailored and efficient system setup.
Next Steps:
- Continue with the Gentoo installation as per the handbook.
- Customize your system further by selecting appropriate USE flags and optimizing compile options.
- Install additional software as needed for your workflow.
This how-to article provides a structured and clear approach to installing Gentoo Linux on specific hardware, catering to users who prefer a hands-on and customized installation experience.