#!/bin/bash -ex

# Last changed Tue Dec  9 15:59:34 EST 2008

trap '
SAVEDSTATUS=$?
set +x
if [ x$CLEANEXIT = x ]
then
	echo "$0: ERROR Unexpected exit with return value of $SAVEDSTATUS"
	exit $SAVEDSTATUS
fi' EXIT

#-----

apt-get -y install texmacs texlive-extra-utils dvi2tty lacheck texmacs-extra-fonts libjpeg-progs libtiff-tools librsvg2-bin libtiff-opengl dvidvi xfig-doc

### # gv with gnome gui flavor
### apt-get -y install gnome-gv

apt-get -y install pdfedit

apt-get -y install gnuplot gnuplot-doc libgd-tools

# Multi-language xterm
apt-get -y install mlterm mlterm-tools unifont xfonts-efont-unicode ttf-vlgothic ttf-baekmuk t1-cyrillic mlterm-im-uim mlterm-im-m17nlib mlterm-im-scim m17n-docs xfonts-efont-unicode-ib

apt-get -y install mplayer libggi-target-x nas libdvdcss2 libggimisc2 pulseaudio mplayer-doc pulseaudio-module-hal pulseaudio-module-x11 libdvdcss2

apt-get -y install xloadimage

# unit of measurement conversion
apt-get -y install units

# Floppy drive access
apt-get -y install mtools

# DOS file conversion
apt-get -y install tofrodos

# An un-packager
apt-get -y install unrar

# file synchronization
apt-get -y install unison-gtk

# Bad dog!
### # Index and search your files
### apt-get -y install beagle

# tk extension
apt-get -y install blt

# XXX what is citadel server and why it is listening on an IP?
### # Mail Handler
### apt-get -y install nmh

apt-get -y install ispell spell

# -- Math-type things

# ancestor of Maple
apt-get -y install maxima xmaxima wxmaxima

# alternative to maple
apt-get -y install yacas yacas-doc

# clone of Matlab
apt-get -y install octave libfftw3-dev libiodbc2-dev octave3.0-info octave3.0-doc octave3.0-htmldoc octave3.0-headers octave3.0-emacsen texinfo-doc-nonfree

# -- Graphics editing

apt-get -y install imagemagick

apt-get -y install netpbm html2ps

# Adobe Photoshop-type bitmap editor
apt-get -y install gimp-data-extras gimp-dcraw gimp-help-common gimp-help-en gimp-helpbrowser gimp-resynthesizer gimp-texturize

# Adobe Illustrator-type vector editors
apt-get -y install dia
apt-get -y install inkscape python-lxml-dbg python-numpy-doc python-numpy-dbg python-uniconvertor-dbg
### apt-get -y install skencil python-imaging-doc python-imaging-doc-html python-imaging-doc-pdf python-doc python-imaging-tk-dbg
### apt-get -y install xaralx xaralx-examples xaralx-svg
apt-get -y install xfig xfig-doc transfig xfig-libs

# -- Sysadmin

# top for network traffic flows
apt-get -y install etherape

# Ethernet sniffer with GUI
apt-get -y install wireshark adns-tools

# where are the packets getting lost
apt-get -y install traceroute

# GUI for diff
apt-get -y install tkdiff
apt-get -y install meld python-gnome2-extras-doc python-gnome2-extras-dbg

# graph visualization
apt-get -y install graphviz graphviz-doc

# What IP ports are open?
apt-get -y install nmap

# Foreign software package handling
apt-get -y install alien lintian lsb-rpm

# Break apart MS .mdi paper scanner files
apt-get -y install foremost

# -- Other

# Solitare card game
apt-get -y install spider

# Opera browser
### apt-get -y install opera

### # PC hardware simulator, and virtualization for newer CPUs
### apt-get -y install qemu qemuctl kqemu-common kqemu-source kvm kvm-source qemu-launcher
### module-assistant prepare
### module-assistant auto-install kqemu
### echo 'KERNEL=="kqemu", NAME="%k", GROUP="kqemu", MODE="0660"' > /etc/udev/rules.d/60-kqemu.rules
### addgroup --system kqemu	# XXX
### adduser ubntinst kqemu	# XXX
### /etc/init.d/udev reload
### update-modules
### modprobe kqemu
### echo kqemu >> /etc/modules

# -- Not working in 7.04, untested in 7.10

### # read PC hardware sensors like temperature
### apt-get -y install lm-sensors xsensors i2c-tools
### Then do http://ubuntuforums.org/showthread.php?t=2780
### # still doesn't work

### # Attach to emacs?
### apt-get -y install gnuserv
### # doesn't work, throws elisp error, explore emacs 22 instead,
### # server/attach doesn't work with twm(?)

# 3D modelers
apt-get -y install blender yafray
apt-get -y install k3d aqsis

# 2D CAD
apt-get -y install qcad qcad-doc partlibrary

# Page layout
apt-get -y install scribus scribus-template scribus-doc

### # Sound editing
### apt-get -y install audacity lame lame-extras
### apt-get -y install ardour-gtk ardour-doc fil-plugins tap-plugins

### # Structured xml editor
### apt-get -y install conglomerate

### # Planitarium simulator
### apt-get -y install celestia-gnome

### apt-get -y install python2.4

### # Windows simulator
### apt-get -y install wine

### apt-get -y install rdist

#-----

CLEANEXIT=1
exit 0

