Created
December 1, 2017 22:21
-
-
Save tewit/d2bb8face55c74944b1348a6ed0be6f9 to your computer and use it in GitHub Desktop.
Arch Linux Install Commands
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
| *** Arch Linux Install Commands *** | |
| Disk Partition | |
| Allocate space and select disk type | |
| "fdisk -l" | |
| "cfdisk dev/sda" | |
| label type: dos | |
| dev/sda1 = bootable | |
| dev/sda2 = swap | |
| dev/sda3 = free space (the rest of space) | |
| mkfs.ext4 /dev/sda1 | |
| mkswap /dev/sda2 | |
| swapon /dev/sda2 | |
| mkfs.ext4 /dev/sda3 | |
| Mount disks | |
| mount /dev/sda3 /mnt | |
| mkdir /mnt/boot /mnt/var /mnt/home | |
| mount /dev/sda /mnt/boot | |
| Install base OS | |
| pacstrap /mnt base base-devel | |
| Update OS | |
| pacman -Syu | |
| Install bootloader (Grub) | |
| pacstrap /mnt grub-bios | |
| Generate fstab | |
| genfstab -p /mnt >> /mnt/etc/fstab | |
| Change root | |
| arch-chroot /mnt | |
| Set Clock | |
| hwclock --systohc --utc | |
| Create an initial ramdisk environment | |
| mkinitcpio -p linux | |
| Add user | |
| useradd -m -g users -G wheel -s /bin/bash tewit | |
| Change root password | |
| passwd root | |
| Change user password | |
| passwd tewit | |
| Update grub | |
| grub-install /dev/sda | |
| grub-mkconfig -o /boot/grub/grub.cfg | |
| Reboot | |
| reboot | |
| Add hostname ip | |
| hostnamectl set-hostname archlinux | |
| systemctl enable dhcpcd | |
| systemclt start dhcpcd | |
| ip addr | |
| ping www.google.com | |
| Add sudo user | |
| nano /etc/sudoers (add "tewit ALL=(ALL) ALL") | |
| Install required packages | |
| pacman -S syy (update and overwrite pakgages) | |
| pacman -S xorg | |
| pacman -S xterm | |
| pacman -S xorg-xclock xorg-twm xorg-xinit xorg-server-utils | |
| Install KDE Plasma | |
| pacman -S plasma kdebase | |
| Remove KDE media centter (optional) | |
| pacman -R plasma-mediacenter | |
| Install fonts | |
| pacman -ttf-freefont | |
| systemctl enable sddm | |
| Reboot | |
| Install VMware Tools (in Konsole) | |
| sudo pacman -S net-tools gtkmm | |
| sudo pacman -S open-vm-tools | |
| reboot and done! | |
| Install gcc c compiler | |
| sudo pacman -S gcc | |
| Install yaourt | |
| sudo vi /etc/pacman.conf | |
| add at the end "[archlinuxfr] | |
| SigLevel = Never | |
| Server = http://repo.archlinux.fr/$arch" | |
| sudo pacman -Sy yaourt | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment