From cedf0f823f5ed30179e4b997f5a980a3ff5e614a Mon Sep 17 00:00:00 2001 From: "Toerd@iArch" Date: Sun, 9 Jun 2019 02:32:33 +0200 Subject: [PATCH 1/4] added bootstrap.sh --- bootstrap.sh | 124 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100755 bootstrap.sh diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100755 index 0000000..4129209 --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,124 @@ +#!/bin/bash + +while getopts "p:n:d:" opt; +do case $opt in + p) PASSWD=${OPTARG} ;; + n) NAME=${OPTARG} ;; + d) DEV=${OPTARG} ;; + \?) echo "-$OPTARG is not valid" >&2 && exit ;; + esac +done + +# stop on error +set -e + + +PASSWD=${PASSWD:="toor"} +NAME=${NAME:="archibald"} +PASSWD=${DEV:="nvme0n1"} + + +echo "+---------------------+" +echo "| Archlinux Bootstrap |" +echo "+---------------------+" +echo "ROOTPWD = $PASSWD" +echo "HOSTNAME = $NAME" +echo -e "DEVICE = $DEV\n" +sleep 2 + +timedatectl set-ntp true + +gdisk < /etc/pacman.d/mirrorlist + +pacstrap /mnt base base-devel wpa_supplicant dialog +genfstab -p /mnt > /mnt/etc/fstab + +cat < /mnt/root/bootstrap2.sh +#!/bin/bash + +ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime +hwclock --systohc -utc + +echo "en_US.UTF-8 UTF-8" > /etc/locale.gen +locale-gen + +echo "LANG=en_US.UTF-8" > /etc/locale.conf +echo $NAME > /etc/hostname + +mkinitcpio -p linux + +pacman -Sy --noconfirm efibootmgr dosfstools gptfdisk + +bootctl install + +cat < /boot/loader/entries/arch-uefi.conf +title Arch +linux /vmlinuz-linux +initrd /initramfs-linux.img +options root=LABEL=P_ROOT rw resume=LABEL=P_SWAP +EEE + +cat < /boot/loader/entries/arch-uefi-fallback.conf +title Arch +title Arch Linux Fallback +linux /vmlinuz-linux +initrd /initramfs-linux-fallback.img +options root=LABEL=P_ROOT rw resume=LABEL=P_SWAP +EEE + + +cat < /boot/loader/loader.conf +default arch-uefi +timeout 1 +EEE + +pacman --noconfirm -Sy reflector +reflector --country 'Germany' --sort rate --protocol https --save /etc/pacman.d/mirrorlist + +printf "${PWD}\n${PWD}\n" | passwd root + +exit +EOF + +chmod u+x /mnt/root/bootstrap2.sh + +arch-chroot /mnt /root/bootstrap2.sh +rm /mnt/root/bootstrap2.sh && rm ./bootstrap.sh + +# reboot From f4bffc546c1cc4ec863dafa1d7bb40894116d72c Mon Sep 17 00:00:00 2001 From: "Toerd@iArch" Date: Sun, 9 Jun 2019 02:41:51 +0200 Subject: [PATCH 2/4] added pack lightdm --- pack.csv | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pack.csv b/pack.csv index 1077830..565bc4c 100644 --- a/pack.csv +++ b/pack.csv @@ -55,6 +55,8 @@ A,A,polybar,status bar A,P,sxhkd,Keyboard shortcuts A,P,compton,Required for st to get transparent background (xcomp graphic glitches) A,P,dunst,Notification Server +A,P,lightdm,Display Manager +A,P,lightdm-gtk-greeter,Login Screen # Other display related stuff A,P,redshift,No more burning eyes at night <3 From 3467aa9bc88df9c889db9e0aa4cb03254c4957bb Mon Sep 17 00:00:00 2001 From: "Toerd@iArch" Date: Sun, 9 Jun 2019 02:43:45 +0200 Subject: [PATCH 3/4] autostart lightdm --- fresh.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fresh.sh b/fresh.sh index bd22266..d67be88 100755 --- a/fresh.sh +++ b/fresh.sh @@ -243,7 +243,7 @@ case $todo in set_permissions "%wheel ALL=(ALL) ALL\\n%wheel ALL=(ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/usr/bin/systemctl suspend,/usr/bin/wifi-menu,/usr/bin/mount,/usr/bin/umount,/usr/bin/pacman -Syu,/usr/bin/pacman -Syyu,/usr/bin/pacman -Syyu --noconfirm,/usr/bin/loadkeys" no_beep set_system_stuff - enable_service "--user syncthing" "netctl-auto@wlp3s0" "--user offlineimap@philip_thi" "--user offlineimap@philip_posteo" "--user offlineimap@philip_gmail" + enable_service "--user syncthing" "netctl-auto@wlp3s0" "--user offlineimap@philip_thi" "--user offlineimap@philip_posteo" "--user offlineimap@philip_gmail" "lightdm" ready_steady_go clear ;; From 0a5884d193b47c419dc2353a1bf355f84c2ea5f4 Mon Sep 17 00:00:00 2001 From: "Toerd@iArch" Date: Sun, 9 Jun 2019 03:32:38 +0200 Subject: [PATCH 4/4] mu now in AUR --- pack.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pack.csv b/pack.csv index 565bc4c..5394d72 100644 --- a/pack.csv +++ b/pack.csv @@ -74,7 +74,7 @@ A,P,pandoc,A universal document converter A,P,auctex,latexpreview # Mail -A,P,mu,Maildir indexer/searcher and Emacs client (mu4e) +A,A,mu,Maildir indexer/searcher and Emacs client (mu4e) A,P,offlineimap,Synchronizes emails between two repositories # Webbrowsing