From e6096ba317e65791dcf94bfc26f74c1d89eaab81 Mon Sep 17 00:00:00 2001 From: paresharma Date: Sun, 11 Oct 2020 16:11:15 +0530 Subject: [PATCH 1/4] Skip trying to open browser, causes problem on WSL2 --- ui-ngx/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/package.json b/ui-ngx/package.json index 4612631ff64..86affe42b40 100644 --- a/ui-ngx/package.json +++ b/ui-ngx/package.json @@ -3,7 +3,7 @@ "version": "3.2.0", "scripts": { "ng": "ng", - "start": "node --max_old_space_size=8048 ./node_modules/@angular/cli/bin/ng serve --host 0.0.0.0 --open", + "start": "node --max_old_space_size=8048 ./node_modules/@angular/cli/bin/ng serve --host 0.0.0.0", "build": "ng build", "build:prod": "ng build --prod --vendor-chunk", "test": "ng test", From 6ab7e6e6a10af98f69712b3485d7448b63dcbd3c Mon Sep 17 00:00:00 2001 From: gowithhk <44308692+gowithhk@users.noreply.github.com> Date: Mon, 19 Oct 2020 21:16:27 +0530 Subject: [PATCH 2/4] Create ThingsboardInstallation.md --- ThingsboardInstallation.md | 97 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 ThingsboardInstallation.md diff --git a/ThingsboardInstallation.md b/ThingsboardInstallation.md new file mode 100644 index 00000000000..1eb9f1eb24f --- /dev/null +++ b/ThingsboardInstallation.md @@ -0,0 +1,97 @@ +## Setup for Creating/ Activating Thingboard CE (on Ubuntu/Linux/ Ubuntu WSL for Windows) + +• Prepare environment: +> Set-up Ubuntu 1804/2004 Linux desktop environment +> WSL2 for Linux +> Dual boot with Window +> VirtualBox +• Install Postgres + Step 1. sudo apt update + Step 2. sudo apt install postgresql postgresql-contrib + or, + sudo apt install postgresql +• Install JDK + Steps: + Step 1  sudo apt update + Step 2  sudo apt install openjdk-8-jdk + Step 3  java -version + +• Install SDKMAN + Step 1  curl -s "https://get.sdkman.io" | bash + + Step 2  source "$HOME/.sdkman/bin/sdkman-init.sh" +• Install maven + sdk install maven + +Now for SETUP Application: + + +##Setting up GitHub: +Step 1. -> + https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent +Step 2. -> +https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account + +After completing the above steps try the following steps: +# Get code + +# upload SSH key to Github account and clone the app +• git clone git@github.com:Nibiaa-Devices-IoT-platforn/thingsboard.git + +# if not and don't want to, use HTTPS +• git clone https://github.com/Nibiaa-Devices-IoT-platforn/thingsboard.git + + +# Install dependencies +• cd thingsboard +• mvn clean install -DskipTests + + +#Now, Start the Postgres Server + +• sudo service postgres start + +# Set-up DB +• psql -U postgres -d postgres -h 127.0.0.1 -W +• CREATE DATABASE thingsboard; +• \q + + +>> if you encounter password validation error, + + sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';" + + + +# Seed DB + +• cd application/target/bin/install +• sudo chmod 755 install_dev_db.sh +• sudo ./install_dev_db.sh + +Now, just go back to the thingsboard folder by << cd .. >> + +# Run server (from the root directory of the app) on http://localhost:8080 + +• java -jar application/target/thingsboard-3.2.0-SNAPSHOT-boot.jar + + +After this Process just open the following link on your Web Browser: + +• http://localhost:8080 + + + +Alternatively (Optional Step *Not Required.. ) + +# And, optionally run server with hot UI reloading on http://localhost:4200 + +• cd ui-ngx +• mvn clean install +• yarn start + + +For more details… (Do check these) +https://github.com/Nibiaa-Devices-IoT-platforn/thingsboard/wiki/Setup +https://github.com/Nibiaa-Devices-IoT-platforn/thingsboard/wiki/To-read#git-and-github + From 4467c2b199663fd34f61e1b48ca06aa23a29ff13 Mon Sep 17 00:00:00 2001 From: gowithhk <44308692+gowithhk@users.noreply.github.com> Date: Mon, 19 Oct 2020 21:30:44 +0530 Subject: [PATCH 3/4] Update ThingsboardInstallation.md --- ThingsboardInstallation.md | 112 ++++++++++++++++++++++--------------- 1 file changed, 68 insertions(+), 44 deletions(-) diff --git a/ThingsboardInstallation.md b/ThingsboardInstallation.md index 1eb9f1eb24f..818a338993e 100644 --- a/ThingsboardInstallation.md +++ b/ThingsboardInstallation.md @@ -1,63 +1,80 @@ -## Setup for Creating/ Activating Thingboard CE (on Ubuntu/Linux/ Ubuntu WSL for Windows) +### Setup for Creating/ Activating Thingboard CE (on Ubuntu/Linux/ Ubuntu WSL for Windows) -• Prepare environment: +# Prepare environment: > Set-up Ubuntu 1804/2004 Linux desktop environment + > WSL2 for Linux + > Dual boot with Window + > VirtualBox -• Install Postgres - Step 1. sudo apt update - Step 2. sudo apt install postgresql postgresql-contrib - or, - sudo apt install postgresql -• Install JDK + +# Install Postgres + Step 1. sudo apt update + Step 2. sudo apt install postgresql postgresql-contrib + or, + sudo apt install postgresql +# Install JDK Steps: - Step 1  sudo apt update - Step 2  sudo apt install openjdk-8-jdk - Step 3  java -version + Step 1 : sudo apt update + Step 2 : sudo apt install openjdk-8-jdk + Step 3 : java -version + +# Install SDKMAN -• Install SDKMAN - Step 1  curl -s "https://get.sdkman.io" | bash + Step 1 : curl -s "https://get.sdkman.io" | bash + + Step 2 : source "$HOME/.sdkman/bin/sdkman-init.sh" + +#Install maven - Step 2  source "$HOME/.sdkman/bin/sdkman-init.sh" -• Install maven sdk install maven -Now for SETUP Application: +##Now for SETUP Application: -##Setting up GitHub: -Step 1. -> - https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent -Step 2. -> -https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account +#Setting up GitHub: + +Step 1. : + https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent + +Step 2. : + https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account + +##After completing the above steps try the following steps: -After completing the above steps try the following steps: # Get code # upload SSH key to Github account and clone the app -• git clone git@github.com:Nibiaa-Devices-IoT-platforn/thingsboard.git + + git clone git@github.com:Nibiaa-Devices-IoT-platforn/thingsboard.git # if not and don't want to, use HTTPS -• git clone https://github.com/Nibiaa-Devices-IoT-platforn/thingsboard.git + + git clone https://github.com/Nibiaa-Devices-IoT-platforn/thingsboard.git # Install dependencies -• cd thingsboard -• mvn clean install -DskipTests + + cd thingsboard + + mvn clean install -DskipTests #Now, Start the Postgres Server -• sudo service postgres start + sudo service postgres start # Set-up DB -• psql -U postgres -d postgres -h 127.0.0.1 -W -• CREATE DATABASE thingsboard; -• \q + psql -U postgres -d postgres -h 127.0.0.1 -W + + CREATE DATABASE thingsboard; + + \q ->> if you encounter password validation error, + +# if you encounter password validation error, sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';" @@ -65,33 +82,40 @@ After completing the above steps try the following steps: # Seed DB -• cd application/target/bin/install -• sudo chmod 755 install_dev_db.sh -• sudo ./install_dev_db.sh + cd application/target/bin/install + + sudo chmod 755 install_dev_db.sh + + sudo ./install_dev_db.sh Now, just go back to the thingsboard folder by << cd .. >> # Run server (from the root directory of the app) on http://localhost:8080 -• java -jar application/target/thingsboard-3.2.0-SNAPSHOT-boot.jar + java -jar application/target/thingsboard-3.2.0-SNAPSHOT-boot.jar -After this Process just open the following link on your Web Browser: +#After this Process just open the following link on your Web Browser: -• http://localhost:8080 + http://localhost:8080 -Alternatively (Optional Step *Not Required.. ) +#Alternatively (Optional Step *Not Required.. ) # And, optionally run server with hot UI reloading on http://localhost:4200 -• cd ui-ngx -• mvn clean install -• yarn start + cd ui-ngx + + mvn clean install + + yarn start + +#For more details… (Do check these) -For more details… (Do check these) -https://github.com/Nibiaa-Devices-IoT-platforn/thingsboard/wiki/Setup -https://github.com/Nibiaa-Devices-IoT-platforn/thingsboard/wiki/To-read#git-and-github + https://github.com/Nibiaa-Devices-IoT-platforn/thingsboard/wiki/Setup + + https://github.com/Nibiaa-Devices-IoT-platforn/thingsboard/wiki/To-read#git-and-github + From c479d1eb09bee0ce0e846cb79397e76cd0f4e10f Mon Sep 17 00:00:00 2001 From: gowithhk <44308692+gowithhk@users.noreply.github.com> Date: Fri, 30 Oct 2020 13:23:56 +0530 Subject: [PATCH 4/4] Update ThingsboardInstallation.md --- ThingsboardInstallation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ThingsboardInstallation.md b/ThingsboardInstallation.md index 818a338993e..b37071aba78 100644 --- a/ThingsboardInstallation.md +++ b/ThingsboardInstallation.md @@ -63,7 +63,7 @@ Step 2. : #Now, Start the Postgres Server - sudo service postgres start + sudo service postgresql start # Set-up DB