Browse Source

More packages added to the package installer

master
Taylor Bockman 9 years ago
parent
commit
eb42ae9fd0
  1. 13
      installation_instructions
  2. 51
      scripts/sysinstall/install_packages.sh

13
installation_instructions

@ -90,7 +90,7 @@ vfat ext4 dm_mod dm_crypt aes_x86_64 i915
mkinitcpio -p linux mkinitcpio -p linux
# add options to /etc/lvm/lvm.conf # add options to /etc/lvm/lvm.conf
issue_discards 1 issue_discards = 1
### Timezone (customize of course) ### Timezone (customize of course)
ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
@ -107,11 +107,8 @@ pacman -S iw wpa_supplicant dialog wpa_actiond
### Root password ### Root password
passwd passwd
### bootloader ### # set up bootloader
pacman -S gummiboot-efi bootctl install
# set up gummiboot
/usr/bin/gummiboot install
# create conf # create conf
# /boot/loader/loader.conf # /boot/loader/loader.conf
@ -128,8 +125,8 @@ options cryptdevice=/dev/sdX2:vgroup root=/dev/mapper/vgroup-lvroot ro
###### After reboot ###### After reboot
### Set up user account ### Set up user account
useradd -m -g users -G wheel -s /bin/bash alex useradd -m -g users -G wheel -s /bin/bash angrygoats
passwd alex passwd angrygoats
# Add to sudoers (uncomment wheel comment) # Add to sudoers (uncomment wheel comment)

51
scripts/sysinstall/install_packages.sh

@ -0,0 +1,51 @@
#!/bin/bash
# An almost completely untested automated package install script for new installs.
#
# 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
# as expected (since I only ever use it when I have a fresh install) and you
# should look over the code yourself before running.
#
function install_yaourt {
sudo pacman -S base-devel yajl &
mkdir -p ~/temp/AUR/ && cd ~/temp/AUR/
wget https://aur.archlinux.org/cgit/aur.git/snapshot/package-query.tar.gz
tar xfz package-query.tar.gz
cd package-query && makepkg
sudo pacman -U package-query*.pkg.tar.xz
wget https://aur.archlinux.org/cgit/aur.git/snapshot/yaourt.tar.gz
tar xfz yaourt.tar.gz
cd yaourt && makepkg
sudo pacman -U yaourt*.pkg.tar.xz
}
# Install yaourt before doing anything else
install_yaourt
# Add AUR packages to install here
packages=("wget", "emacs", "gvim", "openssh", "steam", "zsh", "zsh-completions", "tmux")
# Execute the array of commands
for (( i=0; i<${#packages[@]}; i++ )); do
printf "\n **** Installing: ${packages[$i]} ****\n\n"
eval "yaourt -S ${packages[$i]}"
done
printf "\n **** Finished Installing Packages **** \n"
# Add additional commands to be run here. They will be run one after the other in sequence.
commands=()
# Execute the array of commands
for (( i=0; i<${#commands[@]}; i++ )); do
printf "\n **** Running: ${commands[$i]} ****\n\n"
eval "yaourt -S ${commands[$i]}"
done
Loading…
Cancel
Save