Create your own Linux Mint Arch Edition.
You can download the ISO from the offical ArchLinux-website: https://archlinux.org/download/
- balenaEtcher
- Win32 Disk Imager
- Rufus
You can list available keymaps with:
ls /usr/share/kbd/keymaps/**/*.map.gz
Apply the keymap of your choice with:
loadkeys de-latin1| Example for the german keymapEnsure your network interface is listed and enabled. You can check this with:
ip linkCheck, if you can establish a connection:
ping 1.1.1.1Ensure the system clock is accurate:
timedatectl set-ntp true
ls /sys/firmware/efi/efivars
If the result is "No such file or directory", that means you need to install Arch in BIOS mode. If you get a list of the efivars, you should install Arch in UEFI mode.List your disks and find the disk on which you want to install LMAE:
fdisk -l
What we need, is the path of the disk, which you want to use.
The path should look like/dev/sda,/dev/nvme0n1or/dev/mmcblk0When partitioning I use the GPT partition table. If you want to use another one you have to know the partitioning yourself
Example layouts:
UEFI / GPT
Mount point Partition type Suggested size /mnt/bootEFI System 500MB or more - Linux swap More than 512 MiB /mntLinux filesystem the rest of the disk space BIOS / GPT
Mount point Partition type Suggested size - BIOS boot 500MB or more - Linux swap More than 512 MiB /mntLinux filesystem the rest of the disk space Now open the disk you want to use in "cfdisk". This should look like this:
cfdisk /dev/sda
Now choose "gpt" and press "Enter".
Then create the partitions depending on whether you have UEFI or BIOS. After that choose the partition type, write the changes and quit "cfdisk".Now the created partitions have to be formatted. Here we again differentiate between UEFI and BIOS.
Example for UEFI:
mkswap /dev/sda2| Format as "Linux swap (swap)"mkfs.ext4 /dev/sda3| Format as "Linux filesystem (ext4)"mkfs.fat -F 32 /dev/sda1| Format as "FAT32"Example for BIOS:
mkswap /dev/sda2| Format as "Linux swap (swap)"mkfs.ext4 /dev/sda3| Format as "Linux filesystem (ext4)"First we need to mount our "Linux filesystem" to "/mnt":
mount /dev/sda3 /mntSecond we need to mount the "Linux swap":
swapon /dev/sda2If you are using UEFI, we need to create the mount point "/mnt/boot" now and then mount our "EFI System" partition:
mkdir /mnt/bootmount /dev/sda1 /mnt/bootNow we need to install all the necessary packages to get our system up and running:
pacstrap /mnt base linux linux-firmware networkmanager grub vimWe need to generate an fstab file, which mounts our disks automatically when booting:
genfstab -U /mnt >> /mnt/etc/fstabAfter that we should change our root to "/mnt":
arch-chroot /mntTo change the timezone, you need to change "Region", with the region and "City" with the of your timezone:
ln -sf /usr/share/zoneinfo/Region/City /etc/localtimeAfter that we need to sync the system time with the hardware clock
hwclock --systohc
- Edit "/etc/locale.gen" with your favourite editor and uncomment the locals which you want to use. You should also uncomment "en_US.UTF-8".
- To generate the locales simply run
locale-gen- Create the file "/etc/locale.conf" and define your preferred locale in the file. Example:
LANG=en_US.UTF-8- The last step is to create the file "/etc/vconsole.conf". In this file we need to set our keyboard layout. We do this by adding the line:
KEYMAP=de-latin1instead of "de-latin1" you have to insert your preferred keyboard layout.
Create and edit the file "/etc/hostname". Choose a computer name and insert it.
Now create the file "/etc/hosts" and insert the following:
"computername" should be the name you set before in the "/etc/hostname" file127.0.0.1 localhost ::1 localhost 127.0.1.1 computernameTo change the root password, you simply type:
passwd
Now just set a new password.Again, if you want to install a different bootloader, you have to do this yourself, as I will only explain GRUB.
- grub-install --target=i386-pc /dev/sda
- grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=GRUB
Intel-CPU:
pacman -S intel-ucode
AMD-CPU:pacman -S amd-ucode
- grub-mkconfig -o /boot/grub/grub.cfg
- Exit the chroot environment by typing:
exit- Unmount the partitions:
umount -R /mnt- Boot into the new installed System:
reboot now
Make sure your installation medium is disconnected before booting.- Log in to the new system using username "root" and your password.
Enable "NetworkManager":
systemctl enable NetworkManager systemctl start NetworkManager
We need to create a system user for cinnamon. You can create one and set his password by executing the following:
useradd -m username| Replace "username" with the name you want to use.
passwd username| Replace "username" with the name you used before.
First, we need to download the necessary packages:
pacman -S xorg lightdm lightdm-gtk-greeter cinnamon gnome-terminalSecond, we need start "lightdm", to open our desktop:
systemctl enable lightdm systemctl start lightdmThe last step is to login to our desktop using the password of the user we created before.
- Navigate to "cinnamon menu -> keyboard -> layouts"
- Set the keyboard layout of your choice by adding it at the bottem left (+) and delete the default (-)
Install sudo using:
pacman -S sudoOpen the Terminal and login as root using:
suType
EDITOR=vim visudo, to open the "sudoers"-file.Under "User privilege specification" we should add our user. This should look like:
## ## User privilege specification ## root ALL=(ALL) ALL username ALL=(ALL) ALLSave and close the file.
Now change back to the user account with:
su usernameSudo is now set up and ready to use.
To use the AUR, we need to install yay:
sudo pacman -S git base-devel| Install necessary packages.cd ~| Change directory to the users home.git clone https://aur.archlinux.org/yay.git| Download yay.cd yay| Change directory to the folder we have downloaded.makepkg -si| Build package and install yay.cd ..| Go back to the home directory.rm -rf ./yay/| Delete the yay-folder.yay -Syy| Make sure yay is working and sync the package database.
yay -S noto-fonts noto-fonts-emoji- Navigate to "cinnamon menu -> Font Selection" and change it to the following:
Font Size Default font Ubuntu Regular 10 Desktop font Ubuntu Regular 10 Document font Sans Regular 10 Monospace font Monospace Regular 10 Window title font Ubuntu Medium 10
yay -S mint-themes mint-y-icons mint-x-icons- Navigate to "cinnamon mennu -> Themes" and choose the mint themes, which you want to use."
- If you want to use the "Linux Mint backgrounds", you can install them by executing:
yay -S mint-backgrounds
Then just choose your favourite at "cinnamon menu -> Backgrounds"
yay -S cups system-config-printersudo systemctl enable cupssudo systemctl start cups
yay -S file-roller yelp warpinator mintstick xed gnome-screenshot redshift seahorse onboard sticky xviewer gnome-font-viewer bulky xreader gnome-disk-utility gucharmap gnome-calculator
yay -S simple-scan pix drawing
yay -S firefox webapp-manager hexchat thunderbird transmission-gtk
yay -S gnome-calendar libreoffice-fresh
yay -S python
yay -S celluloid hypnotix rhythmbox
yay -S baobab gnome-logs timeshift
yay -S gufw blueberry mintlocale