Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I need to execute the script below which I found on a webpage. I am using RH9, your help is appreciated:
# $Id: debtakeover 103 2004-01-09 19:51:47Z guillem $
# Convert a new non-Debian distribution to Debian proper
# Copyright (C) 2003 Guillem Jover <firstname.lastname@example.org>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
if [ "$DEBTAKEOVER_PROFILE" = "colo" ]; then
# Function definitions
if [ "$VERBOSE" = "yes" ]; then
tee -a $LOGFILE
cat >> $LOGFILE
echo -e "$@" | logpipe
echo -e "$@" | tee -a $LOGFILE
msg "warning: $@" >&2
msg "error: $@" >&2
if [ $code != 0 ]; then
usage: $PROGRAM [options]
--profile=string Installation profile (default "$DEFAULT_PROFILE")
--suite=string Debian suite (default "$DEFAULT_SUITE")
--mirror=url Debian mirror (default "$DEFAULT_MIRROR")
--tarball=file Debian base tarball (default "$DEFAULT_TARBALL")
--force-purify Force the purification (non-interactive)
--verbose Be more verbose
--version Print program version
--help Print this help
msg "Stage (Checking for needed components)"
check_print "superuser privileges"
if [ `id -u` = 0 ]; then
error 4 "You need superuser privileges to run this program."
if [ -z "$TARBALL" ]; then
local DEBOOTSTRAP_NEEDED="$DEBOOTSTRAP wget ar"
local DEBTAKEOVER_NEEDED="grep sed diff tar gzip bzip2"
for bin in $DEBOOTSTRAP_NEEDED $DEBTAKEOVER_NEEDED; do
if which $bin >& /dev/null; then
if [ "$CHECK_MISSING" = yes ]; then
error 2 "Please install missing software and try again."
if [ "$FORCE_PURIFY" != yes ]; then
REPLY_CHECK="Yes I am"
warning "Are you sure what are you going to do ? [$REPLY_CHECK]"
if [ "$REPLY" != "$REPLY_CHECK" ]; then
error 20 "Ok, you are not sure. Leaving $DISTRO system untouched."
msg "Stage (Detecting current Distro)"
if [ -e /etc/redhat-release -o -e /etc/mandrake-release -o \
-e /etc/fedora-release ]
elif [ -e /etc/SuSE-release ]
# SuSE version < 8.0 used /etc/rc.config
elif [ -e /etc/slackware-version ]
elif [ -e /etc/gentoo-release ]
elif [ -e /etc/cobalt-release ]
if [ -e /etc/debian_version ]
if [ "$DISTRO" = unknown ]; then
error 1 "You already have a Debian system"
warning "You have a mixed system, trying to continue"
msg "-> Setting up APT sources.list"
cat > $DEBIAN_DIR/etc/apt/sources.list <<-EOF
deb $DEBIAN_MIRROR_SECURITY/debian-security $DEBIAN_VERSION/updates main
deb $DEBIAN_MIRROR/debian $DEBIAN_VERSION main
deb $DEBIAN_MIRROR/debian-non-US $DEBIAN_VERSION/non-US main
deb-src $DEBIAN_MIRROR_SECURITY/debian-security $DEBIAN_VERSION/updates main
deb-src $DEBIAN_MIRROR/debian $DEBIAN_VERSION main
deb-src $DEBIAN_MIRROR/debian-non-US $DEBIAN_VERSION/non-US main
msg "-> Converting halt to behave as reboot"
cp -d /etc/rc6.d/S??reboot /etc/rc0.d
mv -f /etc/rc1.d /etc/rc1.d.disabled
ln -s /etc/rc2.d /etc/rc1.d
rmdir /cdrom /floppy
msg "-> Sanitizing user databases"
msg "-> Setting up module configurations"
if [ -f /etc/conf.modules ]; then
cat /etc/conf.modules >> /etc/modutils/$DISTRO
if [ -f /etc/modules.conf ] &&
! grep update-modules /etc/modules.conf &> /dev/null; then
cat /etc/modules.conf >> /etc/modutils/$DISTRO
if [ ! -f /etc/modules ]; then
msg "-> Setting up remaining configurations"
dpkg --configure -a