VectorLinux
November 01, 2014, 02:52:59 am *
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 2 [3] 4 5 6
  Print  
Author Topic: google chrome linux...  (Read 32865 times)
brokndodge
Member
*
Posts: 83


Linux is sooo HOT


WWW
« Reply #30 on: August 06, 2009, 08:31:40 am »

thank you all for your comments.  i've got do a clean install from a clean system.  i forgot about the gconf dependency, but seems like it was for build rather than binary.  i'll add the check and release it.  i'm not getting why it would have trouble with capitalized function names.  but i will change the names again, can everyone respond with the shells they are running. i like to know if anyone has switched form the stock shell that ships with vl60.  currently it's in a state of i 'it works for me'  but i would like to get it to work for everyone. 

so what i'm gathering now is that the code works well, but we are having problems with the function calls.  does that sum it up? i'll update the script and release again tonight.

for flash support, there is no need to make the simlinks for plug-ins, chrome will find them on it's own.  just use
Code:
google-chrome --enable-plugins
to use them.  be advised, plugin support is still very alpha.  flash may crash or even hang your browser.
Logged

VL 7.0 Standard

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


WWW
« Reply #31 on: August 06, 2009, 08:44:35 am »

stretchedthin: was this the order that you ran the scripts and stuff?

Run brokndodge's script.
Do manual installpkg.
Run stretchedthin's script.

I would also like to get Google Chrome and I wanted to make sure of the order you did things in.


brokndodge: I am not completely sure but capitalized functions might not work in scripts.
That's right.
Run brokndodge's script.
After you run brokndodge's script the nss tgz will be in /tmp/chrome-install/Do manual installpkg.
there.
Run stretchedthin's script.
Well, it's really brokendodges function and variables just copied over into a text file to run as it's own script, but yes.
That's it. Post back if it works for you. 

@uelsk8s
I just changed the desktop file in usr/share applications Exec line to read...
Exec="google-chrome --enable-plugins"
Then you should be able to use flash no problem.  Doesn't seem to require anything more than that.



@MOE-lnx
Quote
Is it just me, or does the thing not close when you click the X on the top-right corner (window decoreation)?
All OK, here.  (PS, Awesome new installer on SOHO by the way.
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 #32 on: August 06, 2009, 10:35:57 am »

boss is out of the office so i took a few minutes to apply various suggestions.  check it out and let me know if it works any better, i don't have a vl box here to test on. tonight i'm going to rework the script to remove all functions.  set it up just to run straight thru.  i think that will be the most portable method.

Code:
#! /bin/bash
# Title:   install-chrome
# Author:  BroknDodge
# License: BSD
# Version: 0.0.3
#
# Special thanks to Vectorite Daniel for his help and suggestions.
# Very Special thanks to the folks at Chromium.org and Google
# without whom there wouldn't be anything to install
#

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

tmp="/tmp"

chromeURL="http://dl.google.com/linux/direct"
chromePackage="google-chrome-unstable_current_i386.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 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
simlinks
}
#------------------------------------------#


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

installchrome
}

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"
exit 1
fi
installpkg $nssPackage

rm $nssPackage
simlinks
}

function installchrome {

cd $tmp/install-chrome
wget $chromeURL/$chromePackage

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"
echo "to enable flash type google-chrome --enable-plugins"
quit
fi
}

function quit {
exit 0
}

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
else
quit
fi
else
dotests
fi
elif [ "$YN" = "no" ]; then
quit
else
main
fi
quit
}

main
exit

closed quote per uelsk8s
« Last Edit: August 06, 2009, 02:22:42 pm by brokndodge » Logged

VL 7.0 Standard

brokndodge
- OSS is not a religion, it's the solution to buggy irresponsible coding -
Linux User# 494720
M0E-lnx
Administrator
Vectorian
*****
Posts: 3187



« Reply #33 on: August 06, 2009, 11:21:41 am »


@MOE-lnx
Quote
Is it just me, or does the thing not close when you click the X on the top-right corner (window decoreation)?
All OK, here.  (PS, Awesome new installer on SOHO by the way.

Thank you vm.
Logged

uelsk8s
Administrator
Vectorian
*****
Posts: 2504



« Reply #34 on: August 06, 2009, 11:58:48 am »

line 168 is missing a closing quotation mark
Code:
echo "WARNING WARNING WARNING WARNING WARNING

I closed it and is working well here
Logged
brokndodge
Member
*
Posts: 83


Linux is sooo HOT


WWW
« Reply #35 on: August 06, 2009, 06:29:41 pm »

Changed my mind and did it manually using the steps outlined in the script.

here is a couple of suggestions for the script.
chrome needs GConf installed, have it check for libgconf.
clean up the bash code.
look for the flash plugin, and install it if present.

GConf is required by so many vl60 packages that it should be standard equipment in vl60.  it's not listed in the official dependencies from Google, figure if this makes it into a package GConf can be listed as required.  but it really should already be present.

chrome will find the plug-in on it's own.  but due to the instability of the code, for the moment, you have to enable plugins from the command line.  i'll look into making a switch for plugins.

folks - uelsk8ts reports the script is working well with the tweaks i made at work.  has anyone else tested it?  i'd like to run a clean install of vl60 on this old machine to test my script, but it takes over 6 hours to install.  gonna save that for a day off.

Logged

VL 7.0 Standard

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


WWW
« Reply #36 on: August 06, 2009, 06:36:28 pm »

I've tested your latest version.  Worked well. I think some new users will be surprised how easy it is, so I made a screencast.

brokndodge's google-chrome script in action.
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 #37 on: August 06, 2009, 08:35:09 pm »

here's the new version.  since we have the functions working well now i left them in.  per MOE-lnx suggestion added support for enabling plugins.  however, i figure google has it right for hte moment.  i didn't make it mandatory.  rather than adding yet another prompt, this time i used a command line switch.
save the file as install-chrome
then:
Code:
chmod 755 install-chrome
./install-chrome --enable-plugins   #will set up google-chrome.desktop to use plugins
./install-chrome                          # sets up the .desktop file the way google ships it

here it is: install-chrome_0.0.4
Code:
#! /bin/bash
# Title:   install-chrome
# Author:  BroknDodge
# License: BSD
# Version: 0.0.4
#
# 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"

chromeURL="http://dl.google.com/linux/direct"
chromePackage="google-chrome-unstable_current_i386.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 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
simlinks
}
#------------------------------------------#


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

installchrome
}

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"
exit 1
fi
installpkg $nssPackage

rm $nssPackage
simlinks
}

function installchrome {

cd $tmp/install-chrome
wget $chromeURL/$chromePackage

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
fi

if [ "$enablePlugins" = "--enable-plugins" ]; then
IFS='
'
file=( $( < /opt/google/chrome/google-chrome.desktop ) )
file[5]="Exec=/opt/google/chrome/google-chrome --enable-plugins %U"
echo "${file[*]}" > /usr/share/applications/google-chrome.desktop
echo "Desktop Menu created with Plugin support"
echo "Installation complete"
quit
else
cp /opt/google/chrome/google-chrome.desktop /usr/share/applications/google-chrome.desktop
echo "Desktop Menu created without Plugin support"
echo "Installation complete"
echo
echo "to enable flash type google-chrome --enable-plugins"
quit
fi

}

function quit {
exit 0
}

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
else
quit
fi
else
dotests
fi
elif [ "$YN" = "no" ]; then
quit
else
main
fi
quit
}

main
exit

let me know how it works
« Last Edit: August 06, 2009, 08:42:37 pm by brokndodge » Logged

VL 7.0 Standard

brokndodge
- OSS is not a religion, it's the solution to buggy irresponsible coding -
Linux User# 494720
M0E-lnx
Administrator
Vectorian
*****
Posts: 3187



« Reply #38 on: August 07, 2009, 06:55:14 am »

WoW... this thing is worse than FF

I noticed my box was starting to lag a bit, and kept getting worse, so I took a look @ htop, and there is a ton of google-chrome child processes.
my single cpu core was being used up completely, so I killed it and I got my system back

Ill have to try it later on, maybe when they come up with another build
Logged

Daniel
Packager
Vectorian
****
Posts: 704


WWW
« Reply #39 on: August 07, 2009, 05:43:36 pm »

I installed google chrome as well and found that (as M0E mentioned) it progressively makes more processes, uses up more memory and eventually maxes out the cpu. I think it was kind of fast when I first started it but I'm running VL 6.0 Light and I think Opera is still faster. (I'm not completely sure though) Google Chrome looks like a good browser and I hope they fix the problems with it soon.

brokndodge: Did you post an update script to update google chrome or was that just mentioned?
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
brokndodge
Member
*
Posts: 83


Linux is sooo HOT


WWW
« Reply #40 on: August 07, 2009, 07:19:02 pm »

Daniel, here is the update script:  http://forum.vectorlinux.com/index.php?topic=10210.msg65875#msg65875

3.0.197.11 was released today

i think that the issue with chrome slowing down is a flash plugin issue.  i run with plugins off, the way it ships from google.  runs absolutely great on my pII 300 running vector standard 6.0.  no slow down issues, also running it on the ubuntu machine at work for the last couple of months, i can leave it up all night without running into the memory leak that firefox has had since 1.5.  but again without flash plugins turned on.  i think that has got to be where the problem is.  i noticed it slowing down on this old machine the one time i tested --enable-plugins. 

i don't want flash running anyway, this is just a utility machine, check my mail, do a few forum posts.  maybe some light scripting.  every week, chrome gets better. i'm looking forward to print capability.  then i can move to chrome for every machine i maintain at work. 

as a side note, i talked my boss into testing vl6.0 standard on one machine at work.  said if all goes well, he will look into getting authorization to add 4 more vl computers, for a total of 5.  chrome was a major road block, but i've got that solved now.
« Last Edit: August 07, 2009, 07:26:57 pm by brokndodge » Logged

VL 7.0 Standard

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


WWW
« Reply #41 on: August 08, 2009, 07:28:57 am »

So do I have to reinstall Chrome with the installation script and not use the switch --enable-plugins for the plugins not to be enabled?
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
brokndodge
Member
*
Posts: 83


Linux is sooo HOT


WWW
« Reply #42 on: August 08, 2009, 04:14:26 pm »

scope out stretchedthin's video.  there is a desktop file called /usr/share/applications/google-chrome.desktop.  there is a line in that script starting with Exec:  remove --enable-plugins from that line.  that should be enough.

i don't know for sure that that is the problem with chrome slowing down.  i just haven't noticed it here.  my machine is slow anyway, i haven't noticed chrome slowing down any more.  firefox still takes longer to load anything that chrome.  it takes almost two minutes for firefox just to start on this machine.  i've done my search and moved on to the third or fourth page by then running chrome.
Logged

VL 7.0 Standard

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


WWW
« Reply #43 on: August 08, 2009, 08:03:45 pm »

So far my experiences are pretty good with Chrome, I did have one experience with excessive cpu usage but it was temporary.  Lasted around a minute then dropped right off.   One thing I find odd is that xfce-task-manager shows 7 different instaces of chrome running at the same time.  They aren't doing anything but they are there all the same.  However, the speed is good, I'd say better than firefox for me and I'm still using this with plugins-enabled.  Still it's been a short testing period. I'll keep you posted.
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 #44 on: August 09, 2009, 07:23:14 am »

i think that all the tasks is part of the security and stability system they are using.  each new tab starts a new process.  the tabs are not all running in the same process.  that way, if one tab crashes you don't loose the whole browser.  they are using sqlite for cache management.  as the cache grows, sqlite slows down.  firefox has a similar issue, after a few weeks of usage firefox can spend more time searching the cache than actually loading web pages.  i solved this in firefox by purging the cache each time ff is closed.  but it still doesn't help with rendering speed.  i haven't found an option yet to purge chrome's cache at each close. edit/ just purged the cache and chrome is back to the speed it was running at my first installation.  page cache is per user, so reinstall or removal doesn't effect the cache.  mine was from over a week of testing.  still can't find a setting to purge the cache at each close. /endit

remember, chrome is still very beta.  we are also running a debian build on a slackware distro.  some of these issues may be solved with a native build.  others are bugs that will slowly be worked out of the code.  we just have to keep pounding on the thing till it becomes what it really has to potential to be:  the fastest, most stable, most standards compliant web browser on the planet.
« Last Edit: August 09, 2009, 07:30:02 am by brokndodge » Logged

VL 7.0 Standard

brokndodge
- OSS is not a religion, it's the solution to buggy irresponsible coding -
Linux User# 494720
Pages: 1 2 [3] 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!