PtokaX wiki

Hub (server) for Direct Connect

User Tools

Site Tools


guides:unix_mysql_maria_basic_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
guides:unix_mysql_maria_basic_setup [02/07/2015 17:41] – Text editor info... ppkguides:unix_mysql_maria_basic_setup [02/07/2015 19:01] ppk
Line 6: Line 6:
 Go to cfg dir with this command: **cd cfg** Go to cfg dir with this command: **cd cfg**
 ==== a. Minimal settings ==== ==== a. Minimal settings ====
-To be able to run PtokaX we need to set at least hub name and hub address.\\ Open Setting.xml in text editor with this command (you can use any other text editor instead of **VIM**, for example **ee** which is in default installation on FreeBSD): **vim Settings.xml**\\+To be able to run PtokaX we need to set at least hub name and hub address.\\ Open Setting.xml in text editor with this command (you can use any other text editor instead of **VIM**, for example **ee** on FreeBSD or **vi** on CentOS): **vim Settings.xml**\\
   * **To change hub name:**\\ Search for this line **<String Name="HubName">&lt;Enter hub name here&gt;</String><!-- Hub name. Min length 1, max 256. -->** and change **&lt;Enter hub name here&gt;** to name of new hub.\\ Result can look like this: **<String Name="HubName">My first PtokaX hub</String><!-- Hub name. Min length 1, max 256. -->**   * **To change hub name:**\\ Search for this line **<String Name="HubName">&lt;Enter hub name here&gt;</String><!-- Hub name. Min length 1, max 256. -->** and change **&lt;Enter hub name here&gt;** to name of new hub.\\ Result can look like this: **<String Name="HubName">My first PtokaX hub</String><!-- Hub name. Min length 1, max 256. -->**
   * **To change hub address:**\\ Search for this line **<String Name="HubAddress">&lt;Enter hub address here&gt;</String><!-- Hub address. Min length 1, max 256. -->** and change **&lt;Enter hub address here&gt;** to address of new hub.\\ Result can look like this: **<String Name="HubAddress">some-address.some-domain.eu</String><!-- Hub address. Min length 1, max 256. -->**   * **To change hub address:**\\ Search for this line **<String Name="HubAddress">&lt;Enter hub address here&gt;</String><!-- Hub address. Min length 1, max 256. -->** and change **&lt;Enter hub address here&gt;** to address of new hub.\\ Result can look like this: **<String Name="HubAddress">some-address.some-domain.eu</String><!-- Hub address. Min length 1, max 256. -->**
Line 20: Line 20:
   * **To set database password:**\\ Search for this line **<String Name="MySQLPass"></String>** and insert your database password.\\ Result can look like this: **<String Name="MySQLPass">my_ptokax_db_password</String>**   * **To set database password:**\\ Search for this line **<String Name="MySQLPass"></String>** and insert your database password.\\ Result can look like this: **<String Name="MySQLPass">my_ptokax_db_password</String>**
 ==== d. Creating registered user. (Optional) ==== ==== d. 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 (you can use any other text editor instead of **VIM**, for example **ee** which is in default installation on FreeBSD): **vim RegisteredUsers.xml**\\+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 (you can use any other text editor instead of **VIM**, for example **ee** on FreeBSD or **vi** on CentOS): **vim RegisteredUsers.xml**\\
   * **To set nick:**\\ Search for this line **<Nick>Example_Nick</Nick>** and change **Example_Nick** to your nick.\\ Result can look like this: **<Nick>MyNick</Nick>**   * **To set nick:**\\ Search for this line **<Nick>Example_Nick</Nick>** and change **Example_Nick** to your nick.\\ Result can look like this: **<Nick>MyNick</Nick>**
   * **To set password:**\\ Search for this line **<Password>Example_Password</Password>** and change **Example_Password** to your password.\\ Result can look like this: **<Password>MyPassword</Password>**   * **To set password:**\\ Search for this line **<Password>Example_Password</Password>** and change **Example_Password** to your password.\\ Result can look like this: **<Password>MyPassword</Password>**
   * **To set profile:**\\ Search for this line **<Profile>3</Profile><!-- 0 for master, 1 for operator, 2 for vip, 3 for reg -->** and change **3** to your profile.\\ Result can look like this: **<Profile>0</Profile><!-- 0 for master, 1 for operator, 2 for vip, 3 for reg -->**   * **To set profile:**\\ Search for this line **<Profile>3</Profile><!-- 0 for master, 1 for operator, 2 for vip, 3 for reg -->** and change **3** to your profile.\\ Result can look like this: **<Profile>0</Profile><!-- 0 for master, 1 for operator, 2 for vip, 3 for reg -->**