Update Readme and script

This commit is contained in:
Cameron Miller 2021-12-09 13:09:54 +00:00
parent 36f80e1499
commit 638d654fd7
2 changed files with 74 additions and 4 deletions

View File

@ -20,6 +20,7 @@
- [[#the-welcome-message][The Welcome Message]] - [[#the-welcome-message][The Welcome Message]]
- [[#adding-the-cbsh-repos-to-your-system][Adding the CBSH Repos to your system.]] - [[#adding-the-cbsh-repos-to-your-system][Adding the CBSH Repos to your system.]]
- [[#adding-keyservers-to-gpgconf][Adding keyservers to gpg.conf]] - [[#adding-keyservers-to-gpgconf][Adding keyservers to gpg.conf]]
- [[#recieving-the-pgp-key][Recieving the PGP key]]
- [[#installing-the-packages-from-the-repos][Installing the packages from the repos]] - [[#installing-the-packages-from-the-repos][Installing the packages from the repos]]
- [[#copying-over-the-configs-from-etccbsh-to-home][Copying over the configs from /etc/cbsh to $HOME]] - [[#copying-over-the-configs-from-etccbsh-to-home][Copying over the configs from /etc/cbsh to $HOME]]
- [[#installing-doom-emacs][Installing DOOM Emacs!]] - [[#installing-doom-emacs][Installing DOOM Emacs!]]
@ -162,6 +163,19 @@ addkeyservers || err "Error adding the Keyservers to /etc/pacman.d/gnupg/gpg.con
#+end_src #+end_src
* Recieving the PGP key
#+begin_src bash
recieve_keys() { \
local _pgpkey="94424B71F1A63D9D"
echo "#############################"
echo "## Adding PGP key $_pgpkey ##"
echo "#############################"
sudo pacman-key --recv-key $_pgpkey
sudo pacman-key --lsign-key $_pgpkey
}
recieve_keys || err "Error Recieving PGP key $_pgpkey"
#+end_src
* Installing the packages from the repos * Installing the packages from the repos
All packages listed are either in the standard Arch Repos or in my CBSH repos. these will all get installed with pacman. the only exception is DOOM Emacs which will be installed later in the script. All packages listed are either in the standard Arch Repos or in my CBSH repos. these will all get installed with pacman. the only exception is DOOM Emacs which will be installed later in the script.
@ -191,10 +205,8 @@ echo "#########################################################"
cd /etc/cbsh cd /etc/cbsh
sudo mv .config/qtile/qtile/* .config/qtile && sudo rm -r .config/qtile/qtile sudo mv .config/qtile/qtile/* .config/qtile && sudo rm -r .config/qtile/qtile
sudo mv .config/alacritty/alacritty/* .config/alacritty && sudo rm -r .config/alacritty/alacritty
sudo mv .config/kitty/kitty/* .config/kitty && sudo rm -r .config/kitty/kitty sudo mv .config/kitty/kitty/* .config/kitty && sudo rm -r .config/kitty/kitty
sudo mv .config/zsh/.zshrc .zshrc && sudo rm -r .config/zsh sudo mv .config/zsh/.zshrc .zshrc && sudo rm -r .config/zsh
sudo mv .doom.d/* .config/doom && sudo rm -r .config/zsh
cp -Rf . ~ && cd - cp -Rf . ~ && cd -
#+end_src #+end_src
@ -237,7 +249,32 @@ select choice in "${shells[@]}"; do
* Make Sure SDDM is enabled so we don't boot into a TTY, and NetworkManager is too so the applet works. * Make Sure SDDM is enabled so we don't boot into a TTY, and NetworkManager is too so the applet works.
#+begin_src bash #+begin_src bash
# Disable Current Login Manager, if any.
sudo systemctl disable $(grep '/usr/s\?bin' /etc/systemd/system/display-manager.service | awk -F / '{print $NF}') || echo "Cannot Disable current Display Manager"
# Then enable SDDM as the Login Manager
sudo systemctl enable sddm sudo systemctl enable sddm
echo "###################################"
echo "## Enable sddm as login manager. ##"
echo "###################################"
## Next, Set cbsh-sddm-theme as the default theme for SDDM ##
# System Configuration File
[ -f "/usr/lib/sddm/sddm.conf.d/default.conf" ] && \
sudo cp /usr/lib/sddm/sddm.conf.d/default.conf /usr/lib/sddm/sddm.conf.d/default.conf.backup && \
sudo sed -i 's/^Current=*.*/Current=cbsh-sddm-theme/g' /usr/lib/sddm/sddm.conf.d/default.conf
# Local SDDM Configuration File
[ -f "/etc/sddm.conf" ] && \
sudo cp /etc/sddm.conf /etc/sddm.conf.backup && \
sudo sed -i 's/^Current=*.*/Current=cbsh-sddm-theme/g' /etc/sddm.conf
# Create a local file if it doesnt exist (Mainline Arch Linux doesn't by default)
[ ! -f "/etc/sddm.conf" ] && \
sudo cp /usr/lib/sddm/sddm.conf.d/default.conf /etc/sddm.conf || echo "Default sddm system config file is not found."
# Enable NetworkManager for networking
sudo systemctl enable NetworkManager sudo systemctl enable NetworkManager
#+end_src #+end_src

View File

@ -56,6 +56,16 @@ addkeyservers() { \
} }
addkeyservers || err "Error adding the Keyservers to /etc/pacman.d/gnupg/gpg.conf" addkeyservers || err "Error adding the Keyservers to /etc/pacman.d/gnupg/gpg.conf"
recieve_keys() { \
local _pgpkey="94424B71F1A63D9D"
echo "#############################"
echo "## Adding PGP key $_pgpkey ##"
echo "#############################"
sudo pacman-key --recv-key $_pgpkey
sudo pacman-key --lsign-key $_pgpkey
}
recieve_keys || err "Error Recieving PGP key $_pgpkey"
# Let's install all of the packages listed in the pkglist.txt file. # Let's install all of the packages listed in the pkglist.txt file.
sudo pacman --needed --ask 4 -Syu - < pkglist.txt sudo pacman --needed --ask 4 -Syu - < pkglist.txt
@ -72,10 +82,8 @@ echo "#########################################################"
cd /etc/cbsh cd /etc/cbsh
sudo mv .config/qtile/qtile/* .config/qtile && sudo rm -r .config/qtile/qtile sudo mv .config/qtile/qtile/* .config/qtile && sudo rm -r .config/qtile/qtile
sudo mv .config/alacritty/alacritty/* .config/alacritty && sudo rm -r .config/alacritty/alacritty
sudo mv .config/kitty/kitty/* .config/kitty && sudo rm -r .config/kitty/kitty sudo mv .config/kitty/kitty/* .config/kitty && sudo rm -r .config/kitty/kitty
sudo mv .config/zsh/.zshrc .zshrc && sudo rm -r .config/zsh sudo mv .config/zsh/.zshrc .zshrc && sudo rm -r .config/zsh
sudo mv .doom.d/* .config/doom && sudo rm -r .config/zsh
cp -Rf . ~ && cd - cp -Rf . ~ && cd -
echo "#########################################################" echo "#########################################################"
@ -107,7 +115,32 @@ select choice in "${shells[@]}"; do
esac esac
done done
# Disable Current Login Manager, if any.
sudo systemctl disable $(grep '/usr/s\?bin' /etc/systemd/system/display-manager.service | awk -F / '{print $NF}') || echo "Cannot Disable current Display Manager"
# Then enable SDDM as the Login Manager
sudo systemctl enable sddm sudo systemctl enable sddm
echo "###################################"
echo "## Enable sddm as login manager. ##"
echo "###################################"
## Next, Set cbsh-sddm-theme as the default theme for SDDM ##
# System Configuration File
[ -f "/usr/lib/sddm/sddm.conf.d/default.conf" ] && \
sudo cp /usr/lib/sddm/sddm.conf.d/default.conf /usr/lib/sddm/sddm.conf.d/default.conf.backup && \
sudo sed -i 's/^Current=*.*/Current=cbsh-sddm-theme/g' /usr/lib/sddm/sddm.conf.d/default.conf
# Local SDDM Configuration File
[ -f "/etc/sddm.conf" ] && \
sudo cp /etc/sddm.conf /etc/sddm.conf.backup && \
sudo sed -i 's/^Current=*.*/Current=cbsh-sddm-theme/g' /etc/sddm.conf
# Create a local file if it doesnt exist (Mainline Arch Linux doesn't by default)
[ ! -f "/etc/sddm.conf" ] && \
sudo cp /usr/lib/sddm/sddm.conf.d/default.conf /etc/sddm.conf || echo "Default sddm system config file is not found."
# Enable NetworkManager for networking
sudo systemctl enable NetworkManager sudo systemctl enable NetworkManager
echo "###########################################" echo "###########################################"