Commits

Saul Shanabrook  committed 7b09e02

added echo debugging

  • Participants
  • Parent commits 5399671

Comments (0)

Files changed (1)

File Documents/linode_install

 set -e
 
 function update_system(){
-    echo 'Starting update'
+    echo 'STARTING UPDATE'
+    echo 'DISABLING PACMAN SYNCFIRST'
     sed -i 's_SyncFirst_#SyncFirst_g' /etc/pacman.conf
-    pacman -Syy
-
-    echo 'updating tzdata'
-    pacman -S --noconfirm tzdata
-    pacman -S filesystem --force --noconfirm
+    echo 'UPDATING SOURCES'
+    pacman -Syy --noprogressbar --quiet
+    echo 'UPDATING TZDATA'
+    pacman -S --noconfirm tzdata --noprogressbar --quiet
+    echo 'UPDATING FILESYSTEM'
+    pacman -S filesystem --force --noconfirm --noprogressbar --quiet
+    echo 'ENABLING PACMAN SYCNFIRST'
     sed -i 's_#SyncFirst_SyncFirst_g' /etc/pacman.conf
-
+    echo 'DELETING LOCAL.SH'
     rm /etc/profile.d/locale.sh
-    echo 'update all'
-    pacman  -Syu --noconfirm
-    pacman -Syu --noconfirm reflector
+    echo 'PACMAN UPDATE'
+    pacman  -Syu --noconfirm --noprogressbar --quiet
+    echo 'INSTALL REFLECTOR'
+    pacman -Syu --noconfirm reflector --noprogressbar --quiet
+    echo 'MOVING .PACNEW'
     mv /etc/rc.conf.pacnew /etc/rc.conf
-    mv /etc/locale.gen.pacnew /etc/locale.gen   
+    mv /etc/locale.gen.pacnew /etc/locale.gen
+    echo 'USING REFLECTOR MIRRORS'
     reflector -l 5 --sort rate --save /etc/pacman.d/mirrorlist
+    echo 'DELETING MIRRORLIST.PACNEW'
     rm /etc/pacman.d/mirrorlist.pacnew
 }
 function install_packages(){
+    'ADDING MULTILIB AND YAOURT PACAKGES TO PACMAN.CONF'
     echo '[multilib]
     Include = /etc/pacman.d/mirrorlist
     [archlinuxfr] 
     Server = http://repo.archlinux.fr/$arch' >> /etc/pacman.conf
-    pacman -Syy --noconfirm
-    pacman -Syu --noconfirm python-virtualenvwrapper tk base-devel yaourt customizepkg rsync pacman-color bash-completion python-pip mercurial fortune-mod cowsay
-    pacman -Syu --noconfirm
+    echo 'REFRESH PACMAN PACKAGES'
+    pacman -Syy --noconfirm --noprogressbar --quiet
+    echo 'INSTALLING NEW PACKAGES'
+    pacman -Syu --noconfirm --noprogressbar --quiet python-virtualenvwrapper tk base-devel yaourt customizepkg rsync pacman-color bash-completion python-pip mercurial fortune-mod cowsay
+    echo 'UPDATING PACMAN'    
+    pacman -Syu --noconfirm --noprogressbar --quiet
 }
 
 function set_preferences(){
+    echo 'SETTING RC.CONF'
     sed -e 's_TIMEZONE=_TIMEZONE="US/Eastern"_g' \
     -e 's_HARDWARECLOCK=_HARDWARECLOCK="us"_g' \
     -e 's:^LOCALE=:LOCALE=en_US.utf8:g' \
     -e 's_HOSTNAME=_HOSTNAME="arch"_g' \
     -e 's_crond)_crond sshd)_g' /etc/rc.conf >> /etc/rc.conf
+    echo 'ADDING ARCH HOSTS'
     sed -i 's_n localhost_n localhost arch_g' /etc/hosts
+    echo 'ADDING CORRECT LOCALE'
     sed -i 's/#en_US.UTF-8/en_US.UTF-8/g' /etc/locale.gen
+    echo 'GENERATING LOCALES'
     locale-gen
     
+    echo 'FIXING SUDOERS'
     cat /etc/sudoers | sed -e "s/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/" > /etc/sudoers.tmp
     rm /etc/sudoers
     mv /etc/sudoers.tmp /etc/sudoers
 }
 
 function add_user(){
+    echo 'ADDUSER'
     useradd -g users -s /bin/bash -G wheel,power saul
+    echo 'CHANGE PW'
     usermod -p $(echo saul123 | openssl passwd -1 -stdin) saul
 }
 
 function sync_home(){
+    echo 'CLONE HOME'
     hg clone https://hg@bitbucket.org/saulshanabrook/arch-home /home/saul
+    echo 'CHOWN HOME'
     chown -R saul:users /home/saul
 }