User Tools

Site Tools


doc:appunti:linux:sa:grml

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:linux:sa:grml [2023/11/30 11:55] – [Web References] niccolodoc:appunti:linux:sa:grml [2024/01/26 18:04] (current) – [Customize the environment and save the config.tbz] niccolo
Line 15: Line 15:
   - Create the USB boot stick from the **GRML ISO image**.   - Create the USB boot stick from the **GRML ISO image**.
   - Create a **new GRMLCFG partition** into the USB stick.   - Create a **new GRMLCFG partition** into the USB stick.
-  - Customize the GRML environment at your will and create a **config.tbz**; copy the file into the new partition. +  - Customize the GRML environment at your will and create a **config.tbz**. Copy the file into the new partition. 
-  - Create a **scrits/** directory into the partition containing scripts to be run at boot.+  - Create a **scripts/** directory into the partition containing the scripts to be run at boot.
  
 ==== Create the USB stick from the ISO image ==== ==== Create the USB stick from the ISO image ====
Line 57: Line 57:
 ==== Customize the environment and save the config.tbz ==== ==== Customize the environment and save the config.tbz ====
  
-Now it is time to customize your environment; you can for example:+Now it is time to customize your environment; check the **[[https://grml.org/config/grml-autoconfig.1.html|grml-autoconfig]]** man page about the options to automatically install **Debs**, **Configuration** and **Scripts** into a freshly booted GRML environment. 
 + 
 +You can for example:
  
   * Generate an SSH RSA key running the **ssh-keygen** utility. The key will be saved into ''$HOME/.ssh/''.   * Generate an SSH RSA key running the **ssh-keygen** utility. The key will be saved into ''$HOME/.ssh/''.
Line 76: Line 78:
 <code> <code>
 mkdir /mnt/grmlcfg mkdir /mnt/grmlcfg
-mount /dev/sdc /mnt/grmlcfg+mount /dev/sdc3 /mnt/grmlcfg
 cp -p config.tbz /mnt/grmlcfg cp -p config.tbz /mnt/grmlcfg
 +</code>
 +
 +If you want to modify the **config.tbz** archive without re-creating it via the ''save-config'' command, you can extract the archive and then re-create it:
 +
 +<code bash>
 +mkdir config
 +cd config
 +tar jxvf ../config.tbz
 +# Do whatever you need to the extracted files...
 +mv ../config.tbz ../config.bak.tbz
 +tar jcvf ../config.tbz *
 </code> </code>
  
Line 101: Line 114:
  
 La partizione VFAT quando il sistema live è avviato, risulta accessibile sotto **''/lib/live/mount/medium/''**. La partizione VFAT quando il sistema live è avviato, risulta accessibile sotto **''/lib/live/mount/medium/''**.
- 
-FIXME (Verificare se funziona davvero) Se nella chiavetta USB contenente GRML si crea un archivio **''config.tbz''**, questo verrà scompattato subito dopo l'avvio a partire dalla directory radice. L'archivio deve essere un **//grml configuration archive//**, abbreviato GCA. 
- 
-FIXME (Verificare se funziona davvero) dopo l'autoconfigurazione viene eventualmente eseguito lo script **''DCSDIR/scrips/grml.sh''**. Vedere il paragrafo [[http://grml.org/config/grml-autoconfig.1.html|Determination of DCS directory]], dovrebbe trattarsi comunque della directory radice della partizione VFAT. 
  
 La via più comoda di avere una GRML personalizzata è passare il parametro **''netconfig=server/archivio.tar.bz2''** al boot prompt. L'archivio viene scompattato subito dopo l'avvio a partire dalla directory radice, ovviamente è necessario che la macchina abbia accesso alla rete. La via più comoda di avere una GRML personalizzata è passare il parametro **''netconfig=server/archivio.tar.bz2''** al boot prompt. L'archivio viene scompattato subito dopo l'avvio a partire dalla directory radice, ovviamente è necessario che la macchina abbia accesso alla rete.
Line 145: Line 154:
  
   * [[https://grml.org/online-docs/grml-config.html|grml-config]]   * [[https://grml.org/online-docs/grml-config.html|grml-config]]
 +  * [[https://grml.org/config/grml-autoconfig.1.html|grml-autoconfig]]
   * [[http://grml.org/cheatcodes/|CHEATCODES AND HINTS FOR GRML]]   * [[http://grml.org/cheatcodes/|CHEATCODES AND HINTS FOR GRML]]
  
doc/appunti/linux/sa/grml.1701341746.txt.gz · Last modified: 2023/11/30 11:55 by niccolo