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