Skip to content

Do you have the idea of mirror station #121

Open

Description

@puzzle9

Because of the Internet, I can't download these resources

I tried nginx
However, 403 of the server will be intercepted

server {
    listen  80;
    server_name _;

    location / {
        proxy_pass https://mrchromebox.tech/;
        proxy_set_header Host "mrchromebox.tech";
    }
}

Activity

  1. dragon788 commented on Oct 25, 2021

    @dragon788

    If you want to host these on your local network, you probably would need to rewrite the DNS response for mrchromebox.tech to use the scripts "as is" because they "self update" when run, but that still won't help with the binary files.

    Another plan is to fork this repository, change or comment out the lines where the scripts set the base URL to mrchromebox.tech and run your webserver against your local clone of your forked project.

    script_url="https://raw.githubusercontent.com/MrChromebox/scripts/master/"

    The problem is these scripts are referencing LOTS of files also hosted by MrChromebox, the lines below are used by a majority of the functions to find the right files (out of hundreds available).

    scripts/sources.sh

    Lines 9 to 15 in c0c33ba

    export util_source="https://www.mrchromebox.tech/files/util/"
    export rwlegacy_source="https://www.mrchromebox.tech/files/firmware/rw_legacy/"
    export bootstub_source="https://www.mrchromebox.tech/files/firmware/boot_stub/"
    export fullrom_source="https://www.mrchromebox.tech/files/firmware/full_rom/"
    export shellball_source="https://www.mrchromebox.tech/files/firmware/shellball/"
    export cbfs_source="https://www.mrchromebox.tech/files/firmware/cbfs/"
    export other_source="https://www.mrchromebox.tech/files/firmware/other/"

    So unless you want to only support one or two models of Chromebook/Chromebox and hardcode those into your fork of the scripts, you will need to have a fair bit of storage for the binary files.

    It seems easy, that if this line was changed to script_url="${script_url:-'https://raw.githubusercontent.com/MrChromebox/scripts/master/'}" then you could do the following, but you won't have the rw_legacy/firmware binaries/etc unless you mirror the rest of the files as well.

    git clone https://github.com/MrChromebox/scripts
    cd scripts
    python3 -m http.server &
    export script_url='http://localhost:8000/'
    cd; curl -LO ${script_url}/firmware-util.sh
    sudo install -Dt /usr/local/bin -m 755 firmware-util.sh
    sudo firmware-util.sh
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions