06 October 2014

Macbook Air 11" 2013 - The definitive guide for migration to Arch Linux - Volume 1



Hi all

It's been a long time I didn't post here, so I'll post about my Arch Linux install on this macbook air.
REMEMBER: It's about to format everything on your macbook air and leave only linux.
Right now, I'm just doing the default install, so I'll post more details according I'm updating.

This is my setup:

Partition 1: EFI: 200Mb
Partition 2: JFS: 233Gb

I'm using JFS because I got a lot of performance than other FS, but you can use whatever you want.

Let's start:

- Default install as the wiki says, nothing different. Disregard my install uses pacstrap /mnt base base-devel instead of only base.
- Install xorg and gnome (you can install kde or whatever you like it, isn't too different).  Don' t boot yet.
- Install network-manager, because is quite usefull, even with most desktop managers (I also installing some vpn frontends because is useful for my work):

# pacman -S network-manager networkmanager-pptp networkmanager-vpnc networkmanager-openvpn

- Install grub and fix the boot with efibootmanager (TIP: You can skip installing grub and use rEFInd+EFISTUB kernel, the default kernel have EFISTUB support, and IMO rEFInd is way better than grub in many ways):

# pacman -S grub efibootmgr

Edit /etc/defaults/grub and change this line:

GRUB_CMDLINE_LINUX_DEFAULT="verbose elevator=deadline root=/dev/sda2 rootfstype=jfs"

And change your fstab to something like this:

/dev/sda2   /   jfs   rw,discard,noatime  0  1

Create your grub.cfg

# grub-mkconfig -o /boot/grub/grub.cfg

Install your grub

# grub-install /dev/sda

Type efibootmgr and see your boot options, delete whatever boot extras there. After that, add your linux entry there:

# efibootmgr -c -d /dev/sda -p 1 -l /EFI/arch/grubx64.efi -L "Arch Linux"

Now see the number of your new entry:

# efibootmgr
BootCurrent: 0000
Timeout: 5 seconds
Boot0000* arch <- This is my pendrive
Boot0001* Arch Linux <- This is the entry I've just created
Boot0082*

Now lets fix it:

# efibootmgr -o 0001

Don't reboot yet.
In /etc/pacman.conf, uncoment multilib, you'll thanks me later
Add archlinux.fr at your servers (or install aur by hand, it's your choice). To use archlinux.fr, add this lines at the end of your /etc/pacman.conf

[archlinuxfr]
SigLevel = Optional TrustAll
Server = http://repo.archlinux.fr/$arch

Sync and install yaourt

# pacman -Syu yaourt

Create your user and su - (and put a password in your user, if you still didn't do it yet)
Install the infamous broadcom driver:

# yaourt -S broadcom-wl-dkms

And finally, put network manager and your favorite xdm on systemd:

# systemctl enable NetworkManager
# systemctl enable gdm

Don't forget to add your user to any related group that you need before boot.
Also is nice if you want to use an encrypted home to set up right now.

Continue reading here.

No comments:

Post a Comment