65 | | Note that any port less than 1024 will need superuser privileged to be executed. |
| 65 | Note 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 | |
| 74 | At 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 | |
| 79 | We 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 | {{{ |
| 82 | git clone git://live.debian.net/git/live-boot.git |
| 83 | cd live-boot |
| 84 | sudo make install |
| 85 | cd .. |
| 86 | git clone git://live.debian.net/git/live-build.git |
| 87 | cd live-build |
| 88 | sudo make install |
| 89 | cd .. |
| 90 | git clone git://live.debian.net/git/live-config.git |
| 91 | cd live-config |
| 92 | sudo make install |
| 93 | }}} |
| 94 | |
| 95 | == Generating gnsyslive == |
| 96 | |
| 97 | At 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 | {{{ |
| 100 | cd opengnsys/live/ |
| 101 | sudo ./gnsyslive.sh |
| 102 | }}} |
| 103 | |
| 104 | This 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 | |
| 108 | We 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 | {{{ |
| 111 | fresa.ip = '192.168.56.101' |
| 112 | }}} |
| 113 | |
| 114 | Also, 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 | {{{ |
| 117 | server_daemon_ip = '192.168.56.1' |
| 118 | }}} |
| 119 | |
| 120 | Then of course you need to restart the client_daemon: |
| 121 | |
| 122 | {{{ |
| 123 | sudo -s killall python && sudo /etc/init.d/opengnsys_client start |
| 124 | }}} |