Updating a fresh Ubuntu 14.04 installation
Could someone review this script I've pieced together?
I would love to have this script automatically say "yes" when a package is about to install.
Do you have any ideas that will make this file easier to read? Are there any other packages or commands that I should include?
#!/bin/bash/
# Purpose: As root, run file to update a fresh Ubuntu 14.04 installation
# Includes: Packages and updates for comfortable home use. Also, a comprehensive Python development environment.
# If you would like to omit the Python packages, remove the lower section of this file.
# This file modifies and combines instructions from:
# http://howtoubuntu.org/things-to-do-after-installing-ubuntu-14-04-trusty-tahr
# https://www.quantstart.com/articles/Quick-Start-Python-Quantitative-Research-Environment-on-Ubuntu-14-04
# Uncredited misc blogs and stackoverflow answers
# Enable partner repositories
sed -i "/^# deb .*partner/ s/^# //" /etc/apt/sources.list && apt-get update
# Downloading GetDeb and PlayDeb
wget http://archive.getdeb.net/install_deb/getdeb-repository_0.1-1~getdeb1_all.deb http://archive.getdeb.net/install_deb/playdeb_0.3-1~getdeb1_all.deb &&
# Installing GetDeb
dpkg -i getdeb-repository_0.1-1~getdeb1_all.deb &&
# Installing PlayDeb
dpkg -i playdeb_0.3-1~getdeb1_all.deb &&
# Deleting Downloads
rm -f getdeb-repository_0.1-1~getdeb1_all.deb &&
rm -f playdeb_0.3-1~getdeb1_all.deb
# Add repositories
add-apt-repository -y ppa:videolan/stable-daily
add-apt-repository -y ppa:otto-kesselgulasch/gimp
add-apt-repository -y ppa:gnome3-team/gnome3
add-apt-repository -y ppa:webupd8team/java
add-apt-repository -y ppa:webupd8team/y-ppa-manager
# Update, upgrade, dist-upgrade
apt-get update
apt-get upgrade
apt-get dist-upgrade
echo 'deb http://download.videolan.org/pub/debian/stable/ /' | tee -a /etc/apt/sources.list.d/libdvdcss.list &&
echo 'deb-src http://download.videolan.org/pub/debian/stable/ /' | tee -a /etc/apt/sources.list.d/libdvdcss.list &&
wget -O - http://download.videolan.org/pub/debian/videolan-apt.asc| apt-key add -
apt-get install synaptic vlc gimp gimp-data gimp-plugin-registry gimp-data-extras y-ppa-manager bleachbit openjdk-7-jre oracle-java8-installer flashplugin-installer unace unrar zip unzip p7zip-full p7zip-rar sharutils rar uudeview mpack arj cabextract file-roller libxine1-ffmpeg mencoder flac faac faad sox ffmpeg2theora libmpeg2-4 uudeview libmpeg3-1 mpeg3-utils mpegdemux liba52-dev mpeg2dec vorbis-tools id3v2 mpg321 mpg123 libflac++6 totem-mozilla icedax lame libmad0 libjpeg-progs libdvdcss2 libdvdread4 libdvdnav4 libswscale-extra-2 ubuntu-restricted-extras ubuntu-wallpapers*
# Install Google Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb &&
dpkg -i google-chrome-stable_current_amd64.deb &&
rm -f google-chrome-stable_current_amd64.deb
# Clean up
apt-get -f install &&
apt-get autoremove &&
apt-get -y autoclean &&
apt-get -y clean
# Update, upgrade
apt-get update
apt-get upgrade
# Other
apt-get install terminator xchat gparted vim
# Set-up Python environment
###########################
apt-get install build-essential python2.7-dev python-dev python-pip liblapack-dev libblas-dev libatlas-base-dev gfortran libpng-dev libjpeg8-dev libfreetype6-dev libqt4-core libqt4-gui libqt4-dev libzmq-dev
pip install virtualenv
pip install numpy
pip install scipy
pip install matplotlib
pip install pandas
pip install scikit-learn
pip install pyzmq
pip install ipython[all]
pip install pygments
pip install patsy
pip install statsmodels
pip install nose
pip install sympy
pip install git
pip install cython
pip install pandoc
pip install git+https://github.com/uqfoundation/pathos.git@master
apt-get build-dep python-tables
Posted Aug 12, 2015, 4:21 PM UTC
54