Bitcoiner here, but also system engineering n00b. I want to learn more about Linux and coding and I plan to use the Raspberry Pi as a playground (it only runs Bitcoin node, without connection to any wallets or lightning nodes just to be safe)
Please halp:
I have a hard time grokking the difference between Raspberry Pi OS and Umbrel. Most tutorials assume Raspberry OS is installed and as a systems virgin I’m not sure how to translate that.
Some more concrete questions:
- How do I get command line access to the device? Are there SSH client apps I am missing or do I need to SSH into the device via Terminal on Mac?
- I did find a terminal in the VS code app. Is this another Linux distribution or how does it relate to the Raspberry Pi itself? I tried the ifconfig command but just got the “command not found” response…
- I am trying to deploy a very simple Python app on my Raspberry Pi (a boy’s name battler game as a surprise for my pregnant girlfriend).
To do that, I installed virtualenv in VS Code and then installed Flask in the virtual environment (I called it env). Finally I wrote a simple python program to test if it works:
from flask import Flask
app = Flask(name)
@app.route(‘/’)
def index():
return ‘hello world’
if name == “main”:
app.run(host=‘0.0.0.0’, port=5000, debug=True)
In the terminal, I ran the following command: flask run and it returns:
- Running on http://127.0.0.1:5000
I then ran following command in the terminal:
FLASK_APP=app.py flask run --host=0.0.0.0 --port=5000
And it now tells me:
- Running on all addresses (0.0.0.0)
- Running on http://127.0.0.1:5000
- Running on http://10.21.0.5:5000
When I try to access the app via http://10.21.0.5:5000 nothing happens…
All help appreciated (be it answers to my generic or specific questions, or links to learning resources)