Created
September 11, 2017 00:01
-
-
Save ericdouglas/4ab1273f2b0615f9fb5cc686b06e99ee to your computer and use it in GitHub Desktop.
Arch Linux installation
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
| loadkeys br-abnt2 | |
| cfdisk /dev/sda | |
| mkfs.ext4 /dev/sda1 | |
| mkswap /dev/sda2 | |
| swapon /dev/sda2 | |
| mount /dev/sda1 /mnt | |
| pacstrap -i /mnt base base-devel | |
| genfstab -U /mnt >> /mnt/etc/fstab | |
| arch-chroot /mnt /bin/bash | |
| vi /etc/locale.gen | |
| locale-gen | |
| echo LANG=en_US.UTF-8 > /etc/locale.conf | |
| export LANG=en_US.UTF-8 | |
| vi /etc/vconsole.conf | |
| KEYMAP="br-abnt2.map.gz" | |
| rm /etc/localtime | |
| ln -s /usr/share/zoneinfo/Brazil/East /etc/localtime | |
| hwclock --systohc --utc | |
| echo ArchLinux > /etc/hostname | |
| vi /etc/hosts | |
| pacman -S networkmanager | |
| systemctl enable NetworkManager | |
| mkinitcpio -p linux | |
| passwd | |
| pacman -S grub os-prober | |
| grub-install --target=i386-pc --recheck /dev/sda | |
| grub-mkconfig -o /boot/grub/grub.cfg | |
| umount /dev/sda1 | |
| exit | |
| reboot | |
| --- remove usb | |
| login: root | password: root | |
| useradd -m -g users -G wheel,storage,power -s /bin/bash ericdouglas | |
| passwd ericdouglas | |
| EDITOR=vi visudo | |
| # Uncomment to allow members of group wheel to execute any command | |
| pacman -S bash-completion (optional) | |
| exit | |
| --- log as ericdouglas | |
| sudo pacman -S git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment