Update install scripts based on further system usage.

This commit is contained in:
Drew Galbraith 2023-11-19 01:11:14 -08:00
parent 9c16a2540e
commit c0d6ee5750
5 changed files with 44 additions and 29 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
opt/

View File

@ -40,6 +40,8 @@ Install the base:
Followed by important packages:
`pacstrap /mnt grub efibootmgr e2fsprogs networkmanager vim man-db man-pages texinfo sudo`
Either pacstrap `intel-ucode` or `amd-ucode` for the processor. It will be automatically loaded by grub.
# Part 2 - Configure
Generally follow the configure the system steps in the
@ -85,6 +87,30 @@ Install helpful utilities:
TODO: Install graphics driver pagckages?
## Update DNS
Set in /etc/systemd/resolved.conf
```
DNS=66.42.73.247#itramisu.one
DNSOverTLS=yes
```
`ln -sf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf`
`systemctl enable systemd-resolved`
## Create a swapfile (optional)
https://wiki.archlinux.org/title/swap#Swap_file
For laptops: Check suspend method -> https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Changing_suspend_method
Configure hibernation: https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation
Set /etc/systemd/sleep.conf parameters for timed sleep/hibernate.
Set /etc/systemd/logind.conf to HandleLidSwitch to SuspendThenHibernate
# Part 3 - Desktop
Reboot and login as the new user.
@ -94,28 +120,27 @@ Clone this git repo at /home/drew/install.
- Run `sudo ./install_desktop.sh`
- Run `./install_usr.sh`
May have to add a udev rule to allow brightness keys to work.
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 neovim lua-language-server ccls rust rust-analyzer jedi-language-server`
Start up neovim and run PackerSync
(note you may have to comment out:
init.lua: require(impatient)
opts.lua: vim.cmd("colorscheme nordfox")
`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.
mkdir prog and clone a c++ code base, a python code base, and a rust code base to test the language server.
# Part 6 - Optional
Steam?

View File

@ -9,10 +9,10 @@ fi
echo "Installing packages."
# Base Packages.
# Go is a dependency of yay
pacman --noconfirm -S which base-devel go
pacman --noconfirm -S which base-devel go wireguard-tools
# Display Elements.
pacman --noconfirm -S plymouth sddm wayland sway swaybg swaylock swayidle wofi waybar
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
@ -33,5 +33,6 @@ echo "Giving Sway hardware access."
usermod -aG seat drew
systemctl enable seatd.service
pacman --noconfirm -S pulseaudio pavucontrol network-manager-applet
pacman --noconfirm -S pulseaudio pavucontrol network-manager-applet flameshot bluez bluez-utils blueman pulseaudio-bluetooth
systemctl enable bluetooth

View File

@ -1,25 +1,7 @@
#! /bin/bash
set -e
echo "Installing yay"
mkdir opt
pushd opt
git clone https://aur.archlinux.org/yay.git
chown -R drew .
pushd yay
makepkg -si
popd
popd
echo "Installing plymouth theme"
yay --noconfirm -S plymouth-theme-deus-ex-git
sudo plymouth-set-default-theme -R deus_ex
echo "Installing SDDM theme"
yay --noconfirm -S sddm-sugar-dark
echo "Pulling home git config"
$CONFIG="/usr/bin/git --git-dir=/home/drew/.cfg/ --work-tree=/home/drew"
CONFIG="/usr/bin/git --git-dir=/home/drew/.cfg/ --work-tree=/home/drew"
git config --global init.defaultBranch main
mkdir ~/.cfg
$CONFIG init
@ -29,3 +11,5 @@ $CONFIG submodule update --init
echo "*" > ~/.gitignore
sudo sed -i 's/ForceHideCompletePassword=false/ForceHideCompletePassword=true/' /usr/share/sddm/themes/sugar-dark/theme.conf
yay -S protonvpn

4
nvim-bootstrap.lua Normal file
View File

@ -0,0 +1,4 @@
package.path = package.path .. "~/.config/nvim/lua"
require('plug')
require('packer').sync()