Today I accidentally deleted my primary OSX partition from my very old MacBook air 4,2 (2011) with the last installed os was el Capitan. From the beginning, I just want to give my MacBook some extra space but it turns out cleaning all the HDD …LOL, I seriously don’t know how in the hell this could happen, this is a lesson for not to clean your HDD in the middle of the night.
And then I follow up the step from the Apple website on how to reinstall OSX, turns out that I have to download a 10Gb update including el Capitan.
Whaaa whaa whaaaaattttt!!!
Without a doubt, I immediately cancel the download, had crossed my mind to get a Linux OS. So many distros can be installed, googled around and I found that Archlinux is a better option because of its crowded community, simplicity, and support for many file systems. And also I like how ArchLinux define simplicity,
without unnecessary additions or modifications
much more customizable by your needs, imagine it as one big playground of LEGO blocks for the operating system. You only need a 500Mb Archlinux Iso to get this done, Compare with 10Gb download and endless waiting.
I’d like to share my experience starting from installing Archlinux and get started with Archlinux, me myself is not a Linux power user, I do a lot of googling to get through the installation, so here I’ll explain all of my findings.
Get the ISO forget the Archboot
I’d like to have something such as ubuntu light GUI that will guide you through the installation step, so then I found Archboot, been trying to install Archlinux from Archboot USB bootdisk several times with no luck so it’s just wasting my time, it seems this arch boot iso is outdated, I gave up. It would be better if you could just use the iso that you can download here https://www.archlinux.org/download/
Boot to Arch ISO
- Download the iso flash it to your usb disk with dd command or any software, check this great post of raspberrypi installation for reference.
- You may need a usb-ethernet dongle to connect with the internet, or some people using their cellphone internet tether through usb cable.
Plug in your USB bootdisk and hold ‘alt/option’ button while your system boots up, choose the USB to boot from.
Partition
After boot system is up, check your available drive,
|
|
Delete all partitions on your ssd, and then create 4 partitions, these are partitions from my current installation,
|
|
As you can see my boot partition is 1G, this was actually unintended, everything could go wrong if you did this in the middle of the night. 256Mb should be enough for /boot partition.
|
|
I’m always keep this url open while partitioning cgdisk-walkthrough
|
|
After you’re done, format and mount your newly created partition, File system root / inside the terminal belongs to USB stick, while everything mounted inside /mnt is the target media AKA your SSD.
|
|
Installation
|
|
Modify fstab configuration for SSD drive type, this is important, do not skip.
|
|
add additional parameters,
|
|
Mine will look like this,
|
|
Connect the internet
If you’re using ethernet cable or usb cable, you may check your network interface with this,
|
|
My interface is wlp2s0b1
|
|
If you can use WiFi, connect it with this command,
|
|
System Configuration
|
|
|
|
Uncomment UTF8 locale,
|
|
|
|
Add user account,
|
|
Change yourself to your liking.
Give yourself sudo rights,
|
|
|
|
The Bootloader
I’m not goin to dualboot this macbook so then I’m not gonna use GRUB nor REFIND for booting into the system, I’m gonna use <strong>systemd-boot</strong> to boot into archlinux,
|
|
After the systemd-boot (gummiboot) installed, we need to add a boot entries for archlinux.
Create a file for boot entry within this directory path,
|
|
First you need to get your root “/” (/dev/sda3) PARTUUID,
|
|
Edit the arch.conf file add this entry, replace root PARTUUID with this one ed724519-29ca-4e08-b27a-b4852d310dee
|
|
And now lets tell the boot manager to use this arch.conf configuration,
|
|
Before rebooting, you may want to install some network tools,
|
|
also install networkmanager and enable it using NetworkManager.service. Read Arch wiki for more info.
You’re done now for installation, lets reboot,
|
|
Post Installation
Configure your wifi
You can use wifi-menu, netctl, dhcpd or anything to connect, here we try to use network manager,
|
|
Install CPU tools
|
|
Edit /etc/default/cpupower
|
|
Sound Utilities
|
|
Install Xorg
|
|
Install Desktop GUI
There is so many desktop GUI that you may want to experience yourself, but XFCE4 is become my first choice because of speed and flexibility.
|
|
Install Display Manager (User Login)
Same as desktop GUI, there is so many display manager to experience yourself, as my choice fell to LightDM
|
|
Now you’re all set, reboot and enjoy your new Macbook Arch. Things you may need to know, ArchLinux has a community driven repository that you can download and build yourself or using some package manager such as yaourt, pacaur, or trizen for easy install. I’m not goin to explain all of these things it depends to your liking. I’ll leave this to you to explore and have fun with it.