Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 05-15-2009, 10:05 AM   #1
Registered: Sep 2003
Location: Kentucky
Posts: 480
Blog Entries: 1

Rep: Reputation: 51
For those looking for an easy way to install/backup install routines.


I wrote a little script to use to do a base install and grab the programs I need across my 9 machines. I edited to post here on the forums for those that may not know how to script and may want an easy way to do a base Debian install and restore some frequently used packages.


#Script to install all your personal software after a base Debian install!
#Written by corbintechboy
#email corbintechboy(at)gmail(dot)com
#Comes with no warranty
#You assume all risks!

echo "Please review this file and be sure to make any changes you may need"
echo "You will need to be running as root in order for this to work"
 if [ $( whoami ) == "root" ]; then
  echo "You are root, let's get started"
     echo "You are not root! Please run sudo sh or su and start over!"
  exit 0
#If you have any special repositories that need added in order 
#for you to get extra software, uncomment these lines
#below and add them below. There will be a backup of
#your sources.list placed in /etc/apt/sources.list.back.
#If you are going to use this feature, please uncomment
#the line below in case of mistakes!

#cp /etc/apt/sources.list /etc/apt/sources.list.back

#This next line can be repeated as many times as 
#needed. Just simply copy and paste a new line with
#the new info!

#echo "<put your source here with removed brackets>" >> /etc/apt/sources.list

#In order for apt not to error, you will need to download keyring files for above

#wget "<enter url to download keyring here remove brackets>"

#Then dpkgk the keyrings you download

#dpkg -i <filenames here remove brackets>
echo "Would you like to run apt-get update now y/n?"
read a
 case "$a" in
  y|yes)apt-get update;;
  n|no)exit 0;;
echo "This next portion of the script will install your packages"

echo "Are we ready to install your programs y/n?"
read b
  case "$b" in
   y|yes)echo "Lets get to work";;
   n|no)exit 0;;

#This portion needs to be edited to suit your needs, add whatever you like 

apt-get install x-window-system hal fluxbox alsa conky nedit iceweasel synaptic mesa-utils audacious alsa-utils alsamixergui

#If you use a light desktop that does not come with a login manager,
#you may use this line below to generate your .xinitrc file so when 
#you startx you are dropped to your desktop!

#touch .xinitrc
#echo "exec <put command here remove brackets>" > .xinitrc
exit 0
Hope it is as useful to you as it has been to me!


Last edited by corbintechboy; 05-15-2009 at 02:38 PM.
Old 05-15-2009, 02:00 PM   #2
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
thats cool!
i do quite a lot of installations in virtualbox. i`ve allready saved it and will test it this weekend :-))


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
RealPlayer install location (easy install for Ubuntu) tferero Linux - Newbie 5 11-07-2007 09:06 AM
Easy-use, easy-install, fast, minimal KDE distro? lukeprog Linux - Distributions 8 09-08-2007 05:21 PM
newbie: looking for easy to install distro that I can install new programs on easily m.r.bob Linux - Distributions 25 02-15-2006 06:04 PM
How easy is install? craigevil Slackware 6 09-03-2005 04:36 PM
Is there no easy way to install KDE3? Why does the install have to be so heinous? JoeLinux Linux - Software 11 05-06-2002 08:20 PM

All times are GMT -5. The time now is 12:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration