-
Notifications
You must be signed in to change notification settings - Fork 3
Unencrypted installation
Warning, this does wipe your whole disk!!!!
gdisk /dev/mmcblk0
# o ↵ to create a new empty GUID partition table (GPT)
# y ↵ to confirm
# n ↵ add a new partition
# ↵ to select default partition number of 1
# ↵ to select default start at first sector
# +512M ↵ make that size partition for booting
# ef00 ↵ Partition type EFI
# n ↵ to add new partition
# ↵ to select default partition number of 2
# ↵ to select default start of sector
# +8G ↵ make that size partition for swap
# 8200 ↵ to make partition type of swap
# n ↵ to add new partition
# ↵ to select default partition number of 3
# ↵ to select default start of sector
# +30G ↵ make that size partition for root
# 8300 ↵ to make partition type for root
# n ↵ to add new partition
# ↵ to select default partition number of 4
# ↵ to select default start of sector
# ↵ to select default end of sector
# 8300 ↵ to make partition type for home
# p ↵ if you want to check the partition layout
# w ↵ to write changes to disk
# y ↵ to confirm
The EFI partition
mkfs.fat -F32 /dev/mmcblk0p1
The swap
mkswap /dev/mmcblk0p2
swapon /dev/mmcblk0p2
The root
mkfs.ext4 /dev/mmcblk0p3
The home
mkfs.ext4 /dev/mmcblk0p4
Mount root to /mnt (this is the convention while installing)
mount /dev/mmcblk0p3 /mnt
Make a boot and a home folder (two commands in one :) )
mkdir /mnt/{home,boot}
Mount home and boot
mount /dev/mmcblk0p4 /mnt/home
mount /dev/mmcblk0p1 /mnt/boot
Install Arch, some things needed for AUR repository and an easier text editor.
pacstrap /mnt base base-devel nano zsh grml-zsh-config tlp dialog openssl-1.0
Generate the fstab
genfstab -pU /mnt > /mnt/etc/fstab
Install the njkli repository and set the console font.
gpd-setup
Remote control your installation
arch-chroot /mnt /usr/bin/zsh
Then make the initramfs
mkinitcpio -P
Install the bootloader
bootctl install
Configure bootloader
First we want to write down the PARTUUID of the partition with this weird command
blkid | grep mmcblk0p3 | cut -f10 -d\" > /boot/loader/entries/arch.conf
Then edit the file
nano /boot/loader/entries/arch.conf
You will only see the UUID. You can put it into nano's clipboard by pressing ctrl+k and paste it later using ctrl+u
title Arch Linux
linux /vmlinuz-gpd-pocket-linux-jwrdegoede
initrd /intel-ucode.img
initrd /initramfs-gpd-pocket-linux-jwrdegoede.img
options root=PARTUUID=xxxx-yyyy-zzzz-aaaa quiet rw
paste the PARTUUID in after options root=PARTUUID=
and before quiet rw
CTRL+x, then y then ↵ to save and exit
Make this the default boot entry
nano /boot/loader/loader.conf
Have the text be
timeout 2
default arch
Create your user
useradd -m -g users -G wheel,storage,power -s /usr/bin/zsh USERNAMEHERE
passwd USERNAMEHERE
Give this user sudo access
EDITOR=nano visudo
uncomment the line %wheel ALL=(ALL) ALL
CTRL+x, then y then ↵ to save and exit
set hostname
echo LOWERCASEHOSTNAMEHERE > /etc/hostname
set your timezone (use your own continent and city)
ln -sf /usr/share/zoneinfo/Europe/Oslo /etc/localtime
Configure locale
nano /etc/locale.gen
Uncomment the lines en_US.UTF-8 UTF-8
and en_US ISO-8859-1
CTRL+x, then y then ↵ to save and exit
generate locales
locale-gen
set language
echo "LANG=en_US.UTF-8" > /etc/locale.conf
You may now reboot the system. You can install whatever desktop enviornment you like, now or after reboot. Or you can reboot to test if its working, then boot into the USB again and take a backup of your install using clonezilla
which is included on the USB. If you want to reboot you need to exit the chroot by hitting Ctrl+D
first.
Now you may want access to AUR
Or install a Desktop environment lik Gnome or KDE.