doc:appunti:linux:sa:grml
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:sa:grml [2023/12/12 12:36] – [GRML 2022.11 customize USB boot] niccolo | doc: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 ''/ | + | Using the **n** key to **add a new partition** it is possible to create the ''/ |
| + | |||
| + | < | ||
| + | Command (m for help): n | ||
| + | Partition type | ||
| + | Select (default p): p | ||
| + | Partition number (3,4, default 3): | ||
| + | First sector (1751040-122879999, | ||
| + | Last sector, +/-sectors or +/ | ||
| + | </ | ||
| + | |||
| + | Select **p** (//print the partition table//) and **w** (//write table to disk and exit//) to finalize the partitioning, | ||
| < | < | ||
| Line 62: | Line 73: | ||
| * Generate an SSH RSA key running the **ssh-keygen** utility. The key will be saved into '' | * Generate an SSH RSA key running the **ssh-keygen** utility. The key will be saved into '' | ||
| - | * 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 '' | * Run and configure some programs that will save preferences into the **$HOME/**, e.g. the Midnight Commander **mc** will save its files into '' | ||
| * Create an '' | * Create an '' | ||
| Line 78: | Line 89: | ||
| < | < | ||
| mkdir / | mkdir / | ||
| - | mount /dev/sdc / | + | mount /dev/sdc3 / |
| cp -p config.tbz / | cp -p config.tbz / | ||
| + | </ | ||
| + | |||
| + | If you want to modify the **config.tbz** archive without re-creating it via the '' | ||
| + | |||
| + | <code bash> | ||
| + | mkdir config | ||
| + | cd config | ||
| + | tar jxvf ../ | ||
| + | # Do whatever you need to the extracted files... | ||
| + | mv ../ | ||
| + | tar jcvf ../ | ||
| </ | </ | ||
| Line 87: | 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/ | ||
| + | |||
| + | < | ||
| + | #!/bin/sh | ||
| + | echo "=== Execution of \" | ||
| + | loadkeys it | ||
| + | loadkeys / | ||
| + | </ | ||
| + | |||
| + | The file **/ | ||
| + | |||
| + | < | ||
| + | shift altgr keycode 26 = braceleft | ||
| + | shift altgr keycode 27 = braceright | ||
| + | </ | ||
| ====== Obsolete ====== | ====== Obsolete ====== | ||
doc/appunti/linux/sa/grml.1702380978.txt.gz · Last modified: by niccolo
