LinuxBasics.org

The community that helps people to run Linux

rss

programs.install

by Douglas Orchard. Contributed by permission

#!/bin/bash
 
echo
echo "  This script will now install Debian GNU/Linux"
echo "  	you may select some programs"
echo
echo
echo "  Do you wish to install the Base packages?  (y,n)"
echo "  YOU MUST DO THIS BEFORE ANYTHING ELSE!!!"
echo "  Only if you have done this already may you say NO"
read basic
 
# Server
echo
echo "  If you wish to use this machine as a server, you"
echo "  must install NFS and/or Samba or Apache"
echo
echo "  Do you wish to install NFS?  (y,n)"
read nfs
echo "  Do you wish to install Samba?  (y,n)"
read samba
echo "  Do you wish to install Apache?  (y,n)"
read apache
echo
 
# Blackbox
echo
echo "  Do you wish to install X, Blackbox and some gui programs?  (y,n)"
read blackbox
echo
 
# Laptop
echo
echo "  If this is a laptop, you should have a battery monitor?  (y,n)"
read laptop
echo
 
# Varicad
echo
echo "  Do you wish to install the libraries for Varicad?  (y,n)"
echo "  Varicad must be installed before upgrading from Woody."
read varicad
echo
 
# Wine
echo
echo "  Do you wish to install Wine and Wine libraries?  (y,n)"
read wine
echo
 
# FlightGear
echo
echo "  Do you wish to install FlightGear?  (y,n)"
read flightgear
echo
 
# PPP
echo
echo "  If you do NOT have a modem, you cant use PPP"
echo "  Can I remove PPP? (y,n)"
read ppp
echo
 
echo
 
if [ "$basic" = "y" ]; then
	echo "  Now installing the Base Packages"
	for myfile in $(cat programs.cli); do
		echo "  Now installing $myfile"
		apt-get -y install $myfile
		echo
		echo
	done
fi
 
if [ "$nfs" = "y" ]; then
	echo "  Now installing NFS"
	apt-get -y install nfs-user-server
	echo
	echo
fi
 
if [ "$samba" = "y" ]; then
	echo "  Now installing Samba"
	apt-get -y install samba
	echo
	echo
fi
 
if [ "$apache" = "y" ]; then
	echo "  Now installing apache"
	apt-get -y install apache
	echo
	echo
fi
 
if [ "$ppp" = "y" ]; then
	echo "  Now removing PPP"
	apt-get -y remove ppp pppconfig
	echo
	echo
fi
 
 
if [ "$blackbox" = "y" ]; then
	echo "  Now installing the graphical desktop"
	for myfile in $(cat programs.gui); do
		echo "  Now installing $myfile"
		apt-get -y install $myfile
		echo
		echo
	done
fi
 
if [ "$wine" = "y" ]; then
	echo "  Now installing Wine"
	apt-get -y install wine wine-utils wine-doc winesetuptk libwine libwine-dev
	echo
	echo
fi
 
if [ "$laptop" = "y" ]; then
	echo "  Now installing Xbat"
	apt-get -y install xbat
	echo
	echo
fi
 
if [ "$varicad" = "y" ]; then
	echo "  Now installing the Varicad libraries"
	apt-get -y install kdelibs3 libqt2-gl libstdc++2.9-glibc2.1
	echo
	echo
fi
 
if [ "$flightgear" = "y" ]; then
	echo "  Now installing FlightGear and Joystick"
	apt-get -y install flightgear joystick
	echo
	echo
fi
 
echo
echo
echo
echo "  This script has only installed the Links web browser"
echo "  You must install by hand the following packages"
echo "  Varicad		dpkg -i varicad-en_9.0.1.0-1_i386.deb"
echo "  Opera		dpkg -i opera_7.54-20040803.5-shared-qu_en_i386.deb"
echo "  Open Office	tar xvzf OOo_1.1.3_LinuxIntel_install.tar.gz"
echo
echo
echo
echo "		All done  Bye"
exit

Copyright (c) by the authors.
Prior to editing, authors agreed to license their contributions by the terms of the GPL.
See our licensing page for details.


Linux® is a registered trademark of Linus Torvalds.


 
  tutorials/during/distros/debian/programs.install.txt · Last modified: 2008/07/20 21:08

LinuxBasics.org

Start Linux-Course Tutorials Linux Links Security Blog Forum E-mail List Search Online Chat

Site-Info

Help Get in Touch Making of LBo

Wiki-Control

Powered by

Linux Apache DokuWiki Mailman RUTE ht://Dig