Customising Ubuntu with uck

From Gerris

Jump to: navigation, search
# use with uck-gui
 
# 1- uncomment universe in /etc/apt/sources.list
cp /etc/apt/sources.list /etc/apt/sources.list.bak
sed 's/# deb \(.*\) universe/deb \1 universe/g' < /etc/apt/sources.list.bak > /etc/apt/sources.list
rm /etc/apt/sources.list.bak
sudo apt-get update
 
# add Gerris repositories
# see http://gfs.sourceforge.net/wiki/index.php/Ubuntu/Debian_installation
wget http://gfs.sf.net/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/xUbuntu_10.04 ./
EOF
sudo apt-get update
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 libgsl0-dev libnetcdf-dev \
libosmesa6-dev libftgl-dev \
gdb valgrind ntp rsync smpeg-plaympeg gstreamer0.10-ffmpeg \
meshlab blender gmsh geomview octave3.2 libfftw3-dev libhypre-dev gfortran
 
# remove open office to make some room for more useful stuff
sudo apt-get remove -y openoffice.org-common openoffice.org-style-human openoffice.org-core
 
# 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
 
# customize gnome and firefox
cd /etc
scp popinet@134.157.34.35:Projects/custom-ubuntu/custom.tgz .
tar xzvf custom.tgz
rm custom.tgz
 
# 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 ../..
cat <<EOF > examples.desktop
[Desktop Entry]
Version=1.0
Type=Link
Name=Gerris
Comment=Gerris examples
URL=file:///home/ubuntu/Gerris
Icon=folder
EOF
 
# add lecture notes
cd /etc/skel
mkdir Desktop
scp popinet@134.157.34.122:Papers/florida/course.pdf Desktop/Lecture1.pdf
scp popinet@134.157.34.122:Papers/florida/course2.pdf Desktop/Lecture2.pdf
Personal tools
communication