summaryrefslogtreecommitdiff
path: root/debian.sh
blob: 7102a5ec897f51bc6b1a538a0fa0e6f3e69efeb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

echo "Downloading and updating Debian packages"
echo "deb http://ftp.de.debian.org/debian squeeze main contrib
deb http://ftp.de.debian.org/debian/ squeeze non-free" > /etc/apt/sources.list

apt-get install lsb-release
codename=`lsb_release -a|grep Codename|cut -f2`
if ! grep "^deb.*debian\.org.*non-free" /etc/apt/sources.list
then
  echo "deb http://ftp.debian.org/debian/ $codename non-free" | tee -a /etc/apt/sources.list
fi
apt-get update -y
apt-get upgrade -y
apt-get install binutils gcc g++ gfortran wget hostname pwgen git-core raptor-utils r-base -y
# accept java license automatically
echo sun-java6-jdk shared/accepted-sun-dlj-v1-1 select true | /usr/bin/debconf-set-selections
apt-get install --yes sun-java6-jdk -y
. ./config
#apt-get install xsltproc gnuplot -y # for validation
apt-get install libssl-dev zlib1g-dev libreadline-dev libmysqlclient-dev libmysqlclient-dev libcurl4-openssl-dev libxml2-dev libxslt1-dev libgsl0-dev -y
sed -i '/^JAVA_HOME=/d' /etc/profile
echo 'export JAVA_HOME=/usr/lib/jvm/java-6-sun' | tee -a /etc/profile