Giter Club home page Giter Club logo

ya-installer's Introduction

ya-installer

ya-installer's People

Contributors

prekucki avatar tworec avatar nieznanysprawiciel avatar mfranciszkiewicz avatar pwalski avatar kamirr avatar wkargul avatar jiivan avatar mateuszsrebrny avatar cryptobench avatar maaktweluit avatar shadeofblue avatar

Stargazers

Kevin Alexander Scott Jellis avatar

Watchers

 avatar Viggith avatar  avatar  avatar

ya-installer's Issues

cannot automatically install requestor in linux on arm based cpu's

people seeking to run a requestor on linux are advised to run the following command: curl -sSf https://join.golem.network/as-requestor | bash - requestor primer however for a client running the script in linux (not Darwin) on an arm cpu this fails with the error message: golem-installer: invalid cputype: aarch64

i propose additional bash logic #44 to test for aarch64 on requestor installs to proceed as normally (with an additional logic to correctly resolve the url to aarch64 binaries) following the canonical pattern set by the releases thus far.

closing this issue should also close #24 (in addition to #44)

Verify correct system datetime

Having incorrect datetime could cause the ssl certificate verification failure and break installation process.

A sample output with date set in the past:

ederenn@GOLEM2008-VM-UBNT18:~$ curl -ksSf https://join.golem.network/as-provider | bash -

By installing & running this software you declare that you have read, understood and hereby accept the disclaimer and
privacy warning found at https://handbook.golem.network/see-also/terms

Do you accept the terms and conditions? [yes/no]: yes
golem-installer: installing to /home/ederenn/.local/bin
 Component                             Version
-----------               --------------------
golem core                              0.10.0 curl: (60) SSL certificate problem: certificate is not yet valid
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

gzip: stdin: unexpected end of file
tar: Child returned status 1

We should add this error message to handbook troubleshooting section

Support ARM by running as x86_64

One of our Discord users popped up and wanted to raise an issue to support M1 Macbooks by running the software through Rosetta. It appears to be a simple solution, which could possibly be merged for now?

He added this to the installer.sh

detect_dist() {
    local _ostype _cputype

    _ostype="$(uname -s)"
    _cputype="$(uname -m)"

    if [ "$_ostype" = Darwin ] && [ "$_cputype" = i386 ]; then
        # Darwin `uname -m` lies
        if sysctl hw.optional.x86_64 | grep -q ': 1'; then
            _cputype=x86_64
        fi
    fi

    # Apple Silicon using Rosetta 2
    if [ "$_ostype" = Darwin ] && [ "$_cputype" = arm64 ]; then
        _cputype=x86_64
    fi

    case "$_cputype" in
        x86_64 | x86-64 | x64 | amd64)
            _cputype=x86_64
            ;;
        *)
            err "invalid cputype: $_cputype"
            ;;
    esac
    case "$_ostype" in
        Linux)
            _ostype=linux
            ;;
        Darwin)
            _ostype=osx
            ;;
        MINGW* | MSYS* | CYGWIN*)
            _ostype=windows
            ;;
        *)
            err "invalid os type: $_ostype"
    esac
    echo -n "$_ostype"
}

Credit @SimonLovskog

Specifically this part

    # Apple Silicon using Rosetta 2
    if [ "$_ostype" = Darwin ] && [ "$_cputype" = arm64 ]; then
        _cputype=x86_64
    fi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.