Toerd@480 6 years ago
commit 0487f81d5c

@ -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 <<EOF
o
y
n
+1G
ef00
n
+16G
8200
n
8304
w
y
EOF
mkfs.fat -F 32 -n P_EFI /dev/${DEV}p1
mkfs.ext4 -L P_ROOT /dev/${DEV}p3
mkswap -L P_SWAP /dev/${DEV}p2
mount -L P_ROOT /mnt # root
mkdir -p /mnt/boot
mkdir -p /mnt/home
mount -L P_EFI /mnt/boot # EFI
swapon -L P_SWAP # swap
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
grep ".de/" /etc/pacman.d/mirrorlist.bak > /etc/pacman.d/mirrorlist
pacstrap /mnt base base-devel wpa_supplicant dialog
genfstab -p /mnt > /mnt/etc/fstab
cat <<EOF > /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 <<EEE > /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 <<EEE > /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 <<EEE > /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

@ -248,7 +248,7 @@ case $todo in
set_permissions "Defaults timestamp_timeout=45\n%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
;;

@ -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

1 # First column: A = All, L = Laptop, D = Desktop
55 A,P,gvim,Vi Improved a highly configurable improved version of the vi text editor (with advanced features such as a GUI) A,P,arandr,Provide a simple visual front end for XRandR 1.2.
56 A,P,emacs,The extensible customizable self-documenting real-time display editor # Text editing
57 A,P,xournalpp,Notetaking and sketching application A,P,gvim,Vi Improved a highly configurable improved version of the vi text editor (with advanced features such as a GUI)
58 A,P,emacs,The extensible customizable self-documenting real-time display editor
59 A,P,xournalpp,Notetaking and sketching application
60 # emacs reqs
61 A,P,pandoc,A universal document converter
62 A,P,auctex,latexpreview
Loading…
Cancel
Save