os/+arch: update bootstrap/install scripts
This commit is contained in:
parent
e7e0b78faa
commit
7ed86391af
|
@ -32,8 +32,6 @@ read -rp "Hostname:\t" host
|
|||
echo "$host" > "$MOUNT/etc/hostname"
|
||||
|
||||
# ensure keys are up to date
|
||||
pacman-key --init
|
||||
pacman-key --populate arch-linux
|
||||
pacman-key --refresh-keys
|
||||
pacman -Syy
|
||||
|
||||
|
@ -41,14 +39,12 @@ pacman -Syy
|
|||
pac base base-devel intel-ucode
|
||||
# device mounting drivers
|
||||
pac dosfstools ntfs-3g exfat-utils hfsprogs
|
||||
# nc
|
||||
pac gnu-netcat
|
||||
|
||||
# networking support
|
||||
WIRELESS_DEV=$(ip link | grep wlp | awk '{print $2}'| sed 's/://' | sed '1!d')
|
||||
if [[ $WIRELESS_DEV ]]; then
|
||||
echo "==> ${WIRELESS_DEV} interface detected"
|
||||
pac iw wireless_tools wpa_actiond wpa_supplicant dialog
|
||||
pac iw wireless_tools wpa_actiond wpa_supplicant dialog netctl
|
||||
fi
|
||||
|
||||
WIRED_DEV=$(ip link | grep "en[sop]" | awk '{print $2}'| sed 's/://' | sed '1!d')
|
||||
|
|
|
@ -32,12 +32,16 @@ $pacman -S wget git curl tree rsync openssh dnsutils
|
|||
|
||||
# Set up pacaur (AUR helper)
|
||||
if ! exists pacaur; then
|
||||
pushd $(mktemp -d)
|
||||
TEMP="$(mktemp -d)"
|
||||
function cleanup {
|
||||
rm -rf "$TEMP"
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
pushd "$TEMP"
|
||||
curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=cower && makepkg --needed --noconfirm --skippgpcheck -sri
|
||||
curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=pacaur && makepkg --needed --noconfirm --skippgpcheck -sri
|
||||
TEMP=$(pwd)
|
||||
popd
|
||||
rm -rf "$TEMP"
|
||||
|
||||
if ! exists pacaur; then
|
||||
>&2 echo "Pacaur wasn't successfully installed"
|
||||
|
@ -49,13 +53,19 @@ fi
|
|||
## Bootstrap
|
||||
# Helpful utilities
|
||||
$pacaur -S the_silver_searcher tmux hub bc keybase-bin cronie
|
||||
systemctl enable cronie.service
|
||||
sudo systemctl enable cronie.service
|
||||
|
||||
if [[ -z $SERVER ]]; then
|
||||
if exists crontab; then
|
||||
[[ -f $PWD/crontab ]] && crontab $PWD/crontab
|
||||
[[ -f $PWD/crontab ]] && crontab "$PWD/crontab"
|
||||
fi
|
||||
|
||||
hookdest=/etc/pacman.d/hooks
|
||||
sudo mkdir -p "$hookdest"
|
||||
for hook in $PWD/$hookdest/*.hook; do
|
||||
[[ -f $hookdest/${hook##*/} ]] || sudo ln -svf "$hook" "$hookdest/"
|
||||
done
|
||||
|
||||
# desktop essentials
|
||||
$pacaur -S \
|
||||
xorg-xinit xorg-server \
|
||||
|
@ -67,10 +77,4 @@ if [[ -z $SERVER ]]; then
|
|||
redshift chromium chromium-widevine \
|
||||
alsa-utils \
|
||||
dictd dict-gcide
|
||||
|
||||
hookdest=/etc/pacman.d/hooks
|
||||
sudo mkdir -p "$hookdest"
|
||||
for hook in $PWD/$hookdest/*.hook; do
|
||||
[[ -f $hookdest/${hook##*/} ]] || sudo ln -svf $hook $hookdest/
|
||||
done
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue