This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
guides:unix_basic_setup [04/07/2015 20:42] ppk |
guides:unix_basic_setup [16/08/2015 08:22] ppk PtokaX cmd line menu instead of manual xml editing... |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Basic setup ====== | ====== Basic setup ====== | ||
- | Before we run our compiled PtokaX executable we need to do at least minimal setup.\\ | + | Before we run our compiled PtokaX executable we need to do at least basic configuration.\\ |
- | In source | + | In source |
- | \\ | + | Another way is PtokaX |
- | First we rename | + | This menu can be used for first time setup and to reconfigure PtokaX. Add reg user part can be used to add additional registered users.\\ |
- | Go to cfg dir with this command: **cd cfg** | + | You can run PtokaX menu with command: **./PtokaX -m** |
- | ==== a. Minimal | + | ==== a. Basic setup ==== |
- | Open Setting.xml in text editor | + | In menu option |
- | * **a. Basic settings needed to run PtokaX is Hub Name and Hub Address** | + | In case when PtokaX is compiled |
- | * **To change hub name:**\\ Search for this line **< | + | ==== b. Complete setup ==== |
- | * **To change hub address: | + | In menu option |
- | * **b. Character encoding (required for database support)**\\ To run with database we need to have set correct character encoding. 1252 is western, 1250 is central european, 1251 is cyrillic etc. More code pages can be found on [[https:// | + | ==== c. Creating registered user. ==== |
- | * **c. To run with PostgreSQL we need to have working PostgreSQL with created database and user with password for PtokaX. Guide can be found on internet. We need to set up PtokaX to use those settings.** | + | In menu option |
- | * **When non-standard host is used:**\\ Search for this line **< | + | |
- | * **When non-standard port is used:**\\ Search for this line **< | + | |
- | * **To set database name:**\\ Search for this line **< | + | |
- | * **To set database user:**\\ Search for this line **< | + | |
- | * **To set database password: | + | |
- | * **d. To run with MySQL or MariaDB we need to have working MySQL or MariaDB | + | |
- | * **When non-standard host is used:**\\ Search for this line **< | + | |
- | * **When non-standard port is used:**\\ Search for this line **< | + | |
- | * **To set database name:**\\ Search for this line **< | + | |
- | * **To set database user:**\\ Search for this line **< | + | |
- | * **To set database password:**\\ Search | + | |
- | ==== b. Creating registered user. (Optional) | + | |
- | When we are here, it is good idea to create registered user with master account for yourself.\\ Open RegisteredUsers.xml in text editor with this command (i'm using **Vi** because is available on most Unixes preinstalled): | + | |
- | * **To set nick:**\\ Search for this line **< | + | |
- | * **To set password: | + | |
- | * **To set profile: | + |