Skip to content

Instantly share code, notes, and snippets.

@jkcgs
Last active March 15, 2020 03:46
Show Gist options
  • Save jkcgs/b3bb372f20146c2b390f03bc510105b6 to your computer and use it in GitHub Desktop.
Save jkcgs/b3bb372f20146c2b390f03bc510105b6 to your computer and use it in GitHub Desktop.
Installing ArchLinux with XFCE in VMWare

Steps

First of all, ensure you're booting with UEFI mode. Use a drive of at least 20gb of space (maybe).

  1. loadkeys <keymap> (en, es, la-latin1)

  2. Check internet connection: ping www.archlinux.org

  3. timedatectl set-ntp true

  4. fdisk /dev/sda (probably)

    1. g
    2. New partition n <enter>, partition number <enter>, partition size +100M
    3. Partition type t <enter>, partition number <enter>, 1 <enter> (EFI).
    4. n <enter>, <enter>, +2G<enter>
    5. t <enter>, <enter>, 19 <enter> (swap).
    6. n <enter>, <enter>, <enter>
    7. w
  5. mkfs.fat -F32 /dev/sda1

  6. mkswap /dev/sda2 ; swapon /dev/sda2

  7. mkfs.ext4 /dev/sda3

  8. mount /dev/sda3 /mnt

  9. mkdir /mnt/boot

  10. mount /dev/sda1 /mnt/boot

  11. vim /etc/pacman.d/mirrorlist (edit mirror list)

  12. pacstrap /mnt base base-devel linux linux-firmware lightdm lightdm-gtk-greeter xorg-server xfce4 ttf-dejavu ttf-liberation ttf-opensans open-vm-tools gtkmm3 xf86-input-vmmouse xf86-video-vmware mesa networkmanager network-manager-applet nm-editor <proc-manufacturer>-ucode (proc-manufacturer ex: intel-ucode)

  13. genfstab -U /mnt >> /mnt/etc/fstab

  14. arch-chroot /mnt

  15. ln -sf /usr/share/zoneinfo/<zone>/<subzone> /etc/localtime

  16. hwclock --systohc

  17. Edit /etc/locale.gen and uncomment en_US.UTF-8 UTF-8

  18. locale-gen

  19. Edit /etc/locale.conf and add LANG=en_US.UTF-8

  20. Edit /etc/vconsole.conf and add KEYMAP=<keymap>

  21. Edit /etc/hostname and add the hostname.

  22. Edit /etc/hosts and add the following

    127.0.0.1 localhost

    ::1 localhost

    127.0.1.1 .localdomain

  23. mkinitcpio -P

  24. passwd

  25. useradd -mG wheel,sys,lp,audio,disk,input,optical,storage,video <non-root-user>

  26. bootctl install

  27. cp /usr/share/systemd/bootctl/arch.conf /boot/loader/entries

  28. ls -la /dev/disk/by-uuid/ | vim - and copy /dev/sda3 UUID.

  29. Edit /boot/loader/entries/arch.conf and

    1. Replace XXXX with the UUID
    2. Add an space and rw at the at the options line
    3. Add initrd /boot/<proc-manufacturer>-ucode.img before the current initrd line
    4. Save
  30. systemctl enable lightdm

  31. systemctl enable vmwaretools

  32. systemctl enable vmware-vmblock-fuse

  33. systemctl enable vmtoolsd

  34. systemctl enable NetworkManager

  35. Reboot

@jvicu2001
Copy link

What if you install networkmanager among all the other packages you'll be using in step 12?

@jkcgs
Copy link
Author

jkcgs commented Mar 12, 2020

right

@jvicu2001
Copy link

On step 4 it should say fdisk instead of fstab

@jkcgs
Copy link
Author

jkcgs commented Mar 15, 2020

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment