This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
raspberry_pi4 [03/14/2021 04:01] – lancek99 | raspberry_pi4 [03/15/2021 01:19] – created gfactor | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
+ | Assemble your computer. | ||
+ | The raspberry pi is a small, single board computer. You will need a second computer to format and install its operating system onto a micro sd card, preferably 128Gb or bigger. | ||
+ | |||
+ | Download Raspberry Pi Imager onto your second computer and burn RaspberryPi Os 32bit to your micro sd card. Here's the link [[https:// | ||
+ | |||
+ | Here is a link to a complete guide on how to set up the Pi and peripherals. | ||
+ | How to set up your new Raspberry Pi 4 and peripherals ([[https:// | ||
+ | |||
+ | How to install Armor Case on your Raspberry Pi 4 ([[https:// | ||
+ | |||
+ | Now that your machine is set up with Raspbian OS, a keyboard and mouse, we can install Qortal. | ||
+ | We will be using the Terminal application found in the top left menu to install everything. | ||
For clarity all commands to be typed by you are followed by ↩ symbol to denote pressing enter key. | For clarity all commands to be typed by you are followed by ↩ symbol to denote pressing enter key. | ||
- | Simply | + | You can also simply |
- | Using your mouse click and drag the portion to be copied | + | Using your mouse, click and drag the portion to be copied |
- | Right click copy | + | |
+ | Right click- copy | ||
Then right click in terminal | Then right click in terminal | ||
Line 16: | Line 30: | ||
To install them, open a terminal window | To install them, open a terminal window | ||
- | and get your system up to date using: | + | and get your system up to date using: |
+ | |||
sudo apt update↩ | sudo apt update↩ | ||
+ | |||
The files will be downloaded and installed. | The files will be downloaded and installed. | ||
# Next we will upgrade the entire system to the latest version using: | # Next we will upgrade the entire system to the latest version using: | ||
+ | |||
sudo apt full-upgrade↩ | sudo apt full-upgrade↩ | ||
+ | |||
# It will check what’s needing to be upgraded and a prompt will appear, type y and press enter. | # It will check what’s needing to be upgraded and a prompt will appear, type y and press enter. | ||
+ | |||
y↩ | y↩ | ||
+ | |||
# Now we will configure the system to allow remote access via ssh to Raspberry using a remote computer: | # Now we will configure the system to allow remote access via ssh to Raspberry using a remote computer: | ||
+ | |||
sudo raspi-config↩ | sudo raspi-config↩ | ||
+ | |||
A new window will open.Use your arrow keys to navigate and enter to select. | A new window will open.Use your arrow keys to navigate and enter to select. | ||
Select option three, to configure peripheral connections and then select and enable SSH. | Select option three, to configure peripheral connections and then select and enable SSH. | ||
Line 32: | Line 54: | ||
You will find yourself back in the terminal window. | You will find yourself back in the terminal window. | ||
# Now that your system is up to date, let's install Java: | # Now that your system is up to date, let's install Java: | ||
+ | |||
sudo apt install default-jdk↩ | sudo apt install default-jdk↩ | ||
+ | |||
# To check if it’s installed properly, type: | # To check if it’s installed properly, type: | ||
+ | |||
java -version↩ | java -version↩ | ||
+ | |||
This will display your currently installed version of java and display something like | This will display your currently installed version of java and display something like | ||
openjdk version " | openjdk version " | ||
Line 42: | Line 68: | ||
# Assuming all went well and Java is installed, we now install 7zip: | # Assuming all went well and Java is installed, we now install 7zip: | ||
+ | |||
sudo apt-get install p7zip-full -y ↩ | sudo apt-get install p7zip-full -y ↩ | ||
+ | |||
It will be done shortly. | It will be done shortly. | ||
Line 50: | Line 78: | ||
# In the terminal: | # In the terminal: | ||
+ | |||
wget https:// | wget https:// | ||
+ | |||
This will download the core zip file to your PI. | This will download the core zip file to your PI. | ||
# Now we unzip it with: | # Now we unzip it with: | ||
- | unzip qortal-1.4.3.zip↩ | + | |
+ | unzip qortal-1.4.3.zip↩ | ||
+ | |||
# Then enter the newly unzipped Qortal directory using: | # Then enter the newly unzipped Qortal directory using: | ||
+ | |||
cd qortal↩ | cd qortal↩ | ||
+ | |||
Now we will download the zipped database file: | Now we will download the zipped database file: | ||
- | # Type the command | + | # Type the command: |
ls↩ | ls↩ | ||
+ | |||
This will show you a list of all the files in the Qortal folder. | This will show you a list of all the files in the Qortal folder. | ||
It should look like this | It should look like this | ||
- | db log.txt.1 | + | log.txt.1 |
log4j2.properties | log4j2.properties | ||
# To download the database type: | # To download the database type: | ||
+ | |||
wget https:// | wget https:// | ||
+ | |||
Be patient. It’s a huge file and will take a while to complete. | Be patient. It’s a huge file and will take a while to complete. | ||
When it’s done downloading, | When it’s done downloading, | ||
# Extract the database: | # Extract the database: | ||
+ | |||
7z x db.7z↩ | 7z x db.7z↩ | ||
+ | |||
This will also take quite some time. | This will also take quite some time. | ||
When it’s done extracting, your prompt will reappear and you can continue. | When it’s done extracting, your prompt will reappear and you can continue. | ||
- | # Now you must grant permissions to the scripts in the folder so you can run them. | + | # Now you must grant permissions to the scripts in the folder so you can run them: |
chmod a+x *.sh↩ | chmod a+x *.sh↩ | ||
- | # Next we edit the configuration file to optimize | + | |
+ | # Next we edit the configuration file to optimise | ||
echo -en " | echo -en " | ||
+ | |||
# Let’s make sure it did what is required, let’s display the settings.json file by: | # Let’s make sure it did what is required, let’s display the settings.json file by: | ||
+ | |||
cat settings.json↩ | cat settings.json↩ | ||
+ | |||
You should get the following | You should get the following | ||
Line 94: | Line 140: | ||
# Assuming all went well to this point you can now start the core: | # Assuming all went well to this point you can now start the core: | ||
+ | |||
./ | ./ | ||
Line 102: | Line 149: | ||
A moment or two later the logo will appear, centre screen and after about 20-30 seconds a small Qortal icon will appear in the top right section of your screen. | A moment or two later the logo will appear, centre screen and after about 20-30 seconds a small Qortal icon will appear in the top right section of your screen. | ||
- | Give it a minute or two to start making connections and then hover your mouse over the icon. Connection data will appear, | + | Give it a minute or two to start making connections and then hover your mouse over the icon. Connection data will appear, |
CONGRATULATIONS. Your node is up and running. | CONGRATULATIONS. Your node is up and running. | ||
# To stop it gracefully at any point open a terminal: | # To stop it gracefully at any point open a terminal: | ||
+ | |||
cd /qortal↩ | cd /qortal↩ | ||
+ | |||
./ | ./ | ||
- | Currently it is not easy to setup the User Interface (UI) on the raspberry pi. You can connect the running core on your Raspberry Pi to a second computer that has theUI installed with the following method : | + | Currently it is not easy to setup the User Interface (UI) on the raspberry pi. You can connect the running core on your Raspberry Pi to a second computer that has the UI installed with the following method: |
On Mac, open the terminal application and tell the mac to set up an SSH connection to your pi using the following command to connect the correct ports: | On Mac, open the terminal application and tell the mac to set up an SSH connection to your pi using the following command to connect the correct ports: | ||
+ | |||
ssh -L 22391: | ssh -L 22391: | ||
Line 119: | Line 169: | ||
Select add custom node | Select add custom node | ||
- | In each dropdown | + | In the menu, select the following options |
- | Protocol=Http, | + | |
- | Click add and on the Settings page select your newly added node. Login as usual. | + | protocol=http, |
+ | Click add and on the Settings page and select your newly added node. Login as usual. | ||
- | An expanded version of this guide will be available | + | Instructions for Windows machines |
+ | An expanded version of this guide will be available soon, with the next steps and a list of useful commands. |