VectorLinux
April 24, 2014, 08:11:29 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: 1 ... 4 5 [6]
  Print  
Author Topic: google chrome linux...  (Read 29602 times)
Daniel
Packager
Vectorian
****
Posts: 704


WWW
« Reply #75 on: November 17, 2009, 02:20:25 pm »

Ok, something about links and uploads and stuff with google sites makes it impossible (at least, I haven't found a solution yet) for wget to get stuff from a google site. You will have to get the pieces by downloading from these links:

http://sites.google.com/site/tuxtoys/Home/packages/piece1
http://sites.google.com/site/tuxtoys/Home/packages/piece2

Then run this script in the directory where the pieces are:

Code:
#! /bin/sh

cat piece1 > google-chrome-unstable-current-1vl60.tlz
cat piece2 >> google-chrome-unstable-current-1vl60.tlz

check=$(md5sum google-chrome-unstable-current-1vl60.tlz)

if [ $check = "1d4c6c58d1b831772c375ae4a9f51c35" ];then
echo google-chrome-unstable-current-1vl60.tlz has been put back together and is the same as the original.
else
echo google-chrome-unstable-current-1vl60.tlz has been put back together but is not the same as the original. The pieces may be corrupted.
fi

exit 0

That should put the pieces back together into the package and check to make sure that the md5sum is the same as the original.
Logged

The following sentence is true. The previous sentence is false.

VL 6.0 SOHO KDE-Classic on 2.3 Ghz Dual-core AMD with 3 Gigs of RAM
Daniel
Packager
Vectorian
****
Posts: 704


WWW
« Reply #76 on: December 09, 2009, 12:09:55 pm »

Since Google released an official beta version for linux, I decided to take a look at it. It's a .deb or .rpm package ( and 32 or 64 bit) so I cracked open the .deb, and repackaged it as a .tlz (as I did before). I installed the package and I think it would work except for this error message that I get when I execute "google-chrome":

[7376:7376:18159943326:FATAL:/usr/local/google/home/chrome-eng/b/slave/chrome-official-linux/build/src/chrome/browser/zygote_host_linux.cc(117)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /opt/google/chrome/chrome-sandbox is mode 4755 and owned by root.
Trace/breakpoint trap

I'm not sure about how to check the "mode 4755" but I did confirm that chrome-sandbox is owned by root. Any ideas about how to fix this?
Logged

The following sentence is true. The previous sentence is false.

VL 6.0 SOHO KDE-Classic on 2.3 Ghz Dual-core AMD with 3 Gigs of RAM
Pita
Vectorian
****
Posts: 1285


« Reply #77 on: December 19, 2009, 09:37:07 pm »

I installed google-chrome-beta_current_i386.rpm and all seems to be working fine.
No hang-ups or hick-ups sofar. Flash is excellent. Installed as rpm -i --nodeps.
Logged
stretchedthin
Administrator
Vectorian
*****
Posts: 3780


WWW
« Reply #78 on: December 20, 2009, 04:19:20 pm »

I installed google-chrome-beta_current_i386.rpm and all seems to be working fine.
No hang-ups or hick-ups sofar. Flash is excellent. Installed as rpm -i --nodeps.

That will work if you already have the dependencies installed, but for someone adding to a freshly installed Vector system, it just wouldn't work.  I've noticed brokndodges script isn't working for me anymore since Google come out with this official release.
Logged

Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee
stretchedthin
Administrator
Vectorian
*****
Posts: 3780


WWW
« Reply #79 on: December 21, 2009, 12:47:36 am »

Here's an updated tut on installing Google Chrome on Vector.  I did this on a fresh install of VL 6.0 standard.  If it works or even more importantly does not work for you, I sure would like to know.

Installing Google Chrome and dependecies on Vectorlinux light

Installing Google Chrome and dependecies on Vectorlinux Gold
« Last Edit: January 01, 2010, 01:14:38 pm by stretchedthin » Logged

Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee
brokndodge
Member
*
Posts: 83


Linux is sooo HOT


WWW
« Reply #80 on: January 01, 2010, 12:18:17 pm »

I've been busy with work and other stuff.  I just now check the forums and found that the installer is broken.  Google now has two entries in the Packages.gz file.  My script assumes only one entry.  I'm going to have to find a way to parse the data into the two seperate entries.  There is one entry for the Beta version and one for the Unstable version.
Logged

VL 7.0 Standard

brokndodge
- OSS is not a religion, it's the solution to buggy irresponsible coding -
Linux User# 494720
brokndodge
Member
*
Posts: 83


Linux is sooo HOT


WWW
« Reply #81 on: January 01, 2010, 08:25:09 pm »

Ok, I have updated the scripts to handle the new multi-package release of google chrome. Right now both the update script and the install script default to the first package listed, at the moment that is the beta release.  I'll implement package selection in a few days.  Working on a method of determining the installed package and keeping to that for the update script.  Have the basic variables already in place to select which release you want for the install script.  i just haven't built the menu, that will rely on the method I use to determine which package is installed for the update script.

I did a lil work today on the crash issue, still can't figure it out.  Both scripts will crash xfce!!!  You must reboot after running the scripts. Once rebooted, everything will return to normal.  You can type "reboot"  in the terminal that you ran the script in to reboot the system.

install-chrome.sh
Code:
#! /bin/bash
# Title: install-chrome
# Author: BroknDodge
# License: BSD
# Version: 0.0.5
#
# Special thanks to the following Vectorians for their help and suggestions:
# Daniel stretchedthin uelsk8ts
# hata_ph rbistolfi MOE-lnx
#
# Very Special thanks to the folks at Chromium.org and Google
# without whom there wouldn't be anything to install
#

#------------------------------------------#
# Setting up the Environment

enablePlugins="$1"
tmp="/tmp"
release="0"
chromeURL="http://dl.google.com/linux/deb/"

nssURL="http://connie.slackware.com/~alien/slackbuilds/mozilla-nss/pkg/12.2"
nssPackage="mozilla-nss-3.12.3-i486-1alien.tgz"

#------------------------------------------#
# Making sure the system is sane

if [ $UID != 0 ]; then
echo "You must run this script as root."
exit 1
fi

if [ -d "$tmp/install-chrome" ]; then  # check for and create temp dir
 # Will enter here if dir doesn't exist
 rm -R $tmp/install-chrome  # hope you didn't have anything
 mkdir $tmp/install-chrome  # stored there
else
 mkdir $tmp/install-chrome
fi

#------------------------------------------#

function trim() # function for trimming white space from my arrays
{
    trimmed=$1
    trimmed=${trimmed%% }
    trimmed=${trimmed## }

    echo $trimmed
}


function dotests {

echo Running tests...
#------------------------------------------#
# check for lzma

haveLZMA=`which lzma`    # check for and getting lzma
if [ "$haveLZMA" == "" ]; then
 slapt-get --install lzma
fi

#------------------------------------------#

#------------------------------------------#
#  check for nss = 3.12.3

nssInstalled=`slapt-get --search nss-3.12.3` # I really need to check the version
nssInstalled=${nssInstalled#*=}   # as well, but this build seems to
nssInstalled=${nssInstalled%]*}   # work best with 3.12.3

if [ "$nssInstalled" != "yes" ]; then
 installnss
fi
#------------------------------------------#

#------------------------------------------#
#  check for GConf

gconfInstalled=`slapt-get --search GConf-2.22.0` # VL-Light doesn't ship with GConf
gconfInstalled=${gconfInstalled#*=}   
gconfInstalled=${gconfInstalled%]*}   

if [ "$gconfInstalled" != "no" ]; then
 slapt-get --install GConf
fi

}
#------------------------------------------#


function simlinks {
cd /usr/lib
if [ ! -f "libnspr4.so.0d" ]; then
 ln -s libnspr4.so libnspr4.so.0d
fi

if [ ! -f "libnss3.so.1d" ]; then
 ln -s libnss3.so libnss3.so.1d
fi

if [ ! -f "libnssutil3.so.1d" ]; then
 ln -s libnssutil3.so libnssutil3.so.1d
fi

if [ ! -f "libplc4.so.0d" ]; then
 ln -s libplc4.so libplc4.so.0d
fi

if [ ! -f "libplds4.so.0d" ]; then
 ln -s libplds4.so libplds4.so.0d
fi

if [ ! -f "libsmime3.so.1d" ]; then
 ln -s libsmime3.so libsmime3.so.1d
fi

if [ ! -f "libssl3.so.1d" ]; then
 ln -s libssl3.so libssl3.so.1d
fi


}

function installnss {

cd $tmp/install-chrome
wget $nssURL/$nssPackage
if [ ! -f "$nssPackage" ]; then
 echo "For some reason wget didnt pull nss from Connies"
 echo "slackware site"
 return 1
fi
installpkg $nssPackage

rm $nssPackage

}

function installchrome {

cd $tmp/install-chrome
wget http://dl.google.com/linux/deb/dists/stable/main/binary-i386/Packages.gz
gunzip Packages.gz
rm -f Packages.gz
IFS='
'

declare -a fn=( `grep 'Filename:' Packages` ) # assign grep output to a variable
for i in 0 $((${#fn[@]} - 1))
do
  fn[$i]=$(trim "${fn[$i]#*:}")
done

chromeFilename="${fn[$release]}"
chromePackage="${chromeFilename##*/}"

wget $chromeURL$chromeFilename

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"
 return 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"
 return 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"
 return 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 moving files" # installed correctly
 echo ""
 return 1
fi
echo "Installation Complete!"

}

function main {
echo
echo "WARNING WARNING WARNING WARNING WARNING"
echo "This script may severely damage your system"
echo "Dont say I didnt WARN you"
echo
echo "Are you sure you want me to Monkey with your System? [yes/no]"
echo "[for your safety you must type yes to proceed]"
echo

read YN
if [ "$YN" = "yes" ]; then
 if [ -d "/opt/google/chrome" ]; then
  echo "Looks like Google Chrome is already installed"
  echo "Do you want to remove it and reinstall? [yes/no]"
  read yn
  if [ "$yn" = "yes" ]; then
   rm -R /opt/google/chrome
   rm /usr/share/applications/google-chrome.desktop
   dotests
   simlinks
   installchrome
  else
   return
  fi
 else
  dotests
  simlinks
  installchrome
 
 fi
elif [ "$YN" = "no" ]; then
 return
else
 main
fi

}

main




update-chrome.sh
Code:
#!/bin/bash
# Title: update-chrome
# Author: BroknDodge
# License: BSD
# Version: 0.0.1

# http://dl.google.com/linux/deb/dists/stable/main/binary-i386/Packages.gz
# http://dl.google.com/linux/deb/dists/pool/main/g/google-chrome-unstable/google-chrome-unstable_3.0.196.0-r22005_i386.deb

#----------------------------------------#
#  Settings 

url="http://dl.google.com/linux/deb/"
tmp="/tmp"
declare -a ChromePackages

#----------------------------------------#

#----------------------------------------#
# Testing the Environment

if [ $UID != 0 ];then    # test for root
echo "You must run this script as root."
exit 0
fi

if [ ! -d "$tmp/update-chrome" ]; then
# Will enter here if dir doesn't exist
mkdir $tmp/update-chrome
fi

cd $tmp/update-chrome

if [ -f "Packages" ]; then
 #checking to see if Packages exists
 mv Packages Packages.installed
fi

#----------------------------------------#

function check-update {
wget http://dl.google.com/linux/deb/dists/stable/main/binary-i386/Packages.gz
gunzip Packages.gz

if [ ! -f "Packages.installed" ]; then
 update
fi

IFS='
'
declare -a version=( `grep 'Version:' Packages` )
for i in 0 $((${#version[@]} - 1))
do
  version[$i]=$(trim "${version[$i]#*:}")
done

declare -a VersionInstalled=( `grep 'Version:' Packages.installed` )
for i in 0 $((${#VersionInstalled[@]} - 1))
do
  VersionInstalled[$i]=${VersionInstalled[$i]#*:}
done

if [ "$version[0]" == "$VersionInstalled[0]" ]; then
 echo Google Chrome is Up to Date
 rm Packages
 return
else
 echo $VersionInstalled[0] is installed, but $version[0] is available
 echo Updating
 update
fi

}

function update {   
IFS='
'

declare -a fn=( `grep 'Filename:' Packages` ) # assign grep output to a variable
for i in 0 $((${#fn[@]} - 1))
do
  fn[$i]=$(trim "${fn[$i]#*:}")
done

filename="${fn[0]}"

mkdir tmp
cd tmp
wget $url$filename

rm -R /opt/google/chrome  # get rid of the previous install
     # don't worry settings are stored in $HOME dir
cd $tmp/update-chrome/tmp

echo Unpacking the deb file...
ar -x ${filename##*/}
echo Extracting Google Chrome...
lzma -d data.tar.lzma
cd /
echo Updating Google Chrome...

tar xf $tmp/update-chrome/tmp/data.tar
cd $tmp/update-chrome
mv Packages Packages.installed
declare -a VersionInstalled=( `grep 'Version:' Packages.installed` )
for i in 0 $((${#VersionInstalled[@]} - 1))
do
  echo ${VersionInstalled[$i]}
  VersionInstalled[$i]=$(trim "${VersionInstalled[$i]#*:}")
  echo "${VersionInstalled[$i]}"
done

echo "Google Chrome updated to version" ${VersionInstalled[0]}
rm -R tmp

return
}


function trim() # function for trimming white space from my arrays
{
    trimmed=$1
    trimmed=${trimmed%% }
    trimmed=${trimmed## }

    echo $trimmed
}


function main {
check-update
return
}

main

Logged

VL 7.0 Standard

brokndodge
- OSS is not a religion, it's the solution to buggy irresponsible coding -
Linux User# 494720
brokndodge
Member
*
Posts: 83


Linux is sooo HOT


WWW
« Reply #82 on: September 12, 2010, 05:14:08 pm »

Tested my install script today.  Still works, ran it from tty2 cause of the swap space issue I posted bout in the Lounge.  Installed Chrome without any issues, I issued a reboot from tty2 without checking to see if xfce had crashed, just assumed it would.  Once rebooted, Chrome was working flawlessly.  Except for the swap issue previously mentioned.
Logged

VL 7.0 Standard

brokndodge
- OSS is not a religion, it's the solution to buggy irresponsible coding -
Linux User# 494720
kc1di
Packager
Vectorian
****
Posts: 1125


Morse Code Early digital mode. John 3:16


« Reply #83 on: September 20, 2010, 04:20:24 am »

Here's an updated tut on installing Google Chrome on Vector.  I did this on a fresh install of VL 6.0 standard.  If it works or even more importantly does not work for you, I sure would like to know.

Installing Google Chrome and dependecies on Vectorlinux light

Installing Google Chrome and dependecies on Vectorlinux Gold

Works great here on both lite and Std 6.0. Work in 7.0 Alpha but fonts and colors nor correct. Won't work in SOHO 6.0 though.  there is a long list of missing Deps in soho.

dave
Logged

Dave
( Living Somewhere in Maine USA)
Registered Linux User #462608
roarde
Vectorite
***
Posts: 488


move the needle


« Reply #84 on: September 20, 2010, 09:15:31 am »

Followed the Light tutorial. A few glitches when tried with a light that's in use and has had packages installed:

Tried mc to install mozilla-nss. "Install" is not in the menu of my later version of mc installation. Not knowing how to change the menu or manually install the package, I located a VL 6 package of mozilla-nss (now in the testing repo) and installed.

Tried alien for chrome itself, but I'm not willing to learn how to use it properly right now, so it failed. Chrooted to my fresh light jail, did mc -V, and d/l'd that version from the "old" repo to my working light, installing it with upgradepkg. Installed chrome using mc. Didn't get the xdg-desktop warning, but was warned that atd wasn't running. Something for me to look at later, as the install did complete, and I'm posting from Chrome right now.

The hard part, of course, was remembering my forum password.

Speed is improved, flash is better though still not practical on this machine (ALSA needs tweaks for VIA). FYI, this version of chrome-linux has been "upgraded" from beta to stable.

Good tutorial, thank you. Hope the feedback helps.
Logged

Robert
VL Light 7.0, icewm/spacefm
prince
Vectorite
***
Posts: 182


« Reply #85 on: September 20, 2010, 10:53:15 am »

If it walks like a snake, talks like a snake ....

No disrespect, but I'm not the least bit impressed.

In terms of Google Chrome speed, on this computer, it is not dissimilar to Opera's latest, among others.
Right now, out of the popular Web Browsers, Opera and Seamonkey are one of the few web browsers I trust. Okay, Seamonkey, not as popular, but I find it much more stable than Firefox.

To me, mainstream means trouble.  I prefer browsers more away from mainstream such as Konqueror, Midori, Netsurf, and Dillo. You might find them faster, too.  More of an essence, you should find them much more safer, because feeble-minded virus programmers invest on a big catch, predominately - the mainstream web browsers.  Plus these Open Source browsers intentions are more clear than Google's.

In terms of security, I find some of Google's practices questionable. By the way, I notice on a MS Windows machines Google Chrome chooses to install on administrators account, strictly. Which is unsafe, the least, let alone, suspect.

Also, the Youtube Downloader is another suspect program (as identified by Eset Smart Security for Windows).  You would figure Youtube would provide that feature by default.  As to: why not?, It would appear as another questionable practice.

No  disrespect, I could be wrong about people running machines as testers, but in my neighborhood people put out testers curbside from time to time.  I had grabbed one myself, only to test software with it, but ultimately, don't make it your main computer.  Invest, you deserve much better than that.
Above all, don't frustrate yourself or waste time.

Futhermore, I would question any company that releases a watered down versions of their product (like Picasa) for Unix and Linux.  I don't see Unix and Linux as an afterthought, neither should they.



,
« Last Edit: September 20, 2010, 11:09:08 am by prince » Logged
kc1di
Packager
Vectorian
****
Posts: 1125


Morse Code Early digital mode. John 3:16


« Reply #86 on: September 20, 2010, 01:11:01 pm »

Followed the Light tutorial. A few glitches when tried with a light that's in use and has had packages installed:

Tried mc to install mozilla-nss. "Install" is not in the menu of my later version of mc installation. Not knowing how to change the menu or manually install the package, I located a VL 6 package of mozilla-nss (now in the testing repo) and installed.

Tried alien for chrome itself, but I'm not willing to learn how to use it properly right now, so it failed. Chrooted to my fresh light jail, did mc -V, and d/l'd that version from the "old" repo to my working light, installing it with upgradepkg. Installed chrome using mc. Didn't get the xdg-desktop warning, but was warned that atd wasn't running. Something for me to look at later, as the install did complete, and I'm posting from Chrome right now.

The hard part, of course, was remembering my forum password.

Speed is improved, flash is better though still not practical on this machine (ALSA needs tweaks for VIA). FYI, this version of chrome-linux has been "upgraded" from beta to stable.

Good tutorial, thank you. Hope the feedback helps.

For Chrome you need to download the .rpm package and also you'll need to install rpm in light from the repository as it was not installed by default.
but it's in the repro.  Then the install in mc will show in the menu.
works great here.
Smiley
Logged

Dave
( Living Somewhere in Maine USA)
Registered Linux User #462608
Daniel
Packager
Vectorian
****
Posts: 704


WWW
« Reply #87 on: September 23, 2010, 09:26:23 am »

I think mozilla-nss is in the repo already.
Logged

The following sentence is true. The previous sentence is false.

VL 6.0 SOHO KDE-Classic on 2.3 Ghz Dual-core AMD with 3 Gigs of RAM
kc1di
Packager
Vectorian
****
Posts: 1125


Morse Code Early digital mode. John 3:16


« Reply #88 on: September 23, 2010, 11:35:12 am »

I think mozilla-nss is in the repo already.
it's in Testing
Logged

Dave
( Living Somewhere in Maine USA)
Registered Linux User #462608
Pages: 1 ... 4 5 [6]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!