Platform Team/Sugar Network/Implementation: Difference between revisions

Line 121: Line 121:
== Usage ==
== Usage ==


Assume we have two hosts, ''Node'' and ''Client'' (it might be the same real host though). ''Node'' host will be a Sugar Network node server. ''Client'' will be user's side with running Sugar Network ready Sugar Shell to connect to the ''Node''. [[Sweets_Distribution#Add_repository|Attach]] ''Factory'' [[Sweets Distribution]] repository on both hosts.
Assume we have two hosts, ''Node'' and ''Client'' (it might be the same real host though). ''Node'' host will be a Sugar Network server. The ''Client'' side will run Sugar Network integrated Sugar session to connect to the ''Node''. [[Sweets_Distribution#Add_repository|Attach]] ''Factory'' [[Sweets Distribution]] repository on both hosts.


On the ''Node'' side:
On the ''Node'' side:


* Install {{Code|sugar-network}} package;
* Install {{Code|sugar-network}} package;
* Populate {{Code|/etc/sugar-network/config}} configuration file with the following content:
* Populate the {{Code|/etc/sugar-network/config}} configuration file with the following content:


  [node]
  [node]
Line 138: Line 138:
* Install {{Code|sweets-desktop}} package;
* Install {{Code|sweets-desktop}} package;


* Point ''Client'' to newly launched ''Node'' (you all time can point ''Client'' to [[Platform_Team/Sugar_Network/API#API_servers|public servers]]) in the {{Code|/etc/sweets.conf}} configuration file:
* Point ''Client'' to the newly launched ''Node'' (you all time can use one of [[Platform_Team/Sugar_Network/API#API_servers|public servers]]) in the {{Code|/etc/sweets.conf}} configuration file:


  [client]
  [client]
  api-url = http://''NODE-HOST-HERE'':8000
  api-url = http://''NODE-HOST-HERE'':8000


* Choose ''Sweets Distribution'' login session or run Sugar in a window using the {{Code|sweets-sugar-emulator}} command;
* Choose ''Sweets Distribution'' desktop session, or, run Sugar in a window using the {{Code|sweets-sugar-emulator}} command;


* [[Platform_Team/Sweets_Distribution/Factory/Features#Sugar_Network_integration|Enable]] Sugar Network integration in the Shell;
* [[Platform_Team/Sweets_Distribution/Factory/Features#Sugar_Network_integration|Enable]] Sugar Network integration in the Sugar Shell;


* Open [[Platform_Team/Sugar_Network/Web_UI|Web UI]] by pressing ''F8'' key;
* Open [[Platform_Team/Sugar_Network/Web_UI|Web UI]] by pressing ''F8'' key;