How to install the Decentralized Video sharing platform script?

How do I install DexTube decentralized video sharing platform script?
Post Reply
bitexchange
Site Admin
Posts: 184
Joined: Tue Apr 03, 2018 2:12 pm

How to install the Decentralized Video sharing platform script?

Post by bitexchange »

How to Install DTube - Steem Blockchain Based Video channel on Ubuntu 16.04


Step 1:

Install Apache

Our first step is to install Apache. Type the following commands in the terminal:

Code: Select all

sudo apt-get update
sudo apt-get install apache2
You will be prompted with a (Y/n). Type y and press Enter.

You can do a spot check right away to verify that everything went as planned by visiting your server's public IP address in your web browser.

http://your_server_IP_address


You will see the default Ubuntu 16.04 Apache web page, which is there for informational and testing purposes. It should look something like this:
You have now installed Apache web server successfully.
defaultapache.jpg
Step 2:

Install Meteor

• Linux and Mac: curl https://install.meteor.com/ | sh
• Windows: link
dtub2.png
Step 3:


Change to html directory

cd /var/www/html/


Give full permissions to html folder

Code: Select all

sudo chmod -R 777 .
Step 4:

Clone DTube repository from GitHub with the below command:

Code: Select all

git clone https://github.com/dtube/dtube.git
dtub3.png
Step 5:

Type ls to check If the files have been cloned from GitHub successfully.
dtub4.png
dtub4.png (16.58 KiB) Viewed 3356 times
You should see dtube file in your server.

Step 6:

Install screen - to run process in background

Code: Select all

sudo apt-get install screen
Step 7:

Change directory to tube

Code: Select all

cd /var/www/html/dtube/ 
Step 8:

Install all dependencies coming from npm including the ones required for development.

Code: Select all

meteor npm install
dtub5.png
Step 9:
Starting the app from screen

First open screen with name “dtube”

Code: Select all

screen -S dtube
Now type meteor to start the app

meteor
dtub6.png
Options:

• -p 3456 for running on a different port than the default 3000.
• --production will minify and merge the javascript and css files.

Meteor will automatically push any change on the code to the browser while you keep the meteor dev server running.

Step 10:

Detaching the screen and running the app in background:
Press:
Ctrl A + Ctrl D

Next Step - Continue with Installing IPFS - Uploader for Dtube on Ubuntu 16.04 steps

Step 11:
To enable uploading files from localhost, Do the following:

Code: Select all

cd /var/www/html/dtube/client/
ls
sudo nano settings.js 
Change localhost value from false to true
Post Reply

Return to “Installation Guide”