Qortal Project

The future of blockchain platforms

User Tools

Site Tools


linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
linux [11/21/2021 01:49] – [Linux Install from Command Line] gfactorlinux [09/28/2023 19:11] quickmythril
Line 1: Line 1:
-====== Linux ======+====== Linux (Debian+Ubuntu+Mint) ======
 {{:qortal_official_logo_transparent_.png?400|}} {{:qortal_official_logo_transparent_.png?400|}}
 +{{ youtube>XO6NoVE79rQ }} \\
  
-How to install Qortal on debian linux (ubuntu, mint, debian, etc.)+ 
 +**Please note:** after setting up your computer as a node, be sure to review the [[Port Forwarding]] guide to ensure your node functions optimally.  
 + 
 +How to install Qortal on Linux (ubuntu, mint, debian, debian-based distros.)
 (Input each command with enter after them.) (Input each command with enter after them.)
 (any time the terminal asks for a password, it is your OS user password, it won't SHOW the password as you input it, just input it and push enter.) (any time the terminal asks for a password, it is your OS user password, it won't SHOW the password as you input it, just input it and push enter.)
 (all commands are run from terminal.) (all commands are run from terminal.)
 pre-setup, you should update your apt repo -  pre-setup, you should update your apt repo - 
-sudo apt update 
  
-1. Install Java - +<code>sudo apt update && sudo apt -y upgrade</code> 
 + 
 +1. Install Java, and Unzip
  
-<code> sudo apt install default-jre </code>+<code> sudo apt install default-jre && sudo apt install unzip</code>
    
-and install 'unzip' to extract archives in terminal: +2. Download the Qortal Core zip extract, make scripts executable, and run start.sh - https://github.com/Qortal/qortal/releases/latest/download/qortal.zip - you can also do this with wget from terminal, like this (triple-click to select entire code line, copy and paste into terminal and push enter):
  
-<code> sudo apt install unzip </code>+This command will download the zip, extract it, make the scripts executable and start the Qortal Core. You will see it pop up with the splash screen telling you it is downloading and extracting the bootstrap, then it will run on the taskbar.
  
-2. Download the Qortal Core zip - https://github.com/Qortal/qortal/releases/latest/download/qortal.zip - you can also do this with wget from terminal, like this:+<code> wget https://github.com/Qortal/qortal/releases/latest/download/qortal.zip && unzip qortal.zip && cd qortal && chmod +x *.sh && ./start.sh </code>
  
-<code> wget https://github.com/Qortal/qortal/releases/latest/download/qortal.zip </code>+3. Download and install the Qortal UI appimage installer - https://github.com/Qortal/qortal-ui/releases/latest/download/Qortal-Setup-amd64.AppImage - you can also download this with wget from terminal like this:
  
-3. Download the Qortal UI debian installer - https://github.com/Qortal/UI/releases/latest/download/qortal-ui_amd64.deb you can also download this with wget from terminal like this:+<code> cd && cd Desktop && curl -L -O https://github.com/Qortal/qortal-ui/releases/latest/download/Qortal-Setup-amd64.AppImage && mv Qortal-Setup*.AppImage Qortal-UI && chmod +x Qortal-UI </code>
  
-<code> wget https://github.com/Qortal/UI/releases/latest/download/qortal-ui_amd64.deb </code>+We recommend the AppImage version as it offers auto updates (which can be declined by the user if desired). Qortal will start, you'll see a splash screen telling you it is downloading and extracting the bootstrap for you, then it will run 'in the background' on the taskbar with a Q icon. The icon will be RED when you're not fully synchronized, and BLUE when you are.
  
-4. Extract the Qortal Core zip -  
-unzip qortal.zip - if you downloaded with wget, it will be already in your home folder, if you downloaded with the browser, you will first need to move the file to the home folder like this:  
  
-<code> mv Downloads/qortal.zip </code> +4. Run the Qortal UI app that is now installed on your system. Run through the account creation process in the Qortal UI, to create your Qortal account. Be sure you use a password you will remember, and save the backup file in multiple locations. This is the only way you can access your account from any other computer, or if your computer fails. Be very sure you have multiple copies of this.
- +
-The mv command is only needed if you downloaded with browser, and not with wget. +
- +
-5. Change to newly created qortal directory, make scripts executable, and start Qortal:  +
- +
-<code>cd qortal +
-chmod +x *.sh +
-./start.sh </code> +
- +
-Qortal will start, you'll see a splash screen telling you it is downloading and extracting the bootstrap for you, then it will run 'in the background' on the taskbar with a Q icon. The icon will be RED when you're not fully synchronized, and BLUE when you are. +
- +
-6. Install Qortal UI - the 'easiest' way is with terminal. If you used wget to download the files, then it will be in your home directory, if not, it will be in your Downloads folder. +
- +
-<code> sudo dpkg -i qortal-ui*.deb </code> +
- +
-If the file isn't in your home folder and you downloaded with a browser, you can do this instead: +
- +
-<code> sudo dpkg -i Downloads/qortal-ui*.deb </code> +
- +
-7. Run the Qortal UI app that is now installed on your system. Run through the account creation process in the Qortal UI, to create your Qortal account. Be sure you use a password you will remember, and save the backup file in multiple locations. This is the only way you can access your account from any other computer, or if your computer fails. Be very sure you have multiple copies of this.+
  
 Once you have created your account and your node is synchronized, if you would like to become a minter, simply ask in Qortal chat or Q-Chat and let people know where you heard of Qortal. Once you have created your account and your node is synchronized, if you would like to become a minter, simply ask in Qortal chat or Q-Chat and let people know where you heard of Qortal.
  
 **FYI: HELP GUIDES BELOW MAY SUGGEST BOOTSTRAPPING WHICH IS NO LONGER NEEDED AFTER CORE VERSION 2.0! These guides below were made prior to 2.0** **FYI: HELP GUIDES BELOW MAY SUGGEST BOOTSTRAPPING WHICH IS NO LONGER NEEDED AFTER CORE VERSION 2.0! These guides below were made prior to 2.0**
- 
-For additional support go into the #linux-support channel in Discord. 
  
 https://www.youtube.com/watch?v=XO6NoVE79rQ https://www.youtube.com/watch?v=XO6NoVE79rQ
Line 92: Line 73:
 **Install Qortal core:** Get the files you need for Linux. They currently are:  **Install Qortal core:** Get the files you need for Linux. They currently are: 
     https://github.com/Qortal/qortal/releases/latest/download/qortal.zip     https://github.com/Qortal/qortal/releases/latest/download/qortal.zip
-    https://qortal.tmgoxford.com/db.7z 
- 
-You will need to use p7zip to uncompress the DB file. The smaller files unzip with standard utils. 
- 
-We’re using "/qortal" as an example here. Substitute your path to where you want it. 
- 
-<code>md /qortal 
-cd /qortal 
-cp ~/Downloads/qortal.zip /qortal 
-unzip qortal.zip  
-chmod 744 *.sh</code> 
- 
-Using "p7zip" because none of the other utils work: 
- 
-<code>7za  x  ./db.7z</code> 
- 
-The perms on the files in the new ./db directory should be 644 and if they aren't set them: 
- 
-<code>ls -l /qortal/db 
-chmod 644 blockchain.data 
-chmod 644 blockchain.properties  
-chmod 644 blockchain.script</code> 
- 
-Edit the settings in the "settings.json" file: 
-     
-<code>{ 
-    "maxPeers":32, 
-    "minOutboundPeers":16, 
-    "minBlockchainPeers":8, 
-    "maxNetworkThreadPoolSize":25, 
-    "apiDocumentationEnabled":true 
-    }</code> 
  
 Now start the core: Now start the core:
Line 132: Line 81:
 It should tell you it's passed the java version check and give you the PID: It should tell you it's passed the java version check and give you the PID:
          
-    Passed Java version check +    "Passed Java version check 
-    qortal running as pid 2020+    qortal running as pid 2020"
  
 Make sure it is running: Make sure it is running:
Line 145: Line 94:
     2020     2020
          
-If you are running IPv4 only you will need this in your settings.json file: 
- 
-<code>"bindAddress":"0.0.0.0",</code> 
- 
-Omit the comma at the end if it is the last line before the closing brace } 
- 
 To stop it gracefully: To stop it gracefully:
  
Line 200: Line 143:
  
 **From Jaymen:**  **From Jaymen:** 
-<code>apt-get update    +<code>apt update    
-apt-get install openjdk-11-jdk  +apt install openjdk-11-jdk  
-apt-get install unzip  +apt install unzip  
-apt-get install bc +apt install bc 
-apt-get install p7zip-full  +apt install p7zip-full  
 wget https://github.com/Qortal/qortal/releases/latest/download/qortal.zip wget https://github.com/Qortal/qortal/releases/latest/download/qortal.zip
-unzip qortal.zip +unzip qortal.zip  
-cd qortal   +cd qortal  
-wget https://qortal.tmgoxford.com/db.7z     +chmod +*.sh  
-7za db.7z  +./start.sh </code>
-chmod 0777 start.sh  +
-sh ./start.sh </code>+
 ===== Linux VPS Only Install ===== ===== Linux VPS Only Install =====
  
 **From Jaymen:** **From Jaymen:**
 <code>sudo -i                            <code>sudo -i                           
-apt-get update                    +apt update                    
 cd /home                           cd /home                          
 adduser test                       adduser test                      
 usermod -a -G sudo test           usermod -a -G sudo test          
-apt-get install openjdk-11-jdk    +apt install openjdk-11-jdk    
-apt-get install unzip              +apt install unzip              
-apt-get install bc                 +apt install bc                 
-apt-get install p7zip-full        +apt install p7zip-full        
 cd test                            cd test                           
 wget https://github.com/Qortal/qortal/releases/latest/download/qortal.zip wget https://github.com/Qortal/qortal/releases/latest/download/qortal.zip
 unzip qortal.zip             unzip qortal.zip            
-cd qortal +cd qortal                 
-wget https://qortal.tmgoxford.com/db.7z      +chmod +*.sh               
-7za db.7z                       +
-chmod 0777 start.sh               +
 chown -R test /home/test/qortal    chown -R test /home/test/qortal   
 su test                            su test                           
Line 239: Line 178:
 **From Jaymen:** **From Jaymen:**
 <code>wget https://github.com/Qortal/qortal/releases/latest/download/qortal.zip    <code>wget https://github.com/Qortal/qortal/releases/latest/download/qortal.zip   
-unzip qortal.zip                                                              +unzip qortal.zip                                                                                                        
-sudo apt-get install p7zip-full -y                                               +cd qortal                                                                                                                                             
-cd qortal                                                                                   +chmod +*.sh                                                                        
-wget https://qortal.tmgoxford.com/db.7z                                                     +
-7z db.7z                                                                                  +
-chmod 0777 start.sh                                                                        +
 echo -en "{\n\"apiDocumentationEnabled\": true\n}\n\"" > settings.json echo -en "{\n\"apiDocumentationEnabled\": true\n}\n\"" > settings.json
 ./start.sh </code>                                                                       ./start.sh </code>                                                                      
linux.txt · Last modified: 01/17/2024 21:07 by crowetic