#!/bin/bash while true ; do clear echo "##################################" echo "# EasyArch 0.1 #" echo "##################################" echo echo " 0 Initial System Updates" echo " - (If you haven't done them yet)" echo " 1 Install Xorg Packages." echo " 2 Install Media File Codecs and Utils" echo " 3 Install BashPodder" echo " 4 Usefull Extras (ssh,screen,sudo rox..." echo " 5 Exit" echo Please enter your numeric choice echo followed by the enter key....... echo read answer case "$answer" in 0) pacman -Syu ;; 1) pacman -Syu xorg xorg-apps xorg-res-utils xorg-server-utils xorg-util-macros xorg-util-macros xorg-fonts-type1 xorg-fonts-75dpi xorg-fonts-100dpi t1lib xterm xlockmore hwd #hwd -xa lspci > system.info if (grep -i "nvidia" system.info > /dev/null) then pacman -Syu nvidia rm system.info fi ############################################################## clear echo "Pick a windomanager:" echo "--------------------" echo "1 Fluxbox" echo "2 Icewm" echo "3 Windowmaker" echo "4 Xfce4" read wm case "$wm" in 1) pacman -Syu fluxbox echo "*** Please remember to change your .xinitrc file! ***" ;; 2) pacman -Syu icewm echo "*** Please remember to change your .xinitrc file! ***" ;; 3) pacman -Syu windowmaker ;; 4) pacman -Syu xfce4 echo "*** Please remember to change your .xinitrc file! ***" ;; *) clear ; echo ; echo ; echo "EXITING NOW" ; sleep 1 ;; esac ############################################################## ;; 2) pacman -Syu alsa-utils libdvdcss libdvdnav libdvdread ogle transcode xine-ui codecs mplayer vlc xmms lame streamtuner streamripper aumix vorbis-tools alsa-lib ;; 3) pacman -Syu xdialog lynx libxslt echo "You can safely run BashPodder now" ;; 4) pacman -Syu screen subversion sudo rox ;; *) clear ; echo ; echo ; echo "EXITING NOW" ; break ;; esac done