-
-
Notifications
You must be signed in to change notification settings - Fork 493
Linux Installation Guide
kmehant edited this page Jan 28, 2020
·
12 revisions
You can even refer to the Video Tutorial on-
- Youtube by Padam Chopra
- Google Drive Youtube by Moses Paul R
Note: Installation process outlined here has been tested on Debian based Distros. While it should work on other distros, we haven't tested it.
- Change Directory to the folder where you want to install Bassa
- To clone the project, type:
https://github.com/scorelab/Bassa.git
- Go into the project directory by
cd Bassa
- To start installation, run the following commands:
$ ./setup.sh $ cd components/core/ $ sudo python setup.py develop
- Now you need to setup the database for Bassa, run the following commands in the MySQL Terminal:
create database Bassa
- Type the following commands in the root of the project:
Open components/core/DBCon.py in the project folder and setup database username and password.
mysql -u root -p Bassa < Bassa.sql
If the environment variables are being used, modify as following :If the environment variables are not configured and hardcoded strings are being used, replace as :_db=MySQLdb.connect("db", os.environ.get('YOUR_DB_USERNAME'), os.environ.get('YOUR_DB_PASSWORD'), os.environ.get('Bassa'))
_db=MySQLdb.connect(host="localhost", user="YOUR_DB_USERNAME", passwd="YOUR_DB_PASSWORD",db= "Bassa")
- To test the server, run the following commands:
$ cd components/core $ python Main.py
- For setting up the UI, change directory to 'Bassa' and run the following commands:
$ cd ui $ npm install
- You need to install aria2c to start downloads through Bassa. Install it using
To make sure you now have aria2c installed, run:
$ sudo apt-get install aria2
aria2c --enable-rpc
- To run Bassa, execute the following command in terminal:
gulp serve
For the first time, the login credentials are 'rand' and password is 'pass'
- While testing the servers, you can get a potential error of Flask directory not being found. To resolve this, execute the following commands:
$ sudo apt install python-pip $ pip install Flask
- While giving the command
npm install
in step 9, you can get an error that says npm is not installed. To resolve this, execute the following commands:$ sudo apt install npm
- When you run into errors related to sass packages probably you might be using a bleeding edge node version. So
node version 7
is highly recommended.