This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| technical:programming:shell [2022/08/14 23:10] – [chroot] jc | technical:programming:shell [2025/10/11 20:24] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| <code bash> | <code bash> | ||
| - | Start a Xorg server running fluxbox on display1 vt7 | + | Start a Xorg server running fluxbox on display1 vt7. |
| <code bash> | <code bash> | ||
| - | Start a Xorg server running emacs on display2 vt8 | + | Start a Xorg server running emacs on display2 vt8. |
| <code bash> | <code bash> | ||
| + | |||
| + | Xorg Persistence When Switching VTYs | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | With Xinit | ||
| + | |||
| + | <code bash> | ||
| ===== chroot ===== | ===== chroot ===== | ||
| - | The '' | + | The **chroot** command changes the root directory. This can be useful when repairing a system in an unbootable state. |
| - | A luks encrypted volume must be decrypted before it can be mounted. The '' | + | A luks encrypted volume must be decrypted before it can be mounted. The **cryptsetup** command can be used to decrypt an luks encrypted volume. |
| - | <code bash> | + | <code bash> |
| - | Next the decrpyted volume will be mounted along with the '' | + | Next the decrpyted volume will be mounted along with the /proc, /sys, and /dev directories. |
| <code bash> | <code bash> | ||
| - | Once the volume and diretories are mounted chroot into the new root directory. | + | With the volume and directories |
| <code bash> | <code bash> | ||
| - | |||