0% found this document useful (0 votes)
39 views

#!/bin/bash #Don't Use This Script As It's Outdated Most Likely Apr 11, 2005

This document appears to be an outdated script from 2005 that automates the installation of various applications, plugins, and multimedia codecs on an Ubuntu system. It walks the user through a prompt-based interface to choose what software to install, then uses commands like apt-get, wget, tar to handle the installation process. The script downloads packages from external URLs and expects the user to have an internet connection and Ubuntu repositories configured.

Uploaded by

api-3851309
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

#!/bin/bash #Don't Use This Script As It's Outdated Most Likely Apr 11, 2005

This document appears to be an outdated script from 2005 that automates the installation of various applications, plugins, and multimedia codecs on an Ubuntu system. It walks the user through a prompt-based interface to choose what software to install, then uses commands like apt-get, wget, tar to handle the installation process. The script downloads packages from external URLs and expects the user to have an internet connection and Ubuntu repositories configured.

Uploaded by

api-3851309
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

#!

/bin/bash
#Don't use this script as it's outdated most likely Apr 11, 2005
#You can get latest from http://mrbass.org/linux/ubuntu
clear
echo "The Unofficial ubuntuguide .org Quick Install Script"
echo "Allows you to quickily install those apps/plug-ins you choose."
echo ""
echo "Thanks to hard work of Chua Wen Kiat http://ubuntuguide .org and Ubuntu forum members"
echo "License GPL http://www.gnu.org/licenses/gpl.html"
echo "Last updated Apr 11, 2005 for Unbuntu 5.04 by mrbass http://mrbass.org"
echo ""
echo "Press Y/y [default] or ENTER to install app/plug-in"
echo "Press N/n or any key to skip installation of app/plug-in"
echo "Press Q/q to quit or ctrl-c to quit download"
echo ""
echo "Insert your Ubuntu CD or DVD now and make sure you have an active internet connection"
echo "Also this assumes you've added extra repositories "
echo ""
echo "Do not use this script if you don't trust the source of where you got it"
echo "Enter your password (skipped if previously entered)"
sudo echo ""

read -p "Automatically add extra repositories ? (choose No to do it manually) [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo chmod 646 /etc/apt/sources.list
echo "deb http://us.archive.ubuntu.com/ubuntu hoary universe" >> /etc/apt/sources.list
echo "deb-src http://us.archive.ubuntu.com/ubuntu hoary universe" >> /etc/apt/sources.list
echo "deb http://security.ubuntu.com/ubuntu hoary-security universe" >> /etc/apt/sources.list
echo "deb-src http://security.ubuntu.com/ubuntu hoary-security universe" >> /etc/apt/sources.list
echo "deb http://archive.ubuntu.com/ubuntu hoary multiverse" >> /etc/apt/sources.list
echo "deb-src http://archive.ubuntu.com/ubuntu hoary multiverse" >> /etc/apt/sources.list
echo "deb ftp://ftp.nerim.net/debian-marillat stable main" >> /etc/apt/sources.list
echo "deb ftp://ftp.nerim.net/debian-marillat unstable main" >> /etc/apt/sources.list
echo "deb ftp://ftp.nerim.net/debian-marillat testing main" >> /etc/apt/sources.list
sudo chmod 644 /etc/apt/sources.list
gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 1F41B907
gpg --armor --export 1F41B907 | sudo apt-key add -
sudo apt-get update
else
echo "Skipped"
fi

echo "You don't need to manually add if you chose 'Automatically ' above (skip this)"
read -p "View ubuntuguide .org 'How to add extra repositories ' in browser now? [Y/n/q]"
if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo -H /usr/bin/firefox "http://ubuntuguide .org/#extrarepositories "
else
echo "Skipped"
fi

read -p "Update ubuntu's sources list (sudo apt-get update)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get update
else
echo "Skipped"
fi

read -p "Install Menu Editor for GNOME? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
wget "http://myosc.org/ubuntuguide /menueditor_0 .4.3ubuntu1_all .deb"
sudo dpkg -i "menueditor_0 .4.3ubuntu1_all .deb"
else
echo "Skipped"
fi

echo "Clipboard Daemon may cause cut/paste problems with jedit"


read -p "Install Clipboard Daemon for GNOME? [Y/n/q]"
if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
wget "http://myosc.org/ubuntuguide /gnome-clipboard-daemon-1.0.bin.tar.bz2"
sudo tar jxvf gnome-clipboard-daemon-1.0.bin.tar.bz2 -C /usr/bin/
sudo chown root:root /usr/bin/gnome-clipboard-daemon
sudo chmod 755 /usr/bin/gnome-clipboard-daemon
sudo /usr/bin/gnome-clipboard-daemon &
else
echo "Skipped"
fi

read -p "Install J2SE Runtime Environment (JRE)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
wget "http://myosc.org/ubuntuguide /jre-1_5_0_02-linux-i586.bin"
sh jre-1_5_0_02-linux-i586.bin
sudo mkdir /usr/java
sudo mv jre1.5.0_02/ /usr/java/
sudo chown -R root:root /usr/java/jre1.5.0_02/
sudo ln -s /usr/java/jre1.5.0_02/bin/java /usr/bin/java
sudo ln -s /usr/java/jre1.5.0_02/bin/java_vm /usr/bin/java_vm
sudo cp /etc/bash.bashrc /etc/bash.bashrc_backup
sudo chmod 646 /etc/bash.bashrc
echo "JAVA_HOME=/usr/java/jre1.5.0_02" >> /etc/bash.bashrc
echo "export JAVA_HOME" >> /etc/bash.bashrc
echo "PATH=$PATH:$JAVA_HOME/bin" >> /etc/bash.bashrc
echo "export PATH" >> /etc/bash.bashrc
sudo chmod 644 /etc/bash.bashrc
else
echo "Skipped"
fi

read -p "Install J2SE Runtime Environment (JRE) Plug-in for Mozilla Firefox? [Y/n/q]"
if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo ln -s /usr/java/jre1.5.0_02/plugin/i386/ns7/libjavaplugin_oji .so /usr/lib/mozilla/plugins/
sudo ln -s /usr/java/jre1.5.0_02/plugin/i386/ns7/libjavaplugin_oji .so /usr/lib/mozilla-firefox/plugins/
else
echo "Skipped"
fi

echo "After testing close out of browser window to continue"


read -p "Test installation of J2SE Runtime Environment (JRE) Plug-in for Mozilla Firefox? [Y/n/q]"
if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo -H /usr/bin/firefox http://www.java.com/en/download/help/testvm.xml
else
echo "Skipped"
fi

read -p "Install Flash Player (Macromedia Flash) Plug-in for Mozilla Firefox? [Y/n/q]"
if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install flashplayer -mozilla
else
echo "Skipped"
fi

echo "After testing close out of browser window to continue"


read -p "Test installation of Flash Player (Macromedia Flash) Plug-in for Mozilla Firefox? [Y/n/q]"
if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo -H /usr/bin/firefox http://www.macromedia.com/shockwave/welcome
else
echo "Skipped"
fi

read -p "Install PDF Reader (Adobe Reader)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install acroread
else
echo "Skipped"
fi

read -p "Install PDF Reader (Adobe Reader) Plug-in for Mozilla Firefox? [Y/n/q]"
if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install acroread-plugins
else
echo "Skipped"
fi

read -p "Install Download Manager (Downloader for X)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install d4x
else
echo "Skipped"
fi

read -p "Install FTP Client (gFTP)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install gftp
else
echo "Skipped"
fi

read -p "Install P2P BitTorrent Client (Azureus)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
wget "http://myosc.org/ubuntuguide /Azureus_2.2.0.2_linux.GTK.tar.bz2"
sudo tar jxvf "Azureus_2.2.0.2_linux.GTK.tar.bz2" -C /opt/
sudo chown -R root:root /opt/azureus/
else
echo "Skipped"
fi

read -p "Install P2P eMule Client (aMule)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install amule
else
echo "Skipped"
fi

read -p "Install P2P Gnutella Client (LimeWire)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
wget "http://myosc.org/ubuntuguide /LimeWireSoftOther .zip"
sudo unzip LimeWireSoftOther .zip -d /opt/
sudo chown -R root:root /opt/LimeWire/
sudo touch /usr/bin/runLime.sh
sudo chmod 756 /usr/bin/runLime.sh
echo "cd /opt/LimeWire/" >> /usr/bin/runLime.sh
echo "./runLime.sh" >> /usr/bin/runLime.sh
sudo chmod 755 /usr/bin/runLime.sh
else
echo "Skipped"
fi

read -p "Install Messenger (Skype)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install libqt3c102-mt
wget "http://myosc.org/ubuntuguide /skype_1.0.0.20-1_i386.deb"
sudo dpkg -i skype_1.0.0.20-1_i386.deb
else
echo "Skipped"
fi

read -p "Install WinPopup (LinPopUp)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install linpopup
else
echo "Skipped"
fi

read -p "Install Multimedia Codecs? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install gstreamer0.8-plugins
sudo apt-get install w32codecs
else
echo "Skipped"
fi

read -p "Install DVD playback capability? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install libdvdcss2
else
echo "Skipped"
fi

read -p "Install Multimedia Player (xine-ui)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install xine-ui
else
echo "Skipped"
fi

read -p "Install Multimedia Player (XMMS)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install xmms
else
echo "Skipped"
fi

read -p "Install Multimedia Player (Helix Player)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install helix-player
else
echo "Skipped"
fi

read -p "Install Stream Directory Browser (streamtuner )? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install streamtuner
else
echo "Skipped"
fi

read -p "Install Video Editor (Kino)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install kino
else
echo "Skipped"
fi

read -p "Install Audio Editor (Audacity)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install audacity
else
echo "Skipped"
fi

read -p "Install Email Client (Mozilla Thunderbird )? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install mozilla-thunderbird
else
echo "Skipped"
fi

read -p "Install Newsreader (Pan)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install pan
else
echo "Skipped"
fi

read -p "Install RSS / RDF / Atom Newsreader (RSSOwl)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
#wget "http://myosc.org/ubuntuguide /rssowl_linux_1_1_bin .tar.gz"
sudo tar zxvf rssowl_linux_1_1_bin .tar.gz -C /opt/
sudo chown -R root:root /opt/rssowl_linux_1_1_bin /
sudo touch /usr/bin/runRSSOwl.sh
sudo chmod 756 /usr/bin/runRSSOwl.sh
echo "cd /opt/rssowl_linux_1_1_bin /" >> /usr/bin/runRSSOwl.sh
echo "./run.sh" >> /usr/bin/runRSSOwl.sh
sudo chmod 755 /usr/bin/runRSSOwl.sh
else
echo "Skipped"
fi

read -p "Install Web Authoring System (Nvu)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
wget "http://myosc.org/ubuntuguide /nvu-0.90-pc-linux2.6.10-gnu.tar.bz2"
sudo tar jxvf nvu-0.90-pc-linux2.6.10-gnu.tar.bz2 -C /opt/
sudo chown -R root:root /opt/nvu-0.90/
else
echo "Skipped"
fi

read -p "Install Project Management Application (Planner)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install planner
else
echo "Skipped"
fi

read -p "Install Desktop Publishing Application (Scribus)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install scribus
else
echo "Skipped"
fi

read -p "Install CD/DVD Burning Software (GnomeBaker)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install gnomebaker
else
echo "Skipped"
fi

read -p "Install Partition Editor (GParted)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install gparted
else
echo "Skipped"
fi

read -p "Install Firewall (Firestarter )? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install firestarter
else
echo "Skipped"
fi

read -p "Install RAR Archiver (rar)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install rar
else
echo "Skipped"
fi

read -p "Install Extra Fonts? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install xfonts-intl-arabic
sudo apt-get install xfonts-intl-asian
sudo apt-get install xfonts-intl-chinese
sudo apt-get install xfonts-intl-chinese-big
sudo apt-get install xfonts-intl-european
sudo apt-get install xfonts-intl-japanese
sudo apt-get install xfonts-intl-japanese-big
sudo apt-get install xfonts-intl-phonetic
sudo apt-get install msttcorefonts
else
echo "Skipped"
fi

read -p "Install Game (Frozen-Bubble)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install frozen-bubble
else
echo "Skipped"
fi

read -p "Install Basic Compilers (build-essential)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install build-essential
else
echo "Skipped"
fi

read -p "Install Graphics Driver (NVIDIA)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install nvidia-glx nvidia-settings
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
md5sum /etc/X11/xorg.conf | sudo tee /var/lib/xfree86/xorg.conf.md5sum
sudo nvidia-glx-config enable
else
echo "Skipped"
fi

read -p "Install ADSL / PPPoE Client (RP-PPPoE)? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
wget "http://myosc.org/ubuntuguide /rp-pppoe-3.5.tar.gz"
sudo tar zxvf rp-pppoe-3.5.tar.gz -C /opt/
sudo chown -R root:root /opt/rp-pppoe-3.5/
else
echo "Skipped"
fi

read -p "Install Samba Server for file sharing service? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install samba smbfs
else
echo "Skipped"
fi

read -p "Install SSH Server for remote administration service? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install ssh
else
echo "Skipped"
fi

read -p "Install MYSQL Database Server? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install mysql-server

read -p "Choose a mysql root password: " PASSWORD


sudo mysqladmin -u root password ${PASSWORD}
else
echo "Skipped"
fi

read -p "Install MYSQL Control Center? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install mysqlcc
else
echo "Skipped"
fi

read -p "Install Apache HTTP Server for HTTP (Web) Server service? [Y/n/q]"
if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install apache2
else
echo "Skipped"
fi

read -p "Install PHP for Apache HTTP Server? [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install php4
sudo touch /var/www/testphp.php
sudo chmod 646 /var/www/testphp.php
echo "<?php phpinfo(); ?>" >> /var/www/testphp.php
sudo chmod 644 /var/www/testphp.php
else
echo "Skipped"
fi

echo "After testing close out of browser window to continue"


read -p "Test installation of PHP for Apache HTTP Server? [Y/n/q]"
if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo -H /usr/bin/firefox http://localhost/testphp.php
else
echo "Skipped"
fi

read -p "Install MYSQL for Apache HTTP Server ?[Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install libapache2-mod-auth-mysql php4-mysql
sudo /etc/init.d/apache2 restart
else
echo "Skipped"
fi

read -p "Install numlockx to turn on Num Lock when login into GNOME? [Y/n/q]"
if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install numlockx
else
echo "Skipped"
fi

read -p "Install Vector Graphics Editor (Inkscape) [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo apt-get install inkscape
else
echo "Skipped"
fi

read -p "Refresh GNOME Panel (recommended ) [Y/n/q]"


if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
killall gnome-panel
else
echo "Skipped"
fi

echo ""
echo ""
echo "See ubuntuguide .org how to add menu items if you installed any of the following apps:"
echo "Azureus, Limewire, LinPopUp, RSSOwl, NVU, Nvidia-Settings, RP-PPPoE, MySQL Control Center"
read -p "View ubuntuguide .org in browser now? [Y/n/q]"
if [ "--$REPLY" == "--q" -o "--$REPLY" == "--Q" ]; then exit 0; fi
if [ "--$REPLY" == "--y" -o "--$REPLY" == "--Y" -o "--$REPLY" == "--" ]; then
sudo -H /usr/bin/firefox "http://ubuntuguide .org"
else
echo "Skipped"
fi

echo ""
echo ""
echo "Done...thanks for using the Unofficial unbuntuguide .org Quick Install Script"
echo ""
exit 0

You might also like