User Tools

Site Tools


linux:arch_workstation_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux:arch_workstation_setup [2018/06/11 17:23]
bmiddha created
linux:arch_workstation_setup [2021/05/02 21:36]
Line 1: Line 1:
-Boot into archiso 
  
-Partitions 
- 
-Need MBR partition scheme 
-<​code>​ 
-mkfs.ext4 /dev/sdxy 
-mount /dev/sdxy /mnt 
-</​code>​ 
- 
-UIUC mirror 
-<​file|/​etc/​pacman.d/​mirrorlist>​ 
-## UIUC 
-Server = http://​cosmos.cites.illinois.edu/​pub/​archlinux/​$repo/​os/​$arch 
-</​file>​ 
- 
-Time 
-<​code>​ 
-timedatectl set-ntp true 
-</​code>​ 
- 
-Install arch 
-<​code>​ 
-pacstrap /mnt base base-devel 
-</​code>​ 
- 
-Swap 
-<​code>​ 
-fallocate -l 6G /​mnt/​swapfile 
-mkswap /​mnt/​swapfile 
-chmod 600 /​mnt/​swapfile 
-swapon /​mnt/​swapfile 
-</​code>​ 
- 
-Generate fstab 
-<​code>​ 
-genfstab -U /mnt >> /​mnt/​etc/​fstab 
-</​code>​ 
-replace /​mnt/​swapfile with /swapfile in fstab 
-<​code>​ 
-/​swapfile ​    ​none ​     swap    ........ 
-</​code>​ 
- 
-Chroot 
-<​code>​ 
-arch-chroot /mnt 
-</​code>​ 
- 
-Timezone 
-ln -sf /​usr/​share/​zoneinfo/​Region/​City /​etc/​localtime 
- 
-Set clock to localtime for Windows dualboot 
-hwclock --systohc --localtime 
- 
-Locale 
-uncomment en_US.UTF-8 in /​etc/​locale.gen 
-create /​etc/​locale.conf 
-<​file|/​etc/​locale.conf>​ 
-LANG=en_US.UTF-8 
-</​file>​ 
-Genereate Locale 
-locale-gen 
- 
-Hostname from DHCP 
-append 
-env force_hostname=YES to /​etc/​dhcpcd.conf 
- 
-Auto DHCP on boot 
-create /​etc/​netctl/​lan 
-<​file|/​etc/​netctl/​lan>​ 
-Interface=enp6s0 
-Connection=ethernet 
-IP=dhcp 
-</​file>​ 
-enable lan 
-<​code>​ 
-netctl enable lan 
-</​code>​ 
- 
-Hosts file 
-<​file|/​etc/​hosts>​ 
-127.0.0.1 ​     localhost 
-::1            localhost 
-</​file>​ 
- 
-Create acmadmin 
-<​code>​ 
-useradd -d /​opt/​acmadmin -m -G wheel acmadmin 
-passwd acmadmin 
-</​code>​ 
- 
-Sudo access to wheel 
-/​etc/​sudoers 
-uncomment this line 
-<​code>​ 
-%wheel ALL=(ALL) ALL 
-</​code>​ 
- 
-Install bootloader 
-<​code>​ 
-mkinitcpio -p linux 
-pacman -S grub ntfs-3g os-prober 
-grub-install /dev/sdx 
-grub-mkconfig -o /​boot/​grub/​grub.cfg 
-</​code>​ 
- 
-Reboot 
-<​code>​ 
-exit 
-umount -R /mnt 
-reboot 
-</​code>​ 
- 
-Install openssh 
-<​code>​ 
-sudo pacman -S openssh 
-sudo systemctl enable sshd 
-</​code>​ 
linux/arch_workstation_setup.txt ยท Last modified: 2021/05/02 21:36 (external edit)