Is there a way to install Chrome (or Chromium) on our shared server ?

How do I execute this on OpalStack server ?
~./Chrome --headless --disable-gpu --print-to-pdf https://opalstack.com

  • sean replied to this.

    anjanesh you can install Google Chrome in your home directory with the following commands:

    mkdir ~/chrome
    cd ~/chrome
    rpm2cpio https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm | cpio -idmv
    export PATH=$PWD/opt/google/chrome/:$PATH

    When that's done the chrome binaries will be in ~/chrome/opt/google/chrome/.

      2 years later

      sean

      I managed to get chrome installed, but now I am getting this error:

      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 ~/chrome/opt/google/chrome/chrome-sandbox is owned by root and has mode 4755

      Searching around, the solution seems to set the owner to root for that file, but that requires sudo.

      Is there an alternative? or something an admin can do as a short-term fix?

      • sean replied to this.

        This is the line to execute :

        $ /home/username/chrome/opt/google/chrome/chrome --no-sandbox --headless --disable-gpu --print-to-pdf https://opalstack.com/pricing.html

        Though I need to figure why not all CSS is 100% recognized.

        2 years later

        sean

        Reviving this thread.

        I've been running a python selenium script for a while and it broke the other month (late june) and I just got around to looking at it.

        Hoping you can shed some light (I am not very competent here )

        Seems like the Chrome was no longer able to run, log:

        ERROR:root:Error fetching or processing URL: Message: Service /home/xx/.cache/selenium/chromedriver/linux64/127.0.6533.99/chromedriver unexpectedly exited. Status code was: 1

        I installed Chrome per your instructions for some testing, and when trying to access it (e.g., chrome --version), I got the following error:
        chrome: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by chrome)

        So, I placed an older version of chrome (from when the script was working) in the place of the latest version and it seems to be working fine now to call it. It also seems to have resolved my script issue as well.

        Any insights around getting the latest chrome version working again?

        • sean replied to this.

          gravitysearch The problem is that we're running a very old OS with old system libraries. The latest Chrome binaries are built against newer libraries so they're no longer compatible with your Opalstack server.

          We should have new servers available with a newer OS by the end of Q3 (September 2024) - those servers should be able to run the latest stuff with no problem. We'll make an announcement when the servers are ready.

            10 days later
            Mastodon