Skip to content

Instantly share code, notes, and snippets.

@restrepo
Last active November 16, 2021 03:25
Show Gist options
  • Save restrepo/1096078 to your computer and use it in GitHub Desktop.
Save restrepo/1096078 to your computer and use it in GitHub Desktop.
Ubuntu postinstall
#!/usr/bin/env bash
#Postinstall for Ubuntu 9.10 -- 14.04
#Install as root!
#after sudo su
echo "================================================================"
echo "Update and upgrade the system"
sudo apt-get install aptitude
sudo aptitude update
sudo aptitude -y safe-upgrade
echo "================================================================"
echo "Basic programs"
sudo aptitude -y install ssh unison emacs emacs-goodies-el auctex pdftk\
aspell-es whizzytex alien python-mode safe-rm auto-complete-el\
ispanish
#latex
sudo aptitude -y install lacheck latex-beamer latex-xcolor latexdiff latexmk\
musixtex texlive-base texlive-bibtex-extra texlive-binaries\
texlive-extra-utils texlive-font-utils\
texlive-fonts-recommended texlive-formats-extra texlive-games\
texlive-generic-extra texlive-generic-recommended texlive-humanities\
texlive-lang-cyrillic texlive-lang-english texlive-lang-european\
texlive-lang-french texlive-lang-german texlive-lang-greek\
texlive-lang-spanish texlive-latex-base texlive-latex-extra\
texlive-latex-recommended texlive-luatex texlive-math-extra\
texlive-metapost texlive-music texlive-omega texlive-pictures\
texlive-plain-extra texlive-pstricks texlive-publishers\
texlive-science texlive-xetex
echo "================================================================"
echo "Programming"
sudo aptitude -y install bash-completion git-core git-gui git-doc \
git-completion xclip libx11-dev
sudo aptitude -y install build-essential gfortran cernlib paw paw++
sudo aptitude -y install ipython python-scipy python-matplotlib mayavi2 \
python-sympy cython python-networkx python-pexpect python-nose \
python-setuptools python-sphinx python-pygments \
python-twisted python-foolscap python-tk python-mpmath
sudo apt-get -y build-dep python python-scipy python-matplotlib mayavi2 cython
sudo aptitude -y install gsl-bin libgsl0-dev
echo "================================================================"
echo "Parallel programming"
sudo aptitude -y install libopenmpi-dev openmpi-bin openmpi-doc openmpi-dev
echo "================================================================"
echo "Multimedia"
sudo aptitude -y install ubuntu-restricted-extras libdvdread4 vlc mplayer k3b netflix-desktop
/usr/share/doc/libdvdread4/install-css.sh
echo "================================================================"
echo "Graphics"
sudo aptitude -y install yakuake inkscape scribus amarok okular djview4 \
pdf2djvu gimp
echo "================================================================"
echo "Inkscape LaTeX and other extensions"
sudo aptitude -y install pstoedit dia xfig
echo "================================================================"
echo "Netflix through wine"
sudo apt-add-repository ppa:pipelight/stable
sudo aptitude update
sudo aptitude install netflix-desktop
echo "================================================================"
echo "Other"
sudo aptitude -y install sux
echo "Clean packages (n/y)"
read clean
if [ "$clean" == y ];then
sudo aptitude clean
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment