Rayhan’s blog (raynux.com)

Rayhan’s Personal Web Blog Site

Entries Comments


Install Additional softwares by a single command on Ubuntu

21 November, 2008 (02:49) | Linux, MySQL, personal, PHP, Reference, Ubuntu

Tags: , , , ,


I have created a bash script file to install almost all necessary softwares to run and work on a Ubuntu box. I have tried this script in Ubuntu 8.04 Hardy Heron and Ubuntu 8.10 Intrepid Ibex. Softwares I have placed in this script covers PHP-MySQL development and desktop applications for graphics, multimedia, to Internet applications. You can also add your favourite softwares in the script.

File: RayInstall.sh


# RayInstall.sh
#
# Ubuntu Intrepid & Hardy
#
# A very simple Bash Script file to automate installation of necessary
# softwares for PHP-MySQL development and desktop uses in a ubuntu box
#
# This may take several hours or even days depending on your internet connection speed.
#	It tooks 8 Hours for me with about 70-130 KBps of speed
#
# @uses Aplication -> Accesories -> Terminal
#		Now write following command "sudo sh ./RayInstall.sh" without quotes
#		and press enter button on your keyboard
#
# @author ray@raynuxcom
# @licence GPL

#
# For PHP-MySQL Based Development
#

# Install Apache version 2 web server
apt-get -y install apache2 apache2-doc

# Install PHP with necessary modules
apt-get -y install php5 libapache2-mod-php5 php5-cli
apt-get -y install php5-curl php5-dev php5-gd php5-gmp php5-imap php5-ldap php5-mcrypt php5-mhash php5-ming php5-odbc php5-pspell php5-snmp php5-sybase php5-tidy curl libwww-perl imagemagick

# Install MySQL Database server
apt-get -y install mysql-server php5-mysql mysql-gui-tools-common

#Restart apache
/etc/init.d/apache2 restart

# Install Webmin, A web based frontend for linux box.
apt-get -y install webmin

# Install Subversion & Rapidsvn a subversion gui client tools
apt-get -y install subversion subversion-tools libapache2-svn
apt-get -y install rapidsvn

#Restart apache
/etc/init.d/apache2 restart

#Install Doxygen, An documentation tools for PHP Application
apt-get -y install doxygen doxygen-gui doxygen-doc graphviz

# Install Phpmyadmin, A web based mysql administration tools
apt-get -y install phpmyadmin

# Install Java runtime for Eclipse PDT to work properly
apt-get -y install sun-java6-bin sun-java6-jdk sun-java6-jre

# Install Eclipse PDT
# Just download the pdt-all-in-one peckage from zend site
# http://downloads.zend.com/pdt/all-in-one/pdt-1.0.3.R20080603_debugger-5.2.14.v20080602-all-in-one-linux-gtk.tar.gz
# Unpack it in a suitable location.
# run eclipse/eclipse from the unpacked folder and you are done
# Now install Subclipse plugin using eclipse update tools

#
# Graphics, 2D and 3D Modeling Softwares & tools
#

# Install inkscape, An Illustrator alternative
apt-get -y install inkscape

# Install dia and graphical UML modeling tools
apt-get -y install dia

# Install Scribus, An alternative to Adobe Pagemaker
apt-get -y install scribus

# Install Cheese,  Webcam Software, a video and photo shoot application with cool effects for the GNOME desktop
apt-get -y install webcam cheese

# Install QCAD, and linux alternative to CAD Program.
apt-get -y install qcad

# Install Blender, Linux alternative for 3D Modeling
apt-get -y install blender

#
# Misc. Tools
#

# Install Wine, to run windows program
apt-get -y install wine

# Install XChm to read CHM Help file and Manual
apt-get -y install xchm

#
# Multimedia Players and codec
#

# Install GStreamer restricted codec to run mp3 and other media file
apt-get -y install gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad

# XMMS2 Media player
apt-get -y install xmms2 gxmms2

# Install vlc player, An alternative media player. Can play DVD file with title
apt-get -y install vlc vlc-plugin-*

# Install Amarok music player
apt-get -y install amarok

# Install k3b, A dvd burner application
apt-get -y install k3b

#
# Network and internet tools
#

# Install OpenSSH server to access your ubuntu box remotely
apt-get -y install openssh-server openssh-client

#Install gnome-network-admin, not available in default ubuntu 8.10
apt-get -y install gnome-network-admin

# Install Webhttrack, Website copier tools for linux
apt-get -y install webhttrack

# Install kopete instant messenger
apt-get -y install kopete

# install Internet Explorer in Ubuntu (Experimental)
apt-get -y install wine cabextract msttcorefonts

#run the following command manually to install IE
# wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
# tar zxvf ies4linux-latest.tar.gz
# cd ies4linux-*
# ./ies4linux

If you are using Ubuntu on your computer and want to automate the installation process utilising this script then perform the following steps:

  • Create a file name RayInstall.sh in you home folder.
  • Copy and paste the above code inside the the file and save it.
  • Open a terminal window from Applications -> Accessories -> Terminal
  • Write the following command
  • sudo sh ./RayInstall.sh
  • press Enter
  • Now it will start installing all the softwares listed in the script and you may need to provide some information during installation process when needed.

This script may be helpful for newbies. If you have any comment or suggestion regarding this script please let me know as I am also a newbie in Ubuntu.

«

  »

Comments

Comment from Joe
Time: December 14, 2008, 3:33 am

Thanks Rayhan – you saved me a bunch of work! sorry about your grandmother.

Comment from rayhan
Time: December 18, 2008, 12:45 pm

u r welcome joe.

Comment from junal
Time: December 27, 2008, 4:58 pm

Good One! ….and very needy stuff indeed! thanks for the post :)

Pingback from All windows need on Linux | junal on the run
Time: January 7, 2009, 2:03 am

[...] camera but I didn’t have any software for it to view . Rayhan posted a needy article on additional Linux software here. From them I got this command for my web cam and its working brilliant [...]

Comment from Nasim
Time: February 17, 2009, 8:19 pm

Nice script! But I must say that installing LAMP from Synaptic > Edit > Mark by Tasks > LAMP server > OK is the recommended way. These simple clicks will save you hunting for all the PHP, MySQL, Apache mods by hand. Also, to install multimedia codecs, install ubuntu-restricted-modules, it will install all gstreamer, java-flash plugin, dvdread and ms ttf fonts.

Using vlc-plugin and xine-plugin for firefox at the same time can cause problem. There you should be careful.

Comment from Shamim
Time: February 18, 2009, 12:36 am

Posted about your script here: http://forum.amaderprojukti.com/viewtopic.php?f=42&t=2918

Comment from rayhan
Time: February 22, 2009, 10:56 am

@Shamim thank you.

Comment from Gopakumar.p.b
Time: March 11, 2009, 1:25 am

You have done a very good job , my friend!

Comment from chkdsk error
Time: October 28, 2010, 3:35 pm

I’m glad to have visited your blog and good to know you! I find it interesting and informative.Thanks rayhan for this script very very use ful.

Write a comment