Last active
February 27, 2022 22:11
-
-
Save juizmill/6778d14478c12faa9521e11aed5062be to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkfs.fat -F32 /dev/sda1 | |
mkswap /dev/sda2 | |
mkfs.ext4 /dev/sda3 | |
mkfs.ext4 /dev/sda4 | |
echo "Create Directories and mount in /mnt" | |
mount /dev/sda3 /mnt | |
mkdir /mnt/home | |
mkdir /mnt/boot/efi | |
mount /dev/sda4 /mnt/home | |
mount /dev/sda1 /mnt/boot/efi | |
swapon /dev/sda2 | |
echo 'Server = https://america.mirror.pkgbuild.com/$repo/os/$arch' > /etc/pacman.d/mirrorlist | |
echo "install arch Linux" | |
pacstrap /mnt base base-devel linux linux-firmware linux-headers grub-efi-x86_64 efibootmgr os-prober vim | |
echo "Create fstab" | |
genfstab -U -p /mnt >> /mnt/etc/fstab | |
arch-chroot /mnt | |
echo "Configure system base" | |
ln -sf /usr/share/zoneinfo/America/Campo_Grande /etc/localtime | |
hwclock --systohc | |
sed -r -i "s/#en_US.UTF-8 .*/en_US.UTF-8 UTF-8/g" /etc/locale.gen | |
echo 'export LANG="en_US.UTF-8"' > /etc/locale.conf | |
locale-gen | |
echo 'juizmill-ARCH' > /etc/hostname | |
echo > /etc/hosts | |
cat << EOF | tee -a /etc/hosts | |
127.0.0.1 localhost | |
::1 localhost | |
127.0.0.1 juizmill-ARCH | |
EOF | |
echo "Change Password ROOT" | |
passwd | |
echo "install Grub" | |
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch --recheck | |
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo | |
grub-mkconfig -o /boot/grub/grub.cfg | |
echo "Create User" | |
useradd -m -g users -G wheel juizmill | |
pacman -Sy dosfstools os-prober mtools network-manager-applet networkmanager wpa_supplicant wireless_tools dialog sudo | |
echo 'juizmill ALL=(ALL) ALL' >> /etc/sudoers | |
mkdir /home/juizmill | |
usermod -d /home/juizmill -m juizmill | |
pacman -Sy mesa xf86-video-amdgpu nvidia nvidia-libgl xf86-video-intel libgl | |
pacman -Sy gdm | |
systemctl enable gdm | |
pacman -Sy gnome gnome-terminal nautilus gnome-tweaks gnome-control-center gnome-backgrounds adwaita-icon-theme | |
pacman -Sy firefox | |
systemctl enable NetworkManager |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment