LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 05-09-2013, 10:05 AM   #16
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 817

Rep: Reputation: 104Reputation: 104

Quote:
Originally Posted by cwizardone View Post
When using the pepperflash player I've found the audio to be very choppy, as opposed to watching the same file with the standard flashplayer plug-in.
Try adding this argument when you start chrome:
Code:
google-chrome --audio-buffer-size=2048
Check and see if that works. Try a higher rate if needed.
 
3 members found this post helpful.
Old 05-09-2013, 02:52 PM   #17
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib." PC-BSD.
Posts: 2,236

Rep: Reputation: 176Reputation: 176
Did the trick.
Thank you very much!
 
Old 05-09-2013, 08:51 PM   #18
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 817

Rep: Reputation: 104Reputation: 104
Quote:
Originally Posted by cwizardone View Post
Did the trick.
Thank you very much!
Awesome!!
 
Old 05-23-2013, 06:44 PM   #19
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 817

Rep: Reputation: 104Reputation: 104
Google just released a new version (27.0.1453.93) of Chrome. It looks like they have fixed the flash issue. At least for me it is fixed.
 
Old 05-28-2013, 08:15 AM   #20
01micko
Member
 
Registered: Mar 2009
Location: Gold Coast, Queensland, Australia
Distribution: Puppy, Slackware
Posts: 78

Rep: Reputation: 7
Quote:
Originally Posted by ruario View Post
P.S. If you want an easy way to keep Chrome up to date, you can use my script, latest-chrome.
What a nice script, worked a treat on my 64 14.0 install. Will try my -current install tomorrow.

Thanks.
 
Old 05-28-2013, 08:19 AM   #21
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,840

Rep: Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846
Quote:
Originally Posted by 01micko View Post
What a nice script, worked a treat on my 64 14.0 install. Will try my -current install tomorrow.
No problem, glad you liked it. I have similar scripts for Opera and Firefox (the Firefox one is handy if you want to track the ESR version instead).
 
Old 05-28-2013, 08:25 AM   #22
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,840

Rep: Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846
By the way I also have a variant of the Chrome script I am working on that allows you to install multiple Chromes side by side (Dev, Beta and Stable releases) and keep them all up to date. Thus allowing you to do comparative testing or try out new features without risk in breaking your stable setup. It already basically works but I would like to refine it a little more before I share it.
 
Old 05-28-2013, 08:38 AM   #23
01micko
Member
 
Registered: Mar 2009
Location: Gold Coast, Queensland, Australia
Distribution: Puppy, Slackware
Posts: 78

Rep: Reputation: 7
Cool

Quote:
Originally Posted by ruario View Post
By the way I also have a variant of the Chrome script I am working on that allows you to install multiple Chromes side by side (Dev, Beta and Stable releases) and keep them all up to date. Thus allowing you to do comparative testing or try out new features without risk in breaking your stable setup. It already basically works but I would like to refine it a little more before I share it.
Yes, I read something about that (iirc). Count me in for testing.

edit: latest-chrome works fine in -current too.

Last edited by 01micko; 05-29-2013 at 04:21 AM. Reason: update
 
Old 06-02-2013, 03:13 PM   #24
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,840

Rep: Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846
@01micko: Ok, well if you want to test out a rough version then I provide a link to my multichrome script below. Before you try it I should explain a few things.

Firstly this version does not make Slackware packages. This is conscious decision because I want to be able to run multiple versions of Chrome on a variety of distros and do not want to have to create unique packaging scripts for each of the distros. However this is not such an issue as it might initially seem. The vast majority of Chrome is installed into /opt/google. The only things that go outside of this directory in the official packages are the repository setup files (in /etc), a symlink to the binary (in /usr/bin), the man page and desktop shortcuts + associated icons. All of those other things are therefore effectively optional. Everything you actually need to run Chrome stays in /opt/google. My script therefore retains only the essential components meaning that unistall is as easy as removing the relevant directory from /opt/google.

What my script therefore does is to check for the latest version of Chrome from the 'stable', 'beta' and 'unstable' channels and then downloads the relevant rpm package. Next it converts these rpm packages into simple tar archives. The conversion involves patching the install path so that the versions do not clash (and hence overwite) each other and then making a tar file from this. To install/upgrade you can simply untar these archives into the root (/) directory.

I should also clarify why patching is needed. Chrome expects to be installed into /opt/google/chrome. The binaries themselves have this full path hardcoded into them. My script therefore patches the binary such that a stable version looks for itself in /opt/google/chroms, a beta version looks for itself in /opt/google/chromb and an unstable version looks for itself in /opt/google/chromu. I then actually place Chrome into a directory named as follows /opt/google/google-chrome-channel-version-number.architecture, for example the current stable version for 64Bit would be installed in /opt/google/google-chrome-stable-27.0.1453.93-200836.x86_64/. Finally I drop a symlink in /opt/google named chroms (or chromb or chromu for beta and unstable respectively) pointing to this version. I do things this way so that it is possible to have multiple versions of Chrome from one channel installed in addition to multiple channels. If that sounds confusing, consider the following directory listing from my machine:

Code:
$ ls -l /opt/google/
total 48
lrwxrwxrwx 1 root root   45 May 30 19:50 chromb -> google-chrome-beta-28.0.1500.29-202781.x86_64/
lrwxrwxrwx 1 root root   47 May 30 19:50 chroms -> google-chrome-stable-27.0.1453.93-200836.x86_64/
lrwxrwxrwx 1 root root   48 May 30 00:57 chromu -> google-chrome-unstable-29.0.1521.3-202710.x86_64/
drwxr-xr-x 5 root root 4096 May 10 12:05 google-chrome-beta-27.0.1453.73-197225.x86_64/
drwxr-xr-x 5 root root 4096 May 10 12:05 google-chrome-beta-27.0.1453.81-198567.x86_64/
drwxr-xr-x 5 root root 4096 May 22 13:32 google-chrome-beta-27.0.1453.93-200836.x86_64/
drwxr-xr-x 6 root root 4096 May 24 18:54 google-chrome-beta-28.0.1500.20-201172.x86_64/
drwxr-xr-x 6 root root 4096 May 30 00:57 google-chrome-beta-28.0.1500.29-202781.x86_64/
drwxr-xr-x 5 root root 4096 May 10 12:05 google-chrome-stable-26.0.1410.63-192696.x86_64/
drwxr-xr-x 5 root root 4096 May 22 13:32 google-chrome-stable-27.0.1453.93-200836.x86_64/
drwxr-xr-x 6 root root 4096 May 22 13:32 google-chrome-unstable-28.0.1500.20-201172.x86_64/
drwxr-xr-x 6 root root 4096 May 10 12:05 google-chrome-unstable-28.0.1500.3-198635.x86_64/
drwxr-xr-x 6 root root 4096 May 10 12:05 google-chrome-unstable-28.0.1500.5-199062.x86_64/
drwxr-xr-x 6 root root 4096 May 28 15:38 google-chrome-unstable-29.0.1516.3-201887.x86_64/
drwxr-xr-x 6 root root 4096 May 30 23:10 google-chrome-unstable-29.0.1521.3-202710.x86_64/
With the above setup if I run /opt/google/chroms/google-chrome it would start the 27.0.1453.93 stable version, whereas /opt/google/chromb/google-chrome would start the 28.0.1500.29 beta version and /opt/google/chromu/google-chrome would start the 29.0.1521.3 unstable version.

The trick with the symlinks means that should I decide to go back one stable version (e.g. to version 27.0.1453.93), I need only update the /opt/google/chroms accordingly.

Everything above deals with allowing multiple versions of Chrome to be installed side by side, however running them side by side also involves having to deal with the fact that they would all try to use the same profile. By default Chrome uses the directory ~/.config/google-chrome/ to store its profile. You can however override this and use any directory you like with the command line argument --user-data-dir=. To avoid having to constantly remember to use this you can setup the following bash aliases:

Code:
alias chrome-stable="/opt/google/chroms/google-chrome --user-data-dir=$HOME/.config/google-chrome/stable"                                                                                                                        
alias chrome-beta="/opt/google/chromb/google-chrome --user-data-dir=$HOME/.config/google-chrome/beta"                                                                                                                            
alias chrome-unstable="/opt/google/chromu/google-chrome --user-data-dir=$HOME/.config/google-chrome/unstable"
This means that you can just type chrome-stable to start the current stable, with the chrome-beta and chrome-unstable commands starting Chrome from their respective channels. Additionally the multichrome script as has a nice feature that will setup shortcuts for your desktop environment allowing you to start the various Chrome channels graphically without them clobbering each others profiles. By default running the multichrome script converts the relevant rpm to tar. However with the '-s' argument it will instead setup icons and shortcuts for any versions installed via this system. For example with my /opt/google setup as above I would get the following:

Code:
$ multichrome -s                                                                                                                                                                                            
/home/ruario/.local/share/icons/hicolor/128x128/apps/google-chrome-stable.png                                                                                                                                                    
/home/ruario/.local/share/icons/hicolor/16x16/apps/google-chrome-stable.png                                                                                                                                                      
/home/ruario/.local/share/icons/hicolor/22x22/apps/google-chrome-stable.png                                                                                                                                                      
/home/ruario/.local/share/icons/hicolor/24x24/apps/google-chrome-stable.png                                                                                                                                                      
/home/ruario/.local/share/icons/hicolor/256x256/apps/google-chrome-stable.png                                                                                                                                                    
/home/ruario/.local/share/icons/hicolor/32x32/apps/google-chrome-stable.png                                                                                                                                                      
/home/ruario/.local/share/icons/hicolor/48x48/apps/google-chrome-stable.png                                                                                                                                                      
/home/ruario/.local/share/icons/hicolor/64x64/apps/google-chrome-stable.png                                                                                                                                                      
/home/ruario/.local/share/applications/google-chrome-stable.desktop                                                                                                                                                              
/home/ruario/.local/share/icons/hicolor/128x128/apps/google-chrome-beta.png                                                                                                                                                      
/home/ruario/.local/share/icons/hicolor/16x16/apps/google-chrome-beta.png                                                                                                                                                        
/home/ruario/.local/share/icons/hicolor/22x22/apps/google-chrome-beta.png                                                                                                                                                        
/home/ruario/.local/share/icons/hicolor/24x24/apps/google-chrome-beta.png                                                                                                                                                        
/home/ruario/.local/share/icons/hicolor/256x256/apps/google-chrome-beta.png
/home/ruario/.local/share/icons/hicolor/32x32/apps/google-chrome-beta.png
/home/ruario/.local/share/icons/hicolor/48x48/apps/google-chrome-beta.png
/home/ruario/.local/share/icons/hicolor/64x64/apps/google-chrome-beta.png
/home/ruario/.local/share/applications/google-chrome-beta.desktop
/home/ruario/.local/share/icons/hicolor/128x128/apps/google-chrome-unstable.png
/home/ruario/.local/share/icons/hicolor/16x16/apps/google-chrome-unstable.png
/home/ruario/.local/share/icons/hicolor/22x22/apps/google-chrome-unstable.png
/home/ruario/.local/share/icons/hicolor/24x24/apps/google-chrome-unstable.png
/home/ruario/.local/share/icons/hicolor/256x256/apps/google-chrome-unstable.png
/home/ruario/.local/share/icons/hicolor/32x32/apps/google-chrome-unstable.png
/home/ruario/.local/share/icons/hicolor/48x48/apps/google-chrome-unstable.png
/home/ruario/.local/share/icons/hicolor/64x64/apps/google-chrome-unstable.png
/home/ruario/.local/share/applications/google-chrome-unstable.desktop
Note: You may need to restart your Desktop Environment for your new shortcuts to appear!
Should I remove the stable versions, running this command again would result in the following:

Code:
$ multichrome -s
removed ‘/home/ruario/.local/share/icons/hicolor/128x128/apps/google-chrome-stable.png’
removed ‘/home/ruario/.local/share/icons/hicolor/16x16/apps/google-chrome-stable.png’
removed ‘/home/ruario/.local/share/icons/hicolor/22x22/apps/google-chrome-stable.png’
removed ‘/home/ruario/.local/share/icons/hicolor/24x24/apps/google-chrome-stable.png’
removed ‘/home/ruario/.local/share/icons/hicolor/256x256/apps/google-chrome-stable.png’
removed ‘/home/ruario/.local/share/icons/hicolor/32x32/apps/google-chrome-stable.png’
removed ‘/home/ruario/.local/share/icons/hicolor/48x48/apps/google-chrome-stable.png’
removed ‘/home/ruario/.local/share/icons/hicolor/64x64/apps/google-chrome-stable.png’
removed ‘/home/ruario/.local/share/applications/google-chrome-stable.desktop’
/home/ruario/.local/share/icons/hicolor/128x128/apps/google-chrome-beta.png
/home/ruario/.local/share/icons/hicolor/16x16/apps/google-chrome-beta.png
/home/ruario/.local/share/icons/hicolor/22x22/apps/google-chrome-beta.png
/home/ruario/.local/share/icons/hicolor/24x24/apps/google-chrome-beta.png
/home/ruario/.local/share/icons/hicolor/256x256/apps/google-chrome-beta.png
/home/ruario/.local/share/icons/hicolor/32x32/apps/google-chrome-beta.png
/home/ruario/.local/share/icons/hicolor/48x48/apps/google-chrome-beta.png
/home/ruario/.local/share/icons/hicolor/64x64/apps/google-chrome-beta.png
/home/ruario/.local/share/applications/google-chrome-beta.desktop
/home/ruario/.local/share/icons/hicolor/128x128/apps/google-chrome-unstable.png
/home/ruario/.local/share/icons/hicolor/16x16/apps/google-chrome-unstable.png
/home/ruario/.local/share/icons/hicolor/22x22/apps/google-chrome-unstable.png
/home/ruario/.local/share/icons/hicolor/24x24/apps/google-chrome-unstable.png
/home/ruario/.local/share/icons/hicolor/256x256/apps/google-chrome-unstable.png
/home/ruario/.local/share/icons/hicolor/32x32/apps/google-chrome-unstable.png
/home/ruario/.local/share/icons/hicolor/48x48/apps/google-chrome-unstable.png
/home/ruario/.local/share/icons/hicolor/64x64/apps/google-chrome-unstable.png
/home/ruario/.local/share/applications/google-chrome-unstable.desktop
Note: You may need to restart your Desktop Environment for your new shortcuts to appear!
So with that all said, you can get the multichrome script from here. Just run it, pick which channel you wish to update and wait for the tar file to be created. To install simply extract into root, e.g.:

Code:
# tar xf google-chrome-unstable-29.0.1521.3-202710.x86_64.tar -C /
 
Old 06-03-2013, 08:49 PM   #25
01micko
Member
 
Registered: Mar 2009
Location: Gold Coast, Queensland, Australia
Distribution: Puppy, Slackware
Posts: 78

Rep: Reputation: 7
Thanks ruario! Works as advertised (mostly).

Only snag I hit was that when running multichrome.sh -s to create desktop files, /home/mick/.local/share/icons/hicolor didn't exist, a quick check in the script (edit: ah but of course there is) should fix that. Update: tried to reproduce by deleting /home/mick/.local/share/icons/ but couldn't, so may have been user error on first run.

Last edited by 01micko; 06-03-2013 at 11:58 PM. Reason: update
 
Old 06-04-2013, 12:47 AM   #26
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,840

Rep: Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846
@01micko: cools glad you got it working. One thing I forgot to mention. You can either continue to use my latest-chrome for stable and just use multichrome for the other two channels or you could just use multichrome for everything. However, if you use multichrome for stable and use the aliases I suggested or shortcuts produced by '-s' your stable profile will be in a different location and hence you will be starting again with a clean one.

P.S. This line should have ensured that directory was created:

Code:
mkdir -p "$HOME/.local/share/icons/hicolor/${pngsize%.png}x${pngsize%.png}/apps"

Last edited by ruario; 06-04-2013 at 04:52 AM. Reason: did not close i tag correctly
 
Old 06-04-2013, 07:17 AM   #27
01micko
Member
 
Registered: Mar 2009
Location: Gold Coast, Queensland, Australia
Distribution: Puppy, Slackware
Posts: 78

Rep: Reputation: 7
Quote:
Originally Posted by ruario View Post
@01micko: cools glad you got it working. One thing I forgot to mention. You can either continue to use my latest-chrome for stable and just use multichrome for the other two channels or you could just use multichrome for everything. However, if you use multichrome for stable and use the aliases I suggested or shortcuts produced by '-s' your stable profile will be in a different location and hence you will be starting again with a clean one.
Yes, thought of that and am going that way. At least then chrome is available (from menu) to all users if needed.
Quote:
Originally Posted by ruario View Post
P.S. This line should have ensured that directory was created:

Code:
mkdir -p "$HOME/.local/share/icons/hicolor/${pngsize%.png}x${pngsize%.png}/apps"
I saw that line, it was user error.
 
Old 06-04-2013, 08:53 AM   #28
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,840

Rep: Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846
Quote:
Originally Posted by 01micko View Post
At least then chrome is available (from menu) to all users if needed.
Yep, though if they do want to access the other versions from the menu's you can have them run multichrome -s.

Alternatively, an idea for a future update to this script would be to change how multichrome -s' works, such that if it is invoked by root it sets up desktop shortcuts for all users in /usr/local/share but when run by any other user it just uses ~/.local/share (as it does now) and sets up shortcuts only for them. What do you think, shall I do that?
 
Old 06-04-2013, 04:34 PM   #29
01micko
Member
 
Registered: Mar 2009
Location: Gold Coast, Queensland, Australia
Distribution: Puppy, Slackware
Posts: 78

Rep: Reputation: 7
Quote:
Originally Posted by ruario View Post
Yep, though if they do want to access the other versions from the menu's you can have them run multichrome -s.

Alternatively, an idea for a future update to this script would be to change how multichrome -s' works, such that if it is invoked by root it sets up desktop shortcuts for all users in /usr/local/share but when run by any other user it just uses ~/.local/share (as it does now) and sets up shortcuts only for them.
One thought though, perhaps the script on initial run could check to see if chrome-stable (or possibly another version, either outdated or bleeding edge and anything in between) is installed either by SlackBuild , latestchrome or other means and if so ask if admin wants to remove that or leave. Or, perhaps not, admin should know what's on their system and make appropriate choices.


Quote:
Originally Posted by ruario View Post
What do you think, shall I do that?
Entirely depends on your time and motivation. IMHO, the likelihood of this being implemented in a real multiuser (production?) situation is low as it is really for developers/testers, so "as is" is just fine.
 
Old 03-21-2014, 04:41 PM   #30
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,840

Rep: Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846
@01micko: Not sure if you are still using this but I did a couple of updates and moved it to GitHub yesterday:

https://gist.github.com/ruario/9673716

Word of warning however if you rerun "multichrome -s" I no longer insert --user-data-dir into the desktop files to force a distinct settings folder for each channel, because Google now does it themselves in the startup scripts. But they name the folders differently. So if you rerun "multichrome -s" with the new version you would be using different settings folders and hence it would appear as if you were starting from scratch.

You could probably just stick with the version of multichrome you have already got or if you don't care about losing profiles for test channels it doesn't matter. However if you do want to fix this these are the locations I used:

Code:
~/.config/google-chrome/stable
~/.config/google-chrome/beta
~/.config/google-chrome/unstable
These are the locations Google themselves use:

Code:
~/.config/google-chrome
~/.config/google-chrome-beta
~/.config/google-chrome-unstable
Another change I made was to stop patching the main chrome binary as as it no longer has it path hard coded. I also changed the naming of the symlinks from:

Code:
chroms -> google-chrome-stable-33.0.1750.152-1.x86_64/
chromb -> google-chrome-beta-34.0.1847.76-1.x86_64/
chromu -> google-chrome-unstable-35.0.1897.2-1.x86_64/
to:

Code:
google-chrome-stable -> google-chrome-stable-33.0.1750.152-1.x86_64/
google-chrome-beta -> google-chrome-beta-34.0.1847.76-1.x86_64/
google-chrome-unstable -> google-chrome-unstable-35.0.1897.2-1.x86_64/
 
  


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
Google Chrome without PAM on -current? rkelsen Slackware 4 05-09-2013 07:45 PM
[SOLVED] Google-chrome crashing X after -current update smoooth103 Slackware 8 02-24-2013 12:45 PM
google-chrome segfaults on Slackware64 -current TL_CLD Slackware 26 05-27-2012 10:13 AM
[SOLVED] Google Talk Plugin, Slackware64-Current, Google Chrome (Latest) and Multilib - Error Gavin Harper Slackware 3 01-04-2011 07:45 AM
[SOLVED] 32 bit google-chrome on multilib current system..........no SSL? damgar Slackware 6 06-13-2010 09:20 PM


All times are GMT -5. The time now is 05: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