diff --git a/README.md b/README.md index f083001..634c1f1 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ Generally follow the configure the system steps in the - Run `grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB` - Update `/etc/default/grub` to have the line: `GRUB_CMDLINE_LINUX="cryptdevice=UUID=device-UUID:root root=/dev/mapper/root"` -(Get the UUID using blkid /dev/sda2). +(Get the UUID using `blkid -s UUID -o value /dev/sda2`, can be inserted into vim using `:r!CMD`). - Run `grub-mkconfig -o /boot/grub/grub.cfg` - Reboot sucessfully(?) into the new system. @@ -99,7 +99,6 @@ DNSOverTLS=yes `systemctl enable systemd-resolved` - ## Create a swapfile (optional) https://wiki.archlinux.org/title/swap#Swap_file @@ -117,6 +116,7 @@ Reboot and login as the new user. Clone this git repo at /home/drew/install. +- `sudo ./install_packages.sh` - Run `sudo ./install_desktop.sh` - Run `./install_usr.sh` @@ -126,15 +126,12 @@ https://wiki.archlinux.org/title/Backlight#ACPI # Part 4 - Applications `mkdir Documents/ Downloads/ Pictures/` -`sudo pacman -S firefox` Log into firefox w/ sync (installs bitwarden.) Set firefox to search with kagi. # Part 5 - Dev environment -`sudo pacman -S bind openssh cmake ninja neovim lua-language-server ccls rust rust-analyzer jedi-language-server` - Run `nvim -u nvim-bootstrap.lua` to install plugins as nvim won't start up until they are. Add ssh keys to gitea and gitlab. diff --git a/install_desktop.sh b/install_desktop.sh index 4688f71..6a71bb9 100755 --- a/install_desktop.sh +++ b/install_desktop.sh @@ -6,17 +6,6 @@ if [[ $EUID -ne 0 ]]; then exit fi -echo "Installing packages." -# Base Packages. -# Go is a dependency of yay -pacman --noconfirm -S which base-devel go wireguard-tools - -# Display Elements. -pacman --noconfirm -S plymouth sddm wayland sway swaybg swaylock swayidle wofi waybar wev gammastep - -# Theming. -pacman --noconfirm -S ttf-liberation sddm kitty zsh adobe-source-code-pro-fonts ttf-sourcecodepro-nerd ttf-dejavu arc-gtk-theme papirus-icon-theme - echo "Installing plymouth" # This is likely a bit too brittle. sed -i 's/kms keyboard/kms plymouth keyboard/' /etc/mkinitcpio.conf @@ -33,6 +22,5 @@ echo "Giving Sway hardware access." usermod -aG seat drew systemctl enable seatd.service -pacman --noconfirm -S pulseaudio pavucontrol network-manager-applet flameshot bluez bluez-utils blueman pulseaudio-bluetooth systemctl enable bluetooth diff --git a/install_packages.sh b/install_packages.sh new file mode 100755 index 0000000..6119973 --- /dev/null +++ b/install_packages.sh @@ -0,0 +1,29 @@ +#! /bin/bash + +# Script to install all packages necessary for the system while documenting their uses. +set -e + +if [[ $EUID -ne 0 ]]; then + echo "Must run as root." + exit +fi + + +DISPLAY="plymouth sddm wayland sway swaybg swaylock swayidle wofi waybar wev gammastep" + +TERMINAL="zsh kitty" + +FONTS_THEMES="ttf-liberation adobe-source-code-pro-fonts ttf-sourcecodepro-nerd ttf-dejavu arc-gtk-theme papirus-icon-theme" + +MEDIA="pulseaudio pavucontrol network-manager-applet flameshot bluez bluez-utils blueman pulseaudio-bluetooth" + +# bind contains dig +DEV_TOOLS="openssh rust python-virtualenv bind base-devel go which rsync gdb" + +OSDEV_TOOLS="limine dosfstools parted cmake ninja qemu-desktop qemu-system-x86" + +NVIM_DEV="neovim lua-language-server ccls rust-analyzer jedi-language-server ripgrep" + +PROGRAMS="firefox" + +pacman -S $DISPLAY $TERMINAL $FONTS_THEMES $MEDIA $DEV_TOOLS $OSDEV_TOOLS $NVIM_DEV $PROGRAMS