* Display Manager
* nodm removed due to a dbus issue
* Hopefully if Xorg can’t be run it will default to CLI
* XFCE is now started by .zlogin
* Removed the "Save Session" checkbox
* Networking
* Replaced NetworkManager with systemd-networkd
* networkd had a 33% faster boot time than NetworkManager (-10s)
* It also more directly prioritizes wired connections
* NOTES: This removed the ability to easily connect to new networks
* This is okay as the WiFi changes very infrequently
* The WiFi settings are loaded from the UFD directly
* Added linux-firmware to support more network devices
* broadcom-wl wouldn't compile under i686 so it's x64 only ATM
* Removed the udev rule forcing the dhcp delay during boot
* Server IPs updated
* Config files and wallpapers moved to <UFD>/config
* Fixed an issue where SMART was misreporting drives as bad
* When a drive failed SMART, subsequent drives would always report "NS"
65 lines
2.2 KiB
Bash
65 lines
2.2 KiB
Bash
#!/bin/bash
|
|
|
|
set -e -u
|
|
|
|
# Locale
|
|
sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen
|
|
locale-gen
|
|
|
|
# Time Settings
|
|
ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
|
|
#sed -i 's/#FallbackNTP/NTP/' /etc/systemd/timesyncd.conf
|
|
#timedatectl set-ntp true
|
|
|
|
# root user settings
|
|
usermod -s /usr/bin/zsh root
|
|
cp -aT /etc/skel/ /root/
|
|
chmod 700 /root
|
|
echo "root:Abracadabra" | chpasswd
|
|
|
|
# Add autologin group
|
|
groupadd -r autologin
|
|
|
|
# Add wktech user
|
|
useradd -m -s /bin/zsh -G autologin,power,storage,wheel -U wktech
|
|
echo "wktech:Abracadabra" | chpasswd
|
|
|
|
# Enable sudo for %wheel
|
|
echo '%wheel ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
|
|
|
# Set pacman mirrorlist
|
|
echo 'Server = http://arch.localmsp.org/arch/$repo/os/$arch' > /etc/pacman.d/mirrorlist
|
|
echo 'Server = http://arch.mirrors.ionfish.org/$repo/os/$arch' >> /etc/pacman.d/mirrorlist
|
|
echo 'Server = http://lug.mtu.edu/archlinux/$repo/os/$arch' >> /etc/pacman.d/mirrorlist
|
|
echo 'Server = http://mirror.rit.edu/archlinux/$repo/os/$arch' >> /etc/pacman.d/mirrorlist
|
|
echo 'Server = http://mirror.us.leaseweb.net/archlinux/$repo/os/$arch' >> /etc/pacman.d/mirrorlist
|
|
|
|
# journald settings (from archiso)
|
|
sed -i 's/#\(Storage=\)auto/\1volatile/' /etc/systemd/journald.conf
|
|
|
|
# logind settings (from archiso)
|
|
sed -i 's/#\(HandleSuspendKey=\)suspend/\1ignore/' /etc/systemd/logind.conf
|
|
sed -i 's/#\(HandleHibernateKey=\)hibernate/\1ignore/' /etc/systemd/logind.conf
|
|
sed -i 's/#\(HandleLidSwitch=\)suspend/\1ignore/' /etc/systemd/logind.conf
|
|
|
|
# DNS Settings
|
|
#echo "nameserver 8.8.8.8" > /etc/resolv.conf
|
|
#echo "nameserver 8.8.4.4" >> /etc/resolv.conf
|
|
#echo "nameserver 2001:4860:4860::8888" >> /etc/resolv.conf
|
|
#echo "nameserver 2001:4860:4860::8844" >> /etc/resolv.conf
|
|
#echo "nameserver 208.67.222.222" >> /etc/resolv.conf
|
|
#echo "nameserver 208.67.220.220" >> /etc/resolv.conf
|
|
#echo "nameserver 2620:0:ccc::2" >> /etc/resolv.conf
|
|
#echo "nameserver 2620:0:ccd::2" >> /etc/resolv.conf
|
|
|
|
# Startup settings
|
|
systemctl set-default multi-user.target
|
|
#systemctl set-default graphical.target
|
|
|
|
# archiso cleanup
|
|
for file in /etc/systemd/system/{pacman-init.service,etc-pacman.d-gnupg.mount} /etc/systemd/scripts/choose-mirror /etc/udev/rules.d/81-dhcpcd.rules /etc/initcpio; do
|
|
if [ -e "$file" ]; then
|
|
rm "$file" -R
|
|
fi
|
|
done
|
|
|