arch mac : Initial setting #1 install

arch

・Tutorial on installing single boot arch linux on MacBookPro11, x

Rufus

How to create a linux installation USB

Rufus

Set to GPT (GUID Partition Table) and write

MacBookPro11,x (Late 2013—Mid 2014)

Insert a USB flashed arch.iso using Rufus into your Macbook and power on while holding down the alt (option) key

Macbook

Select EFI Boot

Install Arch linux

Start work record

arch

script

Save input commands and output results

Loading Japanese key config

loadkeys jp106

Create partition

Doing this will erase all your data. Be sure to back up the necessary files

Directory structure to be created this time

/dev/sda1 > boot partition(required)
/dev/sda2 > swap (Not required if you have 8G or more of memory)
/dev/sda3 > root system directory(required)
/dev/sda4 > home main directory(Highly recommended)

arch

cgdisk /dev/sda

Created in EFIBOOT gdp mode

Delete

Delete partition

Delete all existing partitions

/dev/sda1 boot partition [256M]

arch

New

Create a new partition

First Sector -> Enter
Size in Sector -> +256M -> Enter
Hex Code of GUID (L to show pres, Enter = 8300) -> ef00(EFI system poartition) -> Enter
Enter partition name – > Enter

/dev/sda2 boot partition [8G]

arch

New

Create a new partition

First Sector -> Enter
Size in Sector -> +9011M -> Enter
Hex Code of GUID (L to show pres, Enter = 8300) -> 8200 (Linux swap) -> Enter
Enter partition name –> swap -> Enter

/dev/sda3 root partition [16G]

arch

New

Create a new partition

First Sector -> Enter
Size in Sector -> +14848M -> Enter
Hex Code of GUID (L to show pres, Enter = 8300) -> 8300 (Linux filesystem) -> Enter
Enter partition name –> Enter

/dev/sda4 home partition [ALL]

arch

New

Create a new partition

First Sector -> Enter
Size in Sector -> Enter
Hex Code of GUID (L to show pres, Enter = 8300) -> 8300 (Linux filesystem) -> Enter
Enter partition name –> q -> Enter

Execute Write-> yes for all created partitions

Quit

Partition format

arch

lsblk

Check if the partition has been created

mkfs.vfat -F32 /dev/sda1

Format bootpartition with fat32

mkswap /dev/sda2

Format swap

mkfs.ext4 /dev/sda3

Format the root directory with ext4

mkfs.ext4 /dev/sda4

Format with home directory ext4

mount

swapon /dev/sda2

Mount swap

mount /dev/sda3 /mnt

Mount root directory

android USB Tethering

Stick Android and turn on USB tethering

ping -c2 google.com

64 byte from ~~

If it doesn't work

ip link

Set up the third one

ip link set enp0s26f7u1u3 up

System clock update

timedatectl set-ntp true

Check the service status with timedatectl status

Install required files in directory root

pacstrap /mnt base linux linux-firmware

Required package

pacstrap /mnt base-devel reflector netctl nano

Not required but highly recommended

mount sda1

mount /dev/sda1 /mnt/boot

Run genfstab

genfstab -U /mnt > /mnt/etc/fstab

Specify the partition to mount at boot time

Run arch-chroot

arch-chroot /mnt

nano settings

nano /etc/nanorc

Enable line count display

72 # set linenumbers

72 set linenumbers

enable color

nano /etc/pacman.conf

#33 #Color

Color

locale gen

nano /etc/locale.gen

177 en_US.UTF-8 UTF-8

302 ja_JP.UTF-8 UTF-8

locale-gen

Set location in Japanese and English

Create locale.conf file

export LANG=en_US.UTF-8

Timezone

ln -fs /usr/share/zoneinfo/Asia/Tokyo /etc/localtime

hwclock --systohc --utc

hostname (optional)

nano /etc/hostname

If you want to rewrite, rewrite

Change to Japanese layout

echo 'KEYMAP=jp106' > /etc/vconsole.conf

reflector Mirror list update

cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist-orig

Change the original mirrorlist to mirrorlist-orgn Revert to the contents of mirrorlist-orgn in case of problems

reflector --verbose --latest 5 --sort rate --save /etc/pacman.d/mirrorlist

Change in order of communication status

cat /etc/pacman.d/mirrorlist

Confirmation

pacman -Syu

arch linux update

root password setting

passwd

**********

**********

Add general user / sudo setting

useradd -m -G wheel username

passwd username

**********

**********

sudo privilege grant

pacman -S sudo

EDITOR=nano visudo

82 %wheel ALL=(ALL) ALL

Automatic power management optimization

pacman -S tlp

install git

pacman -S git

wifi setting

pacman -S dialog

pacman -S wpa_supplicant

pacman -S broadcom-wl

if you are using b43-firmware / Broadcom b43 (BCM4331) chipset

su username

cd

git clone https://aur.archlinux.org/b43-firmware.git

cd b43-firmware

makepkg -si

su root

Startup settings (If startup fails in the future, execute the startup settings part to adjust the consistency)

sudo bootctl install

nano /boot/loader/loader.conf

default arch
# timeout 0
#console-mode keep
editor  no

pacman -S linux

ls /boot/vmlinuz-linux | sed s~/boot~~ >> /boot/loader/entries/arch.conf

ls /boot/initramfs-linux.img | sed s~/boot~~ >> /boot/loader/entries/arch.conf

blkid -o export /dev/sda3 | grep ^UUID >> /boot/loader/entries/arch.conf

nano boot/loader/entries/arch.conf

title   Arch Linux
linux   /vmlinuz-linux
initrd  /initramfs-linux.img
options root=UUID=????????-????-????-????-????????????? rw

bootctl list

Check for errors

NetworkManager install

pacman -S networkmanager

End of work record (optional)

exit

cp typescript /mnt/root/arch_linux_install.log

The initial settings when using arch linux for server operation can be operated without problems with the same settings

Backup (Optional)

Arch linux backup

thank you

Thank you for watching until the end. I'm glad if you can use it as a reference.

Thank you for Helping

I'll buy an amazon gift and help you

We will continue to update useful information. I am delighted to jump to your help. Thank you very much.