Changes between Initial Version and Version 1 of Version2/Instalacion


Ignore:
Timestamp:
Sep 2, 2010, 4:06:26 PM (14 years ago)
Author:
adelcastillo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Version2/Instalacion

    v1 v1  
     1= Introduction =
     2
     3Opengnsys is a free software application for managing and deploy operative systems. Opengnsys is made up of various components: the server, the clients and the repositories. See the [wiki:Version2#Architecture architecture page] for more details. This documents details the installation , configuration and deployment of the different services running in those three components.
     4
     5= Opengnsys Server =
     6
     7The server runs two services: the  administration web interface, and the server daemon. Both are written in Python and using web.py, sharing a database they use for persistence and as communication channel between them.
     8
     9== Dependencies ==
     10
     11You need to execute Opengnsys server services (the '''admin interface''' and the '''daemon''') in a UNIX-like operative system as Linux. By default we use Sqlite as the database backend, but you can use any other databases that web.py and Sqlalchemy frameworks support.
     12
     13== Arch Linux ==
     14
     15To install the dependencies of Opengnsys server services in Arch Linux, execute as root:
     16
     17{{{
     18pacman -S community/python-sqlalchemy python-pip python-ldap
     19easy_install wsgilog
     20pip install formalchemy
     21}}}
     22
     23== Debian / Ubuntu ==
     24
     25To install the dependencies of Opengnsys web interface in Debian or Ubuntu, execute as root:
     26
     27{{{
     28apt-get install python-sqlalchemy python-pip python-ldap
     29easy_install wsgilog
     30pip install formalchemy
     31}}}
     32
     33== Setup ==
     34
     35The server services use a database for persistence. By default it uses an Sqlite database, but you can change the configuration of the database editing the file config.py. After doing this, you have to execute the setup script which creates the tables in the database and generates the translations for the supported languages.
     36
     37In order to know how to configure the database using mysql, postgres, oracle orany other database we support, take a look at [http://www.sqlalchemy.org/docs/05/dbengine.html#create-engine-url-arguments]
     38
     39Execute the setup script:
     40
     41{{{
     42./setup.sh
     43}}}
     44
     45== SSL Setup ==
     46
     47Opengnsys uses secure connections between server, repositories and clients. This is done using SSL certificates certified by a CA (Certificate Authority). Note that it only checks that the certificate is valid and the certificate is trusted. You can see in ssslsockets_example how to create your own CA, create certificates and sign them. Across the Opengnsys platform, the SSL connections are always verified on both ends: both the client and the server.
     48
     49You can configure in the config file (config.py) the path to the private key of the server certificate, the path to the public key, and the path to the public key of the CA certificate. By default we include example files for each of them in the web/ssl directory, and those are the files configured to be used in the default config file. This is done for convenience, but if you want security you should create/use your own.
     50
     51== Launch the server ==
     52
     53To execute the web interface, execute:
     54
     55        $ ./admin.py
     56
     57The web server will be launched at http://localhost:8080. If you want to launch the server at a different port, use:
     58
     59        $ ./admin.py <port>
     60
     61Note that any port less than 1024 will need superuser privileged to be executed.