Register
It is currently Fri Aug 01, 2014 7:52 am

Script to Install most requested apps in Ubuntu


All times are UTC - 6 hours


Post new topic Reply to topic  [ 8 posts ] 

Is this Script useful?
Yes! 50%  50%  [ 1 ]
Sort of but needs work 50%  50%  [ 1 ]
No. 0%  0%  [ 0 ]
Total votes : 2
Author Message
 PostPosted: Fri Oct 06, 2006 7:08 am   

Joined: Mon Sep 18, 2006 1:16 pm
Posts: 27
Greetings,

At last I've finished a Second Version of the Ubuntu Install Script! With this version, the user can choose which programs to install and which not to install. This version is aimed at Ubuntu Dapper, Kubuntu Dapper and Xubuntu Dapper. I would like some input on how to check which version of Ubuntu this script is run on and then pass this info to the script to choose which sources.list to use.

For this script to work, please download and decompress the tar.gz and run the script. I'm including the script and the sources.list file used by the script in this post. If you don't want to download the tar.gz file, then make a directory named config and place a text file named sources.list inside of it and put the code for the sources.list in it. then put the install script code inside of a text file name ubuntu-install-script-dapper-v2.sh.

Directory structure should be like:
.Ubuntu-Install-Script-Dapper-V2.sh
.config
.config/sources.list

Download:
http://mark.22kb.com/dl/ubuntu/Ubuntu-I ... -V2.tar.gz

NOTE: This Script is only Designed for Dapper at this time. Edgy will be supported in the next version hopefully.
Feel Free to distribute this Script and put it on your website. All I ask is the credits remain in the script
and credit be giving where credit is due.


------------ script --------------
Code:
# /bin/bash
##
## This Script (C)2006 by Mark Reaves. Feel free to distribute this script in whole.
## Any modifications to this script are welcome BUT make notes as to any edits and
## inform me so maybe I can include it in this script officially. Email any errors
## bugs or other nasty things in this script to motstudios@gmail.com
## Feel free to email me any suggestions also.
## This Scripts Version is Dapper Version 2

cd /
echo "Starting Install Script Dapper Version 2."
if [[ ! `whoami`=="root" ]]
then
          echo "You must run this script as root!"
     echo "Please use sudo or log in as root."
     exit
fi
clear
cat<<_EOF_
Script Starting.

NOTE: This Script is ONLY for Ubuntu Dapper
      Xubuntu Dapper and Kubuntu Dapper!
      If you are using Edgy STOP NOW!

Greetings $USER! This script will install many
useful programs, audio/video codecs
and more! This script comes without
any promise of anything. If it messes up
your system, it's not my fault. If you
find a bug or get an error, email it to me
at motstudios@gmail.com

_EOF_
read -p "Are you ready (yes or no)? " ANSWER
if [[ $ANSWER = yes ]]
   then
      echo "Ok, Let's proceed.";
   else
      echo "Too bad, exiting.";
      exit
   fi
clear
cat<<_EOF_

Do you have a Lexmark z25-z35 printer? If so answer yes
to install the drivers for it. You will still have to
setup the printer yourself. If you choose no, the install
of the rest of the programs will proceed.

_EOF_
read -p "(yes or no)? " ANSWER2
if [[ $ANSWER2 = yes ]]
   then
      echo "Ok, Let's proceed.";
      echo "Prepairing drivers and installing. Please wait...";
      cd $HOME;
      mkdir lexmark-printer-driver;
      cd lexmark-printer-driver;
      wget http://www.downloaddelivery.com/srfilecache/CJLZ35LE-CUPS-2.0-1.TAR.GZ;
      cp CJLZ35LE-CUPS-2.0-1.TAR.GZ lexz25z35-cups-2.0-1.tar.gz;
      rm CJLZ35LE-CUPS-2.0-1.TAR.GZ;
      tar -xvzf lexz25z35-cups-2.0-1.tar.gz;
      tail -n +143 lexmarkz35-CUPS-2.0-1.gz.sh > install.tar.gz;
      tar -xvzf install.tar.gz;
      alien -t lexmarkz35-CUPS-2.0-1.i386.rpm;
      alien -t z35llpddk-2.0-2.i386.rpm;
      tar xvzf lexmarkz35-CUPS-2.0.tgz -C / ;
      tar xvzf z35llpddk-2.0.tgz -C /;
      ldconfig;
      cd /usr/share/cups/model;
      gunzip Lexmark-Z35-lxz35cj-cups.ppd.gz;
      /etc/rc2.d/S19cupsys restart;
      cd $HOME;
      echo "Cleaning Up...";
      rm -r $HOME/lexmark-printer-driver;
      echo "Done! Now set up your printer using your";
      echo "favorite printer setup program.";
      else
            echo "Proceeding...";
   fi
echo "Making a Backup of your Repositories ..."
cp /etc/apt/sources.list /etc/apt/sources.listBAK
echo "Replacing sources.list ..."
cp config/sources.list /etc/apt/sources.list
echo "Updating GPG Keys..."
wget http://packages.freecontrib.org/ubuntu/plf/12B83718.gpg -O- | apt-key add -
echo "Updating apt-get..."
apt-get update
read -p "Do you want to install Java (yes or no)? " ANSWER
if [[ $ANSWER = yes ]]
   then
      apt-get --assume-yes install sun-java5-jre sun-java5-plugin;
      update-alternatives --config java;
      echo "Java install complete"
   else
      echo "Ok, Proceeding.";
fi
read -p "Do you want to install Flash (yes or no)? " ANSWER
if [[ $ANSWER = yes ]]
   then
      apt-get --assume-yes install flashplugin-nonfree;
      echo "Flash install complete"
   else
      echo "Ok, Proceeding.";
fi
read -p "Do you want to install Multimedia Codecs (yes or no)? " ANSWER
if [[ $ANSWER = yes ]]
   then
      apt-get --assume-yes install gstreamer0.10-ffmpeg gstreamer0.10-gl gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse w32codecs;
      echo "Multimedia Codecs install complete"
   else
      echo "Ok, Proceeding.";
fi
read -p "Do you want to install VLC Multimedia Player (yes or no)? " ANSWER
if [[ $ANSWER = yes ]]
   then
      apt-get --assume-yes install vlc vlc-plugin-* mozilla-plugin-vlc;
      echo "VLC Multimedia Player install complete";
   else
      echo "Ok, Proceeding.";
fi
read -p "Do you want to install tools needed to compile sourcecode (yes or no)? " ANSWER
if [[ $ANSWER = yes ]]
   then
      apt-get --assume-yes install build-essential checkinstall alien;
      echo "Alien Checkinstall and Sourcecode compiling tools install complete"
   else
      echo "Ok, Proceeding.";
fi
read -p "Do you want to install a Firewall Manager (yes or no)? " ANSWER
if [[ $ANSWER = yes ]]
   then
      apt-get --assume-yes install firestarter;
      echo "Firestarter install complete"
   else
      echo "Ok, Proceeding.";
fi
read -p "Do you want to install a CD Burning Program (yes or no)? " ANSWER
if [[ $ANSWER = yes ]]
   then
      apt-get --assume-yes install gnomebaker;
      echo "Gnomebaker install complete"
   else
      echo "Ok, Proceeding.";
fi
read -p "Do you want to install a HTML Editor (yes or no)? " ANSWER
if [[ $ANSWER = yes ]]
   then
      apt-get --assume-yes install quanta;
      echo "Quanta install complete"
   else
      echo "Ok, Proceeding.";
fi
read -p "Do you want to install StreamRipper (yes or no)? " ANSWER
if [[ $ANSWER = yes ]]
   then
      apt-get --assume-yes install streamripper;
      echo "StreamRipper install complete"
   else
      echo "Ok, Proceeding.";
fi
read -p "Do you want to install StreamTuner (yes or no)? " ANSWER
if [[ $ANSWER = yes ]]
   then
      apt-get --assume-yes install streamtuner;
      echo "StreamTuner install complete"
   else
      echo "Ok, Proceeding.";
fi
read -p "Do you want to install an FTP Client (yes or no)? " ANSWER
if [[ $ANSWER = yes ]]
   then
      apt-get --assume-yes install gftp;
      echo "GFTP install complete"
   else
      echo "Ok, Proceeding.";
fi
read -p "Do you want to install a BitTorrent Client (yes or no)? " ANSWER
if [[ $ANSWER = yes ]]
   then
      apt-get --assume-yes install bittornado bittornado-gui;
      echo "BitTornado and BitTornado GUI install complete"
   else
      echo "Ok, Proceeding.";
fi
read -p "Do you want to install XMMS Audio Player (yes or no)? " ANSWER
if [[ $ANSWER = yes ]]
   then
      apt-get --assume-yes install xmms xmms-skins xmms-wma;
      echo "XMMS WMA Plugin and Skins for XMMS install complete"
   else
      echo "Ok, Proceeding.";
fi
read -p "Do you want to install Kernel Sources (yes or no)? " ANSWER
if [[ $ANSWER = yes ]]
   then
      apt-get --assume-yes install kernel-package gcc libncurses5 libncurses5-dev libqt3-mt-dev bin86 gawk linux-kernel-devel ncurses-dev linux-source;
      cd /usr/src;
      tar --bzip2 -xvf linux-source-2.6.15.tar.bz2;
      rm -f /usr/src/linux;
      ln -s /usr/src/linux-source-2.6.15 /usr/src/linux;
      rm /usr/src/linux-source-2.6.15.tar.bz2;
      echo "Kernel Sources install complete"
   else
      echo "Ok, Proceeding.";
fi

echo "Program Install Complete..."
echo "Restoring Original sources.list..."
mv /etc/apt/sources.list /etc/apt/sources.list.custom
mv /etc/apt/sources.listBAK /etc/apt/sources.list
apt-get update
echo "sources.list Restore Complete!"
cd $HOME
echo "Install complete! Have fun!"
echo "Exiting Script."


--------- sources.list -------------
Code:
## This sources.list file is included with the Ubuntu Xtra Install Script.
## To restore your old sources (if this was installed with the script)
## then rm /etc/apt/sources.list and
## mv /etc/apt/sources.listBAK /etc/apt/sources.list

deb http://us.archive.ubuntu.com/ubuntu/ dapper main restricted multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper main restricted
deb http://us.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ dapper universe
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper universe
deb http://us.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
deb http://nightlies.videolan.org/build/dapper-i386 /
deb http://packages.freecontrib.org/ubuntu/plf dapper non-free free
deb-src http://packages.freecontrib.org/ubuntu/plf dapper non-free free
deb http://download.skype.com/linux/repos/debian/ stable non-free


Last edited by katasuka on Wed Dec 13, 2006 9:45 pm, edited 6 times in total.

Top
 Profile  
 PostPosted: Fri Oct 06, 2006 10:27 am   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 664
Location: Des Moines, Iowa
The root user only part is easy enough......

Use this .......

Code:
ROOT_UID=0
if [ "$UID" -ne "$ROOT_UID" ]
then
   echo ""
   echo "**************** ERROR !! **************"
   echo "You must be logged in as root to run this script"
   echo "Please log in as root and re-run this script."
   echo "**************** ERROR !! **************"
   exit
fi


I'm not familiar with Ubuntu .. i'll leave that part to someone who runs it ;)


Top
 Profile WWW  
 PostPosted: Fri Oct 06, 2006 10:20 pm   

Joined: Wed Sep 06, 2006 12:19 pm
Posts: 54
Location: Covington, WA
Quote:
... I need to know how exactly to edit the /etc/apt/sources.list to include the extra repository URL's needed to install the software that's not in the Official Ubuntu Repositories....
I used to run Debian for awhile, until I got tired of it and went back to Slack.. :)

If I remember right, "unofficial" repos will usually have the url supplied by the owner of the repository........At the top of the sources.list is a line that shows what the fields mean

# deb [server-type] [address] [directories] [areas]

I still have an old backup of that install with some unofficial repos in it........
Code:
#############
# /etc/apt/sources.list
# If you want to do a "full upgrade", you should first
# upgrade the Packages from Debian/unstable (KDE & Co.)
# before doing a (dist-)upgrade for Debian/testing.
#
# See sources.list(5) for more information, especialy
# Remember that you can only use http, ftp or file URIs
# CDROMs are managed through the apt-cdrom tool.
#
# deb [server-type] [address] [directories] [areas]

#############
# Debian packages from Sarge snapshot DVDs - 2005-03-11
#deb cdrom:[Debian GNU/Linux testing _Sarge_ - Official Snapshot i386 Binary-2 (20050311)]/ unstable contrib main
#deb cdrom:[Debian GNU/Linux testing _Sarge_ - Official Snapshot i386 Binary-1 (20050311)]/ unstable contrib main

#############
# Security updates for "stable" and "testing"
deb http://security.debian.org/ stable/updates main contrib non-free
#deb http://security.debian.org/ testing/updates main contrib non-free


#############
# the main Debian packages.
# Uncomment the deb-src lines if you want 'apt-get source'
# to work with most packages.
#
### Testing - "sid"
#deb ftp://mirrors.xmission.com/debian/ testing main contrib non-free
#deb-src ftp://mirrors.xmission.com/debian/ testing main contrib non-free
#deb http://mirrors.xmission.com/debian/ testing main contrib non-free
#deb-src http://mirrors.xmission.com/debian/ testing main contrib non-free

deb ftp://linux.csua.berkeley.edu/debian/ testing main contrib non-free
deb-src ftp://linux.csua.berkeley.edu/debian/ testing main contrib non-free
#deb http://linux.csua.berkeley.edu/debian/ testing main
#deb-src http://linux.csua.berkeley.edu/debian/ testing main

deb ftp://ftp.belnet.be/debian/ testing main contrib non-free
deb-src ftp://ftp.belnet.be/debian/ testing main contrib non-free
#deb http://ftp.belnet.be/debian/ stable main contrib non-free
#deb-src http://ftp.belnet.be/debian/ stable main contrib non-free

deb ftp://ftp.be.debian.org/debian/ testing main contrib non-free
deb-src ftp://ftp.be.debian.org/debian/ testing main contrib non-free


### Stable - "sarge"
#deb ftp://mirrors.xmission.com/debian/ stable main contrib non-free
#deb-src ftp://mirrors.xmission.com/debian/ stable main contrib non-free
#deb http://linux.csua.berkeley.edu/debian/ stable main contrib non-free
#deb-src http://linux.csua.berkeley.edu/debian/ stable main contrib non-free

deb ftp://linux.csua.berkeley.edu/debian/ stable main contrib non-free
deb-src ftp://linux.csua.berkeley.edu/debian/ stable main contrib non-free
#deb http://linux.csua.berkeley.edu/debian/ stable main
#deb-src http://linux.csua.berkeley.edu/debian/ stable main

deb ftp://ftp.belnet.be/debian/ stable main contrib non-free
deb-src ftp://ftp.belnet.be/debian/ stable main contrib non-free
#deb http://ftp.belnet.be/debian/ stable main contrib non-free
#deb-src http://ftp.belnet.be/debian/ stable main contrib non-free

deb ftp://ftp.be.debian.org/debian/ stable main contrib non-free
deb-src ftp://ftp.be.debian.org/debian/ stable main contrib non-free


#############
# the non-US Debian packages.
#deb http://linux.csua.berkeley.edu/debian-non-US/ testing/non-US main contrib non-free
#deb-src http://linux.csua.berkeley.edu/debian-non-US/ testing/non-US main contrib non-free


#############
# KDE only mirror for version 3.3.1 packages
#deb http://ftp.rutgers.edu/pub/kde/stable/3.3.1/Debian/ stable main

#############
# Java Runtime - Blackdown binaries
deb ftp://ftp.tux.org/pub/java/debian/ stable non-free
deb ftp://ftp.tux.org/pub/java/debian/ testing non-free

#############
# Christian Marillat's unofficial repository
# Contains acroread, mplayer, transcode, xmms, etc.
deb ftp://ftp.nerim.net/debian-marillat/ stable main
deb ftp://ftp.nerim.net/debian-marillat/ testing main
deb-src ftp://ftp.nerim.net/debian-marillat/ unstable main

#############
# Knoppix 3.7 list of mirrors (partial list)
#
# Unstable
#deb http://ftp.de.debian.org/debian/ unstable main contrib non-free
#deb http://ftp.de.debian.org/debian-non-US/ unstable/non-US main contrib non-free

# Unstable Sources
#deb-src http://ftp.de.debian.org/debian/ unstable main contrib non-free
#deb-src http://ftp.de.debian.org/debian-non-US/ unstable/non-US main contrib non-free

#############
# Experimental
#deb http://ftp.de.debian.org/debian/ ../project/experimental main contrib non-free
#deb-src http://ftp.de.debian.org/debian/ ../project/experimental main contrib non-free

# Java
#deb ftp://ftp.gwdg.de/pub/languages/java/linux/debian/ woody main non-free
#deb-src ftp://ftp.gwdg.de/pub/languages/java/linux/debian/ woody main non-free
#deb ftp://ftp.gwdg.de/pub/languages/java/linux/debian/ unstable main non-free
#deb-src ftp://ftp.gwdg.de/pub/languages/java/linux/debian/ unstable main non-free

# More wireless stuff
#deb http://debian.isg.ee.ethz.ch/public/ woody madwifi
#deb-src http://debian.isg.ee.ethz.ch/public/ woody madwifi
#deb http://debian.isg.ee.ethz.ch/public/ woody airo-mpi
#deb-src http://debian.isg.ee.ethz.ch/public/ woody airo-mpi
#deb ftp://ftp.tcweb.org/pub/debian/ unstable main
#deb-src ftp://ftp.tcweb.org/pub/debian/ unstable main

# NX stuff
#deb http://www.kalyxo.org/debian/ experimental main
#deb http://www.kalyxo.org/debian/ unstable main

# ndiswrapper
#deb http://rigtorp.se/debian/ unstable/
#deb-src http://rigtorp.se/debian/ unstable/

# Blades Repository (pppoeconf & co)
#deb http://people.debian.org/~blade/testing/ ./
#deb-src http://people.debian.org/~blade/testing/ ./

# Knoppix special packages resource at LinuxTag HQ
#deb http://developer.linuxtag.net/knoppix/ ./
#deb-src http://developer.linuxtag.net/knoppix/ ./

#deb http://snapshot.debian.net/archive/ pool gcc
#deb-src http://snapshot.debian.net/archive/ pool gcc


And here's a Knoppix specific list when I installed Knoppix to the harddrive.....(It went okay for a short while, until I tried to update using pure Debian packages and broke everything....:roll: )
Code:
#############
# /etc/apt/sources.list
# If you want to do a "full upgrade", you should first
# upgrade the Packages from Debian/unstable (KDE & Co.)
# before doing a (dist-)upgrade for Debian/testing.
#
# See sources.list(5) for more information, especialy
# Remember that you can only use http, ftp or file URIs
# CDROMs are managed through the apt-cdrom tool.
#
# deb [server-type] [address] [directories] [areas]

#############
# Security updates for "stable" and "testing"
deb http://security.debian.org/ stable/updates main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free


#############
# the main Debian packages.
# Uncomment the deb-src lines if you want 'apt-get source'
# to work with most packages.
#
# Testing
deb http://mirrors.xmission.com/debian/ testing main contrib non-free
deb-src http://mirrors.xmission.com/debian/ testing main contrib non-free

# Stable
deb http://mirrors.xmission.com/debian/ stable main contrib non-free
deb-src http://mirrors.xmission.com/debian/ stable main contrib non-free


#############
# the non-US Debian packages.
deb http://linux.csua.berkeley.edu/debian-non-US/ testing/non-US main contrib non-free
deb-src http://linux.csua.berkeley.edu/debian-non-US/ testing/non-US main contrib non-free


#############
deb ftp://linux.csua.berkeley.edu/debian/ testing main
deb-src ftp://linux.csua.berkeley.edu/debian/ testing main

deb http://linux.csua.berkeley.edu/debian/ testing main
deb-src http://linux.csua.berkeley.edu/debian/ testing main

deb ftp://ftp.belnet.be/debian/ testing main
deb-src ftp://ftp.belnet.be/debian/ testing main

deb http://ftp.belnet.be/debian/ testing main
deb-src http://ftp.belnet.be/debian/ testing main

deb ftp://ftp.us.debian.org/debian/ testing main
deb-src ftp://ftp.us.debian.org/debian/ testing main


#############
# KDE only mirror for version 3.3.1 packages
#deb http://ftp.rutgers.edu/pub/kde/stable/3.3.1/Debian/ stable main


#############
# Debian packages from Sarge snapshot DVDs - 2005-03-11
#deb cdrom:[Debian GNU/Linux testing _Sarge_ - Official Snapshot i386 Binary-1 (20050311)]/ unstable contrib main
#deb cdrom:[Debian GNU/Linux testing _Sarge_ - Official Snapshot i386 Binary-2 (20050311)]/ unstable contrib main


#############
# Knoppix 3.7 list of mirrors (partial list)
#
# Unstable
#deb http://ftp.de.debian.org/debian/ unstable main contrib non-free
#deb http://ftp.de.debian.org/debian-non-US/ unstable/non-US main contrib non-free

# Unstable Sources
#deb-src http://ftp.de.debian.org/debian/ unstable main contrib non-free
#deb-src http://ftp.de.debian.org/debian-non-US/ unstable/non-US main contrib non-free

# Experimental
deb http://ftp.de.debian.org/debian/ ../project/experimental main contrib non-free

# Experimental Sources
deb-src http://ftp.de.debian.org/debian/ ../project/experimental main contrib non-free

# Java
#deb ftp://ftp.gwdg.de/pub/languages/java/linux/debian/ woody main non-free
#deb-src ftp://ftp.gwdg.de/pub/languages/java/linux/debian/ woody main non-free
#deb ftp://ftp.gwdg.de/pub/languages/java/linux/debian/ unstable main non-free
#deb-src ftp://ftp.gwdg.de/pub/languages/java/linux/debian/ unstable main non-free

# More wireless stuff
#deb http://debian.isg.ee.ethz.ch/public/ woody madwifi
#deb-src http://debian.isg.ee.ethz.ch/public/ woody madwifi
#deb http://debian.isg.ee.ethz.ch/public/ woody airo-mpi
#deb-src http://debian.isg.ee.ethz.ch/public/ woody airo-mpi
#deb ftp://ftp.tcweb.org/pub/debian/ unstable main
#deb-src ftp://ftp.tcweb.org/pub/debian/ unstable main

# NX stuff
#deb http://www.kalyxo.org/debian/ experimental main
#deb http://www.kalyxo.org/debian/ unstable main

# ndiswrapper
#deb http://rigtorp.se/debian/ unstable/
#deb-src http://rigtorp.se/debian/ unstable/

# Blades Repository (pppoeconf & co)
#deb http://people.debian.org/~blade/testing/ ./
#deb-src http://people.debian.org/~blade/testing/ ./

# Knoppix special packages resource at LinuxTag HQ
deb http://developer.linuxtag.net/knoppix/ ./
deb-src http://developer.linuxtag.net/knoppix/ ./

#deb http://snapshot.debian.net/archive/ pool gcc
#deb-src http://snapshot.debian.net/archive/ pool gcc


These might give you some idea......... :?: :!:

Since Ubuntu is Debian-based, with it's own set of packaging policies, you can take a peek at the Debian documentation of apt-get to get a better idea of what's going on..........While the package policies are different, the packaging is basically the same, since Ubuntu uses apt-get.......

There might be some documentation installed with the OS that will help you, also......

Sorry I couldn't be more helpful......... :(

---thegeekster


Top
 Profile  
 PostPosted: Fri Oct 06, 2006 11:17 pm   

Joined: Mon Sep 18, 2006 1:16 pm
Posts: 27
thanks for the info, however i need to know what bash code will be needed to edit the sources.list file to include the extra urls and maybe even append the normal repos to include universe and multiverse.

ive been trying for days now to figure out how the heck to use sed to do what im needing but im getting nowhere, so thats why i ask for some example code so i can see "how" it would work for future reference.


Top
 Profile  
 PostPosted: Sat Oct 07, 2006 1:00 am   

Joined: Mon Sep 18, 2006 1:16 pm
Posts: 27
i think i got the script complete, can someone go over the script and make sure its coded right and will do what its supposed to? thank you.

PS: The checkforroot code doesnt seem to work for me. i ran this script as a normal user when i was testing that the code worked.


Top
 Profile  
 PostPosted: Sat Oct 07, 2006 8:00 am   
User avatar

Joined: Mon Jul 03, 2006 8:58 pm
Posts: 52
Location: Rochester, NY
Instead of using sed couldn't you just use a Here document to append the necessary sources to the sources.list? Assuming you know the correct format for the repo entries, you'd simply do something like the following:

Code:
$ cat <<EOL >> /etc/apt/sources.list

#############
# Additional repositories for the "good stuff"
deb http://blah.org/ stable/updates main contrib non-free
deb http://blah.org/ testing/updates main contrib non-free
EOL


That will append your sources to the end of the file (though it will do it every time the script is run, so that may be a problem).

Cheers!


Top
 Profile WWW  
 PostPosted: Wed Nov 01, 2006 1:06 pm   

Joined: Mon Sep 18, 2006 1:16 pm
Posts: 27
greetings,

i just wanted to say im going to do a remake of the script for the newest edgy release of ubuntu once i get used to edgy (just installed today). im also going to implement some more features and clean up the code some more, once i do so i will provide the old (for dapper) and the new (for edgy)


Top
 Profile  
 PostPosted: Wed Dec 13, 2006 9:29 pm   

Joined: Mon Sep 18, 2006 1:16 pm
Posts: 27
Greetings,

This is to note a new official version of the Ubuntu Install Script. See the first post for details


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP