This commit is contained in:
@@ -19,7 +19,9 @@ These instructions were compiled and tested on an Ubuntu 21.10 Desktop OS howeve
|
||||
### ASP.NET Core runtime
|
||||
|
||||
AyaNova requires the ASP.NET Core runtime version 6.0 or newer.
|
||||
Install the ASP.NET CORE runtime using this guide for your specific OS [https://docs.microsoft.com/en-us/dotnet/core/install/linux](https://docs.microsoft.com/en-us/dotnet/core/install/linux)
|
||||
Install the **"ASP.NET CORE RUNTIME"** (NOT SDK VERSION) using this guide for your specific OS [https://docs.microsoft.com/en-us/dotnet/core/install/linux](https://docs.microsoft.com/en-us/dotnet/core/install/linux)
|
||||
|
||||
There are three different versions of .net core listed, be sure you select the "ASP.NET Core Runtime" version.
|
||||
|
||||
### PostgreSQL server
|
||||
|
||||
@@ -33,11 +35,19 @@ To install PostgreSQL directly start here [https://www.postgresql.org/download/l
|
||||
|
||||
If you are installing a local copy of PostgreSQL for the first time to use with AyaNova a password will need to be set for access. If you have an existing PostgreSQL server then you can skip this step but will need the Postgre server password in a later step.
|
||||
|
||||
Open the terminal (ctrl-alt-t):
|
||||
Type `sudo -u postgres psql`
|
||||
This should open a postgres psql command window
|
||||
Type `ALTER USER postgres PASSWORD 'YOUR_PASSWORD_HERE';` substituting your desired password here and be sure to make a note of it for later.
|
||||
If successful psql will display "ALTER ROLE" in response and you can close the psql terminal by typing `\q` to quit.
|
||||
Open a PostgreSQL psql console:
|
||||
|
||||
```bash
|
||||
sudo -u postgres psql
|
||||
```
|
||||
|
||||
Set your desired password:
|
||||
|
||||
```bash
|
||||
ALTER USER postgres PASSWORD 'YOUR_PASSWORD_HERE';
|
||||
```
|
||||
|
||||
If successful psql will display "ALTER ROLE" in response and you can close the psql console by typing `\q` to quit.
|
||||
|
||||
### Create folders for AyaNova
|
||||
|
||||
@@ -46,27 +56,42 @@ AyaNova requires two folders to be created, one to hold the AyaNova binary and o
|
||||
From the terminal:
|
||||
|
||||
Create the data folder, for desktop linux we recommend your user home folder and AyaNova defaults to '~/.ayanova-data' in it's configuration, however you can use any location that you have write access to.
|
||||
Type `sudo mkdir ~/.ayanova-data`
|
||||
|
||||
```bash
|
||||
sudo mkdir ~/.ayanova-data
|
||||
```
|
||||
|
||||
Create the AyaNova binary files folder. For desktop linux we recommend `/usr/bin/ayanova`.
|
||||
Type `sudo mkdir /usr/bin/ayanova`
|
||||
|
||||
```bash
|
||||
sudo mkdir /usr/bin/ayanova
|
||||
```
|
||||
|
||||
### Download the AyaNova binaries archive
|
||||
|
||||
[https://www.ayanova.com/Downloads/v8/ayanova-linux-x64-desktop.zip](https://www.ayanova.com/Downloads/v8/ayanova-linux-x64-desktop.zip)
|
||||
|
||||
Download the the AyaNova server binary files folder created in the previous step or copy it there from the terminal:
|
||||
`sudo cp ayanova-linux-x64-desktop.zip /usr/bin/ayanova/`
|
||||
|
||||
```bash
|
||||
sudo cp ayanova-linux-x64-desktop.zip /usr/bin/ayanova/
|
||||
```
|
||||
|
||||
### Unzip the archive
|
||||
|
||||
Unzip the archive into the AyaNova server binary files folder created in the previous step.
|
||||
`sudo unzip ayanova-linux-x64-desktop.zip`
|
||||
|
||||
```bash
|
||||
sudo unzip ayanova-linux-x64-desktop.zip
|
||||
```
|
||||
|
||||
### Set execute permission
|
||||
|
||||
From the terminal in the AyaNova binary files folder:
|
||||
`sudo chmod 777 ./AyaNova`
|
||||
|
||||
```bash
|
||||
sudo chmod 777 ./AyaNova
|
||||
```
|
||||
|
||||
### Server configuration
|
||||
|
||||
@@ -77,21 +102,24 @@ The AyaNova bin folder has a `config.json` file which is AyaNova's initial sourc
|
||||
```json
|
||||
{
|
||||
"AYANOVA_USE_URLS": "http://*:7575",
|
||||
"AYANOVA_DB_CONNECTION": "Server=localhost;Username=postgres;Password=mypasswordforpostgres;Database=AyaNova;",
|
||||
"AYANOVA_DB_CONNECTION": "Server=localhost;Username=postgres;Password=YOUR_PASSWORD_HERE;Database=AyaNova;",
|
||||
"AYANOVA_DEFAULT_TRANSLATION": "en",
|
||||
"AYANOVA_DATA_PATH": "~/.ayanova-data",
|
||||
"AYANOVA_LOG_LEVEL": "Info"
|
||||
}
|
||||
```
|
||||
|
||||
The `AYANOVA_DB_CONNECTION` property must be edited and where it has "mypasswordforpostgres" substitute the actual PostgreSQL password to be used that was previously set. If the database server is located on a different computer then the `Server=` connection string property must be set to the address of that computer.
|
||||
The `AYANOVA_DB_CONNECTION` property must be edited and where it has "YOUR_PASSWORD_HERE" substitute the actual PostgreSQL password to be used that was previously set. If the database server is located on a different computer then the `Server=` connection string property must be set to the address of that computer.
|
||||
|
||||
The `AYANOVA_USE_URLS` property specifies which TCP / IP Port that AyaNova server should listen on for connections from web browsers. The default value is port 7575 which should be free in most cases, however if you need to use an alternate port due to conflict it must be set here. We recommend using the default 7575 to avoid current or future confusion or conflict with other servers that may be installed or present elsewhere on the network.
|
||||
|
||||
### Boot and test AyaNova server
|
||||
|
||||
Start the server from the AyaNova bin folder in a terminal windows (ctrl-alt-t)
|
||||
`./AyaNova'
|
||||
|
||||
```bash
|
||||
./AyaNova
|
||||
```
|
||||
|
||||
You should see an output in the terminal that indicates the AyaNova server version and that it is booting. Any problems found that prevent boot up will be displayed here.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user