How to create a Arch linux system
2018-07-07
Introduction
After the LFS system was functional I did many tests to build a X11 and desktop environment (DE) to add functionality to the LFS system. By end of month I ended pursuit of this, as I found far too many packages required to run X11, let alone a DE or user programs. At some point you will forget what packages you downloaded and lose control of the software dependencies. Any small glitch will make your system unstable and will be time consuming to fix. I decided to go forward with Arch Linux. This distribution has a LFS feel to it and is designed to allow user to maintain control of all software the OS is running, and has a pacakage manager "pacman" to install, remove and update. Pacman uses signing verification for all package databases. I found pacman to be simple to use and effective. I was able to test many DE included gnome3, cinnamon, budgie, lxde, and more.
For further information: Arch Linux - Wikipedia.
This project is a procedural to show steps I used to create an Arch Linux system. This system will manually boot into DE using xinit. This is my preference as it provides greater control of the DE. I will be using the grub boot loader. It assumes you already have a bootable iso image USB card. It is based on the Arch Linux instructions: Arch Linux Installation.
Also, the Arch Linux Recommendations is helpful: Arch Linux Recommendations.
Procedure
1. Using US keyboard which is Arch default.
2. Check that you have an internet connection.
To check:
mkfs.ext2 /dev/sda1
**** For boot partition, size 250 MB is sufficient****
mkswap /dev/sda2
**** For swap partition size as large as the onboard RAM****
mkfs.ext4 /dev/sda3
**** For root partition, to be safe keep minimum size 20 GB ****
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
swapon /dev/sda2
mount /dev/sda3 /mnt
then create config file..
then add following line ..
**** NOTE: do not set-up a keyboard, use default ****
hostname
127.0.0.1 localhost
::1
127.0.1.1 hostname
15. Create new user.
**** NOTE: Reboot and make sure new user can log in.****
**** NOTE: You must configure sudo to give users access.****
comment out all X11 executables...
add line ".exec cinnamon-session".
cd /usr
cd /usr/bin/mysqladmin -u root password enterpassword
cd /usr
/usr/bin/mysqld_safe
mysql -u root -p
now test database
sudo systemctl status mariadb
sudo systemctl stop mariadb
sudo systemctl start mariadb
mysql -u root -p
now test database
Design credit knxops.com in cooperation with Ltimas and co.
Copyright © 2019 by Gregory Altimas aka Greg Altimas