LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-07-2010, 11:36 AM   #1
mr.simo
LQ Newbie
 
Registered: Feb 2010
Posts: 14

Rep: Reputation: 0
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.

Last edited by mr.simo; 06-07-2010 at 11:44 AM.
 
Old 06-07-2010, 04:53 PM   #2
chipster_gsb
LQ Newbie
 
Registered: Jun 2010
Location: Minnesota, USA
Distribution: Slackware
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by mr.simo View Post
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.
 
Old 06-08-2010, 03:42 PM   #3
mr.simo
LQ Newbie
 
Registered: Feb 2010
Posts: 14

Original Poster
Rep: Reputation: 0
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..

Last edited by mr.simo; 06-08-2010 at 03:45 PM.
 
  


Reply


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
GSB 2.28 and GSB 2.30 (Release Candidate) now available for Slackware(64) 13.1 fidesratio Slackware 15 06-03-2010 02:12 AM
What's the REAL Way to Install GSB on Slack 12.2 beartooth91 Slackware 2 03-17-2009 05:26 PM
GSB Gnome/Compiz crashing slack 12 Heliades Linux - Desktop 0 03-24-2008 04:45 AM
GSB.SlackBuild ran on Slack-Current acummings Slackware 7 08-04-2006 08:30 AM
slackware-current and GNOME users (GSB-FRG problems) BrianW Slackware 2 07-05-2005 02:55 AM


All times are GMT -5. The time now is 08:07 AM.

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