LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Gnomeslackbuild on Slackware older releases (https://www.linuxquestions.org/questions/slackware-14/gnomeslackbuild-on-slackware-older-releases-812684/)

mr.simo 06-07-2010 11:36 AM

Gnomeslackbuild on Slackware older releases
 
Hi, I opened this post as an info to install gnomeslackbuild on slackware 12.2 or release older than current .
As gnomeslackbuild is alway available in his website for the lastest release of Slackware, for older release it's just required to download the file at http://gnomeslackbuild.org/net-install and change some variables
As you will see the variables are set (as you can expect) for the lastest release.. Obviously You have to change it for your slackware version..
Here is an example for installing it on 12.2 release, the older available
Code:

#!/usr/bin/sh

#
#  +--------------------------------------------------------------------+
#  | GSB GNOME installer script                                        |
#  |  (c) 2008 Chip "chipster" Cuccio                                  |
#  |  <http://gnomeslackbuild.org/>                                    |
#  | This progam is distributed under the GNU GPL;                      |
#  |  See <http://www.gnu.org/licenses/gpl.html> for lic. info        |
#  +--------------------------------------------------------------------+
#

#
#  NOTE:
#  This script is dynamically generated on the web server.
#  It is not intended to be saved to a computer and invoked manually.
#  Doing so is unsupported, and the script may not function as intended. 
#

#
# basic paths
#
export PATH=$PATH:/usr/sbin:/usr/local/bin

#
# vars
#

# Change this for your Slackware Release
SLACK_VER="12.2"
# Change this looking at http://slackware.org.uk/gsb/ wich is the version of GSB for your release
GSB_VER="2.26"
GSB_NORMALIZED_PATH="gsb/gsb-$GSB_VER"_"slackware-$SLACK_VER"
META_PACK="gsb-desktop"
# Check it in http://slackware.org.uk/gsb/$GSB_VER_slackware-$SLACK_VER/gsb/packages/tools/wich is the version you have to install
SLAPTGET_VER="0.10.1a-i486-1gsb"
SLAPTGET_FILE="slapt-get-$SLAPTGET_VER.txz"
TMP="${TMP:-/tmp}"
MIRROR="http://mirrors.gnomeslackbuild.org"
SLAPTGET_DLPATH="$MIRROR/$GSB_NORMALIZED_PATH/gsb/ad/$SLAPTGET_FILE"
TEMP_CONFIGFILE="$TMP/slapt-getrc"
SLAPTGET_ARGS0="--config $TEMP_CONFIGFILE --retry 10 --upgrade -y -S"
SLAPTGET_ARGS1="--config $TEMP_CONFIGFILE --retry 10 --remove-obsolete --install -S $META_PACK -y"
WGET_ARGS="--progress=bar $SLAPTGET_DLPATH -O $TMP/$SLAPTGET_FILE"
# Check it too
SLAPT_MD5=d41d8cd98f00b204e9800998ecf8427e

#
# determine if user is logged in as root user
#
if [ `id -u` -ne 0 ]; then
    clear
    echo
    echo "You must be root when running this program!"
    echo "log into a shell as root and run this command again;"
    echo
    echo "    lynx --source http://gnomeslackbuild.org/net-install | bash"
    echo
    exit 1
fi

#
# is wget installed?
#
WGET='/usr/bin/wget'
if [ ! -f "${WGET}" ]; then
    clear
    echo
    echo "wget must be installed to run this program"
    echo
    exit 1
fi

#
# slapt-get handling/acquisition
#
SLAPTGET='/usr/sbin/slapt-get'
if [ ! -f "${SLAPTGET}" ]; then
    clear
    echo
    echo "slapt-get not found. Downloading and installing..."
    echo
    sleep 3
    $WGET $WGET_ARGS
    if [ ! -f "$TMP/$SLAPTGET_FILE" ]; then
        echo "slapt-get download failed"
        exit 1
    else
        TEMP_SLAPT_MD5=`md5sum $TMP/$SLAPTGET_FILE|sed 's| \/.*||g'|grep .`
        if [ $TEMP_SLAPT_MD5 = $SLAPT_MD5 ]; then
            upgradepkg --install-new  $TMP/$SLAPTGET_FILE
            rm -f $TMP/$SLAPTGET_FILE
            echo "slap-get installed successfully"
            echo
            sleep 3
        else
            echo
            echo "slapt-get download md5's don't match! Exiting."
            echo
            exit 1
        fi
    fi
fi

#
# slapt-get preparedness
#
echo
echo "Preparing GSB GNOME installation..."
echo
sleep 3
cat << EOF >$TEMP_CONFIGFILE
WORKINGDIR=/var/slapt-get
EXCLUDE=^aaa_elflibs,^devs,^glibc-.*,^kernel-.*,^udev,.*-[0-9]+dl$,x86_64
SOURCE=$MIRROR/$GSB_NORMALIZED_PATH
SOURCE=http://ftp.osuosl.org/pub/slackware/slackware-$SLACK_VER
EOF

#
# get package lists & add keys
#
echo
echo "Grabbing and importing package signing keys...."
echo
$SLAPTGET --config $TEMP_CONFIGFILE --add-keys
echo
echo "Updating package lists..."
echo
$SLAPTGET --config $TEMP_CONFIGFILE --update
echo
echo "Installing/updating GSB GNOME"...
echo
sleep 3

#
# sanity
#
if $SLAPTGET $SLAPTGET_ARGS0; then
    echo "Dependencies upgraded and/or installed - installing GSB GNOME..."
    if $SLAPTGET $SLAPTGET_ARGS1; then
        echo
        echo "cleaning up temoroary files..."
        $SLAPTGET --config $TEMP_CONFIGFILE --clean
        rm -f $TEMP_CONFIGFILE
        echo "Done"
        echo
        # the following logic re-installs GSB packages which may have been
        # overwitten by the slackware patches.  important we patch too!
        SLAPTRC='/etc/slapt-get/slapt-getrc'
        if [ "$( grep gsb "${SLAPTRC}" )" ]; then
            sleep 1
        else
            echo
            echo "GSB has been installed - however..."
            echo
            echo "We've detected that you do not have slapt-get"
            echo "configured to use the GSB mirrors! This could happen"
            echo "if you already had slapt-get installed."
            echo
            echo "This means your GSB software may have packages that are"
            echo "out of date.  To rectify this, you must add the GSB"
            echo "mirror(s) to your slapt-getrc as described on our"
            echo "website, and then run this command again to update GSB."
            echo
            echo "Steps:"
            echo
            echo "  1) follow the instructions at"
            echo "    <http://gnomeslackbuild.org/download/#slaptgetrc>"
            echo "  2) run the following command again, as root:"
            echo "    lynx --source http://gnomeslackbuild.org/net-install | bash"
            echo
        fi
        echo
        echo "GSB GNOME 2.26 has been installed!"
        echo
        echo "To start GNOME or GDM, please see: "
        echo "<http://gnomeslackbuild.org/support/#FAQs>"
        echo
        echo "We hope you enjoy using GSB! :^)"
        echo
        echo "        -- The GSB Development Team"
        echo
    fi
else
    echo
    echo "GSB GNOME installation failed! Exiting"
    echo
    exit 1
fi

than save the file and execute
Code:

chmod +x <this file>
sudo ./<this file>

NB:
Before executing it with success I had to install this 2 packages:
slapt-get-0.10.1a-i486-1gsb.tgz
cyrus-sasl-2.1.23-i486-1cf.tgz

I don't know why but without doing it first, bash didn't found /usr/sbin/slapt-get, even if the script seems to install it.. Well, I already had these packages on my usb stick so there was any problem.
If during the execution the script report the MD5 error because it's set wrongly, the one will show the error output is the correct.. Just replace it..
Re-run & Gsb installed...
Even if you think this it's obsolete, I hope it will be interesting for someone..
Have a nice day.

chipster_gsb 06-07-2010 04:53 PM

Quote:

Originally Posted by mr.simo (Post 3995546)
Hi, I opened this post as an info to install gnomeslackbuild on slackware 12.2 or release older than current .
As gnomeslackbuild is alway available in his website for the lastest release of Slackware, for older release it's just required to download the file at http://gnomeslackbuild.org/net-install and change some variables [...]

I wrote and maintain that installer script. Note, we do not endorse nor support what you're suggesting here.

mr.simo 06-08-2010 03:42 PM

Quote:

we do not endorse nor support what you're suggesting here
Yes, you're right, but I was looking for a way to install it like the way you suggest in the web site.. From ground up..
Anyway it didn't work perfectly as I said, but it worked..
I know that it's possible to install it adding
Code:

SOURCE=ftp://ftp.slackware.pl/pub/gnomeslackbuild/gsb/gsb-2.26_slackware-12.2/
at the slapt-getrc file and doing --update && --install gsb-desktop.

For sure you know a better way to install it from ground up.. If so and if exist, can you please suggest me? I would like to know..
I am sorry if my post has disturbed you, obviously this is not my goal..


All times are GMT -5. The time now is 06:10 AM.