### YAML Configuration Example: Defaults Source: https://www.system-rescue.org/manual/Configuring_SystemRescue This is an example of a default configuration file. Ensure correct YAML syntax with colons and indentation. ```yaml --- global: nofirewall: false dovnc: false setkmap: "fr-latin1" ``` -------------------------------- ### Get Information About a Package Source: https://www.system-rescue.org/manual/Installing_packages_with_pacman To view details about a package before installing it, use this command. It displays information such as version, dependencies, and description. ```bash pacman -Si ``` -------------------------------- ### SystemRescue YAML Configuration Example Source: https://www.system-rescue.org/manual/Configuring_SystemRescue This example demonstrates a SystemRescue YAML configuration file with entries in global, autorun, and sysconfig scopes. It shows how to enable options like copytoram, checksum, and dostartx, configure keyboard layout, and set custom certificates. ```yaml --- global: copytoram: true checksum: true nofirewall: false loadsrm: false late_load_srm: "https://example.com/myconfig.srm" setkmap: "fr-latin1" dostartx: true dovnc: false rootshell: "/bin/bash" rootcryptpass: "$6$Y.AolXkpG/Js2Zqx$z7J893qtB7jKn3z39ucbgvpkJ6wTrJ8N0CBVr5cJ.uXugGTMTSjMI7qsSTu4UTFGGKpGyEG/BnYNRE6oZFO4b0" rootpass: "MyRootPassword123" vncpass: "MyVncPassword456" autorun: ar_disable: false ar_nowait: false ar_nodel: false ar_attempts: 1 ar_ignorefail: false ar_suffixes: "0,1,2,3,4,5" autoterminal: tty2: "/usr/bin/tmux" sysconfig: ca-trust: example-ca: | -----BEGIN CERTIFICATE----- MIIDlTCCAn2gAwIBAgIUbB4K7H53E3spHfMtSb0To+Fyb3wwDQYJKoZIhvcNAQEL BQAwWjELMAkGA1UEBhMCWFgxFTATBgNVBAcMDERlZmF1bHQgQ2l0eTEcMBoGA1UE [...] VtbLuXNBNjfcAk1xqTb1j9dMeHDZKV4Imr0W3qfsHnWFqihxGyKJ79Qb2bL1Kquc vgI/6+yHyDlw -----END CERTIFICATE----- ``` -------------------------------- ### YAML Configuration Example: Overriding Options Source: https://www.system-rescue.org/manual/Configuring_SystemRescue This example shows how to override default settings. Note that an empty value for `setkmap` will remove the configuration entry. ```yaml --- global: nofirewall: true setkmap: ``` -------------------------------- ### Example fsarchiver probe output Source: https://www.system-rescue.org/manual/Backup_data_from_an_unbootable_windows_computer This is an example output from the `fsarchiver probe -v` command, showing how disks and partitions are identified. The first column lists the device names needed to access your data. ```text root@sysresccd /root % fsarchiver probe -v [=====DEVICE=====] [==FILESYS==] [=====LABEL=====] [====SIZE====] [MAJ] [MIN] [/dev/sda1 ] [ntfs ] [Windows-XP ] [ 25.00 GB] [ 8] [ 1] [/dev/sda5 ] [ntfs ] [Data ] [ 120.00 GB] [ 8] [ 5] [/dev/sda6 ] [ntfs ] [Backup ] [ 70.00 GB] [ 8] [ 6] ``` -------------------------------- ### Start graphical environment Source: https://www.system-rescue.org/manual/Starting_to_use_the_system Launch the graphical environment from the console. This command is required to use graphical tools like GParted. ```bash startx ``` -------------------------------- ### Start SSH server Source: https://www.system-rescue.org/manual/Starting_to_use_the_system Start the SSH daemon to enable remote root login. This command is useful for setting up remote access to the system. ```bash systemctl start sshd ``` -------------------------------- ### Install a local package file Source: https://www.system-rescue.org/manual/Installing_packages_from_AUR After building an AUR package, it is saved as a *.pkg.tar.zst file. Use this command with pacman to install the local package file. ```bash pacman -U ``` -------------------------------- ### Install a Package with Pacman Source: https://www.system-rescue.org/manual/Installing_packages_with_pacman After updating the package database, you can download and install a specific package by its name. Be mindful of available space in the writable layer. ```bash pacman -S ``` -------------------------------- ### Configure GUI Autostart Programs with YAML Source: https://www.system-rescue.org/manual/gui_autostart_Start_programs_on_graphical_desktop Use the `gui_autostart` scope in your YAML configuration to define programs that should start automatically. Keys like '100' and '200' are arbitrary names for each program entry. You can specify programs using either a `desktop` file path or an `exec` command. ```yaml --- gui_autostart: 100: desktop: "/usr/share/applications/thunar.desktop" 200: exec: "bash -c \"read -p 'press any key'\"" terminal: true ``` -------------------------------- ### Prepare SystemRescue for AUR package compilation Source: https://www.system-rescue.org/manual/Installing_packages_from_AUR Run this command to download and install components required for compiling AUR packages. This prepares the system for using 'yay'. ```bash yay-prepare ``` -------------------------------- ### Install rsync Daemon as a Windows Service with Cygwin Source: https://www.system-rescue.org/manual/Backup_and_transfer_your_data_using_rsync This command installs the rsync executable as a Windows service using cygrunsrv.exe. It configures the daemon to use a specific configuration file and run in the background. ```bash cygrunsrv.exe -I "cygrsyncd" -p /usr/bin/rsync.exe -a "--config=/etc/rsyncd.conf --daemon --no-detach" ``` -------------------------------- ### pxelinux.cfg/default Configuration for SystemRescue Source: https://www.system-rescue.org/manual/PXE_network_booting Example pxelinux.cfg/default file for booting SystemRescue via PXE. It specifies kernel, initrd, and append parameters, including the HTTP server for the root filesystem. Ensure pxelinux version is 5.10 or newer for SYSAPPEND support. ```text DEFAULT sysresccd LABEL sysresccd LINUX sysresccd/boot/x86_64/vmlinuz INITRD sysresccd/boot/intel_ucode.img,sysresccd/boot/amd_ucode.img,sysresccd/boot/x86_64/sysresccd.img APPEND archisobasedir=sysresccd ip=dhcp archiso_http_srv=http://10.0.2.4/ checksum SYSAPPEND 3 ``` -------------------------------- ### Boot SystemRescue with static IP and gateway Source: https://www.system-rescue.org/manual/Backup_data_from_an_unbootable_windows_computer Use this command to boot SystemRescue with a static IP address and gateway configuration. Replace the example IP addresses with your network's specific details. ```bash rescue64 ethx=192.168.1.158 gateway=192.168.1.254 ``` -------------------------------- ### List Network Interfaces Source: https://www.system-rescue.org/manual/Backup_data_from_an_unbootable_windows_computer Displays all network interfaces detected by the system, including their configuration details. Useful for identifying the correct interface (e.g., eth0) for network setup. ```bash ifconfig -a ``` -------------------------------- ### Configure Sysctl Parameters Source: https://www.system-rescue.org/manual/Configuring_SystemRescue_sysconfig Set kernel parameters at runtime using `sysctl`. Examples include enabling IP forwarding and configuring ARP behavior. ```yaml sysctl: net.ipv4.ip_forward: "1" net.ipv4.conf.all.arp_filter: "1" ``` -------------------------------- ### Configure GRUB for Serial Console Source: https://www.system-rescue.org/manual/Booting_on_a_serial_console Modify the GRUB configuration file to enable serial console input and output. This setup works in parallel with the regular console. ```grub serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 terminal_input --append serial terminal_output --append serial ``` -------------------------------- ### Pacman Package Signature Error Example Source: https://www.system-rescue.org/manual/Installing_packages_with_pacman This is an example of the error message encountered when a package's signature cannot be verified due to an expired GPG key. ```bash error: foobar: signature from "John Doe " is unknown trust :: File /var/cache/pacman/pkg/foobar-1.2-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] ``` -------------------------------- ### Update Pacman Package Database Source: https://www.system-rescue.org/manual/Installing_packages_with_pacman Before installing or searching for packages, synchronize the local package database with the remote repositories. This requires an active internet connection. ```bash pacman -Sy ``` -------------------------------- ### Securely Delete Windows Swap File Source: https://www.system-rescue.org/manual/Secure_Deletion_of_Data Use `wipe` to securely delete a specific file, like a Windows swap file, from a mounted partition. This example uses 35 overwriting passes. ```bash wipe -D /mnt/windows/win386.swp ``` -------------------------------- ### Burn ISO with wodim Source: https://www.system-rescue.org/manual/Downloading_and_burning Burn the downloaded ISO image to a CD/DVD using the `wodim` command-line tool. First, identify your device using `wodim --devices`. ```bash wodim dev=/dev/scXX -v systemrescue-x.y.z.iso ``` -------------------------------- ### Download ISO with wget Source: https://www.system-rescue.org/manual/Downloading_and_burning Use this command to download the SystemRescue ISO image file. The `-c` option allows for resuming interrupted downloads. ```bash wget -c address-of-the-iso-file ``` -------------------------------- ### Search for Packages by Name or Description Source: https://www.system-rescue.org/manual/Installing_packages_with_pacman If you don't know the exact package name, you can search for keywords within package names and descriptions. This helps in discovering available software. ```bash pacman -Ss ``` -------------------------------- ### Burn ISO with wodim and specify speed Source: https://www.system-rescue.org/manual/Downloading_and_burning Burn the downloaded ISO image to a CD/DVD using `wodim`, specifying the device and burn speed. Replace `sr0` with your actual DVD writer device. ```bash wodim dev=/dev/sr0 speed=8 -v systemrescue-x.y.z.iso ``` -------------------------------- ### SystemRescue PXE Boot Configuration Files Source: https://www.system-rescue.org/manual/PXE_network_booting List of files required on the TFTP server for PXE booting SystemRescue. Ensure these files are present in their specified locations. ```text ./sysresccd/boot/x86_64/vmlinuz ./sysresccd/boot/x86_64/sysresccd.img ./sysresccd/boot/memtest.COPYING ./sysresccd/boot/memtest ./sysresccd/boot/intel_ucode.LICENSE ./sysresccd/boot/intel_ucode.img ./sysresccd/boot/amd_ucode.LICENSE ./sysresccd/boot/amd_ucode.img ./sysresccd/VERSION ./sysresccd/pkglist.x86_64.txt ./pxelinux.cfg/default ./ldlinux.c32 ./pxelinux.0 ``` -------------------------------- ### Detect disks and partitions with fsarchiver Source: https://www.system-rescue.org/manual/Backup_data_from_an_unbootable_windows_computer Run this command to list all detected disks and their partitions, including filesystem type, label, and size. Note the device name (e.g., /dev/sda1) for partitions containing your data. ```bash fsarchiver probe -v ``` -------------------------------- ### Configure rsync Daemon Source: https://www.system-rescue.org/manual/Backup_and_transfer_your_data_using_rsync This configuration sets up an rsync daemon with specific paths, read-only access, and allowed hosts. Ensure the paths exist and adjust 'hosts allow' for your network. ```rsync # ======================/etc/rsyncd.conf====================== pid file = /var/run/rsyncd.pid read only = yes uid = root gid = root [share1] path = /mnt/share1 read only = yes hosts allow = myhost, 10.88.45.0/24 [backups] path = /var/tmp/catalyst/tmp read only = no hosts allow = mybiggie, 10.88.45.0/24 [rootfs] path = / read only = yes hosts allow = myhost, 10.88.45.0/24 [upload] path = /upload read only = no hosts allow = 172.16.0.0/16 ``` -------------------------------- ### Mount NTFS with Read-Write Support Source: https://www.system-rescue.org/manual/Mounting_ntfs_filesystems Use this command to mount an NTFS file system with full read and write access. Ensure the device name and mount point are correctly specified. ```bash mkdir -p /mnt/windows mount -t ntfs3 /dev/xxx /mnt/windows ``` -------------------------------- ### Configure Static IP with nmcli Source: https://www.system-rescue.org/manual/Network_configuration_and_programs Use nmcli to manually set a static IP address, netmask, gateway, and DNS server for a network connection. The 'conn up' command is required to apply the new settings. ```bash nmcli conn mod "Wired connection 1" ipv4.method manual nmcli conn mod "Wired connection 1" ipv4.addr 192.168.1.20/24 nmcli conn mod "Wired connection 1" ipv4.gateway 192.168.1.1 nmcli conn mod "Wired connection 1" ipv4.dns 192.168.1.1 nmcli conn up "Wired connection 1" ``` -------------------------------- ### GRUB Boot Stanza for SystemRescue ISO Source: https://www.system-rescue.org/manual/Installing_SystemRescue_on_the_disk Add this stanza to your GRUB configuration to boot SystemRescue from an ISO image. Ensure the `iso_path` correctly points to your SystemRescue ISO file. ```grub menuentry "SystemRescue" { iso_path="/boot/iso/systemrescue.iso" export iso_path search --set=root --file $iso_path # support booting recent GRUB versions on UEFI systems rmmod tpm loopback loop $iso_path set root=(loop) # the path below is on the SystemRescue ISO, not the hard drive configfile /boot/grub/loopback.cfg } ``` -------------------------------- ### Syslinux Boot Entry with Serial Console Source: https://www.system-rescue.org/manual/Booting_on_a_serial_console Configures a Syslinux menu entry to boot SystemRescue via a serial console, specifying kernel, initrd, and boot parameters including serial console settings. ```syslinux LABEL sysresccd-serial TEXT HELP Use a serial console. ENDTEXT MENU LABEL Boot SystemRescue with serial console (ttyS0,115200n8) LINUX boot/x86_64/vmlinuz INITRD boot/intel_ucode.img,boot/amd_ucode.img,boot/x86_64/sysresccd.img APPEND archisobasedir=sysresccd archisolabel=RESCUE905 iomem=relaxed console=tty0 console=ttyS0,115200n8 ``` -------------------------------- ### HTTP URLs for SystemRescue Filesystem Source: https://www.system-rescue.org/manual/PXE_network_booting URLs from which the SystemRescue squashfs filesystem (airootfs.sfs) and its checksum (airootfs.sha512) will be downloaded via HTTP. Verify these files are accessible before PXE booting. ```text http://10.0.2.4/sysresccd/x86_64/airootfs.sfs http://10.0.2.4/sysresccd/x86_64/airootfs.sha512 ``` -------------------------------- ### Use Rolling Configuration for Pacman Source: https://www.system-rescue.org/manual/Installing_packages_with_pacman To access the latest packages similar to a rolling release model, use the `--config` option with the rolling pacman configuration file. Remember to synchronize the database for this configuration separately. ```bash pacman --config=/etc/pacman-rolling.conf -Sy ``` -------------------------------- ### Configure Hosts File Entries Source: https://www.system-rescue.org/manual/Configuring_SystemRescue_sysconfig Add static host entries to the system's hosts file, mapping IP addresses to hostnames. ```yaml hosts: "192.168.1.1": "example.net.lan" "192.168.1.10": "foo.net.lan foo" ``` -------------------------------- ### Configure Firefox Bookmarks Source: https://www.system-rescue.org/manual/Configuring_SystemRescue_sysconfig Add bookmarks to the Firefox browser via `policies.json`. Entries are ordered lexicographically by their keys and require `title` and `url` fields. ```yaml bookmarks: 0100: title: "SystemRescue" url: "https://www.system-rescue.org/" 0200: title: "Arch Linux Package Search" url: "https://archlinux.org/packages/" ``` -------------------------------- ### Configure Static IP Address and Gateway Source: https://www.system-rescue.org/manual/Backup_data_from_an_unbootable_windows_computer Sets a static IP address, netmask, and default gateway for the specified network interface. This is necessary if DHCP is not available or preferred. ```bash ifconfig eth0 192.168.1.158 netmask 255.255.255.0 route add default gw 192.168.1.254 ``` -------------------------------- ### Search for AUR packages Source: https://www.system-rescue.org/manual/Installing_packages_from_AUR Use 'yay' to search for packages available in the AUR. Replace with the name or keyword of the package you are looking for. ```bash yay ``` -------------------------------- ### Boot SystemRescue with DHCP Source: https://www.system-rescue.org/manual/Backup_data_from_an_unbootable_windows_computer This command boots SystemRescue and automatically obtains an IP address using DHCP. This is useful if you prefer dynamic IP assignment or have a DHCP server on your network. ```bash rescue64 dodhcp ``` -------------------------------- ### Auto-configure network with DHCP Source: https://www.system-rescue.org/manual/Starting_to_use_the_system Use this command to automatically configure the network interface using DHCP. Ensure 'eth0' is the correct interface name for your system. ```bash dhcpcd eth0 ``` -------------------------------- ### Navigate and List Partition Contents Source: https://www.system-rescue.org/manual/Backup_data_from_an_unbootable_windows_computer Changes the current directory to the mounted Windows partition and lists its contents. This helps in verifying the mount and browsing files. ```bash cd /mnt/windows ls -l ``` -------------------------------- ### Apply Rolling Configuration to Pacman Command Source: https://www.system-rescue.org/manual/Installing_packages_with_pacman This command demonstrates how to use the rolling pacman configuration for any pacman operation. It's important to be cautious when using the rolling configuration, as it can potentially lead to system instability. ```bash pacman --config=/etc/pacman-rolling.conf ``` -------------------------------- ### SystemRescue GRUB menu.lst Configuration Source: https://www.system-rescue.org/manual/Installing_SystemRescue_on_the_disk This configuration is for the menu.lst file used by GRUB to boot SystemRescue from an NTFS disk. Ensure 'archisolabel' matches your partition's label and 'setkmap' matches your keyboard layout. ```grub title SystemRescue from the NTFS disk root (hd0,0) kernel /sysresccd/boot/x86_64/vmlinuz archisobasedir=sysresccd archisolabel=windows copytoram setkmap=us initrd /sysresccd/boot/x86_64/sysresccd.img ``` -------------------------------- ### GRUB Boot Entry with Serial Console Source: https://www.system-rescue.org/manual/Booting_on_a_serial_console Defines a GRUB menu entry to boot SystemRescue using a serial console with specific parameters (ttyS0, 115200 baud, 8N1). ```grub menuentry "Boot SystemRescue with serial console (ttyS0,115200n8)" { set gfxpayload=keep linux /sysresccd/boot/x86_64/vmlinuz archisobasedir=sysresccd archisolabel=RESCUE905 iomem=relaxed console=tty0 console=ttyS0,115200n8 initrd /sysresccd/boot/intel_ucode.img /sysresccd/boot/amd_ucode.img /sysresccd/boot/x86_64/sysresccd.img } ``` -------------------------------- ### GRUB2 Configuration for SystemRescue Source: https://www.system-rescue.org/manual/Installing_SystemRescue_on_the_disk Add this configuration to a new file (e.g., /etc/grub.d/25_sysresccd) to enable booting SystemRescue from a GRUB2 bootloader. It uses filesystem labels and the 'copytoram' option. ```bash #!/bin/sh exec tail -n +3 $0 menuentry 'SystemRescue' { load_video insmod gzio insmod part_gpt insmod part_msdos insmod ext2 search --no-floppy --label boot --set=root echo 'Loading Linux kernel ...' linux /sysresccd/boot/x86_64/vmlinuz archisobasedir=sysresccd archisolabel=boot copytoram setkmap=us echo 'Loading initramfs ...' initrd /sysresccd/boot/x86_64/sysresccd.img } ``` -------------------------------- ### Configure CA Trust Anchors Source: https://www.system-rescue.org/manual/Configuring_SystemRescue_sysconfig Add local Certification Authorities (CAs) as trust anchors. CAs are in X.509 format and are placed in `/etc/ca-certificates/trust-source/anchors/`. ```yaml ca-trust: example-ca: | -----BEGIN CERTIFICATE----- MIIDlTCCAn2gAwIBAgIUbB4K7H53E3spHfMtSb0To+Fyb3wwDQYJKoZIhvcNAQEL BQAwWjELMAkGA1UEBhMCWFgxFTATBgNVBAcMDERlZmF1bHQgQ2l0eTEcMBoGA1UE [...] VtbLuXNBNjfcAk1xqTb1j9dMeHDZKV4Imr0W3qfsHnWFqihxGyKJ79Qb2bL1Kquc vgI/6+yHyDlw -----END CERTIFICATE----- ``` -------------------------------- ### Configure rclone for Cloud Storage Source: https://www.system-rescue.org/manual/Network_configuration_and_programs Use this command to interactively configure a new cloud storage service with rclone. You will be prompted to enter details for each service, and each will be assigned a remote name. ```bash rclone config ``` -------------------------------- ### YAML Configuration for Autorun Scripts Source: https://www.system-rescue.org/manual/Run_your_own_scripts_with_autorun Use this YAML structure to define autorun scripts. Specify scripts by URL or path, along with parameters, execution mode (shell or direct), wait conditions, and error handling. Programs are executed in lexicographical order of their keys. ```yaml --- autorun: exec: 200: url: "http://web-server/adminscripts/some-script" parameters: - "foo" - "bar" shell: false wait: always waitmode: 15 on_error: break 300: path: "rclone" parameters: - "copy" - "myserver:/scripts/" - "/root" wait: on_error on_error: break ``` -------------------------------- ### Switch to DHCP with nmcli Source: https://www.system-rescue.org/manual/Network_configuration_and_programs Revert a network connection to automatic configuration via DHCP using nmcli. The 'conn up' command is necessary to re-establish the connection with DHCP settings. ```bash nmcli conn mod "Wired connection 1" ipv4.method auto nmcli conn up "Wired connection 1" ``` -------------------------------- ### Update Files Database for Filename Search Source: https://www.system-rescue.org/manual/Installing_packages_with_pacman To search for packages that provide a specific filename, first download the separate files database. This database maps filenames to the packages that contain them. ```bash pacman -Fy ``` -------------------------------- ### Download Files from Cloud Storage with rclone Source: https://www.system-rescue.org/manual/Network_configuration_and_programs Use this command to download a file or directory from a remote cloud storage location to your local system. Specify the remote source path, the remote name, and the local target path. ```bash rclone copy :sourcefile /local/targetpath ``` -------------------------------- ### Upload Files to Cloud Storage with rclone Source: https://www.system-rescue.org/manual/Network_configuration_and_programs Use this command to upload a file or directory from your local system to a remote cloud storage location. Specify the local path, the remote name, and the destination path on the remote server. ```bash rclone copy /local/path :destpath ``` -------------------------------- ### Unmount and Reboot Commands Source: https://www.system-rescue.org/manual/Backup_data_from_an_unbootable_windows_computer Use these commands to unmount the Windows partition and reboot the computer after data backup is complete. ```bash umount /mnt/windows reboot ``` -------------------------------- ### Local file copy with rsync Source: https://www.system-rescue.org/manual/Backup_and_transfer_your_data_using_rsync Use this command to copy files locally while preserving attributes, ACLs, and hard links. The --progress option shows transfer status. ```bash rsync --archive --xattrs --acls --hard-links --progress --compress \ /home/mydir/data/ /backups/data-20080810/ ``` -------------------------------- ### Configure Syslinux for Serial Console Source: https://www.system-rescue.org/manual/Booting_on_a_serial_console Sets the serial port and baud rate for Syslinux. This is a simple configuration line to enable serial output. ```syslinux SERIAL 0 115200 ``` -------------------------------- ### List Remote Cloud Storage Contents with rclone Source: https://www.system-rescue.org/manual/Network_configuration_and_programs After configuring a remote service, use this command to list the contents of the specified remote storage. Replace `` with the name assigned during configuration. ```bash rclone ls : ``` -------------------------------- ### View Floppy Content with VCHE Source: https://www.system-rescue.org/manual/Secure_Deletion_of_Data Use `vche-raw` to view the raw content of a device, such as a floppy disk, to verify data. ```bash vche-raw /dev/fd0 ``` -------------------------------- ### Configure Timezone Source: https://www.system-rescue.org/manual/Configuring_SystemRescue_sysconfig Set the system's timezone using a name from the IANA Time Zone Database. Defaults to 'UTC'. ```yaml timezone: "Europe/Berlin" ``` -------------------------------- ### GRUB4DOS BCDedit Commands for Windows Source: https://www.system-rescue.org/manual/Installing_SystemRescue_on_the_disk Commands to add a GRUB4DOS boot entry for SystemRescue to the Windows Boot Configuration Data (BCD). Ensure you have administrator privileges. ```powershell C:> bcdedit /create /d "SystemRescue [GRUB4DOS]" /application bootsector ``` ```powershell C:> bcdedit /set {id} device boot ``` ```powershell C:> bcdedit /set {id} path \grldr.mbr ``` ```powershell C:> bcdedit /displayorder {id} /addlast ``` -------------------------------- ### Remote backup push with rsync daemon Source: https://www.system-rescue.org/manual/Backup_and_transfer_your_data_using_rsync Push a local directory to a remote host using the rsync daemon. This command preserves attributes, ACLs, and hard links. ```bash rsync -aXAHz --progress /home/mydata/ example.com::mybackups/data-20080810/ ``` -------------------------------- ### Configure Autoterminal for Virtual Terminals Source: https://www.system-rescue.org/manual/autoterminal_scripts_on_virtual_terminal Define which commands to run on specific virtual terminals. Ensure parameters with spaces or quotes are properly escaped. ```yaml --- autoterminal: tty2: "/usr/bin/setkmap" tty3: "/root/myscript \"parameter one\"" tty4: "/usr/bin/tmux" tty8: "/usr/bin/journalctl -f" ``` -------------------------------- ### Obtain Dynamic IP Address via DHCP Source: https://www.system-rescue.org/manual/Backup_data_from_an_unbootable_windows_computer Requests and configures an IP address for the specified network interface using DHCP. This is a common method for automatic network configuration. ```bash dhclient eth0 ``` -------------------------------- ### Mount Windows Share with CIFS Source: https://www.system-rescue.org/manual/Network_configuration_and_programs Access shared folders on a Windows computer using the mount-cifs command. Ensure the target directory exists and provide valid username and password credentials. ```bash mkdir /mnt/windows mount -t cifs //192.168.10.3/mydata /mnt/windows -o username=robert,password=passwd cd /mnt/windows ``` -------------------------------- ### Configure SSH Known Hosts Source: https://www.system-rescue.org/manual/Configuring_SystemRescue_sysconfig Add SSH host keys to the `known_hosts` file to prevent man-in-the-middle attacks. Supports specific host entries and wildcard entries with certificate authorities. ```yaml ssh_known_hosts: myhost.example.org: "ssh-ed25519 AAAAC3NzaC1l...JJTO48B" "@cert-authority *.mydomain.org": "ssh-rsa AAAAB3NzaC1y...Zhk0=" ```