Script to Install Common Packages in Ubuntu
We install Ubuntu on all systems manufactured at our firm. In addition to the default set of applications that come with Ubuntu we normally install other applications depending on the type of end user and the nature of their requirements. Selecting and installing these applications manually using synaptic takes a lot of effort. With this in mind we have created a script to install these additional packages.
In the script we selectively run sections based on the needs of the end user. Also we normally download the packages from the apt-cacher repository that we maintain locally in our company. For this we have a separate sources.list file that we use to replace the default sources.list. Once the installation is complete we revert the sources.list file to the original sources.list file to enable default repositories for the customer.
The script for installation of the additional packages is given below. This is not a comprehensive list of all the applications that you would need but this normally takes care of the needs of our customers. We would be more than happy to include any other packages if you have any other suggestions.
#!/bin/bash
#add medibuntu repository key
wget -q http:packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -
#add wine repository key
wget -q http:wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
#Java
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts libxext6-dbg
#Adobe Flash Player
sudo apt-get install flashplugin-nonfree
#Adobe Acrobat Reader
sudo apt-get install acroread acroread-escript acroread-plugins mozilla-acroread
#Restricted Media files
sudo apt-get install libdvdcss2 w32codecs
#for amd64
#apt-get install w64codecs
sudo apt-get install acroread acroread-escript acroread-plugins mozilla-acroread
#VLC Media Player
sudo apt-get install vlc vlc-plugin-* mozilla-plugin-vlc
#MPlayer
sudo apt-get install mplayer mplayer-skin-blue mozilla-mplayer mplayer-doc libxine-extracodecs avahi-daemon avahi-utils
#Install wine
sudo apt-get install wine
winecfg
#Install games
sudo apt-get install kdegames
#Multimedia codecs
sudo apt-get install ubuntu-restricted-extras libxine-extracodecs gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-pitfdll
#DVD Playback
sudo apt-get install libdvdread3
#Stream Stream Directory Browser
sudo apt-get install streamtuner streamripper
#Internet TV
sudo apt-get install democracyplayer
#Amarok
sudo apt-get install amarok
#K3B
sudo apt-get install k3b libk3b2-mp3
#Filezilla
sudo apt-get install filezilla
#Development Environment
sudo apt-get install apache2 libapache2-mod-php5 libapache2-mod-ruby libapache2-mod-python libapache2-mod-perl2
sudo apt-get install php5 php5-cgi php5-cli php5-xsl php5-gd php-pear php5-mysql php5-imagick php5-imap php5-sqlite3 php5-pgsql php5-snmp php5-sqlite
sudo apt-get install mysql-server mysql-client mysql-admin mysql-navigator mysql-query-browser phpmyadmin
sudo apt-get install python perl python-mysqldb
sudo apt-get install emacs xemacs21
sudo apt-get install anjuta
sudo apt-get install eclipse eclipse-cdt eclipse-jdt eclipse-pydev eclipse-efj
sudo apt-get install gphpedit screem