Changes between Version 2 and Version 3 of Version2/Instalacion


Ignore:
Timestamp:
Sep 2, 2010, 2:53:25 PM (15 years ago)
Author:
adelcastillo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Version2/Instalacion

    v2 v3  
    6363}}}
    6464
    65 Note that any port less than 1024 will need superuser privileged to be executed.
     65Note that any port less than 1024 will need superuser privileged to be executed. But we're not done here yet: we also need to execute the server daemon, which receives jobs messages from clients and repositories. This daemon operates by default at port 1101, but this can be configured in the config.py using the variable '''server_daemon_port''':
     66
     67{{{
     68./daemon.py
     69}}}
     70
     71
     72= Opengnsys Client =
     73
     74At the moment the support for clients is not finished and is considered experimental. The Opengnsys client, which act as more-than-a-bootloader, is called '''Gnsyslive'''. In this stage of the development it lacks support for the on screen bootloader and it's just a stripped down Ubuntu which runs the Opengnsys client daemon, to which the server can connect to and execute commands.
     75
     76
     77== Dependencies ==
     78
     79We use Debian's live-helper scripts. Debian Live is available for as deb packages in [http://live.debian.net/], but we recommend using latest git development version, compiling it manually. To do so, install git in your system ('''apt-get install git-core''' in Debian/Ubuntu or '''pacman -S git''' in Arch Linux) and then execute the following commands:
     80
     81{{{
     82git clone git://live.debian.net/git/live-boot.git
     83cd live-boot
     84sudo make install
     85cd ..
     86git clone git://live.debian.net/git/live-build.git
     87cd live-build
     88sudo make install
     89cd ..
     90git clone git://live.debian.net/git/live-config.git
     91cd live-config
     92sudo make install
     93}}}
     94
     95== Generating gnsyslive ==
     96
     97At the moment we're not dealing with repositories for serving the opengnsys client to the clients, so what we recommend is just booting the Gnsyslive ISO  image in the client. We need to generate the image first. This is done by executing the following script (it might take a while):
     98
     99{{{
     100cd opengnsys/live/
     101sudo ./gnsyslive.sh
     102}}}
     103
     104This will create a directory in '''/srv/gnsys-live-helper/''' containing the image binary.iso you need to boot in the client. For testing purposes, we recommend using VirtualBox, so you just need to create a new VirtualBox machine that boots the binary.iso image from CD-ROM. It should have at least 64Mb of memory to work fine.
     105
     106== Network configuration ==
     107
     108We recommend to use a Virtualbox host-only network (typically called '''vboxnet0''') connecting the client and the daemon. In order to do that, you need to configure the VirtualBox machine and in the Network Card 0 settings set the mode to "host-only". Then boot the binary.iso, and either check the IP address the client receives from VirtualBox DHCP server or change it manually. It usually receives the IP address '''192.168.56.101''' for the first client. You should set that IP address of the test client in the server fill_data.py:
     109
     110{{{
     111fresa.ip = '192.168.56.101'
     112}}}
     113
     114Also, you need to edit the config.py of the client daemon and set the ip address of the server. Usually VirtualBox configures the vboxnet0 interface in the host machine (the server) with the '''192.168.56.1''' IP address. Edit /usr/local/opengnsys/client_daemon/config.py in the running gnsyslive machine and set:
     115
     116{{{
     117server_daemon_ip = '192.168.56.1'
     118}}}
     119
     120Then of course you need to restart the client_daemon:
     121
     122{{{
     123sudo -s killall python && sudo /etc/init.d/opengnsys_client start
     124}}}