Changeset - 798277dcf5b9
[Not reviewed]
0 1 1
HanzZ - 13 years ago 2012-11-29 14:35:01
hanzz.k@gmail.com
Docs
2 files changed with 55 insertions and 3 deletions:
0 comments (0 inline, 0 general)
css/style.css
Show inline comments
 
@@ -148,205 +148,205 @@ strong {
 
  font-weight: bold;
 
}
 

	
 
img {
 
  position: relative;
 
  margin: 0 auto;
 
  max-width: 739px;
 
  padding: 5px;
 
  margin: 10px 0 10px 0;
 
  border: 1px solid #ebebeb;
 

	
 
  box-shadow: 0 0 5px #ebebeb;
 
  -webkit-box-shadow: 0 0 5px #ebebeb;
 
  -moz-box-shadow: 0 0 5px #ebebeb;
 
  -o-box-shadow: 0 0 5px #ebebeb;
 
  -ms-box-shadow: 0 0 5px #ebebeb;
 
}
 

	
 
pre, code {
 
  width: 100%;
 
  color: #222;
 
  background-color: #fff;
 

	
 
  font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
 
  font-size: 14px;
 

	
 
  border-radius: 2px;
 
  -moz-border-radius: 2px;
 
  -webkit-border-radius: 2px;
 

	
 

	
 

	
 
}
 

	
 
pre {
 
  width: 100%;
 
  padding: 10px;
 
  box-shadow: 0 0 10px rgba(0,0,0,.1);
 
  overflow: auto;
 
}
 

	
 
code {
 
  padding: 3px;
 
  margin: 0 3px;
 
  box-shadow: 0 0 10px rgba(0,0,0,.1);
 
}
 

	
 
pre code {
 
  display: block;
 
  box-shadow: none;
 
}
 

	
 
blockquote {
 
  color: #666;
 
  margin-bottom: 20px;
 
  padding: 0 0 0 20px;
 
  border-left: 3px solid #bbb;
 
}
 

	
 
ul, ol, dl {
 
  margin-bottom: 15px
 
}
 

	
 
ul li {
 
  list-style: inside;
 
  padding-left: 20px;
 
}
 

	
 
ol li {
 
  list-style: decimal inside;
 
  padding-left: 20px;
 
}
 

	
 
dl dt {
 
  font-weight: bold;
 
}
 

	
 
dl dd {
 
  padding-left: 20px;
 
  font-style: italic;
 
}
 

	
 
dl p {
 
  padding-left: 20px;
 
  font-style: italic;
 
}
 

	
 
hr {
 
  height: 1px;
 
  margin-bottom: 5px;
 
  border: none;
 
  background: url('../images/bg_hr.png') repeat-x center;
 
}
 

	
 
table {
 
  border: 1px solid #373737;
 
  margin-bottom: 20px;
 
  margin-bottom: 10px;
 
  text-align: left;
 
 }
 

	
 
th {
 
  font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
 
  padding: 10px;
 
  padding: 5px;
 
  background: #373737;
 
  color: #fff;
 
 }
 

	
 
td {
 
  padding: 10px;
 
  padding: 3px;
 
  border: 1px solid #373737;
 
 }
 

	
 
form {
 
  background: #f2f2f2;
 
  padding: 20px;
 
}
 

	
 
img {
 
  width: 100%;
 
  max-width: 100%;
 
}
 

	
 
/*******************************************************************************
 
Full-Width Styles
 
*******************************************************************************/
 

	
 
.outer {
 
  width: 100%;
 
}
 

	
 
.inner {
 
  position: relative;
 
  max-width: 640px;
 
  padding: 20px 10px;
 
  margin: 0 auto;
 
}
 

	
 
#forkme_banner {
 
  display: block;
 
  position: absolute;
 
  top:0;
 
  right: 10px;
 
  z-index: 10;
 
  padding: 10px 50px 10px 10px;
 
  color: #fff;
 
  background: url('../images/blacktocat.png') #0090ff no-repeat 95% 50%;
 
  font-weight: 700;
 
  box-shadow: 0 0 10px rgba(0,0,0,.5);
 
  border-bottom-left-radius: 2px;
 
  border-bottom-right-radius: 2px;
 
}
 

	
 
#header_wrap {
 
  background: #212121;
 
  background: -moz-linear-gradient(top, #373737, #212121);
 
  background: -webkit-linear-gradient(top, #373737, #212121);
 
  background: -ms-linear-gradient(top, #373737, #212121);
 
  background: -o-linear-gradient(top, #373737, #212121);
 
  background: linear-gradient(top, #373737, #212121);
 
}
 

	
 
#header_wrap .inner {
 
  padding: 50px 10px 30px 10px;
 
}
 

	
 
#project_title {
 
  margin: 0;
 
  color: #fff;
 
  font-size: 42px;
 
  font-weight: 700;
 
  text-shadow: #111 0px 0px 10px;
 
}
 

	
 
#project_tagline {
 
  color: #fff;
 
  font-size: 24px;
 
  font-weight: 300;
 
  background: none;
 
  text-shadow: #111 0px 0px 10px;
 
}
 

	
 
#downloads {
 
  position: absolute;
 
  width: 210px;
 
  z-index: 10;
 
  bottom: -40px;
 
  right: 0;
 
  height: 70px;
 
  background: url('../images/icon_download.png') no-repeat 0% 90%;
 
}
 

	
 
#menu {
 
  position: absolute;
 
  width: 100%;
 
  z-index: 10;
 
  bottom: -20px;
 
  left: 0;
 
  height: 35px;
 
}
 

	
 
.menuitem {
 
	margin:0;
 
	margin-right:7px;
 
	color:white;
 
	padding:10px;
documentation/tutorials/gateway_mode.md
Show inline comments
 
new file 100644
 
---
 
layout: page
 
title: Spectrum 2
 
---
 

	
 
### Before you start
 

	
 
* Check that you really want to run Spectrum 2 in gateway mode and not in server mode. The difference is documentation on [What is Spectrum 2](about.html) page.
 
* Install Spectrum 2.  Installation is covered in [Installation section on the main page](index.html).
 

	
 
### Configure your XMPP server
 

	
 
XMPP server configuration is addressed on [Configure XMPP server page](configure_xmpp_server.html).
 

	
 
### Configure Spectrum 2
 

	
 
Default config file is located at `/etc/spectrum2/transports/spectrum.cfg.example`. To successfully connect Spectrum 2 to your server, change the following options in the following categories and remove the .example suffix (you can name the file as you want, but it has to have .cfg suffix):
 

	
 
Category|Option|Change to value|Meaning
 
--------|------|---------------|--------
 
service|server_mode|0| Spectrum 2 will act as gateway.
 
service|jid|Jabber ID of your Spectrum 2 transport|You have configured the Jabber ID in your Jabber server config file in previous step.
 
service|password|Password to connect the Jabber server|You have configured the password in your Jabber server config file in previous step.
 
service|server|Your Jabber server IP od hostname|Spectrum 2 will connect that IP/hostname.
 
service|port|Jabber server port to which Spectrum 2 connects|You have configured the port in your Jabber server config file in previous step.
 

	
 
All config options with description are located at [Config file page](config_file.html).
 

	
 
#### Choose the Spectrum 2 backend and legacy network
 

	
 
You have to choose the Spectrum 2 backend and legacy network to which this Spectrum 2 gateway will connect the users.
 

	
 
The default backend is [Libpurple backend](backends/libpurple.html). Read the [Libpurple backend documentation](backends/libpurple.html) to see how to choose particular legacy network. If you want to use different backend, change the path to it according to [List of backends](backends.html).
 

	
 
#### Choose the storage backend
 

	
 
Category| Option| Change to value| Meaning
 
-|-|-|-
 
database|type|sqlite3|Spectrum 2 will use SQLite3 as storage backend
 

	
 
You can also use [MySQL](mysql.html) or [PostgreSQL](postgresql.html) instead of SQLite3 backend.
 

	
 
### Start Spectrum 2
 

	
 
The following command should now start your first Spectrum 2 instance:
 

	
 
	spectrum2_manager start
 

	
 

	
 
### If something goes wrong
 

	
 
Spectrum 2 logs important messages into `/var/log/spectrum2/<jabber_id>/spectrum2.log`. It's always good to check that log if something goes wrong.
0 comments (0 inline, 0 general)