Customising Ubuntu with uck

From Gerris

Jump to: navigation, search
# add gerris to sudoers
sudo addgroup gerris sudo
 
# add virtualisation addons
sudo apt-get install virtualbox-guest-dkms
 
# add Gerris repositories
# see http://gfs.sourceforge.net/wiki/index.php/Ubuntu/Debian_installation
wget http://gerris.dalembert.upmc.fr/debian/popinet_key.asc
sudo apt-key add popinet_key.asc
rm popinet_key.asc
cat <<EOF >> /etc/apt/sources.list
 
# Gerris repository
deb http://download.opensuse.org/repositories/home:/popinet/Debian_7.0 ./
EOF
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install -y {gerris,gfsview}-snapshot
 
# install extra packages
sudo apt-get install -y joe gnuplot imagemagick ffmpeg emacs emacs23-el gnuplot-doc \
source-highlight \
darcs autoconf libtool automake libopenmpi-dev \
proj-bin libgsl0-dev libnetcdf-dev \
libosmesa6-dev libftgl-dev \
gdb valgrind ntp rsync smpeg-plaympeg gstreamer0.10-ffmpeg \
meshlab blender geomview octave libfftw3-dev libhypre-dev gfortran \
flex graphviz gifsicle
wget http://gprof2dot.jrfonseca.googlecode.com/git/gprof2dot.py
sudo mv gprof2dot.py /usr/local/bin
sudo chmod +x /usr/local/bin/gprof2dot.py
 
# remove open office to make some room for more useful stuff
sudo apt-get remove -y valgrind-dbg libreoffice-common libreoffice-core
sudo apt-get autoremove
 
# add Gerris mode to emacs by default
cat <<EOF >> /etc/skel/.emacs
;; gerris mode
(add-to-list 'load-path "/usr/share/gerris")
(require '
gfs-mode)
EOF
 
# add Gerris examples and test cases
cd /etc/skel
darcs get http://gerris.dalembert.upmc.fr/darcs/gerris-stable
mkdir Gerris
mv gerris-stable/doc/examples Gerris
mv gerris-stable/test Gerris/tests
rm -r -f gerris-stable
cd Gerris/tests
rm `find . -maxdepth 1 -type f`
cd ../../Gerris/examples
rm `find . -maxdepth 1 -type f`
cd ../..
 
# Fix gnome-keyring stuff
cat <<EOF >> ~/.bashrc
unset GNOME_KEYRING_CONTROL
EOF
 
# install basilisk
darcs get http://basilisk.fr/basilisk
cd basilisk/src
export BASILISK=$PWD
export PATH=$PATH:$PWD
ln -s config.gcc.32bits config
make
echo "export BASILISK=$PWD" >> ~/.bashrc
echo "export PATH=$PATH:$PWD" >> ~/.bashrc
 
# setup defaults
cd
cp -ar /etc/skel/Gerris .
cp -ar /etc/skel/.emacs .
Personal tools
communication