Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not run on raspberry #136

Closed
ulrischa opened this issue Dec 3, 2022 · 10 comments · Fixed by #400
Closed

Does not run on raspberry #136

ulrischa opened this issue Dec 3, 2022 · 10 comments · Fixed by #400

Comments

@ulrischa
Copy link

ulrischa commented Dec 3, 2022

Because deno dies not run on raspberry pi silverbullet does not run too. Would like to use it on a raspberry pi.
Please give another Option to install

@zephraph
Copy link

zephraph commented Dec 4, 2022

I think your best shot is following along with this issue. denoland/deno#2295. It sounds like you probably could self compile deno and then run sb, but your milage may vary. This isn't an installation issue. You'd have to rewrite the tool to not depend on deno.

@ulrischa
Copy link
Author

ulrischa commented Dec 5, 2022

For me a show Stopper for raspberry.

@zefhemel
Copy link
Collaborator

If you run a 64 bit OS on a recent RPI this should work: https://github.com/LukeChannings/deno-arm64/releases

@zefhemel
Copy link
Collaborator

Let me put this on my roadmap list. I have some Pis lying around, would be nice to use them for SB. Maybe I can provide an arm 64 docker image too.

@zefhemel
Copy link
Collaborator

Maybe we can easily switch to this base image to get support for both intel and arm: https://hub.docker.com/r/lukechannings/deno

A shame it's based on Ubuntu.

@ulrischa
Copy link
Author

Oh cool. Could you tell me more Details if it works?

@zefhemel
Copy link
Collaborator

zefhemel commented Dec 27, 2022

Ok, so this works flawlessly once you setup Deno. Instructions:

Tested on Ubuntu server 64-bit on a Pi, but should work the same for any 64-bit (!! 32-bit won't work) Linux distribution on a RPI:

$ apt install unzip
$ cd ~
$ wget https://github.com/LukeChannings/deno-arm64/releases/download/v1.29.1/deno-linux-arm64.zip
$ mkdir -p ~/.deno/bin
$ cd ~/.deno/bin
$ unzip ~/deno-linux-arm64.zip

Add ~/.deno/bin to PATH, e.g. in ~/.bashrc add:

export PATH=$PATH:~/.deno/bin

Then to verify:

$ source ~/.bashrc
$ deno -V

Then, just follow standard SB install instructions:

$ deno install -f --name silverbullet -A --unstable https://get.silverbullet.md
$ mkdir ~/Notes
$ silverbullet ~/Notes --hostname 0.0.0.0

And access it on http://ip-of-pi:3000

@zefhemel
Copy link
Collaborator

Properly documented here: https://silverbullet.md/Raspberry_Pi_Installation

@ulrischa
Copy link
Author

Thank you for that christmas present :)
I will try ot out next days

@sweisgerber
Copy link
Contributor

Added PR to fix this issue in #400

zefhemel pushed a commit that referenced this issue May 9, 2023
… repositoy (#400)

* Enabled multiarch build with buildx, qemu and also enabled ghcr, improved tagging

- Enabled multiarch build with buildx, qemu and also enabled ghcr
- Improved image tagging
- Getting rid unknown/unknonw architecture in ghcr
    - https://github.com/docker/build-push-action
    - https://docs.docker.com/build/attestations/slsa-provenance/
    - docker/build-push-action#820

* Switched to lukechannings/deno docke rimage as proposed in #136

- /issues/136

(cherry picked from commit 176b70f)

* Added tini, condensed Dockerfile Run to one step, cleaning up image

- tini is missing in new base image, so I added it manually, as
  documented in https://github.com/krallin/tini

(cherry picked from commit 4d549b8)

* Using TARGETARCH for downloading tini

(cherry picked from commit 23a6019)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
4 participants