Changes

Line 121: Line 121:  
== Usage ==
 
== Usage ==
   −
Install ''sugar-network'' package from the Factory repository from [[Sweets Distribution]] or checkout sources from [http://git.sugarlabs.org/network Gitorious]:
+
Assume we have two hosts, ''Node'' and ''Client'' (it might be the same host as well). ''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.
 +
 
 +
On the ''Node'' side:
 +
 
 +
* Install {{Code|sugar-network}} package;
 +
* Populate {{Code|/etc/sugar-network/config}} configuration file with the following content:
 +
 
 +
[node]
 +
host = 0.0.0.0
 +
port = 8000
 +
 
 +
* Run node server using the {{Code|sugar-network-node start}} command;
 +
 
 +
On the ''Client'' side:
 +
 
 +
* 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:
 +
 
 +
[client]
 +
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;
 +
 
 +
* [[Platform_Team/Sweets_Distribution/Factory/Features#Sugar_Network_integration|Enable]] Sugar Network integration in the Shell;
 +
 
 +
* Open [[Platform_Team/Sugar_Network/Web_UI|Web UI]] by pressing ''F8'' key;
 +
 
 +
* Find [[Sugar_Network/Contributor_Hub|Contributor Hub]] in the Web UI and launch it.
 +
 
 +
== Sources ==
 +
 
 +
Clone sources from Git repository:
    
  git clone git://git.sugarlabs.org/network/network.git --recurse-submodules
 
  git clone git://git.sugarlabs.org/network/network.git --recurse-submodules