| 1 | [[TranslatedPages]] |
| 2 | [[TOC]] |
| 3 | |
| 4 | |
| 5 | == Modificaciones al cliente == |
| 6 | |
| 7 | === Pasos previos: === |
| 8 | {{{ |
| 9 | mkdir -p /tmp/opengnsys_installer/opengnsys/client/boot-tools; |
| 10 | svn checkout http://www.opengnsys.es/svn/trunk/client/boot-tools /tmp/opengnsys_installer/opengnsys/client/boot-tools; |
| 11 | source /tmp/opengnsys_installer/opengnsys/client/boot-tools/ogClientManager.lib |
| 12 | }}} |
| 13 | |
| 14 | |
| 15 | === Generar un nuevo initrd, con nuestras "locales", y almacenarlos en el /opt/opengnsys/tftpboot/ogclient/ === |
| 16 | {{{ |
| 17 | #Solicitamos que se monte el sistema root (img), y configuere los locales. |
| 18 | schroot -c IMGogclient -- /root/ReconfigureLocales.sh |
| 19 | #Solicitamos que se monte el sistema root (img), y cree el initrd y el kernel |
| 20 | ogClientInitrd host |
| 21 | #almacenara el kernel y el initrd en /var/lib/tftpboot/ogclient/{ogvmlinuz oginitrd.img} |
| 22 | }}} |
| 23 | |
| 24 | |
| 25 | === Copiar nuevos archivos al sistema raiz del cliente (ogclient.img) === |
| 26 | |
| 27 | Cualquier archivo extra, que queramos añadir al sistema raiz del cliente, tenemos el directorio /tmp compartido entre el SO y el ogclient. |
| 28 | {{{ |
| 29 | #Accedemos a la consola shell del sistema root del cliente (img) |
| 30 | schroot -c IMGogclient |
| 31 | #Realizamos todas las modificaciones que queramos. el directorio /tmp es compartido tanto por nuestro ordenador, como por el sistema root del cliente (img) |
| 32 | cp /tmp/ficheroOGSERVER.txt /home/opengnsys/ficheroEnOGclient.txt |
| 33 | # Salimos del sistema root del cliente (img) |
| 34 | exit |
| 35 | }}} |
| 36 | |
| 37 | |
| 38 | === Generar un nuevo initrd, con un nuevo proceso de inicio de OpenGnsys === |
| 39 | {{{ |
| 40 | schroot -c IMGogclient |
| 41 | #editamos el proceso de inicio |
| 42 | vi /etc/initramfs-tools/scripts/oginit |
| 43 | #editamos las funciones del proceso de inicio |
| 44 | vi /initramfs-tools/scripts/ogfunctions |
| 45 | # o copiamos uno actualizado. |
| 46 | cp /tmp/oginit /etc/initramfs-tools/scripts/oginit |
| 47 | # o añadimos uno inicio alternativo |
| 48 | cp /tmp/oginit2 /etc/initramfs-tools/scripts/oginit2 |
| 49 | |
| 50 | exit |
| 51 | |
| 52 | ogClientInitrd host |
| 53 | |
| 54 | |
| 55 | }}} |
| 56 | |
| 57 | |
| 58 | |
| 59 | === Instalar nuevas herramientas en el sistema raiz del (ogclient.img) === |
| 60 | |
| 61 | {{{ |
| 62 | schroot -c IMGogclient |
| 63 | apt-get install python3 |
| 64 | exit |
| 65 | }}} |
| 66 | |
| 67 | |
| 68 | === Generar un nuevo sistema raiz en formato sqfs (ogclient.sqfs) === |
| 69 | {{{ |
| 70 | ogClient2ndSqfs IMGogclient |
| 71 | }}} |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | === Integrar drivers de tarjetas de red === |
| 77 | http://www.opengnsys.es/wiki/InitrdClienteNetModules |
| 78 | |