diff --git a/Install-Tracks-on-Ubuntu-20.10.md b/Install-Tracks-on-Ubuntu-20.10.md index 0c28002..a2f4797 100644 --- a/Install-Tracks-on-Ubuntu-20.10.md +++ b/Install-Tracks-on-Ubuntu-20.10.md @@ -144,15 +144,7 @@ production:
encoding : utf8
host: localhost
username: daniel
- password: DANIEL
- -

if you use sqlite

-
-production:
- adapter: sqlite3
- database: db/tracks-20-blank.sqlite3.db
- pool: 5
- timeout: 5000
+ password: DaNiElPsW

edit the content of site.yml

you can use the nano text editor

@@ -194,23 +186,17 @@ admin_email : my.email@domain.com

The ''find'' and ''chmod'' commands will set permissions as ''700'' for all directories and files inside the ''script'' directory.

All other files will have permissions set to ''600''.

Manually create the database

-

Tracks is tested on MySQL (MariaDB?) and SQLite, but PostgreSQL can also be used.

-

Of the three, SQLite requires the least configuration but is also the least performant and may make it difficult to operate in the future.

-

We recommend either MySQL or PostgreSQL.

-

Whatever your choice, the appropriate database software must be installed.

-

Create MySQL database and grant access to user

-

You need to create a database and database-user to use with Tracks, in this guide the name of the database is tempe, we create a user daniel with a password DANIEL with all privileges to access the database -

+

You need to create a database and database-user to use with Tracks, in this guide the name of the database is tempe, we create a user daniel with a password DaNiElPsW with all privileges to access the database

>mysql -u root -p
mysql> CREATE DATABASE tempe CHARACTER SET UTF8;
-mysql> CREATE USER daniel@localhost IDENTIFIED WITH mysql_native_password BY 'DANIEL';
+mysql> CREATE USER daniel@localhost IDENTIFIED WITH mysql_native_password BY 'DaNiElPsW';
mysql> GRANT USAGE ON *.* TO daniel@localhost;
mysql> GRANT ALL PRIVILEGES ON tempe .* TO daniel@localhost;
mysql> GRANT GRANT OPTION ON tempe .* TO daniel@localhost; # Enables you to grant to or revoke from other users those privileges that you yourself possess.
mysql>quit;
-

Note: for the dump of the database you need to add the global PROCESS privilege to the user running the command

+

Note: for the dump of the database (using mysqldump) you need to add the global PROCESS privilege to the user running the command

mysql>GRANT PROCESS ON *.* TO daniel@localhost;
@@ -222,25 +208,24 @@ mysql> quit

if needed you can restart the MySQL service

-

>service mysql restart

+

>systemctl restart mysql.service

you can use the following that MySQL is running ok

-

>service mysql status

+

>systemctl status mysql.service

to explicitly change an already existent user to use mysql_native_password you can use these commands

-

mysql> ALTER USER 'daniel'@'localhost' IDENTIFIED WITH mysql_native_password BY 'daniel';

+

mysql> ALTER USER 'daniel'@'localhost' IDENTIFIED WITH mysql_native_password BY 'DaNiElPsW';

mysql> FLUSH PRIVILEGES;

-

------------

Install the required Ruby libraries known as ‘gems’

The Bundler tool makes it easy to install all the gems that Tracks needs, and ensures that they are all the correct versions.

go to the directory where you installed Tracks and run

-

>cd /var/www/tracks

-

>bundle config set without 'development test sqlite'

-

>bundle install

+>cd /var/www/tracks
+>bundle config set without 'development test sqlite'
+>bundle install

This can take some time depending on the speed of your internet connection and the speed of the system you are installing Tracks on.

@@ -248,9 +233,8 @@ mysql> quit

later in time you can update with

-

>bundle update

+>bundle update
-

------------

Populate database

This will set up your database with the required structure to hold Tracks’ data.

go to the directory where you installed Tracks and run