Howdy,
I gave the script a whirl. Really do think it would be a win for Vector to be able to offer Google Chrome and this is taking things in that direction.
First run of the script resulted in an error. I think it has to do with function InstallNSS
function InstallNSS {
cd $tmp/install-chrome
wget $nssURL/$nssPackage
if [ ! -f "$nssPackage" ]; then
echo For some reason wget didnt pull nss from Connie's
echo slackware site!!!
exit 1
fi
installpkg $nssPackage
For some reason it downloads the package to $tmp/install-chrome, but it does not install it afterwards.
So no biggy, I changed directories into /tmp/install-chrome and I did the installpkg myself.
Then ran the script again. It moved further along but resulted in....
Running tests...
./chrome: line 99: InstallChrome: command not found
Well I figured for some reason the InstallChrome function wasn't being seen or recognized so I just copied the function code and needed variables into a second script and ran it separately.
#!/bin/bash
tmp="/tmp"
chromeURL="http://dl.google.com/linux/direct"
chromePackage="google-chrome-unstable_current_i386.deb"
cd /tmp/install-chrome
wget http://dl.google.com/linux/direct/google-chrome-unstable_current_i386.debcd
if [ ! -f "$chromePackage" ]; then # quit running if wget failed
echo Something went wrong while retrieving # and kick out a sane error msg
echo Google Chrome!!!
exit 1
fi
echo Unpacking the deb file...
ar -x $tmp/install-chrome/$chromePackage
if [ ! -f "data.tar.lzma" ]; then # quit running if ar failed
echo Something went wrong while unpacking # and kick out a sane error msg
echo the .deb file!!!
exit 1
fi
echo Extracting Google Chrome...
lzma -d data.tar.lzma
if [ ! -f "data.tar" ]; then # quit running if lzma failed
echo Something went wrong while extracting # and kick out a sane error msg
echo Google Chrome!!!
exit 1
fi
cd /
echo Installing Google Chrome...
tar xf $tmp/install-chrome/data.tar
if [ ! -f "/opt/google/chrome/google-chrome" ]; then # let me know if chrome wasn't
echo Installation failed while # installed correctly
echo moving files!!!
exit 1
else
cp /opt/google/chrome/google-chrome.desktop /usr/share/applications/google-chrome.desktop
echo Installation complete!
echo Just type google-chrome
quit
fi
exit
This time success!! I now have Google Chrome, and it is sooooooooo much faster then when I was running it under crossover. Hope my detail helps you shake the last couple of bugs out.