OK, here is my generic Ubuntu new install extra packages script...which
I use with new Ubuntu server installs...both 32bit & 64bit.  I'm
installing a bunch of development libraries here.  The software packages
I routinely build for myself on these boxes include:

gptfdisk, minidlna, mochad, mp4v2, rsync & squeezeslave

config-newpkgs.sh:

Code:
--------------------
    
  #!/bin/bash
  
  #Extra packages to be installed for a standard Ubuntu server SQUEEZENAS:
  
  apt-get update
  
  ############################################################################
  # System utility packages
  ############################################################################
  PKGGROUP='System Utilities'
  
  read -d '' PACKAGES <<"ENDPKGS1"
  #interface_stuff
  gpm
  
  #system_utilities
  bwm-ng
  dhcping
  ethtool
  gamin
  gdisk
  libtool
  mdadm
  multitail
  ntp
  python-software-properties
  chkconfig
  rcconf
  sysv-rc-conf
  tofrodos
  unzip
  zip
  ENDPKGS1
  
  PACKAGES=`echo "$PACKAGES" | sed -e 's/^\#.*$//g;' | tr '\n' ' ' | sed -e 
's/^[[:space:]]*//;s/[[:space:]]\{2,\}/ /g'`
  
  echo 
'======================================================================================='
  echo "Installing ${PKGGROUP}:"
  echo 
'======================================================================================='
  echo "$PACKAGES"
  echo 
'======================================================================================='
  
  apt-get -m -y install $PACKAGES
  
  
  ############################################################################
  # File systems, power management and other services
  ############################################################################
  PKGGROUP='File systems, power management and other services'
  
  read -d '' PACKAGES <<"ENDPKGS2"
  
  #file_systems
  ntfs-3g
  sshfs
  
  #power_management
  acpid
  apcupsd
  cpufrequtils
  hddtemp
  lm-sensors
  pm-utils
  smartmontools
  uswsusp
  vbetool
  
  #other_services
  lighttpd
  
  ENDPKGS2
  
  PACKAGES=`echo "$PACKAGES" | sed -e 's/^\#.*$//g;' | tr '\n' ' ' | sed -e 
's/^[[:space:]]*//;s/[[:space:]]\{2,\}/ /g'`
  
  echo 
'======================================================================================='
  echo "Installing ${PKGGROUP}:"
  echo 
'======================================================================================='
  echo "$PACKAGES"
  echo 
'======================================================================================='
  
  apt-get -m -y install $PACKAGES
  
  
  ############################################################################
  # Basic build tools
  ############################################################################
  PKGGROUP='Basic software development tools'
  
  read -d '' PACKAGES <<"ENDPKGS3"
  
  #Basic
  build-essential
  autoconf
  subversion
  cvs
  gettext
  autopoint
  yodl
  
  
  ENDPKGS3
  
  PACKAGES=`echo "$PACKAGES" | sed -e 's/^\#.*$//g;' | tr '\n' ' ' | sed -e 
's/^[[:space:]]*//;s/[[:space:]]\{2,\}/ /g'`
  
  echo 
'======================================================================================='
  echo "Installing ${PKGGROUP}:"
  echo 
'======================================================================================='
  echo "$PACKAGES"
  echo 
'======================================================================================='
  
  apt-get -m -y install $PACKAGES
  
  
  ############################################################################
  # Media encoders and players
  ############################################################################
  PKGGROUP='Media encoders and players'
  
  read -d '' PACKAGES <<"ENDPKGS4"
  
  #mp4v2-utils
  #media_stuff
  faad
  ffmpeg
  flac
  lame
  mplayer
  mencoder
  
  ENDPKGS4
  
  PACKAGES=`echo "$PACKAGES" | sed -e 's/^\#.*$//g;' | tr '\n' ' ' | sed -e 
's/^[[:space:]]*//;s/[[:space:]]\{2,\}/ /g'`
  
  echo 
'======================================================================================='
  echo "Installing ${PKGGROUP}:"
  echo 
'======================================================================================='
  echo "$PACKAGES"
  echo 
'======================================================================================='
  
  apt-get -m -y install $PACKAGES
  
  
  ############################################################################
  # Development libraries..
  ############################################################################
  PKGGROUP='Development libraries'
  
  read -d '' PACKAGES <<"ENDPKGS5"
  
  libasound2-dev
  libncurses5-dev
  liblircclient-dev
  libdvdread-dev
  libdvdnav-dev
  libdvdread4
  libdvdnav4
  lsdvd
  libexif12
  libexif-dev
  libsqlite3-dev
  libid3tag0
  libid3tag0-dev
  libjpeg-dev
  libFLAC-dev
  libvorbis-dev
  sqlite3
  libavformat-dev
  libuuid1
  uuid-dev
  libicu-dev
  libpopt-dev
  libusb-1.0-0-dev
  libflac++
  
  ENDPKGS5
  
  PACKAGES=`echo "$PACKAGES" | sed -e 's/^\#.*$//g;' | tr '\n' ' ' | sed -e 
's/^[[:space:]]*//;s/[[:space:]]\{2,\}/ /g'`
  
  echo 
'======================================================================================='
  echo "Installing ${PKGGROUP}:"
  echo 
'======================================================================================='
  echo "$PACKAGES"
  echo 
'======================================================================================='
  
  apt-get -y install $PACKAGES
  
  bash /usr/share/doc/libdvdread4/install-css.sh
  
  
  #Turn off services that we don't need right away..
  
  /usr/sbin/sysv-rc-conf mdadm off
  /usr/sbin/sysv-rc-conf mysql off
  #/usr/sbin/sysv-rc-conf mediatomb off
  
  # Finally, install ia32-libs on 64bit system..
  
  IS64=`uname -a | grep 'x86_64'`
  
  if [ ! -z "$IS64" ]; then
  echo 'Installing 32bit compatability libs..'
  apt-get -m -y install 'ia32-libs'
  fi
  
  
  
  echo 'Done!'
  
--------------------


------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=94816

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to