|
|
@ -1,9 +1,9 @@ |
|
|
|
Y#!/bin/bash |
|
|
|
Y#!/bin/bash |
|
|
|
# |
|
|
|
# |
|
|
|
# An almost completely untested automated package install script for new installs. |
|
|
|
# An almost completely untested automated package install script for new installs. |
|
|
|
# |
|
|
|
# |
|
|
|
# This file is relatively untested and stuff is generally added to it mostly |
|
|
|
# This file is relatively untested and stuff is generally added to it mostly |
|
|
|
# for the sake of remembering what commands to run. This may not work |
|
|
|
# for the sake of remembering what commands to run. This may not work |
|
|
|
# as expected (since I only ever use it when I have a fresh install) and you |
|
|
|
# as expected (since I only ever use it when I have a fresh install) and you |
|
|
|
# should look over the code yourself before running. |
|
|
|
# should look over the code yourself before running. |
|
|
|
# |
|
|
|
# |
|
|
@ -11,7 +11,7 @@ Y#!/bin/bash |
|
|
|
function install_yaourt { |
|
|
|
function install_yaourt { |
|
|
|
sudo pacman -S base-devel yajl & |
|
|
|
sudo pacman -S base-devel yajl & |
|
|
|
mkdir -p ~/temp/AUR/ && cd ~/temp/AUR/ |
|
|
|
mkdir -p ~/temp/AUR/ && cd ~/temp/AUR/ |
|
|
|
|
|
|
|
|
|
|
|
wget https://aur.archlinux.org/cgit/aur.git/snapshot/package-query.tar.gz |
|
|
|
wget https://aur.archlinux.org/cgit/aur.git/snapshot/package-query.tar.gz |
|
|
|
tar xfz package-query.tar.gz |
|
|
|
tar xfz package-query.tar.gz |
|
|
|
cd package-query && makepkg |
|
|
|
cd package-query && makepkg |
|
|
@ -38,7 +38,7 @@ echo "" >> /etc/pacman.conf |
|
|
|
|
|
|
|
|
|
|
|
# If these two commands fail with an error about dirmngr, you will probably need to |
|
|
|
# If these two commands fail with an error about dirmngr, you will probably need to |
|
|
|
# su into root and run dirmngr. This will error and create the .gnupg dotfile and the |
|
|
|
# su into root and run dirmngr. This will error and create the .gnupg dotfile and the |
|
|
|
# other files needed to make this work. |
|
|
|
# other files needed to make this work. |
|
|
|
sudo pacman-key -r 962DDE58 |
|
|
|
sudo pacman-key -r 962DDE58 |
|
|
|
sudo pacman-key --lsign-key 962DDE58 |
|
|
|
sudo pacman-key --lsign-key 962DDE58 |
|
|
|
|
|
|
|
|
|
|
@ -48,7 +48,7 @@ packages=("wget", "emacs", "gvim", "openssh", "steam", "zsh", "zsh-completions", |
|
|
|
"xf86-video-fbdev", "xf86-video-intel", "xf86-video-vesa", "alsa-utils", "xorg", |
|
|
|
"xf86-video-fbdev", "xf86-video-intel", "xf86-video-vesa", "alsa-utils", "xorg", |
|
|
|
"xorg-xinit", "dmenu", "ttf-inconsolata", "i3", "google-chrome", "clojure", "leiningen", |
|
|
|
"xorg-xinit", "dmenu", "ttf-inconsolata", "i3", "google-chrome", "clojure", "leiningen", |
|
|
|
"xclip", "playerctl", "infinality-bundle", "lieningen-completions", "npm", "conky", |
|
|
|
"xclip", "playerctl", "infinality-bundle", "lieningen-completions", "npm", "conky", |
|
|
|
"feh", "networkmanager", "htop", "physlock", "mit-scheme", "pulseaudio", "ponymix", "rlwrap") |
|
|
|
"feh", "networkmanager", "htop", "physlock", "mit-scheme", "pulseaudio", "ponymix", "rlwrap") |
|
|
|
|
|
|
|
|
|
|
|
# Reload the font cache |
|
|
|
# Reload the font cache |
|
|
|
fc-cache -fv |
|
|
|
fc-cache -fv |
|
|
@ -57,24 +57,24 @@ fc-cache -fv |
|
|
|
# Execute the array of commands |
|
|
|
# Execute the array of commands |
|
|
|
for (( i=0; i<${#packages[@]}; i++ )); do |
|
|
|
for (( i=0; i<${#packages[@]}; i++ )); do |
|
|
|
printf "\n **** Installing: ${packages[$i]} ****\n\n" |
|
|
|
printf "\n **** Installing: ${packages[$i]} ****\n\n" |
|
|
|
|
|
|
|
|
|
|
|
eval "yaourt -S ${packages[$i]}" |
|
|
|
eval "yaourt -S ${packages[$i]}" |
|
|
|
done |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
printf "\n **** Finished Installing Packages **** \n" |
|
|
|
printf "\n **** Finished Installing Packages **** \n" |
|
|
|
|
|
|
|
|
|
|
|
# Add additional commands to be run here. They will be run one after the other in sequence. |
|
|
|
# Add additional commands to be run here. They will be run one after the other in sequence. |
|
|
|
commands=() |
|
|
|
commands=() |
|
|
|
|
|
|
|
|
|
|
|
# Execute the array of commands |
|
|
|
# Execute the array of commands |
|
|
|
for (( i=0; i<${#commands[@]}; i++ )); do |
|
|
|
for (( i=0; i<${#commands[@]}; i++ )); do |
|
|
|
printf "\n **** Running: ${commands[$i]} ****\n\n" |
|
|
|
printf "\n **** Running: ${commands[$i]} ****\n\n" |
|
|
|
|
|
|
|
|
|
|
|
eval "yaourt -S ${commands[$i]} | yes" |
|
|
|
eval "yaourt -S ${commands[$i]} | yes" |
|
|
|
done |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
# Set locale correctly |
|
|
|
# Set locale correctly |
|
|
|
sudo sed -i -e 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen |
|
|
|
sudo sed -i -e 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen |
|
|
|
sudo locale-gen |
|
|
|
sudo locale-gen |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -88,3 +88,8 @@ sudo locale-gen |
|
|
|
# copy services/10-physlock to /etc/pm/sleep.d/10-vlock |
|
|
|
# copy services/10-physlock to /etc/pm/sleep.d/10-vlock |
|
|
|
# replacing USERNAME with their name via sed. |
|
|
|
# replacing USERNAME with their name via sed. |
|
|
|
# remember to use sudo |
|
|
|
# remember to use sudo |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Copy terminfo so that text editors can find it |
|
|
|
|
|
|
|
mkdir ~/.terminfo |
|
|
|
|
|
|
|
nkdir ~/.terminfo/r/ |
|
|
|
|
|
|
|
ln -s /usr/share/terminfo/r/rxvt-unicode ~/.terminfo/r/rxvt-unicode |
|
|
|