mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2026-01-08 22:34:22 +01:00
reorg
This commit is contained in:
28
BUIDLbootcamp/BUIDL_bootcamp_VM.txt
Normal file
28
BUIDLbootcamp/BUIDL_bootcamp_VM.txt
Normal file
@@ -0,0 +1,28 @@
|
||||
Download the working Ubuntu18.04.01LTS image:
|
||||
https://mega.nz/#F!JQ1S1KqT!nDiX3p9aCY-8DUvvmf-_mw
|
||||
|
||||
|
||||
unzip the .vdi to use with Virtualbox
|
||||
|
||||
username: buidl
|
||||
password: bootcamp
|
||||
|
||||
Installed and working:
|
||||
git
|
||||
cloned github.com/justinmoon/digital-cash/
|
||||
pip
|
||||
venv
|
||||
digital-cash/requirements.txt
|
||||
docker
|
||||
docker-compose
|
||||
VisualStudio Code
|
||||
|
||||
|
||||
To convert to a RAW image:
|
||||
in Windows with VirtualBox installed, run this in Command Prompt (cmd.exe) or PowerShell:
|
||||
`"C:\Program_Files\Oracle\VirtualBox\VBoxManage.exe" clonehd --format RAW Ubuntu18.04.01LTS.vdi RAW_Image_to_disk.img`
|
||||
in Linux bash:
|
||||
`VBoxManage clonehd --format RAW Ubuntu18.04.01LTS.vdi RAW_Image_to_disk.img`
|
||||
|
||||
|
||||
The .img can be written to HDD/SSD/USBDrive with http://www.hddguru.com/software/HDD-Raw-Copy-Tool/.
|
||||
70
BUIDLbootcamp/BUIDL_bootcamp_ubuntu_install_commands.txt
Normal file
70
BUIDLbootcamp/BUIDL_bootcamp_ubuntu_install_commands.txt
Normal file
@@ -0,0 +1,70 @@
|
||||
sudo apt-get update
|
||||
sudo apt-get upgrade
|
||||
|
||||
sudo apt install git-all
|
||||
|
||||
git clone https://github.com/superquest/digital-cash.git
|
||||
|
||||
cd digital-cash
|
||||
|
||||
apt-get install python3-venv
|
||||
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
python3 -m pip install -r requirements.txt
|
||||
|
||||
# jupyter notebook
|
||||
|
||||
# install docker as described here: https://docs.docker.com/install/linux/docker-ce/ubuntu/
|
||||
|
||||
sudo apt-get install \
|
||||
apt-transport-https \
|
||||
ca-certificates \
|
||||
curl \
|
||||
software-properties-common
|
||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||
|
||||
# verify fingerprint `9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88`
|
||||
|
||||
sudo apt-key fingerprint 0EBFCD88
|
||||
|
||||
sudo add-apt-repository \
|
||||
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
|
||||
$(lsb_release -cs) \
|
||||
stable"
|
||||
sudo apt-get update
|
||||
sudo apt-get install docker-ce
|
||||
|
||||
# to test docker install:
|
||||
# sudo docker run hello-world
|
||||
|
||||
sudo systemctl enable docker
|
||||
|
||||
# to check if Docker is running:
|
||||
# systemctl status docker.service
|
||||
|
||||
sudo groupadd docker
|
||||
sudo usermod -aG docker $USER
|
||||
|
||||
# install docker compose as in here https://docs.docker.com/compose/install/
|
||||
|
||||
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
|
||||
sudo chmod +x /usr/local/bin/docker-compose
|
||||
|
||||
# to test the docker-compose installation:
|
||||
# docker-compose --version
|
||||
|
||||
# RESTART:
|
||||
# sudo shutdown now -r
|
||||
|
||||
cd digital-cash/
|
||||
source venv/bin/activate
|
||||
cd experiments/
|
||||
docker-compose up --build
|
||||
|
||||
# more troubleshooting: https://docs.docker.com/install/linux/linux-postinstall/
|
||||
|
||||
# install fuzzy file finder:
|
||||
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
|
||||
~/.fzf/install
|
||||
# restart bash, use with CTRL + R
|
||||
13
BUIDLbootcamp/M5Stack
Normal file
13
BUIDLbootcamp/M5Stack
Normal file
@@ -0,0 +1,13 @@
|
||||
sudo apt-get install git wget make libncurses-dev flex bison gperf python python-serial
|
||||
git clone --depth 1 https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo.git
|
||||
cd MicroPython_ESP32_psRAM_LoBo/MicroPython_BUILD/
|
||||
# ./BUILD.sh menuconfig
|
||||
./BUILD.sh
|
||||
|
||||
cd ../..
|
||||
git clone https://github.com/tuupola/micropython-m5stack.git
|
||||
|
||||
|
||||
$ sudo pip3 install rshell
|
||||
$ make sync
|
||||
$ make repl
|
||||
Reference in New Issue
Block a user