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/12/12 12:45] – [Customize the environment and save the config.tbz] niccolodoc:appunti:linux:sa:grml [2025/10/03 16:51] (current) – [Add scripts and other files to the USB] niccolo
Line 38: Line 38:
 The option **%%--wipe never%%** is required because the device contains an **iso9660 signature** that otherwise will be removed by the write command. The option **%%--wipe never%%** is required because the device contains an **iso9660 signature** that otherwise will be removed by the write command.
  
-Using the **n** key to **add a new partition** it is possible to create the ''/dev/sdc3'' partition, which I decided to size at 5 Gb. Select **p** (//print the partition table//) and **w** (//write table to disk and exit//) to finalize the partitioning, using the following schema as a reference:+Using the **n** key to **add a new partition** it is possible to create the ''/dev/sdc3'' partition, which I decided to size at 5 Gb. 
 + 
 +<code> 
 +Command (m for help): n 
 +Partition type 
 +Select (default p): p 
 +Partition number (3,4, default 3): 
 +First sector (1751040-122879999, default 1751040): 
 +Last sector, +/-sectors or +/-size{K,M,G,T,P} (1751040-122879999, default 122879999): +5G 
 +</code> 
 + 
 +Select **p** (//print the partition table//) and **w** (//write table to disk and exit//) to finalize the partitioning, using the following schema as a reference:
  
 <code> <code>
Line 62: Line 73:
  
   * 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/''.
-  * Customize the shell by editing the **$HOME/.zsrc** file, e.g. by adding alias commands, customizing the **PATH** or other environment variables. etc.+  * Customize the shell by editing the **$HOME/.zshrc** file, e.g. by adding alias commands, customizing the **PATH** or other environment variables. etc.
   * Run and configure some programs that will save preferences into the **$HOME/**, e.g. the Midnight Commander **mc** will save its files into ''$HOME/.config/mc/''.   * Run and configure some programs that will save preferences into the **$HOME/**, e.g. the Midnight Commander **mc** will save its files into ''$HOME/.config/mc/''.
   * Create an ''$HOME/config/'' directory and place what you want in it. You will find that directory again at the next boot.   * Create an ''$HOME/config/'' directory and place what you want in it. You will find that directory again at the next boot.
Line 78: Line 89:
 <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> </code>
Line 98: Line 109:
  
 You can place also files into the partition, so e.g. you can install additional deb packages on-the-fly. You can place also files into the partition, so e.g. you can install additional deb packages on-the-fly.
 +
 +Here it is an example of script named **scripts/grml.sh** placed into the GRMLCFG partition to load the Italian keymap and to configure the keys to get braces:
 +
 +<code>
 +#!/bin/sh
 +echo "=== Execution of \"$0\" ==="
 +loadkeys it
 +loadkeys /root/config/custom-key.map
 +</code>
 +
 +The file **/root/config/custom-key.map** contains:
 +
 +<file>
 +shift altgr keycode 26 = braceleft
 +shift altgr keycode 27 = braceright
 +</file>
  
 ====== Obsolete ====== ====== Obsolete ======
doc/appunti/linux/sa/grml.1702381500.txt.gz · Last modified: by niccolo