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

Both sides previous revision Previous revision
Next revision
Previous revision
linux:arch_workstation_setup [2018/06/11 18:10]
bmiddha
linux:arch_workstation_setup [2021/05/02 21:36] (current)
Line 13: Line 13:
 <​file|/​etc/​pacman.d/​mirrorlist>​ <​file|/​etc/​pacman.d/​mirrorlist>​
 ## UIUC ## UIUC
-Server = http://cosmos.cites.illinois.edu/pub/​archlinux/​$repo/​os/​$arch+Server = http://mozart.acm.cs/mirror/​archlinux/​$repo/​os/​$arch
 </​file>​ </​file>​
  
Line 29: Line 29:
 <​code>​ <​code>​
 fallocate -l 6G /​mnt/​swapfile fallocate -l 6G /​mnt/​swapfile
-mkswap /​mnt/​swapfile 
 chmod 600 /​mnt/​swapfile chmod 600 /​mnt/​swapfile
 +mkswap /​mnt/​swapfile
 swapon /​mnt/​swapfile swapon /​mnt/​swapfile
 </​code>​ </​code>​
Line 38: Line 38:
 genfstab -U /mnt >> /​mnt/​etc/​fstab genfstab -U /mnt >> /​mnt/​etc/​fstab
 </​code>​ </​code>​
-replace /​mnt/​swapfile with /swapfile in fstab+replace /​mnt/​swapfile with /swapfile in /etc/fstab
 <​code>​ <​code>​
 /​swapfile ​    ​none ​     swap    ........ /​swapfile ​    ​none ​     swap    ........
Line 49: Line 49:
  
 ===== Timezone ===== ===== Timezone =====
 +<​code>​
 ln -sf /​usr/​share/​zoneinfo/​Region/​City /​etc/​localtime ln -sf /​usr/​share/​zoneinfo/​Region/​City /​etc/​localtime
 +</​code>​
 Set clock to localtime for Windows dualboot Set clock to localtime for Windows dualboot
 +<​code>​
 hwclock --systohc --localtime hwclock --systohc --localtime
 +</​code>​
  
 ===== Locale ===== ===== Locale =====
Line 60: Line 63:
 LANG=en_US.UTF-8 LANG=en_US.UTF-8
 </​file>​ </​file>​
-Genereate Locale + 
-locale-gen+===== Genereate Locale ​===== 
 +<​code>​locale-gen</​code>​
  
 ===== Hostname from DHCP ===== ===== Hostname from DHCP =====
Line 106: Line 110:
 [multilib] [multilib]
 Include = /​etc/​pacman.d/​mirrorlist Include = /​etc/​pacman.d/​mirrorlist
 +</​code>​
 +add acm repo 
 +<​code>​
 +[uicacm]
 +SigLevel = Optional TrustAll
 +Server = http://​mozart.acm.cs/​acm-packages/​archlinux/​
 </​code>​ </​code>​
 <​code>​ <​code>​
Line 131: Line 141:
 sudo systemctl enable sshd sudo systemctl enable sshd
 </​code>​ </​code>​
 +
 +===== Create acmguest user =====
 +<​code>​
 +sudo useradd -m -d /​opt/​acmguest acmguest
 +sudo passwd acmguest
 +</​code>​
 +<​file|/​etc/​sudoers.d/​acmguset-sudo>​
 +acmguest ALL=(root) NOPASSWD: /​usr/​bin/​guestd
 +</​file>​
 +
 +===== LDAP Setup =====
 +[[linux:​arch_ad_backend]]
 +===== mount home dir =====
 +Install nfs-utils
 +<​code>​
 +sudo pacman -S nfs-utils
 +</​code>​
 +<​file|/​etc/​fstab>​
 +.
 +.
 +172.29.0.6:/​acm-home /home nfs  noauto,​x-systemd.automount,​x-systemd.device-timeout=10,​timeo=14,​x-systemd.idle-timeout=1min 0 0
 +172.29.0.7:/​pkgs-64 /​var/​cache/​pacman/​pkg nfs  noauto,​x-systemd.automount,​x-systemd.device-timeout=10,​timeo=14,​x-systemd.idle-timeout=1min 0 0
 +</​file>​
linux/arch_workstation_setup.1528740651.txt.gz · Last modified: 2021/05/02 21:36 (external edit)