arch-public-installation.sh (5323B)
1 #!/bin/bash 2 # Full arch installer (publicly accessible resources only) 3 4 cd 5 6 sudo pacman -S curl git gcc make xorg-server libxft libxinerama freetype2 pkgconf ttf-fira-code zoxide fzf openssh less arandr pass pass-otp xclip xorg-xsetroot base-devel pandoc entr ripgrep wget jq man-db btop tmux rsync cronie mpv podman pavucontrol otf-latin-modern tk brightnessctl zip unzip xorg-xset lynx figlet feh ffmpeg zathura-pdf-mupdf xorg-xhost yt-dlp qemu-full qbittorrent alsa-utils pipewire-alsa pipewire-pulse sshfs lsof neovim wireshark-qt nmap torbrowser-launcher dunst thunderbird graphviz restic dictd wireguard-tools systemd-resolvconf perf valgrind kcachegrind xorg-xinit 7 8 # perf and valgrind for performance profiling binaries (useful in go, c, c++) 9 10 # systemd-resolvconf for wireguard 11 12 sudo systemctl enable systemd-resolved 13 sudo systemctl start systemd-resolved 14 15 # dictd is so useful!!! 16 17 # REMOVED: 18 # newsboat -- too distracting, I would check it too frequently 19 20 # TODO: Which of this stuff is redundant? 21 sudo pacman -S texlive-bin texlive-latex texlive-basic texlive-latexrecommended texlive-binextra texlive-latexextra texlive-fontsextra texlive-fontsrecommended 22 23 24 sudo usermod -a -G wireshark $USER # NOTE: Requires logout to be realized. 25 # This allows the user to run wireshark without root 26 # with interface listening. 27 28 # xorg-xhost for containers to use my x server 29 30 # TODO: Make this script idempotent. 31 # Websocat is for dev work 32 33 # BLUETOOTH: 34 # sudo pacman -S bluez bluez-utils 35 # sudo systemctl enable bluetooth 36 # sudo systemctl start bluetooth 37 38 # VIDEO/AUDIO CAPTURE: 39 # sudo pacman -S obs-studio 40 41 # xorg-xset is for disabling screen turning off after inactivity 42 # it often kicks in and results in my laptop not detecting my monitor again. 43 # this is possibly a limitation of using usbc on an older laptop with such a 44 # large monitor... 45 46 fc-cache 47 48 # TK is for pyautogui, gui automations. 49 50 # TODO: Is there a programatic way to set up librewolf? 51 # I installed latinmodern for the LaTeX font LMRoman10 which is what I force sites in to use with librewolf. 52 # I also force the monospace font to be Fira Code. 53 # I also use vimium (copying the backup that is in my config directory) and dark reader. 54 # I then enable the dark theme and set the home page to be blank. 55 # 56 # You also **need** to disable push notifications from mozilla because they contact google servers on startup. 57 # This is simply not acceptable. 58 # You know what, fuck them. this is not something I am willing to live with. 59 # Anything beyond this feels like more work than it's worth. 60 61 # Was required for getting my sound working on my xps13, probably not necessary otherwise: 62 # alsa-utils pipewire-alsa pipewire-pulse 63 64 mkdir gitRepos 65 cd gitRepos 66 67 # Get all of my public repos, parse the urls for cloning. 68 REPOS=$(curl -s https://git.laack.co/ | grep -oP '(?<=<a href=")[^/]+(?=/log.html)') 69 70 for REPO in $REPOS; do 71 git clone $REPO 72 done 73 74 75 # TODO: Migrate to stagit again 76 77 mv scripts bin 78 79 # INSTALLATION SUCKLESS UTILS 80 for REPO in dwm dmenu st; do 81 cd $REPO 82 sudo make install 83 cd .. 84 done 85 86 # go install github.com/andrewlaack/usb-ks@64b02669e38c8a1099492523a93b11757e5754d1 87 git clone git://git.laack.co/usb-ks.git 88 cd usb-ks 89 go install 90 cd .. 91 sudo install ~/go/bin/usb-ks /usr/local/bin/ 92 93 # EXTERNAL REPOS 94 git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim 95 # git clone https://aur.archlinux.org/yay.git 96 97 # cd yay 98 # makepkg -si 99 100 # rm -rf ~/gitRepos/yay 101 102 # yay -S librewolf-bin --noconfirm 103 # yay -S lagrange --noconfirm 104 # yay -S gemget --noconfirm 105 # yay -S mpv-handler --noconfirm 106 # 107 # xdg-mime default mpv-handler.desktop x-scheme-handler/mpv-handler 108 # xdg-mime default mpv-handler-debug.desktop x-scheme-handler/mpv-handler-debug 109 110 # NOTE: This might not work because of some gpg stuff 111 # if that's the case, go the to site and create an executable script in /usr/bin to run it 112 # as far as configuration, I generally set default search engine to brave search and new tab -> blank page 113 # yay -S mullvad-browser-bin --noconfirm 114 # yay -S vscodium-bin --noconfirm 115 # they have default data collection 116 #yay -S netbird --noconfirm 117 118 # Questionable. 119 # I really dislike their defaults (especially w/ tracking stuff) 120 # that said, it feels faster (blink and all that) 121 # 122 # I **ONLY** use this for work and school (compat + persistence reasons) 123 # 124 # Everything else should be done with mullvad / tor. 125 126 # yay -S brave-bin --noconfirm 127 128 # RELOCATION OF SELECT REPOS 129 mv ~/gitRepose/nvim ~/gitRepos/dotfiles 130 131 # SETUP SYMLINKS (GITREPOS IS SOURCE OF TRUTH) 132 ln -s ~/gitRepos/dotfiles ~/.config 133 ln -s ~/gitRepos/bin ~/bin 134 135 cd 136 137 for FILE in bashrc xinitrc inputrc ; do 138 ln -s .config/$FILE .$FILE 139 done 140 141 142 # SERVICES 143 sudo systemctl enable sshd 144 sudo systemctl start sshd 145 sudo systemctl enable cronie 146 sudo systemctl start cronie 147 148 # TODO: Should I use docker or podman / some other OCI image thing? 149 # sudo systemctl enable docker 150 # sudo systemctl start docker 151 152 # DOCKER 153 # sudo groupadd docker 154 # sudo usermod -aG docker $USER 155 # echo "Docker configured to run as your current user. Log out for this to be realized." 156 157 # DONE 158 echo "Time to open neovim and run :PackerSync a bunch, delete installer.sh, and run the private installer (if applicable)!"