Chrome library as zip file

269 views
Skip to first unread message

Parvathi Saraswathyammal

unread,
Sep 7, 2018, 5:14:34 PM9/7/18
to Chromium-dev

Hi,


We would like to use Chrome with Puppeteer instead of Chromium since Chromium requires display server client libraries. We can't deploy those libraries in cloud foundry due to security setup. We can't deploy Chrome debian package again due to same security setup as it will require Sudo and could be deploying libraries at OS level. It would help if we have a self contained Chrome zip file that we can deploy with puppeteer. So is there a Chrome Zip library version available? - Something similar to the Chromium one listed below?

https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Linux_x64/587164/


thanks

Parvathi

Dirk Pranke

unread,
Sep 7, 2018, 5:27:00 PM9/7/18
to sparva...@gmail.com, Chromium-dev
No, I'm afraid something like this is not currently available. 

Can you provide more information about what you're using in Cloud Foundry and what the limitations there are? I think this is something we're interested in supporting, so we can look into this more.

-- Dirk

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/da1ebe2c-fa7d-420a-80e3-6100274cc86c%40chromium.org.

PhistucK

unread,
Sep 7, 2018, 5:53:09 PM9/7/18
to sparva...@gmail.com, Chromium-dev
Does Chromium with --headless --disable-gpu require those display server client libraries?

PhistucK


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.

Parvathi Saraswathyammal

unread,
Sep 7, 2018, 6:12:18 PM9/7/18
to Chromium-dev
Hi Dirk,

Thanks for the response. So let me give some background of the problem we are trying to solve. 

We want to use Puppeteer for PDF generation. We would be using cloud foundry for deployment. When we try to deploy puppteer with Chromium, some x-server dependent client libraries are missing in OS and we would have to deploy them outside of the main buildpack. That would require custom build pack or use of apt buildpack in cloud foundry which would access system folders. Due to security and maintenance reasons self contained zip is preferred in our environment. I heard from Puppeteer group that Chrome doesn't depend on X-Server and if we use Chrome instead of Chromium with Puppteer we won't have missing libraries issue. Hence the request for zip file. 

thanks
Parvathi

Lei Zhang

unread,
Sep 7, 2018, 6:23:21 PM9/7/18
to sparva...@gmail.com, Chromium-dev
I don't think Chromium and Chrome behaves differently in this respect.
I downloaded the Chromium zip file you linked to and it works fine
here without the X server:

$ unset DISPLAY
$ xterm
xterm: Xt error: Can't open display:
xterm: DISPLAY is not set
$ ./chrome --headless --print-to-pdf https://www.chromestatus.com/
[0907/151909.250374:ERROR:gpu_process_transport_factory.cc(980)] Lost
UI shared context.
[0907/151910.310551:INFO:headless_shell.cc(538)] Written to file output.pdf.

As for the idea that "Chromium requires display server client
libraries" and Chrome does not. I don't believe that is the case.
Running "ldd /opt/google/chrome/chrome" and "ldd
/path/to/chromium/chrome" both show the same list of X libraries.
> --
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
> ---
> You received this message because you are subscribed to the Google Groups
> "Chromium-dev" group.
> To view this discussion on the web visit
> https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/edd8c402-cbf5-40b5-bc2f-e2a56cb6506e%40chromium.org.

Parvathi Saraswathyammal

unread,
Sep 11, 2018, 4:04:06 PM9/11/18
to Chromium-dev
So for the libraries issue - these are the system libraries that are missing in OS and we are having to add manually when we go with Chromium that comes with Puppteer. It looks like its not just x-server client libraries, but there are additional ones as well. Does Chrome depend on these set of libraries as well? 

libX11-xcb.so.1 
libXtst.so.6
libnss3.so
libnssutil3.so 
libsmime3.so
libnspr4.so 
libXss.so.1 
libasound.so.2

thanks
Parvathi

On Friday, September 7, 2018 at 3:14:34 PM UTC-6, Parvathi Saraswathyammal wrote:

Lei Zhang

unread,
Sep 11, 2018, 4:09:04 PM9/11/18
to Parvathi Saraswathyammal, Chromium-dev
Yes. There's very little differences in dependencies.
> --
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
> ---
> You received this message because you are subscribed to the Google Groups
> "Chromium-dev" group.
> To view this discussion on the web visit
> https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/27ffc03a-ad75-445d-ba52-5cfc3e603ef4%40chromium.org.

Parvathi Saraswathyammal

unread,
Sep 11, 2018, 4:48:51 PM9/11/18
to Chromium-dev
Is it possible to include these libraries in the chromium zip?


On Friday, September 7, 2018 at 3:14:34 PM UTC-6, Parvathi Saraswathyammal wrote:

Lei Zhang

unread,
Sep 11, 2018, 4:56:47 PM9/11/18
to Parvathi Saraswathyammal, Chromium-dev
No, they are system libraries. For most users, they are redundant, and
what we bundle may not be appropriate for the users' systems. Please
consider fixing your VM / container, or take the .zip files you are
downloading and repacking them yourself for your needs.
> --
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
> ---
> You received this message because you are subscribed to the Google Groups
> "Chromium-dev" group.
> To view this discussion on the web visit
> https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/d865ac33-77bd-4bee-90d4-88e748e28853%40chromium.org.

Parvathi Saraswathyammal

unread,
Sep 11, 2018, 7:05:11 PM9/11/18
to Chromium-dev, sparva...@gmail.com
Thanks Lei. If we include those libraries in the zip file, is it possible that Chromium looks for those libraries in a user folder than system folder? Our issue is we cant use custom buildpack in cloud foundry due to security issues and hence cant do sudo to add missing libraries in system folders as part of deployment.

Lei Zhang

unread,
Sep 11, 2018, 7:22:10 PM9/11/18
to Parvathi Saraswathyammal, Chromium-dev
Sure, you probably need to set LD_LIBRARY_PATH.

Please also consider having discussions like this on chromium-discuss
next time. How to deploy Linux Chromium is a bit off-topic for a
mailing list oriented towards the development of the Chromium browser.

On Tue, Sep 11, 2018 at 4:05 PM, Parvathi Saraswathyammal
> https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/a0b38ec8-aa4a-40d5-a685-39665473cc7f%40chromium.org.
Reply all
Reply to author
Forward
0 new messages