diff --git a/cards/linux/console-switch-layout-altgr.json b/cards/linux/console-switch-layout-altgr.json new file mode 100644 index 0000000000000000000000000000000000000000..9941eea9236335cf7d9b7657c150bfa5ec3f9edf --- /dev/null +++ b/cards/linux/console-switch-layout-altgr.json @@ -0,0 +1,83 @@ +{ + "schema_version": 2, + "id": "console-switch-layout-altgr", + "platform": "linux", + "kind": "task", + "title": "Switch console keyboard layouts using AltGr", + "summary": "Enable switching between two keyboard layouts in the text console using the AltGr key. This simulates layout switching on the TTY.", + "aliases": [ + { + "text": "switch keyboard layout console", + "lang": "en" + }, + { + "text": "altgr layout switch", + "lang": "en" + }, + { + "text": "two layouts tty", + "lang": "en" + }, + { + "text": "переключение раскладок в консоли", + "lang": "ru" + }, + { + "text": "altgr переключение", + "lang": "ru" + }, + { + "text": "вторая раскладка клавиатуры", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "kbd" + ] + }, + "steps": [ + { + "explain": "Load two keymaps simultaneously. The first is the main layout, the second is the alternate layout accessible via AltGr. Example: 'us' as main, 'mk' as alternate.", + "cmd": "sudo loadkeys ", + "needs_root": true, + "risk": "low", + "placeholders": [ + { + "name": "MAIN_KEYMAP", + "description": "Primary keyboard layout code", + "example": "us", + "discover_cmd": "localectl list-keymaps" + }, + { + "name": "ALT_KEYMAP", + "description": "Secondary keyboard layout code", + "example": "mk", + "discover_cmd": "localectl list-keymaps" + } + ] + } + ], + "verify": [ + { + "cmd": "localectl status", + "expect": "VC Keymap: " + } + ], + "risk": "low", + "warnings": [ + "Not all keymaps support this feature. If the second layout prints squares, it may be a font issue.", + "This is a temporary change. To make it persistent, edit /etc/vconsole.conf and set KEYMAP_TOGGLE." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Linux_console/Keyboard_configuration#Layout_switching", + "title": "Linux console/Keyboard configuration", + "revision_id": 888113, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/cpu-check-frequency-info.json b/cards/linux/cpu-check-frequency-info.json new file mode 100644 index 0000000000000000000000000000000000000000..46777cef0c00693c415ced5ded46004ee78b8b65 --- /dev/null +++ b/cards/linux/cpu-check-frequency-info.json @@ -0,0 +1,54 @@ +{ + "schema_version": 2, + "id": "cpu-check-frequency-info", + "platform": "linux", + "kind": "task", + "title": "Check CPU frequency and governor", + "summary": "View the current CPU frequency, available governors, and the active scaling driver using cpupower.", + "aliases": [ + { + "text": "check cpu frequency", + "lang": "en" + }, + { + "text": "cpu governor status", + "lang": "en" + }, + { + "text": "cpupower frequency info", + "lang": "en" + }, + { + "text": "проверить частоту процессора", + "lang": "ru" + }, + { + "text": "текущий governor cpu", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "arch" + } + ] + }, + "prerequisites": [ + "cpupower package installed" + ], + "steps": [ + { + "explain": "Display detailed information about CPU frequency scaling, including the current governor and frequency.", + "cmd": "cpupower frequency-info", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/CPU_frequency_scaling#Scaling_drivers", + "title": "CPU frequency scaling", + "revision_id": 886037, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/cron-edit-other-user-crontab.json b/cards/linux/cron-edit-other-user-crontab.json new file mode 100644 index 0000000000000000000000000000000000000000..c6282ffd5378339f77f4d31641f33103380f460d --- /dev/null +++ b/cards/linux/cron-edit-other-user-crontab.json @@ -0,0 +1,80 @@ +{ + "schema_version": 2, + "id": "cron-edit-other-user-crontab", + "platform": "linux", + "kind": "task", + "title": "Edit another user's crontab", + "summary": "Use sudo to edit the crontab of a different user on the system.", + "aliases": [ + { + "text": "edit root crontab", + "lang": "en" + }, + { + "text": "edit other user cron", + "lang": "en" + }, + { + "text": "sudo crontab -e", + "lang": "en" + }, + { + "text": "system wide cron", + "lang": "en" + }, + { + "text": "редактировать crontab другого пользователя", + "lang": "ru" + }, + { + "text": "cron root", + "lang": "ru" + }, + { + "text": "изменить cron пользователя", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "cron" + ] + }, + "steps": [ + { + "explain": "Edit the crontab for a specific user. Replace with the target user's name.", + "cmd": "sudo crontab -u -e", + "risk": "medium", + "needs_root": true, + "placeholders": [ + { + "name": "USERNAME", + "description": "The username whose crontab you want to edit.", + "example": "john", + "discover_cmd": "whoami" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "There is no automatic rollback. You must manually revert changes in the editor.", + "risk": "medium" + } + ], + "warnings": [ + "Editing another user's crontab requires root privileges. Be careful not to break system tasks if editing root's crontab." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Cron#Basic_commands", + "title": "Cron", + "revision_id": 886598, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/cron-edit-user-crontab.json b/cards/linux/cron-edit-user-crontab.json new file mode 100644 index 0000000000000000000000000000000000000000..b9f74a02fa7f52d3483b88eb420157655a6c8107 --- /dev/null +++ b/cards/linux/cron-edit-user-crontab.json @@ -0,0 +1,62 @@ +{ + "schema_version": 2, + "id": "cron-edit-user-crontab", + "platform": "linux", + "kind": "task", + "title": "Edit your user crontab", + "summary": "Use the crontab command to safely edit the schedule of commands for your current user. Do not edit crontab files directly with a text editor.", + "aliases": [ + { + "text": "edit crontab", + "lang": "en" + }, + { + "text": "add cron job", + "lang": "en" + }, + { + "text": "schedule command linux", + "lang": "en" + }, + { + "text": "crontab -e", + "lang": "en" + }, + { + "text": "редактировать crontab", + "lang": "ru" + }, + { + "text": "добавить задачу cron", + "lang": "ru" + }, + { + "text": "настроить cron", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "cron" + ] + }, + "steps": [ + { + "explain": "Open your user's crontab in the default editor. If no editor is set, it may default to vi or nano.", + "cmd": "crontab -e", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Cron#Basic_commands", + "title": "Cron", + "revision_id": 886598, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/cron-list-user-crontab.json b/cards/linux/cron-list-user-crontab.json new file mode 100644 index 0000000000000000000000000000000000000000..af62712c40129f5ff0c4dffd0851d619e8ac3146 --- /dev/null +++ b/cards/linux/cron-list-user-crontab.json @@ -0,0 +1,62 @@ +{ + "schema_version": 2, + "id": "cron-list-user-crontab", + "platform": "linux", + "kind": "task", + "title": "List your current cron jobs", + "summary": "View the list of scheduled commands currently set for your user.", + "aliases": [ + { + "text": "list cron jobs", + "lang": "en" + }, + { + "text": "show crontab", + "lang": "en" + }, + { + "text": "crontab -l", + "lang": "en" + }, + { + "text": "check cron schedule", + "lang": "en" + }, + { + "text": "посмотреть cron задачи", + "lang": "ru" + }, + { + "text": "список cron", + "lang": "ru" + }, + { + "text": "crontab list", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "cron" + ] + }, + "steps": [ + { + "explain": "Display the contents of your user's crontab.", + "cmd": "crontab -l", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Cron#Basic_commands", + "title": "Cron", + "revision_id": 886598, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/cron-prevent-overlap-flock.json b/cards/linux/cron-prevent-overlap-flock.json new file mode 100644 index 0000000000000000000000000000000000000000..48378a47c66ac82354c048066c0be5c104835e92 --- /dev/null +++ b/cards/linux/cron-prevent-overlap-flock.json @@ -0,0 +1,67 @@ +{ + "schema_version": 2, + "id": "cron-prevent-overlap-flock", + "platform": "linux", + "kind": "task", + "title": "Prevent overlapping cron jobs with flock", + "summary": "Use flock to ensure a long-running cron job does not start again if it is already running.", + "aliases": [ + { + "text": "cron job overlap", + "lang": "en" + }, + { + "text": "prevent duplicate cron", + "lang": "en" + }, + { + "text": "flock cron", + "lang": "en" + }, + { + "text": "cron lock file", + "lang": "en" + }, + { + "text": "cron не запускать дважды", + "lang": "ru" + }, + { + "text": "flock для cron", + "lang": "ru" + }, + { + "text": "блокировка cron задачи", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "cron", + "util-linux" + ] + }, + "steps": [ + { + "explain": "Edit your crontab.", + "cmd": "crontab -e", + "risk": "low" + }, + { + "explain": "Wrap your command with '/usr/bin/flock -n /tmp/lock.backup /root/make-backup.sh'. Replace the lock name and command with your specific values. Save and exit.", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Cron#Ensuring_exclusivity", + "title": "Cron", + "revision_id": 886598, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/cron-remove-user-crontab.json b/cards/linux/cron-remove-user-crontab.json new file mode 100644 index 0000000000000000000000000000000000000000..175a4ac6b92a00a230225ef75293847a55f22587 --- /dev/null +++ b/cards/linux/cron-remove-user-crontab.json @@ -0,0 +1,71 @@ +{ + "schema_version": 2, + "id": "cron-remove-user-crontab", + "platform": "linux", + "kind": "task", + "title": "Remove all user cron jobs", + "summary": "Delete all scheduled commands for your current user. This action is irreversible unless you have a backup.", + "aliases": [ + { + "text": "delete cron jobs", + "lang": "en" + }, + { + "text": "clear crontab", + "lang": "en" + }, + { + "text": "remove all cron", + "lang": "en" + }, + { + "text": "crontab -r", + "lang": "en" + }, + { + "text": "удалить cron задачи", + "lang": "ru" + }, + { + "text": "очистить crontab", + "lang": "ru" + }, + { + "text": "сбросить cron", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "cron" + ] + }, + "steps": [ + { + "explain": "Remove all entries from your user's crontab.", + "cmd": "crontab -r", + "risk": "medium" + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "You cannot automatically undo this. You must manually re-add your jobs using 'crontab -e' if you know what they were.", + "risk": "medium" + } + ], + "warnings": [ + "This deletes all your scheduled jobs permanently. Ensure you have a backup if you might need them later." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Cron#Basic_commands", + "title": "Cron", + "revision_id": 886598, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/cron-run-x-app.json b/cards/linux/cron-run-x-app.json new file mode 100644 index 0000000000000000000000000000000000000000..a56622bda6d55f6d15a599842c4d368dc0e72ad2 --- /dev/null +++ b/cards/linux/cron-run-x-app.json @@ -0,0 +1,68 @@ +{ + "schema_version": 2, + "id": "cron-run-x-app", + "platform": "linux", + "kind": "task", + "title": "Run X.org application from cron", + "summary": "Cron does not have access to the X server environment. You must manually set the DISPLAY variable to run graphical applications.", + "aliases": [ + { + "text": "cron x11 app", + "lang": "en" + }, + { + "text": "run gui from cron", + "lang": "en" + }, + { + "text": "cron cannot open display", + "lang": "en" + }, + { + "text": "xorg cron job", + "lang": "en" + }, + { + "text": "запустить gui из cron", + "lang": "ru" + }, + { + "text": "cron не видит дисплей", + "lang": "ru" + }, + { + "text": "DISPLAY cron", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "cron", + "xorg" + ], + "display_server": "x11" + }, + "steps": [ + { + "explain": "Edit your crontab.", + "cmd": "crontab -e", + "risk": "low" + }, + { + "explain": "Prefix your command with 'env DISPLAY=:0'. Replace :0 with your actual display number if different (check with 'echo $DISPLAY'). For example: '0 8 * * * env DISPLAY=:0 /usr/bin/xclock'. Save and exit.", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Cron#Running_X.org_server-based_applications", + "title": "Cron", + "revision_id": 886598, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/cron-suppress-email-output.json b/cards/linux/cron-suppress-email-output.json new file mode 100644 index 0000000000000000000000000000000000000000..53df81010127d42a76d0668ce31ba737d0e8e01c --- /dev/null +++ b/cards/linux/cron-suppress-email-output.json @@ -0,0 +1,66 @@ +{ + "schema_version": 2, + "id": "cron-suppress-email-output", + "platform": "linux", + "kind": "task", + "title": "Suppress cron job email output", + "summary": "Prevent cron from sending emails for every job by redirecting output to /dev/null or setting MAILTO.", + "aliases": [ + { + "text": "stop cron emails", + "lang": "en" + }, + { + "text": "cron mail spam", + "lang": "en" + }, + { + "text": "disable cron notifications", + "lang": "en" + }, + { + "text": "cron output to dev null", + "lang": "en" + }, + { + "text": "отключить почту cron", + "lang": "ru" + }, + { + "text": "cron не присылает письма", + "lang": "ru" + }, + { + "text": "MAILTO cron", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "cron" + ] + }, + "steps": [ + { + "explain": "Edit your crontab to add redirection to the end of your command line.", + "cmd": "crontab -e", + "risk": "low" + }, + { + "explain": "In the editor, append '>/dev/null 2>&1' to the end of the command line for the job you want to silence. For example: '0 1 * * * /path/to/script.sh >/dev/null 2>&1'. Save and exit.", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Cron#Cronie", + "title": "Cron", + "revision_id": 886598, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/cups-add-airprint-printer.json b/cards/linux/cups-add-airprint-printer.json new file mode 100644 index 0000000000000000000000000000000000000000..ac28d124b8419ada477e76bf735a3a3676fd57b9 --- /dev/null +++ b/cards/linux/cups-add-airprint-printer.json @@ -0,0 +1,100 @@ +{ + "schema_version": 2, + "id": "cups-add-airprint-printer", + "platform": "linux", + "kind": "task", + "title": "Add a network printer using AirPrint or IPP Everywhere", + "summary": "Add a modern network printer that supports AirPrint or IPP Everywhere without needing specific drivers. This uses the 'everywhere' model.", + "aliases": [ + { + "text": "add airprint printer", + "lang": "en" + }, + { + "text": "add ipp printer", + "lang": "en" + }, + { + "text": "driverless printer setup", + "lang": "en" + }, + { + "text": "lpadmin everywhere", + "lang": "en" + }, + { + "text": "добавить сетевой принтер", + "lang": "ru" + }, + { + "text": "airprint linux", + "lang": "ru" + }, + { + "text": "принтер без драйверов", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "arch" + } + ], + "requires": [ + "cups", + "avahi-daemon.service" + ] + }, + "prerequisites": [ + "CUPS is installed and running.", + "Avahi is installed and running for network discovery.", + "You know the IP address or hostname of the printer." + ], + "steps": [ + { + "explain": "Add the printer queue using lpadmin. Replace with a short name for the queue and with the printer's IP address.", + "cmd": "sudo lpadmin -p -E -v \"ipp:///ipp/print\" -m everywhere", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "PRINTER_NAME", + "description": "A short, descriptive name for the printer queue (no spaces).", + "example": "OfficePrinter" + }, + { + "name": "PRINTER_IP", + "description": "The IP address of the network printer.", + "example": "192.168.1.50" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Remove the printer queue.", + "cmd": "sudo lpadmin -x ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "PRINTER_NAME", + "description": "The name of the printer queue to remove.", + "example": "OfficePrinter" + } + ] + } + ], + "warnings": [ + "Ensure the printer supports IPP Everywhere or AirPrint.", + "Avahi must be running for automatic discovery, though manual IP addition works without it." + ], + "source": { + "url": "https://wiki.archlinux.org/title/CUPS#AirPrint_and_IPP_Everywhere", + "title": "CUPS", + "revision_id": 888479, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/cups-enable-debug-logging.json b/cards/linux/cups-enable-debug-logging.json new file mode 100644 index 0000000000000000000000000000000000000000..ac445fdba870a9365032499fd62abf95e078e8f8 --- /dev/null +++ b/cards/linux/cups-enable-debug-logging.json @@ -0,0 +1,69 @@ +{ + "schema_version": 2, + "id": "cups-enable-debug-logging", + "platform": "linux", + "kind": "task", + "title": "Enable CUPS debug logging to diagnose printing issues", + "summary": "Change the CUPS log level to 'debug' and view the error log in real-time to see exactly what is happening when a print job fails.", + "aliases": [ + { + "text": "cups debug log", + "lang": "en" + }, + { + "text": "how to see cups errors", + "lang": "en" + }, + { + "text": "printer not working check log", + "lang": "en" + }, + { + "text": "включить лог cups", + "lang": "ru" + }, + { + "text": "где смотреть ошибки принтера", + "lang": "ru" + }, + { + "text": "cups error log", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Edit /etc/cups/cupsd.conf and change the line starting with LogLevel to 'LogLevel debug'.", + "risk": "medium" + }, + { + "explain": "View the last 100 lines of the error log and keep it open to watch for new errors as you try to print.", + "cmd": "sudo tail -n 100 -f /var/log/cups/error_log", + "needs_root": true, + "risk": "low" + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Restore the default log level (usually 'info' or 'notice') in /etc/cups/cupsd.conf.", + "risk": "medium" + } + ], + "warnings": [ + "Debug logs can be very large and fill up disk space if left enabled for a long time." + ], + "source": { + "url": "https://wiki.archlinux.org/title/CUPS/Troubleshooting#Debug_log", + "title": "CUPS/Troubleshooting", + "revision_id": 873801, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/cups-fix-ppd-gutenprint.json b/cards/linux/cups-fix-ppd-gutenprint.json new file mode 100644 index 0000000000000000000000000000000000000000..4e749077cb80386ac2f9017998f6fba6a5f49dad --- /dev/null +++ b/cards/linux/cups-fix-ppd-gutenprint.json @@ -0,0 +1,57 @@ +{ + "schema_version": 2, + "id": "cups-fix-ppd-gutenprint", + "platform": "linux", + "kind": "task", + "title": "Update PPD files for Gutenprint drivers", + "summary": "Run the cups-genppdupdate command to update Printer Description files if you see errors about PPD version incompatibility with Gutenprint.", + "aliases": [ + { + "text": "cups ppd gutenprint error", + "lang": "en" + }, + { + "text": "update ppd files cups", + "lang": "en" + }, + { + "text": "gutenprint ppd mismatch", + "lang": "en" + }, + { + "text": "обновить ppd gutenprint", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Run the PPD update utility to regenerate printer description files.", + "cmd": "sudo /usr/bin/cups-genppdupdate", + "needs_root": true, + "risk": "medium" + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "If printing breaks, restore the previous PPD files from backup or reinstall the printer driver.", + "risk": "medium" + } + ], + "warnings": [ + "This command modifies system printer configuration files." + ], + "source": { + "url": "https://wiki.archlinux.org/title/CUPS/Troubleshooting#The_PPD_version_is_not_compatible_with_gutenprint", + "title": "CUPS/Troubleshooting", + "revision_id": 873801, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/cups-fix-usb-permissions.json b/cards/linux/cups-fix-usb-permissions.json new file mode 100644 index 0000000000000000000000000000000000000000..33bcaa1faef3a583a0c9fe84595c60bfab21a2e4 --- /dev/null +++ b/cards/linux/cups-fix-usb-permissions.json @@ -0,0 +1,109 @@ +{ + "schema_version": 2, + "id": "cups-fix-usb-permissions", + "platform": "linux", + "kind": "task", + "title": "Fix USB printer permissions", + "summary": "If CUPS cannot access a USB printer, check the device permissions and ensure the 'lp' group has access.", + "aliases": [ + { + "text": "cups usb permission denied", + "lang": "en" + }, + { + "text": "usb printer not detected permissions", + "lang": "en" + }, + { + "text": "fix cups usb access", + "lang": "en" + }, + { + "text": "ошибки доступа usb принтер", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "List USB devices to find the Bus and Device ID of your printer.", + "cmd": "lsusb", + "risk": "low" + }, + { + "explain": "Check the permissions of the USB device file using the Bus and Device ID from the previous step.", + "cmd": "ls -l /dev/bus/usb//", + "placeholders": [ + { + "name": "BUS_ID", + "description": "The bus number from lsusb (e.g., 001)", + "example": "001" + }, + { + "name": "DEVICE_ID", + "description": "The device number from lsusb (e.g., 002)", + "example": "002" + } + ], + "risk": "low" + }, + { + "explain": "Temporarily change the group to 'lp' and permissions to allow read/write for the group.", + "cmd": "sudo chgrp lp /dev/bus/usb//", + "placeholders": [ + { + "name": "BUS_ID", + "description": "The bus number from lsusb", + "example": "001" + }, + { + "name": "DEVICE_ID", + "description": "The device number from lsusb", + "example": "002" + } + ], + "needs_root": true, + "risk": "medium" + }, + { + "explain": "Change the permissions to 664.", + "cmd": "sudo chmod 664 /dev/bus/usb//", + "placeholders": [ + { + "name": "BUS_ID", + "description": "The bus number from lsusb", + "example": "001" + }, + { + "name": "DEVICE_ID", + "description": "The device number from lsusb", + "example": "002" + } + ], + "needs_root": true, + "risk": "medium" + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Reboot the system to reset USB device permissions to default.", + "risk": "medium" + } + ], + "warnings": [ + "This is a temporary fix. For a permanent fix, create a udev rule." + ], + "source": { + "url": "https://wiki.archlinux.org/title/CUPS/Troubleshooting#Bad_permissions", + "title": "CUPS/Troubleshooting", + "revision_id": 873801, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/cups-list-printers.json b/cards/linux/cups-list-printers.json new file mode 100644 index 0000000000000000000000000000000000000000..5a3fe71959faeb29ad14027815652c56ac6dcd0a --- /dev/null +++ b/cards/linux/cups-list-printers.json @@ -0,0 +1,58 @@ +{ + "schema_version": 2, + "id": "cups-list-printers", + "platform": "linux", + "kind": "task", + "title": "List available printers and URIs", + "summary": "Check which printers are detected by CUPS and find their device URIs. Useful for troubleshooting or manual configuration.", + "aliases": [ + { + "text": "list printers linux", + "lang": "en" + }, + { + "text": "find printer uri", + "lang": "en" + }, + { + "text": "lpinfo -v", + "lang": "en" + }, + { + "text": "check detected printers", + "lang": "en" + }, + { + "text": "список принтеров linux", + "lang": "ru" + }, + { + "text": "найти uri принтера", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "arch" + } + ], + "requires": [ + "cups" + ] + }, + "steps": [ + { + "explain": "List all available device URIs detected by CUPS.", + "cmd": "lpinfo -v", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/CUPS#CLI_tools", + "title": "CUPS", + "revision_id": 888479, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/cups-remove-printer.json b/cards/linux/cups-remove-printer.json new file mode 100644 index 0000000000000000000000000000000000000000..469859a41b363868e3ad1018350d111604444257 --- /dev/null +++ b/cards/linux/cups-remove-printer.json @@ -0,0 +1,116 @@ +{ + "schema_version": 2, + "id": "cups-remove-printer", + "platform": "linux", + "kind": "task", + "title": "Remove a printer queue", + "summary": "Cleanly remove a printer from CUPS. This disables the queue and then deletes it.", + "aliases": [ + { + "text": "remove printer linux", + "lang": "en" + }, + { + "text": "delete printer queue", + "lang": "en" + }, + { + "text": "lpadmin -x", + "lang": "en" + }, + { + "text": "удалить принтер", + "lang": "ru" + }, + { + "text": "убрать принтер из списка", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "arch" + } + ], + "requires": [ + "cups" + ] + }, + "steps": [ + { + "explain": "Reject new jobs for the printer.", + "cmd": "sudo cupsreject ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "PRINTER_NAME", + "description": "The name of the printer queue to remove.", + "example": "OfficePrinter" + } + ] + }, + { + "explain": "Disable the printer.", + "cmd": "sudo cupsdisable ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "PRINTER_NAME", + "description": "The name of the printer queue to remove.", + "example": "OfficePrinter" + } + ] + }, + { + "explain": "Remove the printer queue entirely.", + "cmd": "sudo lpadmin -x ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "PRINTER_NAME", + "description": "The name of the printer queue to remove.", + "example": "OfficePrinter" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Re-add the printer using lpadmin with the original settings.", + "cmd": "sudo lpadmin -p -E -v -m ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "PRINTER_NAME", + "description": "The name of the printer queue.", + "example": "OfficePrinter" + }, + { + "name": "DEVICE_URI", + "description": "The device URI of the printer.", + "example": "ipp://192.168.1.50/ipp/print" + }, + { + "name": "MODEL", + "description": "The model or driver used.", + "example": "everywhere" + } + ] + } + ], + "warnings": [ + "This action is irreversible unless you know the original configuration." + ], + "source": { + "url": "https://wiki.archlinux.org/title/CUPS#cups*", + "title": "CUPS", + "revision_id": 888479, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/cups-test-print.json b/cards/linux/cups-test-print.json new file mode 100644 index 0000000000000000000000000000000000000000..4bac3c9635d466c3b7952ee4762dd17e0efa7e59 --- /dev/null +++ b/cards/linux/cups-test-print.json @@ -0,0 +1,54 @@ +{ + "schema_version": 2, + "id": "cups-test-print", + "platform": "linux", + "kind": "task", + "title": "Send a test print job", + "summary": "Send a simple test page to verify that a printer queue is working correctly.", + "aliases": [ + { + "text": "test print linux", + "lang": "en" + }, + { + "text": "print test page", + "lang": "en" + }, + { + "text": "lpr testprint", + "lang": "en" + }, + { + "text": "проверить печать", + "lang": "ru" + }, + { + "text": "тестовая страница", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "arch" + } + ], + "requires": [ + "cups" + ] + }, + "steps": [ + { + "explain": "Send the default CUPS test page to the default printer.", + "cmd": "lpr /usr/share/cups/data/testprint", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/CUPS#lp*", + "title": "CUPS", + "revision_id": 888479, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/disk-get-partlabel.json b/cards/linux/disk-get-partlabel.json new file mode 100644 index 0000000000000000000000000000000000000000..a70c227890deb8e97478992be2061aa519b96bf9 --- /dev/null +++ b/cards/linux/disk-get-partlabel.json @@ -0,0 +1,81 @@ +{ + "schema_version": 2, + "id": "disk-get-partlabel", + "platform": "linux", + "kind": "task", + "title": "Get GPT partition label (PARTLABEL)", + "summary": "Retrieve the label assigned to a GPT partition entry. This label is stored in the partition table and is independent of the filesystem.", + "aliases": [ + { + "text": "get partlabel", + "lang": "en" + }, + { + "text": "find partition label gpt", + "lang": "en" + }, + { + "text": "lsblk partlabel", + "lang": "en" + }, + { + "text": "blkid partlabel", + "lang": "en" + }, + { + "text": "узнать partlabel", + "lang": "ru" + }, + { + "text": "метка раздела gpt", + "lang": "ru" + }, + { + "text": "как найти метку раздела", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Use lsblk to print only the PARTLABEL for the specified device.", + "cmd": "lsblk -dno PARTLABEL /dev/", + "placeholders": [ + { + "name": "DEVICE", + "description": "The block device path, e.g., sda1", + "example": "sda1", + "discover_cmd": "lsblk" + } + ], + "risk": "low" + }, + { + "explain": "Alternatively, use blkid to print only the PARTLABEL value.", + "cmd": "sudo blkid -s PARTLABEL -o value /dev/", + "needs_root": true, + "placeholders": [ + { + "name": "DEVICE", + "description": "The block device path, e.g., sda1", + "example": "sda1", + "discover_cmd": "lsblk" + } + ], + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Persistent_block_device_naming#by-partlabel", + "title": "Persistent block device naming", + "revision_id": 886065, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/disk-get-partuuid.json b/cards/linux/disk-get-partuuid.json new file mode 100644 index 0000000000000000000000000000000000000000..a6657829b952c1e5be7ea7d5ddd649cd30e47a45 --- /dev/null +++ b/cards/linux/disk-get-partuuid.json @@ -0,0 +1,81 @@ +{ + "schema_version": 2, + "id": "disk-get-partuuid", + "platform": "linux", + "kind": "task", + "title": "Get GPT partition UUID (PARTUUID)", + "summary": "Retrieve the unique identifier for a GPT partition. Unlike filesystem UUIDs, PARTUUIDs remain stable even if the filesystem is reformatted.", + "aliases": [ + { + "text": "get partuuid", + "lang": "en" + }, + { + "text": "find partition uuid gpt", + "lang": "en" + }, + { + "text": "lsblk partuuid", + "lang": "en" + }, + { + "text": "blkid partuuid", + "lang": "en" + }, + { + "text": "узнать partuuid", + "lang": "ru" + }, + { + "text": "uuid раздела gpt", + "lang": "ru" + }, + { + "text": "как найти partuuid", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Use lsblk to print only the PARTUUID for the specified device.", + "cmd": "lsblk -dno PARTUUID /dev/", + "placeholders": [ + { + "name": "DEVICE", + "description": "The block device path, e.g., sda1", + "example": "sda1", + "discover_cmd": "lsblk" + } + ], + "risk": "low" + }, + { + "explain": "Alternatively, use blkid to print only the PARTUUID value.", + "cmd": "sudo blkid -s PARTUUID -o value /dev/", + "needs_root": true, + "placeholders": [ + { + "name": "DEVICE", + "description": "The block device path, e.g., sda1", + "example": "sda1", + "discover_cmd": "lsblk" + } + ], + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Persistent_block_device_naming#by-partuuid", + "title": "Persistent block device naming", + "revision_id": 886065, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/disk-get-uuid-by-device.json b/cards/linux/disk-get-uuid-by-device.json new file mode 100644 index 0000000000000000000000000000000000000000..1ae1b6289e56965a7a026ca2c311dfc15fd94ee5 --- /dev/null +++ b/cards/linux/disk-get-uuid-by-device.json @@ -0,0 +1,113 @@ +{ + "schema_version": 2, + "id": "disk-get-uuid-by-device", + "platform": "linux", + "kind": "task", + "title": "Get UUID or label for a specific device", + "summary": "Retrieve the UUID or filesystem label for a specific partition (e.g., /dev/sda1) to use in configuration files like fstab.", + "aliases": [ + { + "text": "get uuid of sda1", + "lang": "en" + }, + { + "text": "find label of partition", + "lang": "en" + }, + { + "text": "lsblk uuid specific device", + "lang": "en" + }, + { + "text": "blkid get uuid", + "lang": "en" + }, + { + "text": "узнать uuid раздела", + "lang": "ru" + }, + { + "text": "как узнать uuid диска", + "lang": "ru" + }, + { + "text": "lsblk -dno uuid", + "lang": "ru" + }, + { + "text": "blkid -s uuid", + "lang": "ru" + }, + { + "text": "get partition uuid", + "lang": "en" + }, + { + "text": "find uuid of drive", + "lang": "en" + }, + { + "text": "blkid uuid", + "lang": "en" + }, + { + "text": "specific partition uuid", + "lang": "en" + }, + { + "text": "узнать uuid диска", + "lang": "ru" + }, + { + "text": "uuid конкретного раздела", + "lang": "ru" + }, + { + "text": "blkid sda1", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Use lsblk to print only the UUID for the specified device.", + "cmd": "lsblk -dno UUID /dev/", + "placeholders": [ + { + "name": "DEVICE", + "description": "The block device path, e.g., sda1 or nvme0n1p2", + "example": "sda1", + "discover_cmd": "lsblk" + } + ], + "risk": "low" + }, + { + "explain": "Alternatively, use blkid to print only the UUID value for the specified device.", + "cmd": "sudo blkid -s UUID -o value /dev/", + "needs_root": true, + "placeholders": [ + { + "name": "DEVICE", + "description": "The block device path, e.g., sda1 or nvme0n1p2", + "example": "sda1", + "discover_cmd": "lsblk" + } + ], + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Persistent_block_device_naming#by-uuid", + "title": "Persistent block device naming", + "revision_id": 886065, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/disk-list-persistent-names.json b/cards/linux/disk-list-persistent-names.json new file mode 100644 index 0000000000000000000000000000000000000000..9c86ec15e3414dbfea32fa57176e469e9fc8ca4c --- /dev/null +++ b/cards/linux/disk-list-persistent-names.json @@ -0,0 +1,77 @@ +{ + "schema_version": 2, + "id": "disk-list-persistent-names", + "platform": "linux", + "kind": "task", + "title": "List persistent block device names (UUID, label, ID)", + "summary": "Find the stable names for your disks and partitions, such as UUIDs, labels, or hardware IDs. These names do not change between boots, unlike /dev/sda or /dev/nvme0n1.", + "aliases": [ + { + "text": "find disk uuid", + "lang": "en" + }, + { + "text": "list persistent device names", + "lang": "en" + }, + { + "text": "lsblk uuid", + "lang": "en" + }, + { + "text": "blkid list", + "lang": "en" + }, + { + "text": "how to find partition uuid", + "lang": "en" + }, + { + "text": "узнать uuid диска", + "lang": "ru" + }, + { + "text": "список uuid разделов", + "lang": "ru" + }, + { + "text": "lsblk показать uuid", + "lang": "ru" + }, + { + "text": "blkid вывод", + "lang": "ru" + }, + { + "text": "как найти метку диска", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "List all block devices with their file system types, labels, UUIDs, and mount points in a tree view.", + "cmd": "lsblk -f", + "risk": "low" + }, + { + "explain": "Alternatively, use blkid to get detailed information including partition labels and UUIDs in an export-friendly format.", + "cmd": "sudo blkid -o export", + "needs_root": true, + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Persistent_block_device_naming#Persistent_naming_methods", + "title": "Persistent block device naming", + "revision_id": 886065, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/display-manager-concept.json b/cards/linux/display-manager-concept.json new file mode 100644 index 0000000000000000000000000000000000000000..a94bbb32f75d9bc2f4b8494b63bfe4584218c0e8 --- /dev/null +++ b/cards/linux/display-manager-concept.json @@ -0,0 +1,57 @@ +{ + "schema_version": 2, + "id": "display-manager-concept", + "platform": "linux", + "kind": "concept", + "title": "What is a display manager?", + "summary": "A display manager (or login manager) is the graphical screen you see when your computer boots, where you enter your username and password to start your desktop session. It replaces the text-only command line login.", + "aliases": [ + { + "text": "what is display manager", + "lang": "en" + }, + { + "text": "login manager linux", + "lang": "en" + }, + { + "text": "graphical login screen", + "lang": "en" + }, + { + "text": "что такое дисплей менеджер", + "lang": "ru" + }, + { + "text": "экран входа в систему linux", + "lang": "ru" + }, + { + "text": "gdm sddm lightdm разница", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "desktop": [ + "any" + ] + }, + "steps": [ + { + "explain": "A display manager is a program that starts automatically after boot to provide a graphical login interface. Common examples include GDM (for GNOME), SDDM (for KDE/LXQt), and LightDM (generic).", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Display_manager", + "title": "Display manager", + "revision_id": 888081, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/dns-resolve-domain-nss.json b/cards/linux/dns-resolve-domain-nss.json new file mode 100644 index 0000000000000000000000000000000000000000..bf079f8891e1cb657512378972f04a0118012fbd --- /dev/null +++ b/cards/linux/dns-resolve-domain-nss.json @@ -0,0 +1,79 @@ +{ + "schema_version": 2, + "id": "dns-resolve-domain-nss", + "platform": "linux", + "kind": "task", + "title": "Resolve a domain name using NSS", + "summary": "Use the getent command to check how your system resolves a domain name through the Name Service Switch (NSS). This shows the IP address associated with the domain.", + "aliases": [ + { + "text": "resolve domain name", + "lang": "en" + }, + { + "text": "check dns resolution", + "lang": "en" + }, + { + "text": "getent ahosts", + "lang": "en" + }, + { + "text": "how to check dns", + "lang": "en" + }, + { + "text": "domain name lookup", + "lang": "en" + }, + { + "text": "проверить разрешение домена", + "lang": "ru" + }, + { + "text": "как проверить dns", + "lang": "ru" + }, + { + "text": "getent ahosts", + "lang": "ru" + }, + { + "text": "резолв домена", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "prerequisites": [ + "Internet connection", + "Know the domain name you want to resolve" + ], + "steps": [ + { + "explain": "Query the NSS hosts database for the specified domain name.", + "cmd": "getent ahosts ", + "risk": "low", + "placeholders": [ + { + "name": "DOMAIN_NAME", + "description": "The domain name to resolve, e.g., archlinux.org", + "example": "archlinux.org" + } + ], + "expect": "The command outputs the IP address(es) associated with the domain." + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Domain_name_resolution#Resolve_a_domain_name_using_NSS", + "title": "Domain name resolution", + "revision_id": 877395, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/dual-boot-check-windows-boot-mode.json b/cards/linux/dual-boot-check-windows-boot-mode.json new file mode 100644 index 0000000000000000000000000000000000000000..c850cbf77929cb3f29fb865115c6fe00aed99c28 --- /dev/null +++ b/cards/linux/dual-boot-check-windows-boot-mode.json @@ -0,0 +1,61 @@ +{ + "schema_version": 2, + "id": "dual-boot-check-windows-boot-mode", + "platform": "linux", + "kind": "task", + "title": "Check if Windows uses UEFI or Legacy BIOS", + "summary": "Knowing your Windows boot mode is essential for configuring the Linux bootloader correctly. UEFI requires GPT, while Legacy BIOS requires MBR.", + "aliases": [ + { + "text": "check windows boot mode", + "lang": "en" + }, + { + "text": "uefi or legacy windows", + "lang": "en" + }, + { + "text": "msinfo32 bios mode", + "lang": "en" + }, + { + "text": "как узнать режим загрузки windows", + "lang": "ru" + }, + { + "text": "uefi или legacy", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Open the Run dialog in Windows.", + "gui": "Press Win+R.", + "risk": "low" + }, + { + "explain": "Type msinfo32 and press Enter to open System Information.", + "cmd": "msinfo32", + "risk": "low" + }, + { + "explain": "In the System Summary, look for 'BIOS Mode'. 'UEFI' means UEFI/GPT, 'Legacy' means BIOS/MBR.", + "gui": "Check the value of 'BIOS Mode' in the right pane.", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Dual_boot_with_Windows#Windows", + "title": "Dual boot with Windows", + "revision_id": 886295, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/eth-check-driver-status.json b/cards/linux/eth-check-driver-status.json new file mode 100644 index 0000000000000000000000000000000000000000..11ad567f57a5d8e8cbeedc5ac9ab300488b3ed17 --- /dev/null +++ b/cards/linux/eth-check-driver-status.json @@ -0,0 +1,73 @@ +{ + "schema_version": 2, + "id": "eth-check-driver-status", + "platform": "linux", + "kind": "task", + "title": "Check Ethernet driver status", + "summary": "Identify which kernel module drives your Ethernet card and verify if it is loaded.", + "aliases": [ + { + "text": "check ethernet driver", + "lang": "en" + }, + { + "text": "ethernet not working driver", + "lang": "en" + }, + { + "text": "lspci ethernet", + "lang": "en" + }, + { + "text": "проверить драйвер сети", + "lang": "ru" + }, + { + "text": "драйвер ethernet arch", + "lang": "ru" + }, + { + "text": "нет интернета по кабелю", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "List Ethernet controllers and their kernel drivers.", + "cmd": "lspci -knnd ::0200", + "risk": "low", + "expect": "Output showing the Ethernet controller and 'Kernel driver in use: '." + }, + { + "explain": "Check if the driver module was loaded by the kernel.", + "cmd": "sudo dmesg | grep ", + "needs_root": true, + "risk": "low", + "placeholders": [ + { + "name": "MODULE_NAME", + "description": "The kernel driver name from the previous step (e.g., ixgbe, r8169).", + "example": "ixgbe" + } + ], + "expect": "Log lines indicating the driver initialized the device." + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Network_configuration/Ethernet#Device_driver", + "title": "Network configuration/Ethernet", + "revision_id": 845853, + "license": "GFDL-1.3-or-later" + }, + "see_also": [ + "linux-list-network-interfaces" + ] +} diff --git a/cards/linux/eth-disable-ecn.json b/cards/linux/eth-disable-ecn.json new file mode 100644 index 0000000000000000000000000000000000000000..37c24e769e0d588f58adc23c9b693e7d3b9ad657 --- /dev/null +++ b/cards/linux/eth-disable-ecn.json @@ -0,0 +1,64 @@ +{ + "schema_version": 2, + "id": "eth-disable-ecn", + "platform": "linux", + "kind": "task", + "title": "Disable Explicit Congestion Notification (ECN)", + "summary": "Turn off ECN if you experience network issues with older routers.", + "aliases": [ + { + "text": "disable ecn", + "lang": "en" + }, + { + "text": "network issues ecn", + "lang": "en" + }, + { + "text": "sysctl tcp_ecn", + "lang": "en" + }, + { + "text": "отключить ecn", + "lang": "ru" + }, + { + "text": "проблемы с роутером ecn", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Disable ECN completely.", + "cmd": "sudo sysctl net.ipv4.tcp_ecn=0", + "needs_root": true, + "risk": "medium", + "expect": "net.ipv4.tcp_ecn = 0" + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Restore the kernel default (enable for incoming requests).", + "cmd": "sudo sysctl net.ipv4.tcp_ecn=2", + "needs_root": true, + "risk": "medium" + } + ], + "warnings": [ + "This change is temporary and will be lost on reboot. To make it permanent, edit /etc/sysctl.d/99-sysctl.conf." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Network_configuration/Ethernet#Explicit_Congestion_Notification", + "title": "Network configuration/Ethernet", + "revision_id": 845853, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/eth-enable-interface.json b/cards/linux/eth-enable-interface.json new file mode 100644 index 0000000000000000000000000000000000000000..252a66e150e0a2808d7ed9611d8f96486d31cea5 --- /dev/null +++ b/cards/linux/eth-enable-interface.json @@ -0,0 +1,87 @@ +{ + "schema_version": 2, + "id": "eth-enable-interface", + "platform": "linux", + "kind": "task", + "title": "Enable Ethernet interface", + "summary": "Bring a disabled Ethernet interface up if it has no link light or is down.", + "aliases": [ + { + "text": "enable ethernet interface", + "lang": "en" + }, + { + "text": "ethernet link down", + "lang": "en" + }, + { + "text": "ip link set up", + "lang": "en" + }, + { + "text": "включить сетевую карту", + "lang": "ru" + }, + { + "text": "нет линка ethernet", + "lang": "ru" + }, + { + "text": "eth0 down", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Bring the network interface up.", + "cmd": "sudo ip link set dev up", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "INTERFACE", + "description": "The name of the Ethernet interface (e.g., eth0, enp34s0).", + "example": "enp34s0", + "discover_cmd": "ip link" + } + ], + "expect": "The interface state changes to UP." + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Bring the interface down.", + "cmd": "sudo ip link set dev down", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "INTERFACE", + "description": "The name of the Ethernet interface (e.g., eth0, enp34s0).", + "example": "enp34s0", + "discover_cmd": "ip link" + } + ] + } + ], + "warnings": [ + "Ensure the cable is connected before enabling the interface." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Network_configuration/Ethernet#Realtek_no_link_/_WOL_problem", + "title": "Network configuration/Ethernet", + "revision_id": 845853, + "license": "GFDL-1.3-or-later" + }, + "see_also": [ + "linux-list-network-interfaces" + ] +} diff --git a/cards/linux/eth-fix-broadcom-module-order.json b/cards/linux/eth-fix-broadcom-module-order.json new file mode 100644 index 0000000000000000000000000000000000000000..69e78c2317ac5825d83b56c3cdb4a6bbbfb373b0 --- /dev/null +++ b/cards/linux/eth-fix-broadcom-module-order.json @@ -0,0 +1,82 @@ +{ + "schema_version": 2, + "id": "eth-fix-broadcom-module-order", + "platform": "linux", + "kind": "task", + "title": "Fix Broadcom Ethernet module loading order", + "summary": "Reload Broadcom network modules in the correct order if the interface is not working.", + "aliases": [ + { + "text": "broadcom ethernet not working", + "lang": "en" + }, + { + "text": "tg3 module error", + "lang": "en" + }, + { + "text": "bcm57780 fix", + "lang": "en" + }, + { + "text": "broadcom сеть не работает", + "lang": "ru" + }, + { + "text": "tg3 broadcom", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Unload the tg3 module.", + "cmd": "sudo modprobe -r tg3", + "needs_root": true, + "risk": "medium" + }, + { + "explain": "Load the broadcom module first.", + "cmd": "sudo modprobe broadcom", + "needs_root": true, + "risk": "medium" + }, + { + "explain": "Load the tg3 module second.", + "cmd": "sudo modprobe tg3", + "needs_root": true, + "risk": "medium" + }, + { + "explain": "Verify the driver loaded successfully.", + "cmd": "sudo dmesg | grep tg3", + "needs_root": true, + "risk": "low", + "expect": "Log lines showing tg3 initialization." + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Reboot to reset module states.", + "cmd": "sudo reboot", + "needs_root": true, + "risk": "medium" + } + ], + "warnings": [ + "This is a temporary fix. To make it permanent, create /etc/modprobe.d/broadcom.conf with 'softdep tg3 pre: broadcom'." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Network_configuration/Ethernet#Broadcom_BCM57780", + "title": "Network configuration/Ethernet", + "revision_id": 845853, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/eth-identify-cable.json b/cards/linux/eth-identify-cable.json new file mode 100644 index 0000000000000000000000000000000000000000..c1a8c988cdb62ad4420416ad60ef43aa8557a367 --- /dev/null +++ b/cards/linux/eth-identify-cable.json @@ -0,0 +1,71 @@ +{ + "schema_version": 2, + "id": "eth-identify-cable", + "platform": "linux", + "kind": "task", + "title": "Identify network port by blinking LEDs", + "summary": "Make the LEDs on a network interface blink to help physically identify which port or cable corresponds to a specific interface.", + "aliases": [ + { + "text": "blink network led", + "lang": "en" + }, + { + "text": "identify network port", + "lang": "en" + }, + { + "text": "ethtool identify", + "lang": "en" + }, + { + "text": "мигать светодиодом сети", + "lang": "ru" + }, + { + "text": "найти сетевой порт", + "lang": "ru" + }, + { + "text": "ethtool -p", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Blink the LEDs on the specified interface for a given number of seconds.", + "cmd": "sudo ethtool -p ", + "risk": "low", + "needs_root": true, + "placeholders": [ + { + "name": "INTERFACE", + "description": "The name of your network interface.", + "example": "eth0", + "discover_cmd": "ip link" + }, + { + "name": "SECONDS", + "description": "Duration in seconds to blink the LEDs.", + "example": "10" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/ethtool.md", + "title": "tldr-pages: ethtool", + "license": "CC-BY-4.0" + }, + "see_also": [ + "eth-check-driver-status" + ] +} diff --git a/cards/linux/eth-reset-link-speed.json b/cards/linux/eth-reset-link-speed.json new file mode 100644 index 0000000000000000000000000000000000000000..d4224c8e2e892e7b2ac026208c092e77bd1028b5 --- /dev/null +++ b/cards/linux/eth-reset-link-speed.json @@ -0,0 +1,92 @@ +{ + "schema_version": 2, + "id": "eth-reset-link-speed", + "platform": "linux", + "kind": "task", + "title": "Reset Ethernet link speed", + "summary": "Restart the Ethernet adapter to fix speed downshift issues (e.g., stuck at 100Mbps instead of 1Gbps).", + "aliases": [ + { + "text": "ethernet speed 100mbps", + "lang": "en" + }, + { + "text": "ethernet downshift", + "lang": "en" + }, + { + "text": "reset ethernet link", + "lang": "en" + }, + { + "text": "скорость сети 100", + "lang": "ru" + }, + { + "text": "ethernet 100 вместо 1000", + "lang": "ru" + }, + { + "text": "перезагрузить сетевую карту", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Bring the interface down to reset the link negotiation.", + "cmd": "sudo ip link set dev down", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "INTERFACE", + "description": "The name of the Ethernet interface.", + "example": "enp34s0", + "discover_cmd": "ip link" + } + ] + }, + { + "explain": "Bring the interface back up to renegotiate the link speed.", + "cmd": "sudo ip link set dev up", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "INTERFACE", + "description": "The name of the Ethernet interface.", + "example": "enp34s0", + "discover_cmd": "ip link" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "If the link fails to come up, try rebooting the system.", + "cmd": "sudo reboot", + "needs_root": true, + "risk": "medium" + } + ], + "warnings": [ + "This will temporarily disconnect you from the network." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Network_configuration/Ethernet#MicroStar_Motherboard_with_Realtek_8111/8168/8411", + "title": "Network configuration/Ethernet", + "revision_id": 845853, + "license": "GFDL-1.3-or-later" + }, + "see_also": [ + "eth-enable-interface" + ] +} diff --git a/cards/linux/ext4-enable-casefold.json b/cards/linux/ext4-enable-casefold.json new file mode 100644 index 0000000000000000000000000000000000000000..20bba3e25084ccf279ffb7cd1449ab9fd57891b3 --- /dev/null +++ b/cards/linux/ext4-enable-casefold.json @@ -0,0 +1,83 @@ +{ + "schema_version": 2, + "id": "ext4-enable-casefold", + "platform": "linux", + "kind": "task", + "title": "Enable case-insensitive mode on ext4", + "summary": "Enable the casefold feature to allow case-insensitive directory operations, useful for Wine and some games.", + "aliases": [ + { + "text": "ext4 case insensitive", + "lang": "en" + }, + { + "text": "enable casefold ext4", + "lang": "en" + }, + { + "text": "wine case insensitive ext4", + "lang": "en" + }, + { + "text": "регистронезависимый ext4", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "arch" + } + ] + }, + "prerequisites": [ + "Identify the device path of the ext4 filesystem", + "Ensure the partition is not the /boot partition used by GRUB" + ], + "steps": [ + { + "explain": "Enable the casefold feature on the filesystem.", + "cmd": "sudo tune2fs -O casefold ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "DEVICE", + "description": "The block device path", + "discover_cmd": "lsblk" + } + ] + }, + { + "explain": "Enable the case-insensitive attribute on a specific empty directory.", + "cmd": "chattr +F ", + "risk": "low", + "placeholders": [ + { + "name": "DIRECTORY", + "description": "Path to the empty directory to make case-insensitive", + "example": "/mnt/data/games" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Disabling casefold is not reliably supported by tune2fs due to potential bugs. It is recommended to back up data and reformat if you need to remove this feature.", + "risk": "high" + } + ], + "warnings": [ + "GRUB does not support casefold. Enabling it on /boot will make the system unbootable.", + "Casefold is incompatible with overlayfs, which may break Docker or Podman.", + "The directory must be empty when applying the attribute.", + "This feature cannot be reliably turned off once enabled." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Ext4#Enabling_case-insensitive_mode", + "title": "Ext4", + "revision_id": 876860, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/ext4-enable-fast-commit.json b/cards/linux/ext4-enable-fast-commit.json new file mode 100644 index 0000000000000000000000000000000000000000..e75e5d330186a412b66c5eddf1b63e475d986715 --- /dev/null +++ b/cards/linux/ext4-enable-fast-commit.json @@ -0,0 +1,82 @@ +{ + "schema_version": 2, + "id": "ext4-enable-fast-commit", + "platform": "linux", + "kind": "task", + "title": "Enable fast_commit feature on ext4", + "summary": "Enable the fast_commit journaling feature to improve ext4 performance. Can be enabled on existing filesystems.", + "aliases": [ + { + "text": "enable fast commit ext4", + "lang": "en" + }, + { + "text": "ext4 fast commit", + "lang": "en" + }, + { + "text": "tune2fs fast_commit", + "lang": "en" + }, + { + "text": "включить fast commit ext4", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "arch" + } + ] + }, + "prerequisites": [ + "Identify the device path of the ext4 filesystem" + ], + "steps": [ + { + "explain": "Enable the fast_commit feature on the specified partition.", + "cmd": "sudo tune2fs -O fast_commit ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "DEVICE", + "description": "The block device path (e.g., /dev/sda1)", + "discover_cmd": "lsblk" + } + ] + } + ], + "risk": "medium", + "verify": [ + { + "cmd": "sudo tune2fs -l | grep features", + "expect": "Output includes 'fast_commit'." + } + ], + "rollback": [ + { + "explain": "Disable the fast_commit feature.", + "cmd": "sudo tune2fs -O '^fast_commit' ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "DEVICE", + "description": "The block device path" + } + ] + } + ], + "warnings": [ + "Enabling this feature can cause system corruption in case of a power cut.", + "Ensure you have backups before enabling experimental filesystem features." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Ext4#Enabling_fast_commit", + "title": "Ext4", + "revision_id": 876860, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/fcitx-diagnose-problem.json b/cards/linux/fcitx-diagnose-problem.json new file mode 100644 index 0000000000000000000000000000000000000000..fbc425c20340e60a23fed8f8f815c1c5c255183b --- /dev/null +++ b/cards/linux/fcitx-diagnose-problem.json @@ -0,0 +1,52 @@ +{ + "schema_version": 2, + "id": "fcitx-diagnose-problem", + "platform": "linux", + "kind": "task", + "title": "Diagnose Fcitx input method issues", + "summary": "Run the built-in diagnostic tool to identify why Fcitx might not be working, such as Ctrl+Space failing to switch input methods.", + "aliases": [ + { + "text": "fcitx diagnose", + "lang": "en" + }, + { + "text": "fcitx not working", + "lang": "en" + }, + { + "text": "ctrl space fcitx not working", + "lang": "en" + }, + { + "text": "диагностика fcitx", + "lang": "ru" + }, + { + "text": "fcitx не переключает язык", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Run the diagnostic command to check the status of Fcitx and its configuration.", + "cmd": "fcitx-diagnose", + "risk": "low", + "expect": "Output containing clues about common problems, such as missing environment variables or input method modules." + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Fcitx#Diagnose_the_problem", + "title": "Fcitx", + "revision_id": 869571, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/fcitx-disable-xkb-override.json b/cards/linux/fcitx-disable-xkb-override.json new file mode 100644 index 0000000000000000000000000000000000000000..fb0ebab2de6d11e390dc854b0f0a237e280a1a7b --- /dev/null +++ b/cards/linux/fcitx-disable-xkb-override.json @@ -0,0 +1,66 @@ +{ + "schema_version": 2, + "id": "fcitx-disable-xkb-override", + "platform": "linux", + "kind": "task", + "title": "Prevent Fcitx from overriding system XKB settings", + "summary": "Configure Fcitx to stop overwriting keyboard layouts set by setxkbmap or xmodmap, allowing independent management.", + "aliases": [ + { + "text": "fcitx overrides xkb", + "lang": "en" + }, + { + "text": "setxkbmap fcitx conflict", + "lang": "en" + }, + { + "text": "fcitx keyboard layout", + "lang": "en" + }, + { + "text": "fcitx переопределяет раскладку", + "lang": "ru" + }, + { + "text": "конфликт fcitx и setxkbmap", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Open the Fcitx configuration GUI (fcitx-config-gtk3).", + "gui": "Run 'fcitx-config-gtk3' or open it from the application menu.", + "risk": "low" + }, + { + "explain": "Go to the 'Addon' tab and select 'Advanced'.", + "gui": "Click on the 'Addon' tab, then select 'Advanced' from the list.", + "risk": "low" + }, + { + "explain": "Find 'X Keyboards Integration' in the list and click 'Configure'.", + "gui": "Search for 'xkb' or scroll to find 'X Keyboards Integration', then click the 'Configure' button.", + "risk": "low" + }, + { + "explain": "Uncheck 'Allow to Override System XKB Settings' and click OK.", + "gui": "Uncheck the box labeled 'Allow to Override System XKB Settings', then click 'OK'.", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Fcitx#Fcitx_and_setxkbmap", + "title": "Fcitx", + "revision_id": 869571, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/fcitx-fix-gtk-ctrl-space.json b/cards/linux/fcitx-fix-gtk-ctrl-space.json new file mode 100644 index 0000000000000000000000000000000000000000..03b194edfb407bf209507892e98674fde6fe1aaf --- /dev/null +++ b/cards/linux/fcitx-fix-gtk-ctrl-space.json @@ -0,0 +1,55 @@ +{ + "schema_version": 2, + "id": "fcitx-fix-gtk-ctrl-space", + "platform": "linux", + "kind": "task", + "title": "Fix Ctrl+Space not working in GTK programs", + "summary": "Force GNOME settings to use Fcitx as the input module if Ctrl+Space fails to activate it in GTK applications.", + "aliases": [ + { + "text": "ctrl space not working gnome", + "lang": "en" + }, + { + "text": "fcitx gtk not working", + "lang": "en" + }, + { + "text": "gnome terminal fcitx", + "lang": "en" + }, + { + "text": "ctrl space не работает в gtk", + "lang": "ru" + }, + { + "text": "fcitx в gnome terminal", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "desktop": [ + "gnome" + ] + }, + "steps": [ + { + "explain": "Set the GNOME settings override to explicitly use Fcitx as the GTK input module.", + "cmd": "gsettings set org.gnome.settings-daemon.plugins.xsettings overrides \"{'Gtk/IMModule':<'fcitx'>}\"", + "risk": "low", + "expect": "No output, but Ctrl+Space should now work in GTK applications like gnome-terminal." + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Fcitx#Ctrl+Space_fail_to_work_in_GTK_programs", + "title": "Fcitx", + "revision_id": 869571, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/fcitx-fix-kde-layouts.json b/cards/linux/fcitx-fix-kde-layouts.json new file mode 100644 index 0000000000000000000000000000000000000000..1c2bd4da708b4834a5d86bc074cbbeeb66873069 --- /dev/null +++ b/cards/linux/fcitx-fix-kde-layouts.json @@ -0,0 +1,91 @@ +{ + "schema_version": 2, + "id": "fcitx-fix-kde-layouts", + "platform": "linux", + "kind": "task", + "title": "Fix keyboard layouts in KDE with Fcitx", + "summary": "Resolve issues where KDE keyboard layouts do not switch correctly when Fcitx is running by disabling KDE's own layout configuration.", + "aliases": [ + { + "text": "kde fcitx keyboard layout", + "lang": "en" + }, + { + "text": "fcitx kde layout not switching", + "lang": "en" + }, + { + "text": "kde input devices fcitx", + "lang": "en" + }, + { + "text": "kde fcitx раскладка клавиатуры", + "lang": "ru" + }, + { + "text": "не переключается раскладка kde fcitx", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "desktop": [ + "kde" + ] + }, + "steps": [ + { + "explain": "Stop Fcitx if it is running.", + "cmd": "fcitx-remote -c", + "risk": "low", + "expect": "Fcitx stops." + }, + { + "explain": "Open KDE System Settings.", + "gui": "Open 'System Settings' from the application launcher.", + "risk": "low" + }, + { + "explain": "Go to Input Devices > Layouts and uncheck 'Configure layouts'.", + "gui": "Navigate to 'Input Devices' > 'Layouts' tab. Uncheck the box 'Configure layouts'.", + "risk": "medium" + }, + { + "explain": "Go to Input Devices > Advanced and uncheck 'Configure keyboard options'.", + "gui": "Navigate to 'Input Devices' > 'Advanced' tab. Uncheck the box 'Configure keyboard options'.", + "risk": "medium" + }, + { + "explain": "Start Fcitx again.", + "cmd": "fcitx &", + "risk": "low", + "expect": "Fcitx starts in the background." + }, + { + "explain": "Configure your layouts in Fcitx via the tray icon.", + "gui": "Right-click the Fcitx tray icon, select 'Configure', and add your desired layouts.", + "risk": "low" + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Re-enable 'Configure layouts' and 'Configure keyboard options' in KDE System Settings.", + "gui": "Go back to System Settings > Input Devices and re-check the boxes.", + "risk": "medium" + } + ], + "warnings": [ + "Disabling KDE layout configuration means you must manage all keyboard layouts through Fcitx." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Fcitx#fcitx_and_KDE", + "title": "Fcitx", + "revision_id": 869571, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/fcitx-set-environment-variables.json b/cards/linux/fcitx-set-environment-variables.json new file mode 100644 index 0000000000000000000000000000000000000000..ac843425d029563a242480c4ef15ef89d8e206a8 --- /dev/null +++ b/cards/linux/fcitx-set-environment-variables.json @@ -0,0 +1,50 @@ +{ + "schema_version": 2, + "id": "fcitx-set-environment-variables", + "platform": "linux", + "kind": "task", + "title": "Set Fcitx environment variables for GTK and Qt", + "summary": "Configure environment variables so that GTK and Qt applications use Fcitx for input instead of falling back to XIM.", + "aliases": [ + { + "text": "fcitx environment variables", + "lang": "en" + }, + { + "text": "set gtk_im_module fcitx", + "lang": "en" + }, + { + "text": "fcitx not working in apps", + "lang": "en" + }, + { + "text": "настроить переменные окружения fcitx", + "lang": "ru" + }, + { + "text": "fcitx не работает в программах", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Add the following lines to your ~/.xprofile file to register the input method modules. Log out and back in for changes to take effect.", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Fcitx#Set_environment_variables_for_IM_modules", + "title": "Fcitx", + "revision_id": 869571, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/fcitx5-diagnose.json b/cards/linux/fcitx5-diagnose.json new file mode 100644 index 0000000000000000000000000000000000000000..84c2583ac3e259dadec4ce65c9d1e37de5e4f218 --- /dev/null +++ b/cards/linux/fcitx5-diagnose.json @@ -0,0 +1,51 @@ +{ + "schema_version": 2, + "id": "fcitx5-diagnose", + "platform": "linux", + "kind": "task", + "title": "Diagnose Fcitx5 issues", + "summary": "Run the built-in diagnostic tool to check if Fcitx5 is correctly configured and identify common problems with input method activation.", + "aliases": [ + { + "text": "fcitx5 diagnose", + "lang": "en" + }, + { + "text": "check fcitx5 status", + "lang": "en" + }, + { + "text": "fcitx5 not working fix", + "lang": "en" + }, + { + "text": "диагностика fcitx5", + "lang": "ru" + }, + { + "text": "проверить fcitx5", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Run the fcitx5-diagnose command in a terminal.", + "cmd": "fcitx5-diagnose", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Fcitx5#Diagnose_problems", + "title": "Fcitx5", + "revision_id": 875713, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/fcitx5-disable-xkb-override.json b/cards/linux/fcitx5-disable-xkb-override.json new file mode 100644 index 0000000000000000000000000000000000000000..3e1ffc1b8af787ee79bb0fde9aea3f2363508cae --- /dev/null +++ b/cards/linux/fcitx5-disable-xkb-override.json @@ -0,0 +1,52 @@ +{ + "schema_version": 2, + "id": "fcitx5-disable-xkb-override", + "platform": "linux", + "kind": "task", + "title": "Disable Fcitx5 overriding XKB settings", + "summary": "Prevent Fcitx5 from overriding your system keyboard layout settings (XKB). Useful if you want to manage keyboard layouts via setxkbmap or your desktop environment instead.", + "aliases": [ + { + "text": "fcitx5 xkb override", + "lang": "en" + }, + { + "text": "stop fcitx5 changing keyboard layout", + "lang": "en" + }, + { + "text": "fcitx5 setxkbmap conflict", + "lang": "en" + }, + { + "text": "отключить переопределение xkb fcitx5", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Open the Fcitx5 configuration tool.", + "cmd": "fcitx5-configtool", + "risk": "low" + }, + { + "explain": "Navigate to Addons > XCB and uncheck 'Allow Overriding System XKB Settings'.", + "gui": "In Fcitx5 Configuration: Go to 'Addons', select 'XCB', and uncheck 'Allow Overriding System XKB Settings'.", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Fcitx5#Disable_overriding_XKB_settings", + "title": "Fcitx5", + "revision_id": 875713, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/file-change-ownership.json b/cards/linux/file-change-ownership.json new file mode 100644 index 0000000000000000000000000000000000000000..e2397bf0f7f499b9d5506ef6e8fe8db329b5755c --- /dev/null +++ b/cards/linux/file-change-ownership.json @@ -0,0 +1,96 @@ +{ + "schema_version": 2, + "id": "file-change-ownership", + "platform": "linux", + "kind": "task", + "title": "Change file or directory owner", + "summary": "Use chown to change the owner of a file or directory. This is often necessary when files are created by root but need to be accessed by a regular user.", + "aliases": [ + { + "text": "change file owner linux", + "lang": "en" + }, + { + "text": "chown command", + "lang": "en" + }, + { + "text": "make file owned by user", + "lang": "en" + }, + { + "text": "fix permission denied root", + "lang": "en" + }, + { + "text": "изменить владельца файла", + "lang": "ru" + }, + { + "text": "chown как использовать", + "lang": "ru" + }, + { + "text": "сменить владельца папки", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Change the owner of a file or directory to a specific user. Requires root privileges.", + "cmd": "sudo chown ", + "risk": "medium", + "needs_root": true, + "placeholders": [ + { + "name": "USERNAME", + "description": "The username of the new owner.", + "example": "archie" + }, + { + "name": "PATH", + "description": "Path to the file or directory.", + "example": "/media/Backup" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Change ownership back to the original owner (often root).", + "cmd": "sudo chown ", + "risk": "medium", + "needs_root": true, + "placeholders": [ + { + "name": "ORIGINAL_OWNER", + "description": "The original owner of the file (e.g., root).", + "example": "root" + }, + { + "name": "PATH", + "description": "Path to the file or directory.", + "example": "/media/Backup" + } + ] + } + ], + "warnings": [ + "chown clears setuid and setgid bits.", + "Non-root users cannot give away files they own to other users." + ], + "source": { + "url": "https://wiki.archlinux.org/title/File_permissions_and_attributes#Changing_ownership", + "title": "File permissions and attributes", + "revision_id": 885848, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/file-change-permissions-numeric.json b/cards/linux/file-change-permissions-numeric.json new file mode 100644 index 0000000000000000000000000000000000000000..8c5e21fa5b15328ed755b6e1508b38780f810201 --- /dev/null +++ b/cards/linux/file-change-permissions-numeric.json @@ -0,0 +1,122 @@ +{ + "schema_version": 2, + "id": "file-change-permissions-numeric", + "platform": "linux", + "kind": "task", + "title": "Change file permissions using numeric method", + "summary": "Use chmod with a 3-digit number to set read, write, and execute permissions for owner, group, and others simultaneously. Common defaults are 755 for directories and 644 for files.", + "aliases": [ + { + "text": "chmod 755", + "lang": "en" + }, + { + "text": "chmod 644", + "lang": "en" + }, + { + "text": "numeric permissions linux", + "lang": "en" + }, + { + "text": "octal chmod", + "lang": "en" + }, + { + "text": "изменить права числами", + "lang": "ru" + }, + { + "text": "chmod 777", + "lang": "ru" + }, + { + "text": "права доступа в цифрах", + "lang": "ru" + }, + { + "text": "numeric permissions linux/en", + "lang": "en" + }, + { + "text": "права доступа в цифрах/ru", + "lang": "ru" + }, + { + "text": "set permissions numeric", + "lang": "en" + }, + { + "text": "octal permissions", + "lang": "en" + }, + { + "text": "chmod numbers", + "lang": "en" + }, + { + "text": "установить права числами", + "lang": "ru" + }, + { + "text": "права доступа 755", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Set permissions using a 3-digit octal number. Each digit represents owner, group, and others. r=4, w=2, x=1.", + "cmd": "chmod ", + "risk": "medium", + "placeholders": [ + { + "name": "OCTAL", + "description": "3-digit octal permission value (e.g., 755 for rwxr-xr-x, 644 for rw-r--r--).", + "example": "755" + }, + { + "name": "FILENAME", + "description": "Path to the file or directory.", + "example": "myfile.txt" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Restore original permissions if known.", + "cmd": "chmod ", + "risk": "medium", + "placeholders": [ + { + "name": "ORIGINAL_OCTAL", + "description": "The original 3-digit octal permission value.", + "example": "644" + }, + { + "name": "FILENAME", + "description": "Path to the file.", + "example": "myfile.txt" + } + ] + } + ], + "warnings": [ + "Using 777 gives everyone full access and is a security risk.", + "Verify current permissions with 'stat -c %a ' before changing." + ], + "source": { + "url": "https://wiki.archlinux.org/title/File_permissions_and_attributes#Numeric_method", + "title": "File permissions and attributes", + "revision_id": 885848, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/file-change-permissions-text.json b/cards/linux/file-change-permissions-text.json new file mode 100644 index 0000000000000000000000000000000000000000..42cfec9da9bbb3f7a13e9b8308a4db8ca26cd1bd --- /dev/null +++ b/cards/linux/file-change-permissions-text.json @@ -0,0 +1,143 @@ +{ + "schema_version": 2, + "id": "file-change-permissions-text", + "platform": "linux", + "kind": "task", + "title": "Change file permissions using text method", + "summary": "Use chmod with letters (u, g, o, a) and symbols (r, w, x) to grant or remove specific permissions for the owner, group, or others.", + "aliases": [ + { + "text": "chmod text method", + "lang": "en" + }, + { + "text": "give write permission to group", + "lang": "en" + }, + { + "text": "remove execute permission", + "lang": "en" + }, + { + "text": "chmod u g o", + "lang": "en" + }, + { + "text": "изменить права доступа текстом", + "lang": "ru" + }, + { + "text": "chmod g+w", + "lang": "ru" + }, + { + "text": "дать права на запись группе", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Set permissions for a specific user class. Replace with u (user), g (group), o (others), or a (all). Replace with combinations of r, w, x, or leave empty to remove all.", + "cmd": "chmod = ", + "risk": "medium", + "placeholders": [ + { + "name": "WHO", + "description": "Who to change: u (owner), g (group), o (others), a (all).", + "example": "g" + }, + { + "name": "PERMS", + "description": "Permissions to set: r (read), w (write), x (execute). Empty string removes all.", + "example": "rw" + }, + { + "name": "FILENAME", + "description": "Path to the file or directory.", + "example": "myfile.txt" + } + ], + "alternatives": [ + { + "explain": "Add a permission without removing others.", + "cmd": "chmod + ", + "placeholders": [ + { + "name": "WHO", + "description": "Who to change: u, g, o, a.", + "example": "g" + }, + { + "name": "PERM", + "description": "Single permission to add: r, w, or x.", + "example": "w" + }, + { + "name": "FILENAME", + "description": "Path to the file.", + "example": "myfile.txt" + } + ] + }, + { + "explain": "Remove a permission without affecting others.", + "cmd": "chmod - ", + "placeholders": [ + { + "name": "WHO", + "description": "Who to change: u, g, o, a.", + "example": "a" + }, + { + "name": "PERM", + "description": "Single permission to remove: r, w, or x.", + "example": "w" + }, + { + "name": "FILENAME", + "description": "Path to the file.", + "example": "myfile.txt" + } + ] + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Restore original permissions if known, or use numeric method if you know the original octal value.", + "cmd": "chmod ", + "risk": "medium", + "placeholders": [ + { + "name": "ORIGINAL_OCTAL", + "description": "The original 3-digit octal permission value (e.g., 644).", + "example": "644" + }, + { + "name": "FILENAME", + "description": "Path to the file.", + "example": "myfile.txt" + } + ] + } + ], + "warnings": [ + "Changing permissions incorrectly can lock you out of files or expose sensitive data.", + "Always verify the current permissions with 'ls -l' before changing them." + ], + "source": { + "url": "https://wiki.archlinux.org/title/File_permissions_and_attributes#Changing_permissions", + "title": "File permissions and attributes", + "revision_id": 885848, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/file-view-permissions.json b/cards/linux/file-view-permissions.json new file mode 100644 index 0000000000000000000000000000000000000000..0c9d4a66c78bf00303e3039aca810c509ea7a2f9 --- /dev/null +++ b/cards/linux/file-view-permissions.json @@ -0,0 +1,66 @@ +{ + "schema_version": 2, + "id": "file-view-permissions", + "platform": "linux", + "kind": "task", + "title": "View file and directory permissions", + "summary": "Use the ls command with the -l option to see who can read, write, or execute a file or directory. The first column shows the permission bits.", + "aliases": [ + { + "text": "check file permissions", + "lang": "en" + }, + { + "text": "ls -l meaning", + "lang": "en" + }, + { + "text": "how to see who owns a file", + "lang": "en" + }, + { + "text": "view access rights linux", + "lang": "en" + }, + { + "text": "проверить права доступа", + "lang": "ru" + }, + { + "text": "ls -l что значит", + "lang": "ru" + }, + { + "text": "кто владелец файла", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "List the contents of a directory in long format to display permissions, owner, and group.", + "cmd": "ls -l ", + "risk": "low", + "placeholders": [ + { + "name": "PATH", + "description": "Path to the file or directory you want to inspect.", + "example": "/home/user/Documents" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/File_permissions_and_attributes#Viewing_permissions", + "title": "File permissions and attributes", + "revision_id": 885848, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/firefox-hidpi-settings.json b/cards/linux/firefox-hidpi-settings.json new file mode 100644 index 0000000000000000000000000000000000000000..f72afeaeaaf76bcafbd76257f1435795025a5dee --- /dev/null +++ b/cards/linux/firefox-hidpi-settings.json @@ -0,0 +1,60 @@ +{ + "schema_version": 2, + "id": "firefox-hidpi-settings", + "platform": "linux", + "kind": "task", + "title": "Adjust Firefox HiDPI settings", + "summary": "Configure Firefox's internal scaling settings via about:config to fix blurry or incorrectly sized UI elements on HiDPI displays.", + "aliases": [ + { + "text": "firefox hidpi scaling", + "lang": "en" + }, + { + "text": "firefox too small", + "lang": "en" + }, + { + "text": "firefox display scale", + "lang": "en" + }, + { + "text": "firefox hidpi", + "lang": "ru" + }, + { + "text": "масштаб firefox", + "lang": "ru" + }, + { + "text": "файрфокс мелкие шрифты", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Open Firefox and navigate to about:config.", + "gui": "Type about:config in the address bar", + "risk": "low" + }, + { + "explain": "Search for 'layout.css.devPixelsPerPx' and set it to a value like 1.25 or 1.5 to increase UI scaling.", + "gui": "Set 'layout.css.devPixelsPerPx' to 1.5", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/HiDPI#Firefox", + "title": "HiDPI", + "revision_id": 886689, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/flatpak-add-flathub-user.json b/cards/linux/flatpak-add-flathub-user.json new file mode 100644 index 0000000000000000000000000000000000000000..01c0d0b341f87c7858586a994ec29c6027cd8212 --- /dev/null +++ b/cards/linux/flatpak-add-flathub-user.json @@ -0,0 +1,95 @@ +{ + "schema_version": 2, + "id": "flatpak-add-flathub-user", + "platform": "linux", + "kind": "task", + "title": "Add Flathub repository for current user", + "summary": "Add the official Flathub repository to your user configuration. This allows installing apps without root privileges.", + "aliases": [ + { + "text": "add flathub repo", + "lang": "en" + }, + { + "text": "flatpak add remote user", + "lang": "en" + }, + { + "text": "добавить flathub", + "lang": "ru" + }, + { + "text": "flatpak remote add", + "lang": "ru" + }, + { + "text": "add flatpak remote", + "lang": "en" + }, + { + "text": "add flathub to flatpak", + "lang": "en" + }, + { + "text": "добавить репозиторий flatpak", + "lang": "ru" + }, + { + "text": "configure flatpak source", + "lang": "en" + }, + { + "text": "flatpak add remote", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "flatpak" + ] + }, + "steps": [ + { + "explain": "Add the Flathub repository for the current user only.", + "cmd": "flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo", + "risk": "low", + "alternatives": [ + { + "explain": "Adds a new remote source if it doesn't already exist, allowing you to install apps from it.", + "cmd": "flatpak remote-add --if-not-exists ", + "placeholders": [ + { + "name": "REMOTE_NAME", + "description": "A name for the remote source (e.g., flathub).", + "example": "flathub" + }, + { + "name": "REMOTE_URL", + "description": "The URL of the remote repository.", + "example": "https://flathub.org/repo/flathub.flatpakrepo" + } + ], + "risk": "low" + } + ] + } + ], + "verify": [ + { + "cmd": "flatpak remotes", + "expect": "flathub is listed in the remotes." + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Flatpak#Add_a_repository", + "title": "Flatpak", + "revision_id": 886042, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/flatpak-install-app.json b/cards/linux/flatpak-install-app.json new file mode 100644 index 0000000000000000000000000000000000000000..fdfa183b29f1dad60a1ed86bd3ee413c75f088bf --- /dev/null +++ b/cards/linux/flatpak-install-app.json @@ -0,0 +1,112 @@ +{ + "schema_version": 2, + "id": "flatpak-install-app", + "platform": "linux", + "kind": "task", + "title": "Install a Flatpak application", + "summary": "Install a specific application from a Flatpak repository like Flathub. You can search for the app first to find its exact ID.", + "aliases": [ + { + "text": "install flatpak app", + "lang": "en" + }, + { + "text": "how to install flatpak", + "lang": "en" + }, + { + "text": "flatpak install command", + "lang": "en" + }, + { + "text": "установить flatpak приложение", + "lang": "ru" + }, + { + "text": "как установить flatpak", + "lang": "ru" + }, + { + "text": "flatpak install", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "flatpak" + ] + }, + "prerequisites": [ + "Flatpak is installed", + "A remote repository (like flathub) is added" + ], + "steps": [ + { + "explain": "Search for the application to find its exact ID or name.", + "cmd": "flatpak search ", + "risk": "low", + "placeholders": [ + { + "name": "SEARCH_TERM", + "description": "The name of the application you want to find", + "example": "libreoffice" + } + ] + }, + { + "explain": "Install the application from the specified remote (usually flathub).", + "cmd": "flatpak install ", + "risk": "low", + "placeholders": [ + { + "name": "REMOTE", + "description": "The name of the remote repository", + "example": "flathub", + "discover_cmd": "flatpak remotes" + }, + { + "name": "APP_ID", + "description": "The application ID found in the previous step", + "example": "org.libreoffice.LibreOffice" + } + ], + "alternatives": [ + { + "explain": "Install for the current user only (no root password needed).", + "cmd": "flatpak install --user ", + "risk": "low", + "placeholders": [ + { + "name": "REMOTE", + "description": "The name of the remote repository", + "example": "flathub" + }, + { + "name": "APP_ID", + "description": "The application ID", + "example": "org.libreoffice.LibreOffice" + } + ] + } + ] + } + ], + "verify": [ + { + "cmd": "flatpak list", + "expect": "The installed application appears in the list." + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Flatpak#Install_a_runtime_or_application", + "title": "Flatpak", + "revision_id": 886042, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/flatpak-override-permission.json b/cards/linux/flatpak-override-permission.json new file mode 100644 index 0000000000000000000000000000000000000000..53f46e8f059925b386d84a42b1382cc3623bc508 --- /dev/null +++ b/cards/linux/flatpak-override-permission.json @@ -0,0 +1,88 @@ +{ + "schema_version": 2, + "id": "flatpak-override-permission", + "platform": "linux", + "kind": "task", + "title": "Override Flatpak application permissions", + "summary": "Change what a Flatpak application is allowed to access, such as denying access to the home folder.", + "aliases": [ + { + "text": "change flatpak permissions", + "lang": "en" + }, + { + "text": "flatpak override", + "lang": "en" + }, + { + "text": "изменить права flatpak", + "lang": "ru" + }, + { + "text": "flatpak override command", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "flatpak" + ] + }, + "steps": [ + { + "explain": "Override permissions for the application. This example denies access to the home folder.", + "cmd": "flatpak override --nofilesystem=home ", + "risk": "medium", + "placeholders": [ + { + "name": "APP_ID", + "description": "The ID of the application", + "example": "org.libreoffice.LibreOffice" + } + ], + "alternatives": [ + { + "explain": "Reset all overrides to default permissions.", + "cmd": "flatpak override --reset ", + "risk": "medium", + "placeholders": [ + { + "name": "APP_ID", + "description": "The ID of the application", + "example": "org.libreoffice.LibreOffice" + } + ] + } + ] + } + ], + "rollback": [ + { + "explain": "Reset permissions to default.", + "cmd": "flatpak override --reset ", + "risk": "medium", + "placeholders": [ + { + "name": "APP_ID", + "description": "The ID of the application", + "example": "org.libreoffice.LibreOffice" + } + ] + } + ], + "warnings": [ + "Changing permissions can break application functionality." + ], + "risk": "medium", + "source": { + "url": "https://wiki.archlinux.org/title/Flatpak#Override_sandbox_permissions_of_applications", + "title": "Flatpak", + "revision_id": 886042, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/flatpak-uninstall-app.json b/cards/linux/flatpak-uninstall-app.json new file mode 100644 index 0000000000000000000000000000000000000000..b6588a7991b9580157e4a6dac8d5922a5bdf3319 --- /dev/null +++ b/cards/linux/flatpak-uninstall-app.json @@ -0,0 +1,136 @@ +{ + "schema_version": 2, + "id": "flatpak-uninstall-app", + "platform": "linux", + "kind": "task", + "title": "Uninstall a Flatpak application", + "summary": "Remove a Flatpak application. You can also choose to delete its user data.", + "aliases": [ + { + "text": "uninstall flatpak app", + "lang": "en" + }, + { + "text": "remove flatpak", + "lang": "en" + }, + { + "text": "удалить flatpak приложение", + "lang": "ru" + }, + { + "text": "flatpak uninstall", + "lang": "ru" + }, + { + "text": "remove flatpak app/en", + "lang": "en" + }, + { + "text": "delete flatpak application/en", + "lang": "en" + }, + { + "text": "как удалить flatpak/ru", + "lang": "ru" + }, + { + "text": "remove flatpak app", + "lang": "en" + }, + { + "text": "uninstall flatpak", + "lang": "en" + }, + { + "text": "delete flatpak application", + "lang": "en" + }, + { + "text": "flatpak remove", + "lang": "en" + }, + { + "text": "как удалить flatpak", + "lang": "ru" + }, + { + "text": "flatpak remove app", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "flatpak" + ] + }, + "steps": [ + { + "explain": "Uninstall the application. Add --delete-data to also remove user data and permissions.", + "cmd": "flatpak uninstall ", + "risk": "low", + "placeholders": [ + { + "name": "APP_ID", + "description": "The ID of the application to remove", + "example": "org.libreoffice.LibreOffice", + "discover_cmd": "flatpak list" + } + ], + "alternatives": [ + { + "explain": "Uninstall and delete all user data associated with the app.", + "cmd": "flatpak uninstall --delete-data ", + "risk": "medium", + "placeholders": [ + { + "name": "APP_ID", + "description": "The ID of the application to remove", + "example": "org.libreoffice.LibreOffice" + } + ] + } + ] + } + ], + "verify": [ + { + "cmd": "flatpak list", + "expect": "The application is no longer in the list." + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Reinstall the application to restore it. Note that deleted user data cannot be automatically restored.", + "cmd": "flatpak install ", + "risk": "low", + "placeholders": [ + { + "name": "REMOTE", + "description": "The remote repository name", + "example": "flathub" + }, + { + "name": "APP_ID", + "description": "The application ID", + "example": "org.libreoffice.LibreOffice" + } + ] + } + ], + "warnings": [ + "Using --delete-data permanently removes user settings and data for that application." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Flatpak#Uninstall_a_runtime_or_application", + "title": "Flatpak", + "revision_id": 886042, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/flatpak-view-permissions.json b/cards/linux/flatpak-view-permissions.json new file mode 100644 index 0000000000000000000000000000000000000000..a6eee55f0af829a98b9acd784ff1159fc986acdf --- /dev/null +++ b/cards/linux/flatpak-view-permissions.json @@ -0,0 +1,58 @@ +{ + "schema_version": 2, + "id": "flatpak-view-permissions", + "platform": "linux", + "kind": "task", + "title": "View Flatpak application permissions", + "summary": "Check what resources and file system paths a Flatpak application is allowed to access.", + "aliases": [ + { + "text": "check flatpak permissions", + "lang": "en" + }, + { + "text": "flatpak info permissions", + "lang": "en" + }, + { + "text": "права доступа flatpak", + "lang": "ru" + }, + { + "text": "flatpak permissions", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "flatpak" + ] + }, + "steps": [ + { + "explain": "Show the sandbox permissions for the specified application.", + "cmd": "flatpak info --show-permissions ", + "risk": "low", + "placeholders": [ + { + "name": "APP_ID", + "description": "The ID of the application", + "example": "org.libreoffice.LibreOffice", + "discover_cmd": "flatpak list" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Flatpak#View_sandbox_permissions_of_application", + "title": "Flatpak", + "revision_id": 886042, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/font-enable-subpixel-rgb-user.json b/cards/linux/font-enable-subpixel-rgb-user.json new file mode 100644 index 0000000000000000000000000000000000000000..62e2ed2d54c62702f94586f0edcb0c154121abf2 --- /dev/null +++ b/cards/linux/font-enable-subpixel-rgb-user.json @@ -0,0 +1,56 @@ +{ + "schema_version": 2, + "id": "font-enable-subpixel-rgb-user", + "platform": "linux", + "kind": "task", + "title": "Enable sub-pixel RGB rendering for current user", + "summary": "Enable sub-pixel RGB rendering for your user account by creating a symbolic link in your local fontconfig directory.", + "aliases": [ + { + "text": "enable subpixel user", + "lang": "en" + }, + { + "text": "subpixel rgb user config", + "lang": "en" + }, + { + "text": "fontconfig user subpixel", + "lang": "en" + }, + { + "text": "включить субпиксельный рендеринг для пользователя", + "lang": "ru" + }, + { + "text": "настроить шрифты для пользователя", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "arch" + } + ] + }, + "steps": [ + { + "explain": "Create the user fontconfig directory if it does not exist.", + "cmd": "mkdir $XDG_CONFIG_HOME/fontconfig/conf.d", + "risk": "low" + }, + { + "explain": "Create a symbolic link to the sub-pixel RGB preset in the user fontconfig directory.", + "cmd": "ln -s /usr/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf $XDG_CONFIG_HOME/fontconfig/conf.d/", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Font_configuration#Presets", + "title": "Font configuration", + "revision_id": 876996, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/font-list-installed.json b/cards/linux/font-list-installed.json new file mode 100644 index 0000000000000000000000000000000000000000..fb6a15b8fe1aafdd4beb6ebdee4107b1fc143c7d --- /dev/null +++ b/cards/linux/font-list-installed.json @@ -0,0 +1,59 @@ +{ + "schema_version": 2, + "id": "font-list-installed", + "platform": "linux", + "kind": "task", + "title": "List installed fonts", + "summary": "Use fc-list to see which fonts are available on your system. This helps verify if a specific font is installed.", + "aliases": [ + { + "text": "list fonts", + "lang": "en" + }, + { + "text": "check installed fonts", + "lang": "en" + }, + { + "text": "fc-list", + "lang": "en" + }, + { + "text": "what fonts do i have", + "lang": "en" + }, + { + "text": "список шрифтов", + "lang": "ru" + }, + { + "text": "какие шрифты установлены", + "lang": "ru" + }, + { + "text": "fc-list вывод", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Run fc-list to display all fonts known to Fontconfig.", + "cmd": "fc-list ':' file", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Font_configuration#Font_paths", + "title": "Font configuration", + "revision_id": 876996, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/font-query-settings.json b/cards/linux/font-query-settings.json new file mode 100644 index 0000000000000000000000000000000000000000..f149b03470440139d3dcac9251e4e90611eee8a4 --- /dev/null +++ b/cards/linux/font-query-settings.json @@ -0,0 +1,55 @@ +{ + "schema_version": 2, + "id": "font-query-settings", + "platform": "linux", + "kind": "task", + "title": "Query current font settings", + "summary": "Use fc-match to see which font and settings are actually used for a specific font family. This helps debug font rendering issues.", + "aliases": [ + { + "text": "check font settings", + "lang": "en" + }, + { + "text": "fc-match verbose", + "lang": "en" + }, + { + "text": "what font is used", + "lang": "en" + }, + { + "text": "проверить настройки шрифтов", + "lang": "ru" + }, + { + "text": "какой шрифт используется", + "lang": "ru" + }, + { + "text": "fc-match", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Run fc-match with the --verbose flag and a font family name (e.g., Sans) to see the resolved font and its properties.", + "cmd": "fc-match --verbose Sans", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Font_configuration#Query_the_current_settings", + "title": "Font configuration", + "revision_id": 876996, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/fonts-disable-ligatures-monospace.json b/cards/linux/fonts-disable-ligatures-monospace.json new file mode 100644 index 0000000000000000000000000000000000000000..ddcae0ecce11948c4297469b8c2dd4ccb27f1430 --- /dev/null +++ b/cards/linux/fonts-disable-ligatures-monospace.json @@ -0,0 +1,63 @@ +{ + "schema_version": 2, + "id": "fonts-disable-ligatures-monospace", + "platform": "linux", + "kind": "task", + "title": "Disable ligatures for monospaced fonts", + "summary": "Prevent character combinations like 'ffi' or 'fi' from merging into single glyphs in monospaced fonts. This is useful for coding or terminal usage where distinct characters are preferred.", + "aliases": [ + { + "text": "disable font ligatures", + "lang": "en" + }, + { + "text": "fix ffi ligature", + "lang": "en" + }, + { + "text": "monospace font ligatures off", + "lang": "en" + }, + { + "text": "отключить лигатуры шрифтов", + "lang": "ru" + }, + { + "text": "ffi сливается в один символ", + "lang": "ru" + }, + { + "text": "убрать лигатуры в терминале", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Edit ~/.config/fontconfig/fonts.conf and add a block testing for the font family and appending 'liga off' and 'dlig off' to fontfeatures.", + "risk": "medium" + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Remove the configuration file.", + "risk": "low" + } + ], + "warnings": [ + "Some applications may not support the fontfeatures tag and will ignore this setting." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Font_configuration/Examples#Disable_ligatures_for_monospaced_fonts", + "title": "Font configuration/Examples", + "revision_id": 876998, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/fonts-enable-hinting-and-antialiasing.json b/cards/linux/fonts-enable-hinting-and-antialiasing.json new file mode 100644 index 0000000000000000000000000000000000000000..2d44d022bae0e411090e7b2ad375d1a9e00e3668 --- /dev/null +++ b/cards/linux/fonts-enable-hinting-and-antialiasing.json @@ -0,0 +1,63 @@ +{ + "schema_version": 2, + "id": "fonts-enable-hinting-and-antialiasing", + "platform": "linux", + "kind": "task", + "title": "Enable font hinting and anti-aliasing", + "summary": "Configure Fontconfig to enable anti-aliasing and slight hinting for smoother text rendering. This is a common configuration for improving font readability on LCD screens.", + "aliases": [ + { + "text": "enable font hinting", + "lang": "en" + }, + { + "text": "fix blurry fonts", + "lang": "en" + }, + { + "text": "fontconfig antialiasing", + "lang": "en" + }, + { + "text": "включить сглаживание шрифтов", + "lang": "ru" + }, + { + "text": "настроить hinting", + "lang": "ru" + }, + { + "text": "шрифты размытые", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Edit ~/.config/fontconfig/fonts.conf and add a block setting antialias, hinting, hintstyle, lcdfilter, and rgba to true, true, hintslight, lcddefault, and rgb respectively.", + "risk": "medium" + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Remove the configuration file to revert to defaults.", + "risk": "low" + } + ], + "warnings": [ + "Incorrect XML syntax in fonts.conf can cause font rendering issues or application crashes." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Font_configuration/Examples#Hinted_fonts", + "title": "Font configuration/Examples", + "revision_id": 876998, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/fonts-find-alias-target.json b/cards/linux/fonts-find-alias-target.json new file mode 100644 index 0000000000000000000000000000000000000000..ec1a1aeb45809b9fe0d0d197c14c2ef60bc7ab15 --- /dev/null +++ b/cards/linux/fonts-find-alias-target.json @@ -0,0 +1,64 @@ +{ + "schema_version": 2, + "id": "fonts-find-alias-target", + "platform": "linux", + "kind": "task", + "title": "Find which font an alias points to", + "summary": "Determine the actual font file used for generic aliases like 'monospace', 'serif', or 'sans-serif'.", + "aliases": [ + { + "text": "what font is monospace", + "lang": "en" + }, + { + "text": "check font alias", + "lang": "en" + }, + { + "text": "fc-match monospace", + "lang": "en" + }, + { + "text": "какой шрифт у monospace", + "lang": "ru" + }, + { + "text": "проверить алиас шрифта", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Use fc-match to query the font associated with a specific alias.", + "cmd": "fc-match ", + "placeholders": [ + { + "name": "ALIAS", + "description": "The font alias to check (e.g., monospace, serif, sans-serif)", + "example": "monospace" + } + ], + "risk": "low" + } + ], + "verify": [ + { + "cmd": "fc-match monospace", + "expect": "Output shows the font file and family name, e.g., DejaVuSansMono.ttf: \"DejaVu Sans Mono\" \"Book\"." + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Fonts#Font_alias", + "title": "Fonts", + "revision_id": 886346, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/fonts-list-by-language.json b/cards/linux/fonts-list-by-language.json new file mode 100644 index 0000000000000000000000000000000000000000..42399d6afccf1dc9b5fc813362bad3e86f72a975 --- /dev/null +++ b/cards/linux/fonts-list-by-language.json @@ -0,0 +1,64 @@ +{ + "schema_version": 2, + "id": "fonts-list-by-language", + "platform": "linux", + "kind": "task", + "title": "List installed fonts for a specific language", + "summary": "Find which installed fonts support a particular language or script.", + "aliases": [ + { + "text": "list fonts for language", + "lang": "en" + }, + { + "text": "find arabic fonts", + "lang": "en" + }, + { + "text": "fc-list lang", + "lang": "en" + }, + { + "text": "какие шрифты поддерживают язык", + "lang": "ru" + }, + { + "text": "список шрифтов для языка", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Use fc-list with the lang filter to show fonts supporting a specific language code.", + "cmd": "fc-list -f '%{file}\\n' :lang=", + "placeholders": [ + { + "name": "LANG_CODE", + "description": "Two-letter language code (e.g., ar for Arabic, ru for Russian)", + "example": "ar" + } + ], + "risk": "low" + } + ], + "verify": [ + { + "cmd": "fc-list -f '%{file}\\n' :lang=ar", + "expect": "A list of font files that support Arabic glyphs is displayed." + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Fonts#List_installed_fonts_for_a_particular_language", + "title": "Fonts", + "revision_id": 886346, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/fonts-set-default-families.json b/cards/linux/fonts-set-default-families.json new file mode 100644 index 0000000000000000000000000000000000000000..3347ac4070b12219c648735e89d34662d2b21442 --- /dev/null +++ b/cards/linux/fonts-set-default-families.json @@ -0,0 +1,63 @@ +{ + "schema_version": 2, + "id": "fonts-set-default-families", + "platform": "linux", + "kind": "task", + "title": "Set default serif, sans-serif, and monospace fonts", + "summary": "Map the generic font aliases (serif, sans-serif, monospace) to specific font families. This ensures consistent font usage across applications that rely on these standard names.", + "aliases": [ + { + "text": "change default font", + "lang": "en" + }, + { + "text": "set default monospace font", + "lang": "en" + }, + { + "text": "fontconfig alias", + "lang": "en" + }, + { + "text": "изменить шрифт по умолчанию", + "lang": "ru" + }, + { + "text": "настроить serif sans-serif", + "lang": "ru" + }, + { + "text": "сменить шрифт в приложениях", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Edit ~/.config/fontconfig/fonts.conf and add blocks for serif, sans-serif, and monospace, specifying preferred families for each.", + "risk": "medium" + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Remove the configuration file.", + "risk": "low" + } + ], + "warnings": [ + "Ensure the specified fonts are installed on the system, otherwise fallback fonts will be used." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Font_configuration/Examples#Default_fonts", + "title": "Font configuration/Examples", + "revision_id": 876998, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/fs-create-ext4.json b/cards/linux/fs-create-ext4.json new file mode 100644 index 0000000000000000000000000000000000000000..646ab7f363f1f6cbd6aa534f0b9f5c1c66d0ba02 --- /dev/null +++ b/cards/linux/fs-create-ext4.json @@ -0,0 +1,107 @@ +{ + "schema_version": 2, + "id": "fs-create-ext4", + "platform": "linux", + "kind": "task", + "title": "Create an ext4 file system on a partition", + "summary": "Format a partition with the ext4 file system, which is the standard choice for Linux data partitions. This erases all existing data on the target partition.", + "aliases": [ + { + "text": "format partition ext4", + "lang": "en" + }, + { + "text": "mkfs.ext4", + "lang": "en" + }, + { + "text": "create linux file system", + "lang": "en" + }, + { + "text": "format disk for linux", + "lang": "en" + }, + { + "text": "отформатировать раздел ext4", + "lang": "ru" + }, + { + "text": "создать файловую систему ext4", + "lang": "ru" + }, + { + "text": "mkfs.ext4 команда", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "prerequisites": [ + "The target partition is unmounted.", + "You have backed up any data you want to keep on this partition." + ], + "steps": [ + { + "explain": "Identify the device name of the partition you want to format (e.g., /dev/sda1).", + "cmd": "lsblk -f", + "risk": "low" + }, + { + "explain": "Unmount the partition if it is currently mounted.", + "cmd": "sudo umount ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "DEVICE", + "description": "The device path of the partition, e.g., /dev/sda1", + "example": "/dev/sda1", + "discover_cmd": "lsblk -f" + } + ] + }, + { + "explain": "Create a new ext4 file system on the specified partition. This destroys all existing data on the partition.", + "cmd": "sudo mkfs.ext4 ", + "needs_root": true, + "risk": "high", + "placeholders": [ + { + "name": "DEVICE", + "description": "The device path of the partition, e.g., /dev/sda1", + "example": "/dev/sda1", + "discover_cmd": "lsblk -f" + } + ] + } + ], + "verify": [ + { + "cmd": "lsblk -f", + "expect": "The FSTYPE column for the target device shows 'ext4'." + } + ], + "rollback": [ + { + "explain": "Data recovery after formatting is difficult and not guaranteed. Restore from a backup if available.", + "risk": "high" + } + ], + "warnings": [ + "Formatting a partition erases all data on it. Ensure you have selected the correct device.", + "Do not format a partition that is currently in use or mounted." + ], + "risk": "high", + "source": { + "url": "https://wiki.archlinux.org/title/File_systems#Create_a_file_system", + "title": "File systems", + "revision_id": 884914, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/fs-identify-existing.json b/cards/linux/fs-identify-existing.json new file mode 100644 index 0000000000000000000000000000000000000000..af9dfbe80fd08ab04730c9ff68552260581476a2 --- /dev/null +++ b/cards/linux/fs-identify-existing.json @@ -0,0 +1,105 @@ +{ + "schema_version": 2, + "id": "fs-identify-existing", + "platform": "linux", + "kind": "task", + "title": "Identify existing file systems on a device", + "summary": "Use lsblk to see which file systems are present on your drives and partitions, including their type, label, and mount point.", + "aliases": [ + { + "text": "check file system type", + "lang": "en" + }, + { + "text": "what filesystem is on my drive", + "lang": "en" + }, + { + "text": "lsblk -f", + "lang": "en" + }, + { + "text": "identify partition format", + "lang": "en" + }, + { + "text": "проверить файловую систему", + "lang": "ru" + }, + { + "text": "какая файловая система на диске", + "lang": "ru" + }, + { + "text": "lsblk показать тип", + "lang": "ru" + }, + { + "text": "show filesystems", + "lang": "en" + }, + { + "text": "list file systems", + "lang": "en" + }, + { + "text": "тип файловой системы", + "lang": "ru" + }, + { + "text": "показать файловые системы", + "lang": "ru" + }, + { + "text": "check mount points", + "lang": "en" + }, + { + "text": "lsblk fs", + "lang": "en" + }, + { + "text": "what filesystem is on my disk", + "lang": "en" + }, + { + "text": "где смонтированы диски", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "List block devices with file system information.", + "cmd": "lsblk -f", + "risk": "low", + "alternatives": [ + { + "explain": "Run lsblk with the filesystem flag to show the FSTYPE and MOUNTPOINT columns for each device.", + "cmd": "lsblk --fs", + "expect": "A list of devices with columns for FSTYPE (e.g., ext4, swap) and MOUNTPOINT (e.g., /, /home).", + "risk": "low" + } + ] + } + ], + "verify": [ + { + "cmd": "lsblk -f", + "expect": "Output shows NAME, FSTYPE, LABEL, UUID, and MOUNTPOINT columns." + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/File_systems#Identify_existing_file_systems", + "title": "File systems", + "revision_id": 884914, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/fs-mount-manual.json b/cards/linux/fs-mount-manual.json new file mode 100644 index 0000000000000000000000000000000000000000..264e692144c10d5e3d61462770b42ef0d4ad1742 --- /dev/null +++ b/cards/linux/fs-mount-manual.json @@ -0,0 +1,100 @@ +{ + "schema_version": 2, + "id": "fs-mount-manual", + "platform": "linux", + "kind": "task", + "title": "Manually mount a file system to a directory", + "summary": "Attach a file system from a device (like a partition or USB drive) to a specific directory so you can access its files.", + "aliases": [ + { + "text": "mount partition", + "lang": "en" + }, + { + "text": "mount /dev/sda1", + "lang": "en" + }, + { + "text": "access files on partition", + "lang": "en" + }, + { + "text": "mount disk image", + "lang": "en" + }, + { + "text": "смонтировать раздел", + "lang": "ru" + }, + { + "text": "подключить диск", + "lang": "ru" + }, + { + "text": "mount команда", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "prerequisites": [ + "The target directory exists and is empty (or you accept hiding its current contents)." + ], + "steps": [ + { + "explain": "Mount the file system from the device to the chosen directory.", + "cmd": "sudo mount ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "DEVICE", + "description": "The device path, e.g., /dev/sda1", + "example": "/dev/sda1", + "discover_cmd": "lsblk -f" + }, + { + "name": "MOUNT_POINT", + "description": "The directory to mount to, e.g., /mnt", + "example": "/mnt" + } + ] + } + ], + "verify": [ + { + "cmd": "findmnt ", + "expect": "Output shows the device mounted at the specified directory." + } + ], + "rollback": [ + { + "explain": "Unmount the file system.", + "cmd": "sudo umount ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "MOUNT_POINT", + "description": "The directory where the file system is mounted", + "example": "/mnt" + } + ] + } + ], + "warnings": [ + "Mounting over a non-empty directory hides its existing contents until unmounted." + ], + "risk": "medium", + "source": { + "url": "https://wiki.archlinux.org/title/File_systems#Mount_a_file_system", + "title": "File systems", + "revision_id": 884914, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/fs-unmount.json b/cards/linux/fs-unmount.json new file mode 100644 index 0000000000000000000000000000000000000000..1f1e88875577bcbe2d2e760ea70e23477186b091 --- /dev/null +++ b/cards/linux/fs-unmount.json @@ -0,0 +1,164 @@ +{ + "schema_version": 2, + "id": "fs-unmount", + "platform": "linux", + "kind": "task", + "title": "Unmount a file system", + "summary": "Detach a file system from its mount point so it can be safely removed or formatted.", + "aliases": [ + { + "text": "unmount partition", + "lang": "en" + }, + { + "text": "umount command", + "lang": "en" + }, + { + "text": "eject drive safely", + "lang": "en" + }, + { + "text": "detach disk", + "lang": "en" + }, + { + "text": "размонтировать раздел", + "lang": "ru" + }, + { + "text": "umount команда", + "lang": "ru" + }, + { + "text": "отключить диск", + "lang": "ru" + }, + { + "text": "unmount drive/en", + "lang": "en" + }, + { + "text": "размонтировать/ru", + "lang": "ru" + }, + { + "text": "unmount drive", + "lang": "en" + }, + { + "text": "eject usb", + "lang": "en" + }, + { + "text": "detach filesystem", + "lang": "en" + }, + { + "text": "stop mount", + "lang": "en" + }, + { + "text": "отмонтировать диск", + "lang": "ru" + }, + { + "text": "извлечь флешку", + "lang": "ru" + }, + { + "text": "отключить файловую систему", + "lang": "ru" + }, + { + "text": "umount", + "lang": "ru" + }, + { + "text": "размонтировать", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "prerequisites": [ + "No programs are currently using files on the mounted file system." + ], + "steps": [ + { + "explain": "Unmount the file system using either the device path or the mount point.", + "cmd": "sudo umount ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "DEVICE_OR_MOUNT_POINT", + "description": "The device path (e.g., /dev/sda1) or mount point (e.g., /mnt)", + "example": "/mnt", + "discover_cmd": "findmnt" + } + ], + "alternatives": [ + { + "explain": "Unmount using the device path instead of the mount point.", + "cmd": "sudo umount ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "DEVICE", + "description": "The device path, e.g., /dev/sda1", + "example": "/dev/sda1", + "discover_cmd": "lsblk -f" + } + ] + } + ] + } + ], + "verify": [ + { + "cmd": "findmnt ", + "expect": "No output or an error indicating the device is not mounted." + } + ], + "rollback": [ + { + "explain": "Remount the file system.", + "cmd": "sudo mount ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "DEVICE", + "description": "The device path", + "example": "/dev/sda1" + }, + { + "name": "MOUNT_POINT", + "description": "The directory to mount to", + "example": "/mnt" + } + ] + } + ], + "warnings": [ + "Ensure no files on the mounted file system are open in other applications before unmounting." + ], + "risk": "high", + "source": { + "url": "https://wiki.archlinux.org/title/File_systems#Unmount_a_file_system", + "title": "File systems", + "revision_id": 884914, + "license": "GFDL-1.3-or-later" + }, + "see_also": [ + "linux-list-mounted-filesystems", + "linux-list-block-devices" + ] +} diff --git a/cards/linux/fstab-identify-partition-uuid.json b/cards/linux/fstab-identify-partition-uuid.json new file mode 100644 index 0000000000000000000000000000000000000000..f567b2f338c4d9cb3ac7bf921749e82e86397898 --- /dev/null +++ b/cards/linux/fstab-identify-partition-uuid.json @@ -0,0 +1,67 @@ +{ + "schema_version": 2, + "id": "fstab-identify-partition-uuid", + "platform": "linux", + "kind": "task", + "title": "Find partition UUID for fstab", + "summary": "List block devices and their UUIDs to correctly identify partitions when editing /etc/fstab. Using UUIDs is more reliable than device names like /dev/sda1.", + "aliases": [ + { + "text": "find partition uuid", + "lang": "en" + }, + { + "text": "get uuid for fstab", + "lang": "en" + }, + { + "text": "lsblk uuid", + "lang": "en" + }, + { + "text": "blkid uuid", + "lang": "en" + }, + { + "text": "как узнать uuid раздела", + "lang": "ru" + }, + { + "text": "uuid для fstab", + "lang": "ru" + }, + { + "text": "найти uuid диска", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "List block devices with file system information, including UUIDs.", + "cmd": "lsblk -f", + "risk": "low", + "expect": "A table listing devices, mount points, file system types, and UUIDs." + }, + { + "explain": "Alternatively, use blkid to list UUIDs and labels for all block devices.", + "cmd": "sudo blkid", + "needs_root": true, + "risk": "low", + "expect": "A list of devices with their UUID, LABEL, and TYPE attributes." + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Fstab#File_system_UUIDs", + "title": "Fstab", + "revision_id": 883208, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/fstab-verify-syntax.json b/cards/linux/fstab-verify-syntax.json new file mode 100644 index 0000000000000000000000000000000000000000..1837f261d2c9094218f7a18c61dc1f6ab3949b8f --- /dev/null +++ b/cards/linux/fstab-verify-syntax.json @@ -0,0 +1,60 @@ +{ + "schema_version": 2, + "id": "fstab-verify-syntax", + "platform": "linux", + "kind": "task", + "title": "Verify fstab syntax and options", + "summary": "Check /etc/fstab for syntax errors or invalid mount options before rebooting. This prevents boot failures caused by typos in the configuration file.", + "aliases": [ + { + "text": "check fstab errors", + "lang": "en" + }, + { + "text": "verify fstab", + "lang": "en" + }, + { + "text": "fstab syntax check", + "lang": "en" + }, + { + "text": "findmnt verify", + "lang": "en" + }, + { + "text": "проверить fstab", + "lang": "ru" + }, + { + "text": "ошибки в fstab", + "lang": "ru" + }, + { + "text": "проверить синтаксис fstab", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Run findmnt with the verify flag to check for syntax errors and invalid options in /etc/fstab.", + "cmd": "findmnt --verify --verbose", + "risk": "low", + "expect": "Output listing any errors or warnings found in the fstab file. If no errors are found, it may output nothing or a success message depending on the version." + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Fstab#Verify_changes", + "title": "Fstab", + "revision_id": 883208, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/gnome-enable-hidpi-scaling.json b/cards/linux/gnome-enable-hidpi-scaling.json new file mode 100644 index 0000000000000000000000000000000000000000..7061cb32c818beaecab35c713a05719e8d0fce62 --- /dev/null +++ b/cards/linux/gnome-enable-hidpi-scaling.json @@ -0,0 +1,72 @@ +{ + "schema_version": 2, + "id": "gnome-enable-hidpi-scaling", + "platform": "linux", + "kind": "task", + "title": "Enable HiDPI scaling in GNOME", + "summary": "Increase the display scale factor in GNOME to make text and UI elements readable on high-resolution screens. This can be done via Settings or command line.", + "aliases": [ + { + "text": "gnome hidpi scaling", + "lang": "en" + }, + { + "text": "make gnome bigger", + "lang": "en" + }, + { + "text": "gnome display scale", + "lang": "en" + }, + { + "text": "gnome retina display", + "lang": "en" + }, + { + "text": "gnome hidpi", + "lang": "ru" + }, + { + "text": "увеличить масштаб gnome", + "lang": "ru" + }, + { + "text": "настройки дисплея gnome", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "desktop": [ + "gnome" + ] + }, + "steps": [ + { + "explain": "Open GNOME Settings and navigate to the Display configuration.", + "gui": "Settings > Devices > Displays", + "risk": "low" + }, + { + "explain": "Select the desired scale factor (e.g., 200% or 2x) from the Scale dropdown.", + "gui": "Select 'Scale' and choose 200% (or 2)", + "risk": "low" + }, + { + "explain": "Alternatively, use the command line to set the scaling factor to 2 (200%).", + "cmd": "gsettings set org.gnome.desktop.interface scaling-factor 2", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/HiDPI#GNOME", + "title": "HiDPI", + "revision_id": 886689, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/gtk3-enable-hidpi-scaling.json b/cards/linux/gtk3-enable-hidpi-scaling.json new file mode 100644 index 0000000000000000000000000000000000000000..bea9283bd5e859baac8a88fa82742854098ff025 --- /dev/null +++ b/cards/linux/gtk3-enable-hidpi-scaling.json @@ -0,0 +1,56 @@ +{ + "schema_version": 2, + "id": "gtk3-enable-hidpi-scaling", + "platform": "linux", + "kind": "task", + "title": "Enable HiDPI scaling for GTK3 applications", + "summary": "Set the GDK_SCALE environment variable to scale UI elements in GTK3 applications on X11.", + "aliases": [ + { + "text": "gtk3 hidpi scaling", + "lang": "en" + }, + { + "text": "gtk apps too small", + "lang": "en" + }, + { + "text": "gtk3 display scale", + "lang": "en" + }, + { + "text": "gtk hidpi", + "lang": "ru" + }, + { + "text": "масштаб gtk3", + "lang": "ru" + }, + { + "text": "gtk приложения мелкие", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "display_server": "x11" + }, + "steps": [ + { + "explain": "Set the GDK_SCALE environment variable to 2 to double the size of UI elements.", + "cmd": "export GDK_SCALE=2", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/HiDPI#GDK_3_(GTK_3)", + "title": "HiDPI", + "revision_id": 886689, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/hp-elitebook-cpu-freq-locked-battery.json b/cards/linux/hp-elitebook-cpu-freq-locked-battery.json new file mode 100644 index 0000000000000000000000000000000000000000..663b38e386a93e272da849c230b20d42eab80686 --- /dev/null +++ b/cards/linux/hp-elitebook-cpu-freq-locked-battery.json @@ -0,0 +1,78 @@ +{ + "schema_version": 2, + "id": "hp-elitebook-cpu-freq-locked-battery", + "platform": "linux", + "kind": "task", + "title": "Fix CPU frequency locked at 400MHz on HP EliteBook 845 G10", + "summary": "On HP EliteBook 845 G10 with AMD Ryzen 7 PRO 7840HS, the CPU may lock to 400-544MHz when unplugged from AC power. Blacklisting the amd_pmf module fixes this.", + "aliases": [ + { + "text": "hp elitebook cpu slow on battery", + "lang": "en" + }, + { + "text": "cpu locked 400mhz hp elitebook", + "lang": "en" + }, + { + "text": "amd_pmf issue hp elitebook", + "lang": "en" + }, + { + "text": "hp elitebook 845 g10 cpu throttle", + "lang": "en" + }, + { + "text": "процессор тормозит hp elitebook", + "lang": "ru" + }, + { + "text": "cpu 400 мhz hp elitebook", + "lang": "ru" + }, + { + "text": "amd_pmf блокировка частоты", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "arch" + } + ] + }, + "prerequisites": [ + "HP EliteBook 845 G10 with AMD Ryzen 7 PRO 7840HS" + ], + "steps": [ + { + "explain": "Create a modprobe configuration file to blacklist the amd-pmf module.", + "risk": "medium" + }, + { + "explain": "Reboot the system to apply the module blacklist.", + "cmd": "sudo systemctl reboot", + "needs_root": true, + "risk": "low" + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Remove the blacklist entry from /etc/modprobe.d/cpufreq.conf and reboot.", + "cmd": "sudo systemctl reboot", + "needs_root": true, + "risk": "medium" + } + ], + "warnings": [ + "This disables the AMD Platform Management Framework, which may affect other power management features." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Laptop/HP#CPU_Freq_locked_at_400-500MHz_after_AC_power_unplugged", + "title": "Laptop/HP", + "revision_id": 887988, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/hp-elitebook-u82-flickering-screen.json b/cards/linux/hp-elitebook-u82-flickering-screen.json new file mode 100644 index 0000000000000000000000000000000000000000..66010b5f88a725392ac18a99bef43cf5bfe827c6 --- /dev/null +++ b/cards/linux/hp-elitebook-u82-flickering-screen.json @@ -0,0 +1,81 @@ +{ + "schema_version": 2, + "id": "hp-elitebook-u82-flickering-screen", + "platform": "linux", + "kind": "task", + "title": "Fix flickering or white screen on HP EliteBook U82 family", + "summary": "On HP EliteBook 835/845/865 G9/G10 models, the screen may flicker or stay solid white. This is fixed by adding a specific AMD GPU kernel parameter.", + "aliases": [ + { + "text": "hp elitebook screen flickering", + "lang": "en" + }, + { + "text": "hp elitebook white screen linux", + "lang": "en" + }, + { + "text": "fix amd gpu flicker hp", + "lang": "en" + }, + { + "text": "hp elitebook 845 g9 screen issues", + "lang": "en" + }, + { + "text": "мерцает экран hp elitebook", + "lang": "ru" + }, + { + "text": "белый экран hp elitebook linux", + "lang": "ru" + }, + { + "text": "не работает экран hp elitebook", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "arch" + } + ] + }, + "prerequisites": [ + "Kernel version 6.2.7 or newer", + "AMD GPU (amdgpu driver)" + ], + "steps": [ + { + "explain": "Add the kernel parameter amdgpu.sg_display=0 to your bootloader configuration. For GRUB, edit /etc/default/grub and add it to GRUB_CMDLINE_LINUX_DEFAULT.", + "risk": "medium" + }, + { + "explain": "Regenerate the GRUB configuration to apply the new kernel parameter.", + "risk": "medium" + }, + { + "explain": "Reboot the system.", + "cmd": "sudo systemctl reboot", + "needs_root": true, + "risk": "low" + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Remove the amdgpu.sg_display=0 parameter from your bootloader configuration and regenerate the config.", + "risk": "medium" + } + ], + "warnings": [ + "Requires kernel version 6.2.7 or newer." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Laptop/HP#Flickering_or_constant_solid_white_screen", + "title": "Laptop/HP", + "revision_id": 887988, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/hp-uefi-boot-loader-not-found.json b/cards/linux/hp-uefi-boot-loader-not-found.json new file mode 100644 index 0000000000000000000000000000000000000000..713890d734f18827d7fce3377c268048227adfb3 --- /dev/null +++ b/cards/linux/hp-uefi-boot-loader-not-found.json @@ -0,0 +1,101 @@ +{ + "schema_version": 2, + "id": "hp-uefi-boot-loader-not-found", + "platform": "linux", + "kind": "task", + "title": "Fix HP UEFI boot loader not found by copying GRUB to Microsoft path", + "summary": "Some HP laptops hard-code the Windows boot path in UEFI, ignoring other boot entries. You can fix this by copying your GRUB EFI file to the Microsoft boot directory on the EFI System Partition.", + "aliases": [ + { + "text": "hp uefi boot loader not found", + "lang": "en" + }, + { + "text": "grub not showing in hp bios", + "lang": "en" + }, + { + "text": "hp laptop boots to windows only", + "lang": "en" + }, + { + "text": "fix hp uefi boot path", + "lang": "en" + }, + { + "text": "hp не находит загрузчик uefi", + "lang": "ru" + }, + { + "text": "grub не появляется в меню загрузки hp", + "lang": "ru" + }, + { + "text": "hp загружается только в windows", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "prerequisites": [ + "Arch Linux installed with GRUB", + "Access to the EFI System Partition (ESP)" + ], + "steps": [ + { + "explain": "Identify the mount point of your EFI System Partition. It is usually /boot or /efi.", + "risk": "low", + "expect": "Output shows the device and mount point for the ESP." + }, + { + "explain": "Create the Microsoft Boot directory on the ESP. Replace with the path found in the previous step.", + "cmd": "sudo mkdir -p /EFI/Microsoft/Boot", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "ESP_MOUNTPOINT", + "description": "Mount point of the EFI System Partition", + "example": "/boot", + "discover_cmd": "lsblk -f | grep vfat" + } + ] + }, + { + "explain": "Copy the GRUB EFI binary to the hard-coded Windows boot path. This makes the HP UEFI firmware find GRUB when it looks for Windows.", + "cmd": "sudo cp /EFI/grub/grubx64.efi /EFI/Microsoft/Boot/bootmgfw.efi", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "ESP_MOUNTPOINT", + "description": "Mount point of the EFI System Partition", + "example": "/boot", + "discover_cmd": "lsblk -f | grep vfat" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Remove the copied file to restore the original state.", + "risk": "medium" + } + ], + "warnings": [ + "This method creates a conflict in dual-boot setups with Windows.", + "You must repeat this step every time you reinstall or update GRUB." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Laptop/HP#UEFI_boot_loader_not_found", + "title": "Laptop/HP", + "revision_id": 887988, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/hp-volume-buttons-not-working.json b/cards/linux/hp-volume-buttons-not-working.json new file mode 100644 index 0000000000000000000000000000000000000000..55bda4ddcc6b39719c4c5bcdcd1cdee39e453a73 --- /dev/null +++ b/cards/linux/hp-volume-buttons-not-working.json @@ -0,0 +1,76 @@ +{ + "schema_version": 2, + "id": "hp-volume-buttons-not-working", + "platform": "linux", + "kind": "task", + "title": "Fix HP hardware volume buttons not working", + "summary": "If the physical volume up/down buttons on your HP laptop do not work, adding a specific kernel module parameter for intel_hid usually fixes it.", + "aliases": [ + { + "text": "hp volume buttons not working", + "lang": "en" + }, + { + "text": "fix hp media keys linux", + "lang": "en" + }, + { + "text": "hp laptop volume keys broken", + "lang": "en" + }, + { + "text": "intel_hid volume buttons hp", + "lang": "en" + }, + { + "text": "не работают кнопки громкости hp", + "lang": "ru" + }, + { + "text": "клавиши звука hp linux", + "lang": "ru" + }, + { + "text": "hp media keys fix", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "arch" + } + ] + }, + "prerequisites": [ + "Intel HID driver (intel_hid) in use" + ], + "steps": [ + { + "explain": "Add the kernel module parameter enable_5_button_array=1 for intel_hid. Create or edit /etc/modprobe.d/intel_hid.conf and add: options intel_hid enable_5_button_array=1", + "risk": "medium" + }, + { + "explain": "Reboot the system to apply the module parameter.", + "cmd": "sudo systemctl reboot", + "needs_root": true, + "risk": "low" + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Remove the options line from /etc/modprobe.d/intel_hid.conf and reboot.", + "cmd": "sudo systemctl reboot", + "needs_root": true, + "risk": "medium" + } + ], + "warnings": [], + "source": { + "url": "https://wiki.archlinux.org/title/Laptop/HP#Hardware_buttons_for_volume_do_not_work", + "title": "Laptop/HP", + "revision_id": 887988, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/hybrid-graphics-power-down-nvidia-acpi.json b/cards/linux/hybrid-graphics-power-down-nvidia-acpi.json new file mode 100644 index 0000000000000000000000000000000000000000..000b3cd51763add75bbcb2f28a48bdef6ee43b6e --- /dev/null +++ b/cards/linux/hybrid-graphics-power-down-nvidia-acpi.json @@ -0,0 +1,94 @@ +{ + "schema_version": 2, + "id": "hybrid-graphics-power-down-nvidia-acpi", + "platform": "linux", + "kind": "task", + "title": "Power down NVIDIA discrete GPU using acpi_call", + "summary": "Use the acpi_call kernel module to manually turn off the dedicated NVIDIA GPU to save battery power. This method works for GPUs not supported by bbswitch.", + "aliases": [ + { + "text": "turn off nvidia gpu linux", + "lang": "en" + }, + { + "text": "disable discrete gpu battery save", + "lang": "en" + }, + { + "text": "acpi call turn off gpu", + "lang": "en" + }, + { + "text": "выключить дискретную видеокарту nvidia", + "lang": "ru" + }, + { + "text": "отключить nvidia gpu для экономии батареи", + "lang": "ru" + }, + { + "text": "acpi call выключить gpu", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "arch" + } + ], + "desktop": [ + "any" + ], + "requires": [ + "acpi_call" + ] + }, + "prerequisites": [ + "Installed acpi_call package", + "Root privileges" + ], + "steps": [ + { + "explain": "Load the acpi_call kernel module.", + "cmd": "sudo modprobe acpi_call", + "needs_root": true, + "risk": "low" + }, + { + "explain": "Run the example script to find the correct ACPI call to turn off the GPU. Look for a line ending in 'works!'.", + "cmd": "sudo /usr/share/acpi_call/examples/turn_off_gpu.sh", + "needs_root": true, + "risk": "medium", + "expect": "Output showing various attempts, with one line ending in 'works!' indicating the GPU is off." + } + ], + "verify": [ + { + "cmd": "lspci", + "expect": "The NVIDIA GPU should no longer be listed, or power consumption should drop significantly." + } + ], + "rollback": [ + { + "explain": "Reboot the system to restore the GPU.", + "cmd": "sudo reboot", + "needs_root": true, + "risk": "low" + } + ], + "risk": "medium", + "warnings": [ + "This change is not persistent across reboots.", + "If you experience issues with suspend/hibernate, you may need to re-enable the GPU before suspending." + ], + "see_also": [ + "amdgpu-check-driver-loaded" + ], + "source": { + "url": "https://wiki.archlinux.org/title/Hybrid_graphics#Using_acpi_call", + "title": "Hybrid graphics", + "revision_id": 882727, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/ibus-fix-native-charset-only.json b/cards/linux/ibus-fix-native-charset-only.json new file mode 100644 index 0000000000000000000000000000000000000000..286c02d60836f7348eb7126eb8db88564a422346 --- /dev/null +++ b/cards/linux/ibus-fix-native-charset-only.json @@ -0,0 +1,70 @@ +{ + "schema_version": 2, + "id": "ibus-fix-native-charset-only", + "platform": "linux", + "kind": "error", + "title": "Fix IBus inputting only native charset", + "summary": "Resolve issues where IBus input methods only type the keyboard's native characters instead of the intended language.", + "aliases": [ + { + "text": "ibus native charset", + "lang": "en" + }, + { + "text": "ibus wrong characters", + "lang": "en" + }, + { + "text": "ibus input wrong", + "lang": "en" + }, + { + "text": "ibus xim fix", + "lang": "en" + }, + { + "text": "ibus только английские буквы", + "lang": "ru" + }, + { + "text": "ibus неправильные символы", + "lang": "ru" + }, + { + "text": "ibus ввод не тот", + "lang": "ru" + } + ], + "error_patterns": [ + "only input keyboard's native charset" + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Set GTK_IM_MODULE to xim in your environment configuration file (e.g., /etc/environment). Keep QT_IM_MODULE=ibus and XMODIFIERS=@im=ibus.", + "risk": "medium" + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Revert GTK_IM_MODULE to ibus or remove the line.", + "risk": "medium" + } + ], + "warnings": [ + "Editing /etc/environment requires root privileges." + ], + "source": { + "url": "https://wiki.archlinux.org/title/IBus#Ibus_IME_packages_only_input_keyboard's_native_charset", + "title": "IBus", + "revision_id": 878551, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/ibus-fix-pyenv-dependencies.json b/cards/linux/ibus-fix-pyenv-dependencies.json new file mode 100644 index 0000000000000000000000000000000000000000..e14afe8382511727881ef31b6f9d5a86ddfd2b86 --- /dev/null +++ b/cards/linux/ibus-fix-pyenv-dependencies.json @@ -0,0 +1,63 @@ +{ + "schema_version": 2, + "id": "ibus-fix-pyenv-dependencies", + "platform": "linux", + "kind": "error", + "title": "Fix IBus missing dependencies with pyenv", + "summary": "Resolve issues where IBus fails to open preferences or work correctly due to pyenv managing Python versions.", + "aliases": [ + { + "text": "ibus pyenv error", + "lang": "en" + }, + { + "text": "ibus not working pyenv", + "lang": "en" + }, + { + "text": "ibus missing dependencies", + "lang": "en" + }, + { + "text": "ibus setup error", + "lang": "en" + }, + { + "text": "ibus pyenv", + "lang": "ru" + }, + { + "text": "ibus не работает pyenv", + "lang": "ru" + }, + { + "text": "ibus зависимости pyenv", + "lang": "ru" + } + ], + "error_patterns": [ + "missing dependency errors", + "preferences can not be opened" + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Set the pyenv global version to the system version.", + "cmd": "pyenv global system", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/IBus#Missing_packages_due_to_pyenv", + "title": "IBus", + "revision_id": 878551, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/ibus-open-preferences.json b/cards/linux/ibus-open-preferences.json new file mode 100644 index 0000000000000000000000000000000000000000..12f3b2daae1c4213dac49b5e4916ba497f260670 --- /dev/null +++ b/cards/linux/ibus-open-preferences.json @@ -0,0 +1,67 @@ +{ + "schema_version": 2, + "id": "ibus-open-preferences", + "platform": "linux", + "kind": "task", + "title": "Open IBus preferences", + "summary": "Launch the IBus configuration window to add keyboard layouts and set shortcuts.", + "aliases": [ + { + "text": "ibus preferences", + "lang": "en" + }, + { + "text": "ibus settings", + "lang": "en" + }, + { + "text": "ibus config", + "lang": "en" + }, + { + "text": "ibus setup", + "lang": "en" + }, + { + "text": "ibus настройки", + "lang": "ru" + }, + { + "text": "настройки ibus", + "lang": "ru" + }, + { + "text": "ibus конфигурация", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Run the ibus-setup command in a terminal.", + "cmd": "ibus-setup", + "risk": "low", + "alternatives": [ + { + "explain": "Right-click the IBus tray icon and select Preferences.", + "gui": "Right-click tray icon > Preferences", + "risk": "low", + "cmd": "" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/IBus#Configuration", + "title": "IBus", + "revision_id": 878551, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/ibus-set-environment-variables.json b/cards/linux/ibus-set-environment-variables.json new file mode 100644 index 0000000000000000000000000000000000000000..5491b569061a7c9d626997b32fe11c6b753a17cb --- /dev/null +++ b/cards/linux/ibus-set-environment-variables.json @@ -0,0 +1,68 @@ +{ + "schema_version": 2, + "id": "ibus-set-environment-variables", + "platform": "linux", + "kind": "task", + "title": "Set IBus environment variables", + "summary": "Configure environment variables required for IBus to work correctly with GTK and Qt applications.", + "aliases": [ + { + "text": "ibus environment variables", + "lang": "en" + }, + { + "text": "set ibus env vars", + "lang": "en" + }, + { + "text": "GTK_IM_MODULE ibus", + "lang": "en" + }, + { + "text": "ibus variables", + "lang": "en" + }, + { + "text": "ibus переменные окружения", + "lang": "ru" + }, + { + "text": "настроить переменные ibus", + "lang": "ru" + }, + { + "text": "ibus env", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Add the following lines to your environment configuration file (e.g., ~/.pam_environment or /etc/environment). For Wayland: GTK_IM_MODULE=wayland, XMODIFIERS=@im=ibus, QT_IM_MODULES=wayland;ibus, QT_IM_MODULE=ibus. For X11: GTK_IM_MODULE=ibus, XMODIFIERS=@im=ibus, QT_IM_MODULE=ibus.", + "risk": "medium" + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Remove the added lines from your environment configuration file.", + "risk": "medium" + } + ], + "warnings": [ + "Editing system-wide files requires root privileges.", + "Incorrect variables can break input methods." + ], + "source": { + "url": "https://wiki.archlinux.org/title/IBus#Integration", + "title": "IBus", + "revision_id": 878551, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/ime-concept-what-is-ime.json b/cards/linux/ime-concept-what-is-ime.json new file mode 100644 index 0000000000000000000000000000000000000000..b3df1fe46364d7b3b908970a6d3db4c2cb2d4a33 --- /dev/null +++ b/cards/linux/ime-concept-what-is-ime.json @@ -0,0 +1,58 @@ +{ + "schema_version": 2, + "id": "ime-concept-what-is-ime", + "platform": "linux", + "kind": "concept", + "title": "Understand what an Input Method Editor (IME) is", + "summary": "An Input Method Editor (IME) is a tool that lets you type characters not directly available on your keyboard, such as Chinese, Japanese, or Korean characters, by using sequences of Latin keys. It acts as a middleman between your keyboard and applications.", + "aliases": [ + { + "text": "what is an ime", + "lang": "en" + }, + { + "text": "how to type chinese on linux", + "lang": "en" + }, + { + "text": "what is input method editor", + "lang": "en" + }, + { + "text": "что такое имэ", + "lang": "ru" + }, + { + "text": "как печатать на китайском", + "lang": "ru" + }, + { + "text": "что такое редактор ввода", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "An IME allows users to generate characters not natively available on their input devices by using sequences of characters that are natively available. For example, typing 'sake' in a Japanese IME might output '酒'.", + "risk": "low" + }, + { + "explain": "Most IMEs work as part of an Input Method Framework (IMF), which allows switching between different IMEs and keyboard layouts. Common frameworks include IBus (often used in GNOME) and Fcitx5 (often used in KDE).", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Input_method", + "title": "Input method", + "revision_id": 887716, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/ime-set-environment-variables.json b/cards/linux/ime-set-environment-variables.json new file mode 100644 index 0000000000000000000000000000000000000000..b0344bab462cbeac8ec55a5d58f106a22361e298 --- /dev/null +++ b/cards/linux/ime-set-environment-variables.json @@ -0,0 +1,74 @@ +{ + "schema_version": 2, + "id": "ime-set-environment-variables", + "platform": "linux", + "kind": "task", + "title": "Configure environment variables for an Input Method Framework", + "summary": "Set the necessary environment variables so your desktop environment correctly uses the installed Input Method Framework (like IBus or Fcitx5) for handling input.", + "aliases": [ + { + "text": "set gtk_im_module", + "lang": "en" + }, + { + "text": "configure ibus environment variables", + "lang": "en" + }, + { + "text": "fcitx5 not working environment", + "lang": "en" + }, + { + "text": "настроить переменные окружения для имэ", + "lang": "ru" + }, + { + "text": "почему не работает ввод на китайском", + "lang": "ru" + }, + { + "text": "gtk_im_module ibus", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "prerequisites": [ + "An Input Method Framework (like IBus or Fcitx5) is installed." + ], + "steps": [ + { + "explain": "Add the following lines to your environment configuration file (e.g., ~/.bashrc or /etc/environment):\nGTK_IM_MODULE=ibus\nQT_IM_MODULE=ibus\nXMODIFIERS=@im=ibus", + "risk": "medium" + }, + { + "explain": "Add the following lines to your environment configuration file:\nGTK_IM_MODULE=fcitx\nQT_IM_MODULE=fcitx\nXMODIFIERS=@im=fcitx", + "risk": "medium" + }, + { + "explain": "Add the following lines to your environment configuration file:\nGTK_IM_MODULE=uim\nQT_IM_MODULE=uim\nXMODIFIERS=@im=uim", + "risk": "medium" + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Remove the added lines from your environment configuration file.", + "risk": "medium" + } + ], + "warnings": [ + "Incorrectly setting these variables can prevent input methods from working or cause unexpected behavior in applications." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Input_method#Configuration", + "title": "Input method", + "revision_id": 887716, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/intel-fix-washed-out-colors-x11.json b/cards/linux/intel-fix-washed-out-colors-x11.json new file mode 100644 index 0000000000000000000000000000000000000000..32caaaa99aca25c2820f55c51f3f187f1652112f --- /dev/null +++ b/cards/linux/intel-fix-washed-out-colors-x11.json @@ -0,0 +1,64 @@ +{ + "schema_version": 2, + "id": "intel-fix-washed-out-colors-x11", + "platform": "linux", + "kind": "task", + "title": "Fix washed out colors on Intel GPU (X11)", + "summary": "Set the Broadcast RGB mode to Full for your display output using xrandr to fix washed out colors on Intel GPUs under X11.", + "aliases": [ + { + "text": "washed out colors intel x11", + "lang": "en" + }, + { + "text": "fix color range intel", + "lang": "en" + }, + { + "text": "xrandr broadcast rgb", + "lang": "en" + }, + { + "text": "blurred colors arch linux", + "lang": "en" + }, + { + "text": "исправить цвета на intel", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "arch" + } + ], + "display_server": "x11" + }, + "steps": [ + { + "explain": "Identify your output name using xrandr.", + "cmd": "xrandr", + "risk": "low" + }, + { + "explain": "Set the Broadcast RGB property to Full for your output. Replace with the name from the previous step (e.g., HDMI-1, eDP-1).", + "cmd": "xrandr --output --set \"Broadcast RGB\" \"Full\"", + "risk": "low", + "placeholders": [ + { + "name": "OUTPUT_NAME", + "description": "The name of your display output (e.g., HDMI-1, eDP-1)", + "discover_cmd": "xrandr" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Intel_graphics#Fix_colors_for_X11/Xorg", + "title": "Intel graphics", + "revision_id": 888441, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/iwd-connect-wifi-network.json b/cards/linux/iwd-connect-wifi-network.json new file mode 100644 index 0000000000000000000000000000000000000000..e81e887c9a28e8354b8bb4e23bff320ebba57f27 --- /dev/null +++ b/cards/linux/iwd-connect-wifi-network.json @@ -0,0 +1,186 @@ +{ + "schema_version": 2, + "id": "iwd-connect-wifi-network", + "platform": "linux", + "kind": "task", + "title": "Connect to a Wi-Fi network using iwctl", + "summary": "Use the iwctl command-line tool to scan for and connect to a Wi-Fi network. This assumes iwd is already installed and running.", + "aliases": [ + { + "text": "connect wifi iwctl", + "lang": "en" + }, + { + "text": "iwctl connect network", + "lang": "en" + }, + { + "text": "scan wifi iwd", + "lang": "en" + }, + { + "text": "join wifi network iwd", + "lang": "en" + }, + { + "text": "подключиться к wifi iwctl", + "lang": "ru" + }, + { + "text": "iwctl подключение к сети", + "lang": "ru" + }, + { + "text": "сканировать wifi iwd", + "lang": "ru" + }, + { + "text": "подключиться к wifi iwd", + "lang": "ru" + }, + { + "text": "iwctl connect wifi/en", + "lang": "en" + }, + { + "text": "connect to wifi iwctl/en", + "lang": "en" + }, + { + "text": "iwctl connect wifi", + "lang": "en" + }, + { + "text": "connect to wifi iwctl", + "lang": "en" + }, + { + "text": "iwctl station connect", + "lang": "en" + }, + { + "text": "join wifi network iwctl", + "lang": "en" + }, + { + "text": "iwctl wifi password", + "lang": "en" + }, + { + "text": "подключить wifi iwctl", + "lang": "ru" + }, + { + "text": "iwctl ввести пароль wifi", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "iwd", + "iwctl" + ] + }, + "prerequisites": [ + "iwd service is running", + "User is in the 'network' or 'wheel' group, or using sudo" + ], + "steps": [ + { + "explain": "Start the interactive iwctl prompt.", + "cmd": "iwctl", + "risk": "low", + "expect": "Prompt changes to [iwd]#", + "alternatives": [ + { + "explain": "Connect to the specified Wi-Fi network. If the network is secured, you will be prompted to enter the password.", + "cmd": "iwctl station connect ", + "placeholders": [ + { + "name": "STATION", + "description": "The name of your Wi-Fi interface, e.g., wlan0 or phy0", + "example": "wlan0", + "discover_cmd": "iwctl station list" + }, + { + "name": "NETWORK_NAME", + "description": "The name (SSID) of the Wi-Fi network you want to connect to", + "example": "MyHomeWiFi", + "discover_cmd": "iwctl station get-networks" + } + ], + "risk": "low" + } + ] + }, + { + "explain": "List available Wi-Fi devices to find your device name (e.g., wlan0).", + "cmd": "device list", + "risk": "low", + "expect": "A list of devices is shown." + }, + { + "explain": "Scan for available networks using your device name.", + "cmd": "station scan", + "risk": "low", + "placeholders": [ + { + "name": "DEVICE_NAME", + "description": "Your Wi-Fi interface name, e.g., wlan0", + "discover_cmd": "iwctl device list" + } + ] + }, + { + "explain": "List the scanned networks to find the SSID you want to connect to.", + "cmd": "station get-networks", + "risk": "low", + "placeholders": [ + { + "name": "DEVICE_NAME", + "description": "Your Wi-Fi interface name", + "discover_cmd": "iwctl device list" + } + ] + }, + { + "explain": "Connect to the chosen network. You will be prompted for the password if required.", + "cmd": "station connect ", + "risk": "low", + "placeholders": [ + { + "name": "DEVICE_NAME", + "description": "Your Wi-Fi interface name", + "discover_cmd": "iwctl device list" + }, + { + "name": "SSID", + "description": "The name of the Wi-Fi network", + "discover_cmd": "iwctl station get-networks" + } + ], + "expect": "Connection established or password prompt appears." + } + ], + "risk": "low", + "verify": [ + { + "cmd": "station show", + "expect": "State is 'connected' and SSID is shown." + } + ], + "see_also": [ + "nmcli-connect-wifi-network" + ], + "source": { + "url": "https://wiki.archlinux.org/title/Iwd#Connect_to_a_network", + "title": "Iwd", + "revision_id": 887570, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/iwd-error-pmk-generation-failed.json b/cards/linux/iwd-error-pmk-generation-failed.json new file mode 100644 index 0000000000000000000000000000000000000000..99f566b6edc0756261fd7547abf2fe6f950cc731 --- /dev/null +++ b/cards/linux/iwd-error-pmk-generation-failed.json @@ -0,0 +1,56 @@ +{ + "schema_version": 2, + "id": "iwd-error-pmk-generation-failed", + "platform": "linux", + "kind": "error", + "title": "Fix iwd PMK generation failed error", + "summary": "This error occurs when the Wi-Fi password (passphrase) is too short or too long. iwd requires PSK pass-phrases to be between 8 and 63 ASCII characters.", + "error_patterns": [ + "PMK generation failed. Ensure Crypto Engine is properly configured" + ], + "aliases": [ + { + "text": "pmk generation failed iwd", + "lang": "en" + }, + { + "text": "iwd crypto engine error", + "lang": "en" + }, + { + "text": "wifi password too short iwd", + "lang": "en" + }, + { + "text": "ошибка pmk iwd", + "lang": "ru" + }, + { + "text": "неверный пароль wifi iwd", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "iwd" + ] + }, + "steps": [ + { + "explain": "Check that your Wi-Fi password is between 8 and 63 characters long. If it is shorter or longer, you cannot connect using standard WPA2-PSK. Contact your network administrator to change the password or use a different authentication method.", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Iwd#Connect_to_a_network", + "title": "Iwd", + "revision_id": 887570, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/journal-view-current-boot.json b/cards/linux/journal-view-current-boot.json new file mode 100644 index 0000000000000000000000000000000000000000..590a9cec8b74926f76eb6bc5e32360dc1698aff5 --- /dev/null +++ b/cards/linux/journal-view-current-boot.json @@ -0,0 +1,100 @@ +{ + "schema_version": 2, + "id": "journal-view-current-boot", + "platform": "linux", + "kind": "task", + "title": "View journal for current boot", + "summary": "Display all journal messages generated since the system was last started. This is useful for debugging issues that occurred during the current session.", + "aliases": [ + { + "text": "view current boot logs", + "lang": "en" + }, + { + "text": "journal since boot", + "lang": "en" + }, + { + "text": "logs from this boot", + "lang": "en" + }, + { + "text": "journalctl current boot", + "lang": "en" + }, + { + "text": "system logs since startup", + "lang": "en" + }, + { + "text": "посмотреть логи текущей загрузки", + "lang": "ru" + }, + { + "text": "журнал с момента загрузки", + "lang": "ru" + }, + { + "text": "journalctl --boot", + "lang": "ru" + }, + { + "text": "логи после перезагрузки", + "lang": "ru" + }, + { + "text": "journalctl -b", + "lang": "en" + }, + { + "text": "посмотреть логи системы", + "lang": "ru" + }, + { + "text": "check journal errors", + "lang": "en" + }, + { + "text": "view system logs", + "lang": "en" + }, + { + "text": "systemd journal errors", + "lang": "en" + }, + { + "text": "journalctl ошибки", + "lang": "ru" + }, + { + "text": "журнал systemd", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "systemd" + ] + }, + "steps": [ + { + "explain": "Run journalctl with the --boot flag to restrict output to the current boot session.", + "cmd": "sudo journalctl --boot", + "needs_root": true, + "risk": "low", + "expect": "The terminal displays journal entries from the current boot." + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Systemd/Journal#Filtering_output", + "title": "Systemd/Journal", + "revision_id": 881066, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/journal-view-errors.json b/cards/linux/journal-view-errors.json new file mode 100644 index 0000000000000000000000000000000000000000..f7deb20c7b13a42fe6829dbf1cdb5147cd548869 --- /dev/null +++ b/cards/linux/journal-view-errors.json @@ -0,0 +1,72 @@ +{ + "schema_version": 2, + "id": "journal-view-errors", + "platform": "linux", + "kind": "task", + "title": "View system journal errors", + "summary": "Use journalctl to view only error, critical, and alert messages from the system log. This helps identify serious issues without sifting through normal informational messages.", + "aliases": [ + { + "text": "view journal errors", + "lang": "en" + }, + { + "text": "check system log errors", + "lang": "en" + }, + { + "text": "journalctl errors only", + "lang": "en" + }, + { + "text": "show critical messages", + "lang": "en" + }, + { + "text": "system log errors", + "lang": "en" + }, + { + "text": "посмотреть ошибки в логах", + "lang": "ru" + }, + { + "text": "журнал ошибок systemd", + "lang": "ru" + }, + { + "text": "journalctl ошибки", + "lang": "ru" + }, + { + "text": "критические ошибки системы", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "systemd" + ] + }, + "steps": [ + { + "explain": "Run journalctl with the priority filter to show only messages with priority 'err' (3) and higher (more critical).", + "cmd": "sudo journalctl --priority err..alert", + "needs_root": true, + "risk": "low", + "expect": "The terminal displays only error, critical, and alert messages from the journal." + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Systemd/Journal#Filtering_output", + "title": "Systemd/Journal", + "revision_id": 881066, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/journal-view-kernel-messages.json b/cards/linux/journal-view-kernel-messages.json new file mode 100644 index 0000000000000000000000000000000000000000..e715b9f3f42e86f6d163231cf419d9e8327eb505 --- /dev/null +++ b/cards/linux/journal-view-kernel-messages.json @@ -0,0 +1,72 @@ +{ + "schema_version": 2, + "id": "journal-view-kernel-messages", + "platform": "linux", + "kind": "task", + "title": "View kernel messages via journal", + "summary": "Use journalctl to view only kernel messages, similar to the dmesg command. This is useful for checking hardware detection and driver issues.", + "aliases": [ + { + "text": "view kernel logs", + "lang": "en" + }, + { + "text": "journalctl dmesg", + "lang": "en" + }, + { + "text": "kernel messages journal", + "lang": "en" + }, + { + "text": "check kernel log", + "lang": "en" + }, + { + "text": "dmesg alternative", + "lang": "en" + }, + { + "text": "посмотреть логи ядра", + "lang": "ru" + }, + { + "text": "journalctl --dmesg", + "lang": "ru" + }, + { + "text": "сообщения ядра", + "lang": "ru" + }, + { + "text": "логи драйверов", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "systemd" + ] + }, + "steps": [ + { + "explain": "Run journalctl with the --dmesg flag to display only kernel ring buffer messages.", + "cmd": "sudo journalctl --dmesg", + "needs_root": true, + "risk": "low", + "expect": "The terminal displays kernel messages." + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Systemd/Journal#Printing_kernel_messages_only", + "title": "Systemd/Journal", + "revision_id": 881066, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/kde-plasma-enable-hidpi-scaling.json b/cards/linux/kde-plasma-enable-hidpi-scaling.json new file mode 100644 index 0000000000000000000000000000000000000000..9d86b045db27800a71059ffb6513194c918d5c8b --- /dev/null +++ b/cards/linux/kde-plasma-enable-hidpi-scaling.json @@ -0,0 +1,67 @@ +{ + "schema_version": 2, + "id": "kde-plasma-enable-hidpi-scaling", + "platform": "linux", + "kind": "task", + "title": "Enable HiDPI scaling in KDE Plasma", + "summary": "Adjust the global scale factor in KDE Plasma to improve readability on HiDPI displays. This affects fonts, icons, and widgets.", + "aliases": [ + { + "text": "kde hidpi scaling", + "lang": "en" + }, + { + "text": "kde plasma display scale", + "lang": "en" + }, + { + "text": "make kde bigger", + "lang": "en" + }, + { + "text": "kde hidpi", + "lang": "ru" + }, + { + "text": "масштаб kde plasma", + "lang": "ru" + }, + { + "text": "увеличить шрифт kde", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "desktop": [ + "kde" + ] + }, + "steps": [ + { + "explain": "Open System Settings and go to Display Configuration.", + "gui": "System Settings > Display and Monitor > Display Configuration", + "risk": "low" + }, + { + "explain": "Find the 'Global Scale' slider and drag it to the desired size.", + "gui": "Drag 'Global Scale' slider", + "risk": "low" + }, + { + "explain": "Log out and log back in, or reboot the computer.", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/HiDPI#KDE_Plasma", + "title": "HiDPI", + "revision_id": 886689, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/kernel-module-blacklist.json b/cards/linux/kernel-module-blacklist.json new file mode 100644 index 0000000000000000000000000000000000000000..6dc239ad3658220964632466b3b414253652731d --- /dev/null +++ b/cards/linux/kernel-module-blacklist.json @@ -0,0 +1,72 @@ +{ + "schema_version": 2, + "id": "kernel-module-blacklist", + "platform": "linux", + "kind": "task", + "title": "Blacklist a kernel module to prevent loading", + "summary": "Blacklisting prevents a kernel module from loading automatically at boot. This is useful if a driver causes conflicts or you do not need the hardware.", + "aliases": [ + { + "text": "blacklist kernel module", + "lang": "en" + }, + { + "text": "prevent module loading", + "lang": "en" + }, + { + "text": "disable driver at boot", + "lang": "en" + }, + { + "text": "stop module from loading", + "lang": "en" + }, + { + "text": "заблокировать модуль ядра", + "lang": "ru" + }, + { + "text": "отключить загрузку драйвера", + "lang": "ru" + }, + { + "text": "blacklist", + "lang": "ru" + }, + { + "text": "запретить загрузку модуля", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Create a file like /etc/modprobe.d/blacklist.conf and add the line: blacklist ", + "risk": "medium" + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Delete the file /etc/modprobe.d/blacklist.conf or remove the blacklist line.", + "risk": "medium" + } + ], + "warnings": [ + "Blacklisting only prevents automatic loading. The module can still be loaded manually or by dependencies.", + "If the module is in the initramfs, you may need to regenerate it." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Kernel_module#Blacklisting", + "title": "Kernel module", + "revision_id": 849494, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/kernel-module-info.json b/cards/linux/kernel-module-info.json new file mode 100644 index 0000000000000000000000000000000000000000..22295d783bd3f562619b10b6fe2a932d198297d8 --- /dev/null +++ b/cards/linux/kernel-module-info.json @@ -0,0 +1,71 @@ +{ + "schema_version": 2, + "id": "kernel-module-info", + "platform": "linux", + "kind": "task", + "title": "Show information about a specific kernel module", + "summary": "You can check details about a specific kernel module, such as its description, author, and parameters, using the modinfo command.", + "aliases": [ + { + "text": "kernel module info", + "lang": "en" + }, + { + "text": "modinfo command", + "lang": "en" + }, + { + "text": "details about driver", + "lang": "en" + }, + { + "text": "check module parameters", + "lang": "en" + }, + { + "text": "информация о модуле ядра", + "lang": "ru" + }, + { + "text": "modinfo", + "lang": "ru" + }, + { + "text": "сведения о драйвере", + "lang": "ru" + }, + { + "text": "параметры модуля", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Use modinfo followed by the module name to display its metadata and available options.", + "cmd": "modinfo ", + "risk": "low", + "placeholders": [ + { + "name": "MODULE_NAME", + "description": "The name of the kernel module you want to inspect.", + "example": "i915", + "discover_cmd": "lsmod" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Kernel_module#Obtaining_information", + "title": "Kernel module", + "revision_id": 849494, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/kernel-module-load.json b/cards/linux/kernel-module-load.json new file mode 100644 index 0000000000000000000000000000000000000000..0fb05996992c906712f852c73538471c1f5a75ef --- /dev/null +++ b/cards/linux/kernel-module-load.json @@ -0,0 +1,91 @@ +{ + "schema_version": 2, + "id": "kernel-module-load", + "platform": "linux", + "kind": "task", + "title": "Manually load a kernel module", + "summary": "If a driver or feature is not working, you might need to manually load its kernel module. This is done using the modprobe command.", + "aliases": [ + { + "text": "load kernel module", + "lang": "en" + }, + { + "text": "modprobe command", + "lang": "en" + }, + { + "text": "load driver manually", + "lang": "en" + }, + { + "text": "enable kernel module", + "lang": "en" + }, + { + "text": "загрузить модуль ядра", + "lang": "ru" + }, + { + "text": "modprobe", + "lang": "ru" + }, + { + "text": "включить драйвер", + "lang": "ru" + }, + { + "text": "загрузить драйвер вручную", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Use sudo modprobe followed by the module name to load it into the kernel.", + "cmd": "sudo modprobe ", + "risk": "medium", + "needs_root": true, + "placeholders": [ + { + "name": "MODULE_NAME", + "description": "The name of the kernel module to load.", + "example": "snd_hda_intel", + "discover_cmd": "lsmod" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "To unload the module, use rmmod or modprobe -r.", + "cmd": "sudo rmmod ", + "risk": "medium", + "needs_root": true, + "placeholders": [ + { + "name": "MODULE_NAME", + "description": "The name of the kernel module to unload.", + "example": "snd_hda_intel" + } + ] + } + ], + "warnings": [ + "Loading incorrect modules can cause system instability.", + "If you upgraded your kernel but did not reboot, modprobe may fail silently." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Kernel_module#Manual_module_handling", + "title": "Kernel module", + "revision_id": 849494, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/kernel-module-set-options.json b/cards/linux/kernel-module-set-options.json new file mode 100644 index 0000000000000000000000000000000000000000..7fc3b921f9bd1824625125e126aae89023ad1761 --- /dev/null +++ b/cards/linux/kernel-module-set-options.json @@ -0,0 +1,72 @@ +{ + "schema_version": 2, + "id": "kernel-module-set-options", + "platform": "linux", + "kind": "task", + "title": "Set persistent options for a kernel module", + "summary": "You can configure specific parameters for a kernel module so they are applied every time it loads. This is done via configuration files.", + "aliases": [ + { + "text": "set kernel module options", + "lang": "en" + }, + { + "text": "modprobe options", + "lang": "en" + }, + { + "text": "configure driver parameters", + "lang": "en" + }, + { + "text": "persistent module settings", + "lang": "en" + }, + { + "text": "настроить параметры модуля", + "lang": "ru" + }, + { + "text": "options modprobe", + "lang": "ru" + }, + { + "text": "параметры драйвера", + "lang": "ru" + }, + { + "text": "настроить модуль ядра", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Create a file like /etc/modprobe.d/mymodule.conf and add: options =", + "risk": "medium" + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Delete the file /etc/modprobe.d/mymodule.conf or remove the options line.", + "risk": "medium" + } + ], + "warnings": [ + "All options for a given module must be on a single line.", + "If the module is in the initramfs, you may need to regenerate it." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Kernel_module#Setting_module_options", + "title": "Kernel module", + "revision_id": 849494, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/kernel-module-unload.json b/cards/linux/kernel-module-unload.json new file mode 100644 index 0000000000000000000000000000000000000000..c06a5359f9d681609a20a7d562588287e365a4ea --- /dev/null +++ b/cards/linux/kernel-module-unload.json @@ -0,0 +1,105 @@ +{ + "schema_version": 2, + "id": "kernel-module-unload", + "platform": "linux", + "kind": "task", + "title": "Unload a kernel module", + "summary": "You can remove a loaded kernel module from the kernel if it is no longer needed or is causing issues.", + "aliases": [ + { + "text": "unload kernel module", + "lang": "en" + }, + { + "text": "remove kernel module", + "lang": "en" + }, + { + "text": "rmmod command", + "lang": "en" + }, + { + "text": "disable driver", + "lang": "en" + }, + { + "text": "выгрузить модуль ядра", + "lang": "ru" + }, + { + "text": "rmmod", + "lang": "ru" + }, + { + "text": "отключить драйвер", + "lang": "ru" + }, + { + "text": "удалить модуль", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Use sudo rmmod followed by the module name to remove it from the kernel.", + "cmd": "sudo rmmod ", + "risk": "medium", + "needs_root": true, + "placeholders": [ + { + "name": "MODULE_NAME", + "description": "The name of the kernel module to unload.", + "example": "pcspkr", + "discover_cmd": "lsmod" + } + ], + "alternatives": [ + { + "explain": "Alternatively, use modprobe with the -r flag.", + "cmd": "sudo modprobe -r ", + "risk": "medium", + "needs_root": true, + "placeholders": [ + { + "name": "MODULE_NAME", + "description": "The name of the kernel module to unload.", + "example": "pcspkr" + } + ] + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "To reload the module, use modprobe.", + "cmd": "sudo modprobe ", + "risk": "medium", + "needs_root": true, + "placeholders": [ + { + "name": "MODULE_NAME", + "description": "The name of the kernel module to load.", + "example": "pcspkr" + } + ] + } + ], + "warnings": [ + "You cannot unload a module if it is currently in use by another module or process." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Kernel_module#Manual_module_handling", + "title": "Kernel module", + "revision_id": 849494, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/kms-force-resolution.json b/cards/linux/kms-force-resolution.json new file mode 100644 index 0000000000000000000000000000000000000000..792a28f5b8b462c05efe91ab2b1955eb1c07facd --- /dev/null +++ b/cards/linux/kms-force-resolution.json @@ -0,0 +1,103 @@ +{ + "schema_version": 2, + "id": "kms-force-resolution", + "platform": "linux", + "kind": "task", + "title": "Force display resolution via kernel video parameter", + "summary": "If your monitor's native resolution is not detected correctly, you can force a specific resolution using the 'video=' kernel parameter. This is useful for Wayland compositors or when EDID data is faulty.", + "aliases": [ + { + "text": "force resolution linux", + "lang": "en" + }, + { + "text": "video kernel parameter", + "lang": "en" + }, + { + "text": "wrong resolution boot", + "lang": "en" + }, + { + "text": "set resolution grub", + "lang": "en" + }, + { + "text": "принудительное разрешение экрана", + "lang": "ru" + }, + { + "text": "параметр ядра video", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "arch" + } + ] + }, + "prerequisites": [ + "Know your desired resolution and refresh rate", + "Know your connector name (e.g., HDMI-A-1, DVI-I-1)" + ], + "steps": [ + { + "explain": "Find your connector name by running this command in the terminal:", + "cmd": "for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n \"${con#*/card?-}: \"; cat $p; done", + "risk": "low", + "expect": "Output showing connector names and their status (connected/disconnected), e.g., 'HDMI-A-1: connected'." + }, + { + "explain": "Add the 'video=' parameter to your kernel command line in the bootloader configuration. Replace with your connector name (e.g., HDMI-A-1), with horizontal pixels, with vertical pixels, and with Hz.", + "cmd": "video=:x@", + "risk": "medium", + "placeholders": [ + { + "name": "CONNECTOR", + "description": "The DRM connector name, e.g., HDMI-A-1, DVI-I-1", + "discover_cmd": "for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n \"${con#*/card?-}: \"; cat $p; done" + }, + { + "name": "XRES", + "description": "Horizontal resolution in pixels", + "example": "1920" + }, + { + "name": "YRES", + "description": "Vertical resolution in pixels", + "example": "1080" + }, + { + "name": "REFRESH", + "description": "Refresh rate in Hz", + "example": "60" + } + ] + }, + { + "explain": "Regenerate your bootloader configuration to apply the changes. The exact command depends on your bootloader.", + "risk": "medium", + "needs_root": true + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Remove the 'video=' parameter from your bootloader configuration and regenerate the config.", + "risk": "medium", + "needs_root": true + } + ], + "warnings": [ + "Incorrect resolution settings can result in a black screen or no signal.", + "This method is primarily for the console and Wayland; Xorg may ignore it." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Kernel_mode_setting#Forcing_modes", + "title": "Kernel mode setting", + "revision_id": 887481, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/laptop-check-battery-status.json b/cards/linux/laptop-check-battery-status.json new file mode 100644 index 0000000000000000000000000000000000000000..5482a664f32ada3a637c8b3dcdb1dcccb5a23f0d --- /dev/null +++ b/cards/linux/laptop-check-battery-status.json @@ -0,0 +1,76 @@ +{ + "schema_version": 2, + "id": "laptop-check-battery-status", + "platform": "linux", + "kind": "task", + "title": "Check laptop battery status and capacity", + "summary": "You can check your laptop's battery level and health using simple terminal commands. This helps you monitor power usage and troubleshoot battery issues.", + "aliases": [ + { + "text": "check battery status", + "lang": "en" + }, + { + "text": "laptop battery level", + "lang": "en" + }, + { + "text": "how much battery left", + "lang": "en" + }, + { + "text": "battery health check", + "lang": "en" + }, + { + "text": "проверить батарею", + "lang": "ru" + }, + { + "text": "уровень заряда ноутбука", + "lang": "ru" + }, + { + "text": "сколько осталось батареи", + "lang": "ru" + }, + { + "text": "состояние аккумулятора", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Read the current battery capacity percentage directly from the kernel. Replace BAT0 with your battery name if different (e.g., BAT1, wacom_battery_0).", + "cmd": "cat /sys/class/power_supply//capacity", + "risk": "low", + "placeholders": [ + { + "name": "BATTERY_NAME", + "description": "Name of the battery device, usually BAT0", + "example": "BAT0", + "discover_cmd": "ls /sys/class/power_supply/" + } + ] + }, + { + "explain": "Alternatively, use upower to get detailed battery information including health and voltage.", + "cmd": "for BAT_PATH in $(upower -e | grep BAT); do upower -i \"$BAT_PATH\"; done", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Laptop#Battery_state", + "title": "Laptop", + "revision_id": 881219, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/laptop-fix-audio-mute-led.json b/cards/linux/laptop-fix-audio-mute-led.json new file mode 100644 index 0000000000000000000000000000000000000000..2c6972b91c7daeb3b1bdc0297ae4b7e39e4271b6 --- /dev/null +++ b/cards/linux/laptop-fix-audio-mute-led.json @@ -0,0 +1,99 @@ +{ + "schema_version": 2, + "id": "laptop-fix-audio-mute-led", + "platform": "linux", + "kind": "task", + "title": "Fix audio mute LED on Intel HD Audio laptops", + "summary": "On some laptops with Intel HD Audio, the mute LED does not work by default. You can fix this by specifying the correct codec model for the snd_hda_intel kernel module.", + "aliases": [ + { + "text": "mute led not working", + "lang": "en" + }, + { + "text": "audio mute light laptop", + "lang": "en" + }, + { + "text": "fix mute led intel", + "lang": "en" + }, + { + "text": "sound mute led", + "lang": "en" + }, + { + "text": "светодиод mute не горит", + "lang": "ru" + }, + { + "text": "лампочка mute не работает", + "lang": "ru" + }, + { + "text": "индикатор звука ноутбука", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "snd_hda_intel" + ] + }, + "steps": [ + { + "explain": "Check if your laptop uses Intel HD Audio. If this command produces output, proceed.", + "cmd": "lsmod | grep snd_hda_intel", + "risk": "low" + }, + { + "explain": "Find your audio codec model name.", + "cmd": "grep Codec /proc/asound/card*/codec*", + "risk": "low" + }, + { + "explain": "Look up your codec model in the kernel documentation list of available model names. If not found, try similar models.", + "risk": "low" + }, + { + "explain": "Create the file /etc/modprobe.d/mute-led.conf with the following content to specify the model for the snd_hda_intel module. Replace with the model you found.", + "risk": "medium", + "needs_root": true + }, + { + "explain": "Reboot the system to apply the change.", + "risk": "medium", + "needs_root": true + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Remove the configuration file /etc/modprobe.d/mute-led.conf.", + "risk": "medium", + "needs_root": true + }, + { + "explain": "Reboot to revert changes.", + "risk": "medium", + "needs_root": true + } + ], + "warnings": [ + "If you need to test many models, you can reload the module without rebooting by stopping all graphical sessions first." + ], + "see_also": [ + "alsa-unmute-channels" + ], + "source": { + "url": "https://wiki.archlinux.org/title/Laptop#Audio_mute_LED", + "title": "Laptop", + "revision_id": 881219, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/laptop-fix-elantech-touchpad-not-detected.json b/cards/linux/laptop-fix-elantech-touchpad-not-detected.json new file mode 100644 index 0000000000000000000000000000000000000000..b578446390c6716a46e0fc07836bc848323752a9 --- /dev/null +++ b/cards/linux/laptop-fix-elantech-touchpad-not-detected.json @@ -0,0 +1,82 @@ +{ + "schema_version": 2, + "id": "laptop-fix-elantech-touchpad-not-detected", + "platform": "linux", + "kind": "error", + "title": "Fix Elantech touchpad not detected due to vcc error", + "summary": "If your Elantech touchpad is not detected and you see a 'supply vcc not found' error in the journal, forcing the psmouse module to use the primary bus often fixes it.", + "aliases": [ + { + "text": "elantech touchpad not working", + "lang": "en" + }, + { + "text": "touchpad not detected elantech", + "lang": "en" + }, + { + "text": "elan_i2c vcc not found", + "lang": "en" + }, + { + "text": "touchpad not showing up", + "lang": "en" + }, + { + "text": "тачпад elantech не работает", + "lang": "ru" + }, + { + "text": "тачпад не определяется", + "lang": "ru" + }, + { + "text": "elan_i2c ошибка", + "lang": "ru" + } + ], + "error_patterns": [ + "supply vcc not found, using dummy regulator" + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Create the file /etc/modprobe.d/psmouse.conf with the following content to force the psmouse module to use the primary bus.", + "risk": "medium", + "needs_root": true + }, + { + "explain": "Reload the psmouse module or reboot to apply the change.", + "risk": "medium", + "needs_root": true + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Remove the configuration file /etc/modprobe.d/psmouse.conf.", + "risk": "medium", + "needs_root": true + }, + { + "explain": "Reload the psmouse module or reboot to revert changes.", + "risk": "medium", + "needs_root": true + } + ], + "warnings": [ + "If the touchpad is detected but still does not work, you may need to blacklist the elan_i2c kernel module instead." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Laptop#Elantech", + "title": "Laptop", + "revision_id": 881219, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/libinput-check-driver-in-xorg-log.json b/cards/linux/libinput-check-driver-in-xorg-log.json new file mode 100644 index 0000000000000000000000000000000000000000..f05ab990efc179cbe5a2127af2b63bf493d90028 --- /dev/null +++ b/cards/linux/libinput-check-driver-in-xorg-log.json @@ -0,0 +1,66 @@ +{ + "schema_version": 2, + "id": "libinput-check-driver-in-xorg-log", + "platform": "linux", + "kind": "task", + "title": "Check if libinput is managing devices in Xorg", + "summary": "Verify which input driver Xorg is using for your devices by checking the Xorg log file. This helps confirm if libinput is active or if another driver like synaptics is taking precedence.", + "aliases": [ + { + "text": "check libinput driver", + "lang": "en" + }, + { + "text": "which driver is using my mouse", + "lang": "en" + }, + { + "text": "xorg log input driver", + "lang": "en" + }, + { + "text": "proverit libinput driver", + "lang": "ru" + }, + { + "text": "kakoy driver ispolzuetsya", + "lang": "ru" + }, + { + "text": "xorg log libinput", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "arch" + } + ], + "display_server": "x11" + }, + "prerequisites": [ + "Running an X11 session" + ], + "steps": [ + { + "explain": "Search the Xorg log file for lines indicating which input driver is being used. Replace with the path to your log, usually /var/log/Xorg.0.log.", + "cmd": "grep -e \"Using input driver 'libinput'\" ", + "risk": "low", + "placeholders": [ + { + "name": "XORG_LOG_PATH", + "description": "Path to the Xorg log file", + "example": "/var/log/Xorg.0.log" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Libinput#Via_Xorg_configuration_file", + "title": "Libinput", + "revision_id": 883939, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/libinput-fix-gnome-touchpad-not-working.json b/cards/linux/libinput-fix-gnome-touchpad-not-working.json new file mode 100644 index 0000000000000000000000000000000000000000..f9a1bff5165c9ec9655a4d88fc4c97faa3fe28c2 --- /dev/null +++ b/cards/linux/libinput-fix-gnome-touchpad-not-working.json @@ -0,0 +1,71 @@ +{ + "schema_version": 2, + "id": "libinput-fix-gnome-touchpad-not-working", + "platform": "linux", + "kind": "error", + "title": "Fix touchpad not working in GNOME", + "summary": "If your touchpad stops working in GNOME, it might be disabled in the desktop settings. This card shows how to re-enable touchpad events and adjust tapping/scrolling settings via gsettings.", + "aliases": [ + { + "text": "touchpad not working gnome", + "lang": "en" + }, + { + "text": "gnome touchpad disabled", + "lang": "en" + }, + { + "text": "fix gnome touchpad", + "lang": "en" + }, + { + "text": "touchpad ne rabotaet gnome", + "lang": "ru" + }, + { + "text": "gnome touchpad ne funkcioniruet", + "lang": "ru" + }, + { + "text": "gsettings touchpad", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "arch" + } + ], + "desktop": [ + "gnome" + ] + }, + "error_patterns": [ + "touchpad events are not being sent to the GNOME desktop" + ], + "steps": [ + { + "explain": "Ensure that touchpad events are enabled in GNOME settings.", + "cmd": "gsettings set org.gnome.desktop.peripherals.touchpad send-events enabled", + "risk": "low" + }, + { + "explain": "Optionally, enable tap-to-click if you want to click by tapping the touchpad.", + "cmd": "gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true", + "risk": "low" + }, + { + "explain": "Optionally, disable natural scrolling if you prefer traditional scroll direction.", + "cmd": "gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll false", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Libinput#Touchpad_not_working_in_GNOME", + "title": "Libinput", + "revision_id": 883939, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/libinput-list-devices.json b/cards/linux/libinput-list-devices.json new file mode 100644 index 0000000000000000000000000000000000000000..b992f08614f991c622113c1e39d8db03e2876d29 --- /dev/null +++ b/cards/linux/libinput-list-devices.json @@ -0,0 +1,65 @@ +{ + "schema_version": 2, + "id": "libinput-list-devices", + "platform": "linux", + "kind": "task", + "title": "List input devices managed by libinput", + "summary": "Use the libinput tools to see which input devices (mouse, keyboard, touchpad) are detected and what features they support. This helps identify device names or IDs for further configuration.", + "aliases": [ + { + "text": "list libinput devices", + "lang": "en" + }, + { + "text": "check input devices", + "lang": "en" + }, + { + "text": "libinput list devices", + "lang": "en" + }, + { + "text": "show touchpad id", + "lang": "en" + }, + { + "text": "spisok ustroystv libinput", + "lang": "ru" + }, + { + "text": "kakie ustroystva podklyucheny", + "lang": "ru" + }, + { + "text": "libinput spiski", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "arch" + } + ], + "requires": [ + "libinput-tools" + ] + }, + "prerequisites": [ + "libinput-tools package is installed" + ], + "steps": [ + { + "explain": "Run the libinput list-devices command to display all detected input devices and their capabilities.", + "cmd": "libinput list-devices", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Libinput#Installation", + "title": "Libinput", + "revision_id": 883939, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/linux-add-apt-repository.json b/cards/linux/linux-add-apt-repository.json new file mode 100644 index 0000000000000000000000000000000000000000..6638f65673572fd9d0fa0376807c7c6ed8b9f121 --- /dev/null +++ b/cards/linux/linux-add-apt-repository.json @@ -0,0 +1,111 @@ +{ + "schema_version": 2, + "id": "linux-add-apt-repository", + "platform": "linux", + "kind": "task", + "title": "Add a new APT repository", + "summary": "Add a new software repository to your system's package manager so you can install packages from it.", + "aliases": [ + { + "text": "add apt repository", + "lang": "en" + }, + { + "text": "add ppa", + "lang": "en" + }, + { + "text": "add software source", + "lang": "en" + }, + { + "text": "add repository to apt", + "lang": "en" + }, + { + "text": "добавить репозиторий apt", + "lang": "ru" + }, + { + "text": "добавить ppa", + "lang": "ru" + }, + { + "text": "добавить источник программ", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + }, + { + "family": "mint" + } + ] + }, + "prerequisites": [ + "Know the repository specification (e.g., 'ppa:owner/name' or a full deb URL)" + ], + "steps": [ + { + "explain": "Add the specified repository to the list of sources apt uses to find packages.", + "cmd": "sudo add-apt-repository ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "REPOSITORY_SPEC", + "description": "The repository to add, e.g. 'ppa:graphics-drivers/ppa' or 'deb http://archive.ubuntu.com/ubuntu focal main'", + "example": "ppa:graphics-drivers/ppa" + } + ], + "alternatives": [ + { + "explain": "Add the repository and immediately update the package list so new packages are available.", + "cmd": "sudo add-apt-repository --update ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "REPOSITORY_SPEC", + "description": "The repository to add", + "example": "ppa:graphics-drivers/ppa" + } + ] + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Remove the repository you just added.", + "cmd": "sudo add-apt-repository --remove ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "REPOSITORY_SPEC", + "description": "The repository to remove", + "example": "ppa:graphics-drivers/ppa" + } + ] + } + ], + "warnings": [ + "Only add repositories from trusted sources. Untrusted repositories can compromise your system security." + ], + "see_also": [ + "linux-apt-update-package-list" + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/add-apt-repository.md", + "title": "tldr-pages: add-apt-repository", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-add-default-route-gateway.json b/cards/linux/linux-add-default-route-gateway.json new file mode 100644 index 0000000000000000000000000000000000000000..7286c872e6ee3fd9adfc8b3de94b8debccd0d90f --- /dev/null +++ b/cards/linux/linux-add-default-route-gateway.json @@ -0,0 +1,80 @@ +{ + "schema_version": 2, + "id": "linux-add-default-route-gateway", + "platform": "linux", + "kind": "task", + "title": "Add a default route via a gateway", + "summary": "Configure your system to send all unknown traffic through a specific gateway IP address. This is typically used when setting up a static network configuration or fixing routing issues.", + "aliases": [ + { + "text": "add default route", + "lang": "en" + }, + { + "text": "set default gateway", + "lang": "en" + }, + { + "text": "ip route add default", + "lang": "en" + }, + { + "text": "configure gateway", + "lang": "en" + }, + { + "text": "добавить маршрут по умолчанию", + "lang": "ru" + }, + { + "text": "настроить шлюз", + "lang": "ru" + }, + { + "text": "ip route add default via", + "lang": "ru" + }, + { + "text": "шлюз по умолчанию", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Add a default route that directs all traffic not matching other routes to the specified gateway IP.", + "cmd": "sudo ip route add default via ", + "risk": "medium", + "needs_root": true, + "placeholders": [ + { + "name": "GATEWAY_IP", + "description": "The IP address of your gateway/router", + "example": "192.168.1.1" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Delete the default route to revert to the previous configuration.", + "risk": "medium" + } + ], + "warnings": [ + "Incorrect gateway settings can disconnect you from the network.", + "Ensure the gateway IP is reachable on your local network." + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/ip-route.md", + "title": "tldr-pages: ip-route", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-add-ip-address.json b/cards/linux/linux-add-ip-address.json new file mode 100644 index 0000000000000000000000000000000000000000..ff7b2d55ce1ec8f8d94a2e5fbf67a3b830cece54 --- /dev/null +++ b/cards/linux/linux-add-ip-address.json @@ -0,0 +1,159 @@ +{ + "schema_version": 2, + "id": "linux-add-ip-address", + "platform": "linux", + "kind": "task", + "title": "Add an IP address to a network interface", + "summary": "Assign a specific IP address to a network interface. This is useful for setting up static IPs or testing network configurations.", + "aliases": [ + { + "text": "add ip address", + "lang": "en" + }, + { + "text": "set static ip manually", + "lang": "en" + }, + { + "text": "assign ip to interface", + "lang": "en" + }, + { + "text": "ip add command", + "lang": "en" + }, + { + "text": "добавить ip адрес", + "lang": "ru" + }, + { + "text": "назначить ip интерфейсу", + "lang": "ru" + }, + { + "text": "прописать статический ip", + "lang": "ru" + }, + { + "text": "ip address add/en", + "lang": "en" + }, + { + "text": "remove ip address", + "lang": "en" + }, + { + "text": "set static ip", + "lang": "en" + }, + { + "text": "ip address add", + "lang": "en" + }, + { + "text": "ip address delete", + "lang": "en" + }, + { + "text": "удалить ip адрес", + "lang": "ru" + }, + { + "text": "настроить статический ip", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Add an IP address to a specified network interface. Requires root privileges.", + "cmd": "sudo ip address add dev ", + "risk": "medium", + "needs_root": true, + "placeholders": [ + { + "name": "IP_ADDRESS", + "description": "The IP address to add (e.g., 192.168.1.10/24).", + "example": "192.168.1.10/24" + }, + { + "name": "INTERFACE", + "description": "The network interface name (e.g., eth0).", + "example": "eth0", + "discover_cmd": "ip address" + } + ], + "alternatives": [ + { + "explain": "Use `sudo ip address add` or `delete` with the IP address, subnet mask, and interface name.", + "cmd": "sudo ip address / dev ", + "needs_root": true, + "placeholders": [ + { + "name": "ACTION", + "description": "The action to perform: 'add' or 'delete'.", + "example": "add" + }, + { + "name": "IP_ADDRESS", + "description": "The IP address to add or remove.", + "example": "192.168.1.100" + }, + { + "name": "MASK", + "description": "The subnet mask in CIDR notation (e.g., 24 for 255.255.255.0).", + "example": "24" + }, + { + "name": "INTERFACE", + "description": "The network interface name.", + "example": "eth0", + "discover_cmd": "ip link" + } + ], + "risk": "medium" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Remove the IP address you just added to revert the change.", + "cmd": "sudo ip address delete dev ", + "risk": "medium", + "needs_root": true, + "placeholders": [ + { + "name": "IP_ADDRESS", + "description": "The IP address to remove.", + "example": "192.168.1.10/24" + }, + { + "name": "INTERFACE", + "description": "The network interface name.", + "example": "eth0" + } + ] + } + ], + "warnings": [ + "Incorrect IP configuration can disconnect you from the network.", + "This change is temporary and will be lost after a reboot unless configured in network manager." + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/ip-address.md", + "title": "tldr-pages: ip-address", + "license": "CC-BY-4.0" + }, + "see_also": [ + "posix-set-static-ip", + "linux-remove-ip-address" + ] +} diff --git a/cards/linux/linux-add-static-route.json b/cards/linux/linux-add-static-route.json new file mode 100644 index 0000000000000000000000000000000000000000..2e95f43b27d0d0c02a3b15cbf78a3d1b155c6aa7 --- /dev/null +++ b/cards/linux/linux-add-static-route.json @@ -0,0 +1,104 @@ +{ + "schema_version": 2, + "id": "linux-add-static-route", + "platform": "linux", + "kind": "task", + "title": "Add a static route to a specific network", + "summary": "Manually add a route for a specific destination network or IP address through a gateway. This is useful for accessing private networks or specific subnets that are not automatically discovered.", + "aliases": [ + { + "text": "add static route", + "lang": "en" + }, + { + "text": "ip route add", + "lang": "en" + }, + { + "text": "manual route", + "lang": "en" + }, + { + "text": "add route to network", + "lang": "en" + }, + { + "text": "добавить статический маршрут", + "lang": "ru" + }, + { + "text": "ip route add", + "lang": "ru" + }, + { + "text": "маршрут к сети", + "lang": "ru" + }, + { + "text": "настроить маршрут", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Add a static route for a specific destination IP or network, directing traffic through a gateway and out a specific interface.", + "cmd": "sudo ip route add via dev ", + "risk": "medium", + "needs_root": true, + "placeholders": [ + { + "name": "DESTINATION_IP", + "description": "The destination IP address or network (e.g., 10.0.0.0/24)", + "example": "10.0.0.0/24" + }, + { + "name": "GATEWAY_IP", + "description": "The IP address of the gateway to use", + "example": "192.168.1.1" + }, + { + "name": "INTERFACE", + "description": "The network interface to use (e.g., eth0, wlan0)", + "example": "eth0" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Delete the static route to remove it from the routing table.", + "cmd": "sudo ip route delete dev ", + "risk": "medium", + "needs_root": true, + "placeholders": [ + { + "name": "DESTINATION_IP", + "description": "The destination IP address or network", + "example": "10.0.0.0/24" + }, + { + "name": "INTERFACE", + "description": "The network interface used", + "example": "eth0" + } + ] + } + ], + "warnings": [ + "Incorrect routes can cause connectivity issues for specific networks.", + "Routes added this way are temporary and lost on reboot unless saved in configuration files." + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/ip-route.md", + "title": "tldr-pages: ip-route", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-add-user-to-group.json b/cards/linux/linux-add-user-to-group.json new file mode 100644 index 0000000000000000000000000000000000000000..dc6cd49f41184c3af7c10335771d4baea510b2ba --- /dev/null +++ b/cards/linux/linux-add-user-to-group.json @@ -0,0 +1,114 @@ +{ + "schema_version": 2, + "id": "linux-add-user-to-group", + "platform": "linux", + "kind": "task", + "title": "Add a user to a group", + "summary": "Add an existing user to an existing group to grant additional permissions.", + "aliases": [ + { + "text": "add user to group linux", + "lang": "en" + }, + { + "text": "usermod add group", + "lang": "en" + }, + { + "text": "gpasswd add user", + "lang": "en" + }, + { + "text": "добавить пользователя в группу", + "lang": "ru" + }, + { + "text": "как добавить юзера в группу", + "lang": "ru" + }, + { + "text": "usermod -aG", + "lang": "en" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Add the user to the specified group. The -a flag appends the user to the group, and -G specifies the group name.", + "cmd": "sudo usermod -aG ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "GROUP_NAME", + "description": "The name of the group", + "example": "wheel", + "discover_cmd": "cat /etc/group" + }, + { + "name": "USERNAME", + "description": "The name of the user", + "example": "john" + } + ], + "alternatives": [ + { + "explain": "Alternative command to add a user to a group.", + "cmd": "sudo gpasswd -a ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "USERNAME", + "description": "The name of the user", + "example": "john" + }, + { + "name": "GROUP_NAME", + "description": "The name of the group", + "example": "wheel", + "discover_cmd": "cat /etc/group" + } + ] + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Remove the user from the group.", + "cmd": "sudo gpasswd -d ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "USERNAME", + "description": "The name of the user", + "example": "john" + }, + { + "name": "GROUP_NAME", + "description": "The name of the group", + "example": "wheel" + } + ] + } + ], + "warnings": [ + "The user must log out and log back in for the group membership changes to take effect.", + "Do not omit the -a flag in usermod, or the user will be removed from all other groups not listed." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Users_and_groups#Group_management", + "title": "Users and groups", + "revision_id": 872887, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/linux-add-user.json b/cards/linux/linux-add-user.json new file mode 100644 index 0000000000000000000000000000000000000000..1078a1edb908707838b0d0d63fba23a31a748a5b --- /dev/null +++ b/cards/linux/linux-add-user.json @@ -0,0 +1,105 @@ +{ + "schema_version": 2, + "id": "linux-add-user", + "platform": "linux", + "kind": "task", + "title": "Add a new user account", + "summary": "Create a new user account with a home directory and set their password.", + "aliases": [ + { + "text": "add user linux", + "lang": "en" + }, + { + "text": "create new user account", + "lang": "en" + }, + { + "text": "useradd command", + "lang": "en" + }, + { + "text": "добавить пользователя linux", + "lang": "ru" + }, + { + "text": "создать нового пользователя", + "lang": "ru" + }, + { + "text": "как добавить юзера", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Create the user account, their home directory, and assign a login shell. Replace with the desired name and with the path to the shell (e.g., /bin/bash).", + "cmd": "sudo useradd -m -G -s ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "USERNAME", + "description": "The name of the new user", + "example": "john" + }, + { + "name": "SHELL_PATH", + "description": "Path to the login shell", + "example": "/bin/bash", + "discover_cmd": "cat /etc/shells" + }, + { + "name": "ADDITIONAL_GROUPS", + "description": "Comma-separated list of supplementary groups", + "example": "wheel,audio" + } + ] + }, + { + "explain": "Set the password for the new user.", + "cmd": "sudo passwd ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "USERNAME", + "description": "The name of the new user", + "example": "john" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Delete the user and their home directory.", + "cmd": "sudo userdel -r ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "USERNAME", + "description": "The name of the user to delete", + "example": "john" + } + ] + } + ], + "warnings": [ + "Ensure the shell specified in exists in /etc/shells, otherwise the user will not be able to log in." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Users_and_groups#User_management", + "title": "Users and groups", + "revision_id": 872887, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/linux-adjust-backlight-relative.json b/cards/linux/linux-adjust-backlight-relative.json new file mode 100644 index 0000000000000000000000000000000000000000..8b2bedffe1013c6a789896b0cffbd9a4fabda416 --- /dev/null +++ b/cards/linux/linux-adjust-backlight-relative.json @@ -0,0 +1,91 @@ +{ + "schema_version": 2, + "id": "linux-adjust-backlight-relative", + "platform": "linux", + "kind": "task", + "title": "Increase or decrease screen backlight by a percentage", + "summary": "Adjust your screen brightness up or down by a specific amount relative to the current level. Useful for fine-tuning without knowing the exact target percentage.", + "aliases": [ + { + "text": "increase screen brightness", + "lang": "en" + }, + { + "text": "decrease screen brightness", + "lang": "en" + }, + { + "text": "make screen brighter", + "lang": "en" + }, + { + "text": "make screen darker", + "lang": "en" + }, + { + "text": "adjust backlight by 20", + "lang": "en" + }, + { + "text": "увеличить яркость экрана", + "lang": "ru" + }, + { + "text": "уменьшить яркость экрана", + "lang": "ru" + }, + { + "text": "сделать экран ярче", + "lang": "ru" + }, + { + "text": "сделать экран темнее", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "light" + ] + }, + "steps": [ + { + "explain": "Use the -A flag to add a percentage to the current brightness, or -U to subtract it. Replace with the amount to change.", + "cmd": "light -A ", + "risk": "low", + "placeholders": [ + { + "name": "PERCENTAGE", + "description": "The amount to change brightness by (e.g., 10 or 20).", + "example": "20" + } + ], + "expect": "The screen brightness increases by the specified percentage.", + "alternatives": [ + { + "explain": "Use the -U flag to subtract a percentage from the current brightness.", + "cmd": "light -U ", + "placeholders": [ + { + "name": "PERCENTAGE", + "description": "The amount to change brightness by (e.g., 10 or 20).", + "example": "20" + } + ], + "expect": "The screen brightness decreases by the specified percentage." + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/light.md", + "title": "tldr-pages: light", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-adjust-screen-brightness.json b/cards/linux/linux-adjust-screen-brightness.json new file mode 100644 index 0000000000000000000000000000000000000000..32a9d08f441cc64a111b99378743864cdf34b740 --- /dev/null +++ b/cards/linux/linux-adjust-screen-brightness.json @@ -0,0 +1,101 @@ +{ + "schema_version": 2, + "id": "linux-adjust-screen-brightness", + "platform": "linux", + "kind": "task", + "title": "Adjust screen brightness", + "summary": "Use brightnessctl to change your screen's brightness level. You can set it to a specific percentage or increase/decrease it by a certain amount.", + "aliases": [ + { + "text": "adjust screen brightness", + "lang": "en" + }, + { + "text": "change brightness linux", + "lang": "en" + }, + { + "text": "brightnessctl set", + "lang": "en" + }, + { + "text": "screen too bright", + "lang": "en" + }, + { + "text": "screen too dark", + "lang": "en" + }, + { + "text": "изменить яркость экрана", + "lang": "ru" + }, + { + "text": "яркость экрана линукс", + "lang": "ru" + }, + { + "text": "brightnessctl", + "lang": "ru" + }, + { + "text": "экран слишком яркий", + "lang": "ru" + }, + { + "text": "экран слишком темный", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Set the screen brightness to a specific percentage (e.g., 50%).", + "cmd": "brightnessctl set %", + "risk": "low", + "placeholders": [ + { + "name": "PERCENTAGE", + "description": "The desired brightness level as a number between 0 and 100.", + "example": "50" + } + ], + "alternatives": [ + { + "explain": "Increase the current brightness by a specific percentage.", + "cmd": "brightnessctl set +%", + "placeholders": [ + { + "name": "PERCENTAGE", + "description": "The amount to increase brightness by.", + "example": "10" + } + ] + }, + { + "explain": "Decrease the current brightness by a specific percentage.", + "cmd": "brightnessctl set %-", + "placeholders": [ + { + "name": "PERCENTAGE", + "description": "The amount to decrease brightness by.", + "example": "10" + } + ] + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/brightnessctl.md", + "title": "tldr-pages: brightnessctl", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-alsamixer-select-card.json b/cards/linux/linux-alsamixer-select-card.json new file mode 100644 index 0000000000000000000000000000000000000000..0d00cd21ec61ccde31540d6635e180b5f77cb97c --- /dev/null +++ b/cards/linux/linux-alsamixer-select-card.json @@ -0,0 +1,69 @@ +{ + "schema_version": 2, + "id": "linux-alsamixer-select-card", + "platform": "linux", + "kind": "task", + "title": "Select a specific sound card in ALSA mixer", + "summary": "If you have multiple sound cards, use this command to choose which one to control in alsamixer.", + "aliases": [ + { + "text": "select sound card alsamixer", + "lang": "en" + }, + { + "text": "choose audio device linux", + "lang": "en" + }, + { + "text": "alsamixer multiple sound cards", + "lang": "en" + }, + { + "text": "switch sound card terminal", + "lang": "en" + }, + { + "text": "выбрать звуковую карту alsamixer", + "lang": "ru" + }, + { + "text": "переключить звуковую карту", + "lang": "ru" + }, + { + "text": "alsamixer несколько карт", + "lang": "ru" + }, + { + "text": "выбрать аудио устройство", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Launch alsamixer targeting a specific sound card by its number.", + "cmd": "alsamixer --card ", + "risk": "low", + "placeholders": [ + { + "name": "SOUNDCARD_NUMBER", + "description": "The index number of the sound card you want to control (e.g., 0, 1)." + } + ], + "expect": "The alsamixer interface opens showing controls for the specified sound card." + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/alsamixer.md", + "title": "tldr-pages: alsamixer", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-alsamixer-select-device.json b/cards/linux/linux-alsamixer-select-device.json new file mode 100644 index 0000000000000000000000000000000000000000..9cb0badf0eb54bc4e0b3be3e90ae7850c5dcee0b --- /dev/null +++ b/cards/linux/linux-alsamixer-select-device.json @@ -0,0 +1,61 @@ +{ + "schema_version": 2, + "id": "linux-alsamixer-select-device", + "platform": "linux", + "kind": "task", + "title": "Select a specific mixer device in ALSA", + "summary": "Control a specific mixer device (like a specific input or output stream) by name using alsamixer.", + "aliases": [ + { + "text": "select mixer device alsamixer", + "lang": "en" + }, + { + "text": "control specific audio stream linux", + "lang": "en" + }, + { + "text": "alsamixer device name", + "lang": "en" + }, + { + "text": "выбрать микшерное устройство", + "lang": "ru" + }, + { + "text": "alsamixer имя устройства", + "lang": "ru" + }, + { + "text": "настроить конкретный поток звука", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Launch alsamixer targeting a specific mixer device by its name.", + "cmd": "alsamixer --device ", + "risk": "low", + "placeholders": [ + { + "name": "DEVICE_NAME", + "description": "The name of the mixer device to control (e.g., 'default', 'hw:0,0')." + } + ], + "expect": "The alsamixer interface opens showing controls for the specified device." + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/alsamixer.md", + "title": "tldr-pages: alsamixer", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-amixer-adjust-volume.json b/cards/linux/linux-amixer-adjust-volume.json new file mode 100644 index 0000000000000000000000000000000000000000..021594c89acca22374db77f507de9ed28dc14210 --- /dev/null +++ b/cards/linux/linux-amixer-adjust-volume.json @@ -0,0 +1,91 @@ +{ + "schema_version": 2, + "id": "linux-amixer-adjust-volume", + "platform": "linux", + "kind": "task", + "title": "Adjust master volume using amixer", + "summary": "Use the amixer command to increase or decrease the master audio volume by a specific percentage. This is useful for quick volume adjustments from the terminal.", + "aliases": [ + { + "text": "adjust volume terminal", + "lang": "en" + }, + { + "text": "change volume command line", + "lang": "en" + }, + { + "text": "amixer volume", + "lang": "en" + }, + { + "text": "increase volume linux terminal", + "lang": "en" + }, + { + "text": "decrease volume linux terminal", + "lang": "en" + }, + { + "text": "изменить громкость в терминале", + "lang": "ru" + }, + { + "text": "увеличить громкость командой", + "lang": "ru" + }, + { + "text": "уменьшить громкость командной строкой", + "lang": "ru" + }, + { + "text": "amixer громкость", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "alsa-utils", + "pulseaudio" + ] + }, + "steps": [ + { + "explain": "Increase the master volume by a specified percentage (e.g., 10%).", + "cmd": "amixer -D pulse sset Master + ", + "risk": "low", + "placeholders": [ + { + "name": "PERCENTAGE", + "description": "The percentage to increase the volume by, e.g., 10", + "example": "10" + } + ], + "alternatives": [ + { + "explain": "Decrease the master volume by a specified percentage (e.g., 10%).", + "cmd": "amixer -D pulse sset Master -", + "risk": "low", + "placeholders": [ + { + "name": "PERCENTAGE", + "description": "The percentage to decrease the volume by, e.g., 10", + "example": "10" + } + ] + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/amixer.md", + "title": "tldr-pages: amixer", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-cache-check-package-status.json b/cards/linux/linux-apt-cache-check-package-status.json new file mode 100644 index 0000000000000000000000000000000000000000..a41d98df435c21a757c95541108d640add7fa8c7 --- /dev/null +++ b/cards/linux/linux-apt-cache-check-package-status.json @@ -0,0 +1,68 @@ +{ + "schema_version": 2, + "id": "linux-apt-cache-check-package-status", + "platform": "linux", + "kind": "task", + "title": "Check if a package is installed and up to date", + "summary": "See whether a package is currently installed on your system and if updates are available.", + "aliases": [ + { + "text": "is package installed", + "lang": "en" + }, + { + "text": "check package version", + "lang": "en" + }, + { + "text": "apt-cache policy", + "lang": "en" + }, + { + "text": "package update status", + "lang": "en" + }, + { + "text": "установлен ли пакет", + "lang": "ru" + }, + { + "text": "статус пакета apt", + "lang": "ru" + }, + { + "text": "проверить версию пакета", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + } + ] + }, + "steps": [ + { + "explain": "Show the installation status and available versions for the package.", + "cmd": "apt-cache policy ", + "risk": "low", + "placeholders": [ + { + "name": "PACKAGE", + "description": "Name of the package", + "example": "firefox" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt-cache.md", + "title": "tldr-pages: apt-cache", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-cache-show-dependencies.json b/cards/linux/linux-apt-cache-show-dependencies.json new file mode 100644 index 0000000000000000000000000000000000000000..70b450af3216f6612c7dec60bd81da14def35b5e --- /dev/null +++ b/cards/linux/linux-apt-cache-show-dependencies.json @@ -0,0 +1,68 @@ +{ + "schema_version": 2, + "id": "linux-apt-cache-show-dependencies", + "platform": "linux", + "kind": "task", + "title": "Show dependencies for a package", + "summary": "List other packages that this package requires to function.", + "aliases": [ + { + "text": "show dependencies", + "lang": "en" + }, + { + "text": "what does this package need", + "lang": "en" + }, + { + "text": "apt-cache depends", + "lang": "en" + }, + { + "text": "package requirements", + "lang": "en" + }, + { + "text": "зависимости пакета", + "lang": "ru" + }, + { + "text": "что нужно для пакета", + "lang": "ru" + }, + { + "text": "зависимости apt", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + } + ] + }, + "steps": [ + { + "explain": "List the packages that the specified package depends on.", + "cmd": "apt-cache depends ", + "risk": "low", + "placeholders": [ + { + "name": "PACKAGE", + "description": "Name of the package", + "example": "gimp" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt-cache.md", + "title": "tldr-pages: apt-cache", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-cache-show-reverse-dependencies.json b/cards/linux/linux-apt-cache-show-reverse-dependencies.json new file mode 100644 index 0000000000000000000000000000000000000000..0a5149c60077eb3f9000c161ada62a39f966a336 --- /dev/null +++ b/cards/linux/linux-apt-cache-show-reverse-dependencies.json @@ -0,0 +1,68 @@ +{ + "schema_version": 2, + "id": "linux-apt-cache-show-reverse-dependencies", + "platform": "linux", + "kind": "task", + "title": "Show packages that depend on a package", + "summary": "Find out which other installed or available packages rely on this specific package.", + "aliases": [ + { + "text": "reverse dependencies", + "lang": "en" + }, + { + "text": "what uses this package", + "lang": "en" + }, + { + "text": "apt-cache rdepends", + "lang": "en" + }, + { + "text": "packages depending on", + "lang": "en" + }, + { + "text": "обратные зависимости", + "lang": "ru" + }, + { + "text": "кто использует этот пакет", + "lang": "ru" + }, + { + "text": "зависимые пакеты", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + } + ] + }, + "steps": [ + { + "explain": "List packages that require the specified package as a dependency.", + "cmd": "apt-cache rdepends ", + "risk": "low", + "placeholders": [ + { + "name": "PACKAGE", + "description": "Name of the package", + "example": "libc6" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt-cache.md", + "title": "tldr-pages: apt-cache", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-file-find-file-in-package.json b/cards/linux/linux-apt-file-find-file-in-package.json new file mode 100644 index 0000000000000000000000000000000000000000..041588489fe56430c06c9286d21c4e6975a267c3 --- /dev/null +++ b/cards/linux/linux-apt-file-find-file-in-package.json @@ -0,0 +1,90 @@ +{ + "schema_version": 2, + "id": "linux-apt-file-find-file-in-package", + "platform": "linux", + "kind": "task", + "title": "Find which package contains a specific file", + "summary": "Use apt-file to search for files inside apt packages, even if they are not installed yet. This helps you identify which package provides a missing command or library.", + "aliases": [ + { + "text": "find package for file", + "lang": "en" + }, + { + "text": "which package has this file", + "lang": "en" + }, + { + "text": "apt-file search", + "lang": "en" + }, + { + "text": "find file in apt packages", + "lang": "en" + }, + { + "text": "find package for file", + "lang": "ru" + }, + { + "text": "which package has this file", + "lang": "ru" + }, + { + "text": "apt-file search", + "lang": "ru" + }, + { + "text": "find file in apt packages", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + } + ] + }, + "prerequisites": [ + "apt-file is installed (sudo apt install apt-file)" + ], + "steps": [ + { + "explain": "Update the apt-file database to ensure it knows about the latest packages. This requires administrator rights.", + "cmd": "sudo apt update", + "risk": "medium", + "needs_root": true + }, + { + "explain": "Search for the package that contains the specified file or path.", + "cmd": "apt-file search ", + "risk": "low", + "placeholders": [ + { + "name": "FILE", + "description": "The filename or path you are looking for", + "example": "libssl.so.1.1" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "No rollback needed for searching, but you can remove the apt-file package if you no longer need it.", + "risk": "medium" + } + ], + "warnings": [ + "The first search may take a few seconds as the database is loaded." + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt-file.md", + "title": "tldr-pages: apt-file", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-file-list-package-contents.json b/cards/linux/linux-apt-file-list-package-contents.json new file mode 100644 index 0000000000000000000000000000000000000000..4053ba63c2c53ebd1b25c70f8f6c498abf873c14 --- /dev/null +++ b/cards/linux/linux-apt-file-list-package-contents.json @@ -0,0 +1,75 @@ +{ + "schema_version": 2, + "id": "linux-apt-file-list-package-contents", + "platform": "linux", + "kind": "task", + "title": "List files in an apt package", + "summary": "View the list of files that a specific apt package will install. This is useful to see what a package does before installing it.", + "aliases": [ + { + "text": "list files in package", + "lang": "en" + }, + { + "text": "what files does package install", + "lang": "en" + }, + { + "text": "apt-file list", + "lang": "en" + }, + { + "text": "package contents", + "lang": "en" + }, + { + "text": "list files in package", + "lang": "ru" + }, + { + "text": "what files does package install", + "lang": "ru" + }, + { + "text": "apt-file list", + "lang": "ru" + }, + { + "text": "package contents", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + } + ] + }, + "prerequisites": [ + "apt-file is installed (sudo apt install apt-file)" + ], + "steps": [ + { + "explain": "List all files contained in the specified package.", + "cmd": "apt-file list ", + "risk": "low", + "placeholders": [ + { + "name": "PACKAGE", + "description": "The name of the package to inspect", + "example": "curl" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt-file.md", + "title": "tldr-pages: apt-file", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-get-autoclean.json b/cards/linux/linux-apt-get-autoclean.json new file mode 100644 index 0000000000000000000000000000000000000000..68c491c43596cbe7feb544aa075fb547b233ef3d --- /dev/null +++ b/cards/linux/linux-apt-get-autoclean.json @@ -0,0 +1,62 @@ +{ + "schema_version": 2, + "id": "linux-apt-get-autoclean", + "platform": "linux", + "kind": "task", + "title": "Clean up old package files", + "summary": "Remove downloaded package files (.deb) that are no longer available in the repositories. This frees up disk space.", + "aliases": [ + { + "text": "clean apt cache", + "lang": "en" + }, + { + "text": "remove old debs", + "lang": "en" + }, + { + "text": "apt-get autoclean", + "lang": "en" + }, + { + "text": "free disk space", + "lang": "en" + }, + { + "text": "очистить кэш apt", + "lang": "ru" + }, + { + "text": "удалить старые пакеты", + "lang": "ru" + }, + { + "text": "apt-get autoclean", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + } + ] + }, + "steps": [ + { + "explain": "Remove package files from interrupted downloads that can no longer be downloaded.", + "cmd": "sudo apt-get autoclean", + "needs_root": true, + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt-get.md", + "title": "tldr-pages: apt-get", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-get-autoremove.json b/cards/linux/linux-apt-get-autoremove.json new file mode 100644 index 0000000000000000000000000000000000000000..53aa6ff44dd843ec74eb8be17e2906015d12d2cb --- /dev/null +++ b/cards/linux/linux-apt-get-autoremove.json @@ -0,0 +1,81 @@ +{ + "schema_version": 2, + "id": "linux-apt-get-autoremove", + "platform": "linux", + "kind": "task", + "title": "Remove unused packages", + "summary": "Remove packages that were automatically installed as dependencies and are no longer needed. This helps clean up the system.", + "aliases": [ + { + "text": "remove unused packages", + "lang": "en" + }, + { + "text": "autoremove", + "lang": "en" + }, + { + "text": "apt-get autoremove", + "lang": "en" + }, + { + "text": "clean dependencies", + "lang": "en" + }, + { + "text": "удалить неиспользуемые пакеты", + "lang": "ru" + }, + { + "text": "autoremove", + "lang": "ru" + }, + { + "text": "apt-get autoremove", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + } + ] + }, + "steps": [ + { + "explain": "Remove all packages that are no longer needed.", + "cmd": "sudo apt-get autoremove", + "needs_root": true, + "risk": "medium" + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Reinstall the removed packages if they were needed.", + "cmd": "sudo apt-get install ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "PACKAGE", + "description": "Name of the package to reinstall", + "example": "libfoo" + } + ] + } + ], + "warnings": [ + "Requires administrator privileges (sudo).", + "Review the list of packages to be removed before confirming." + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt-get.md", + "title": "tldr-pages: apt-get", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-get-dist-upgrade.json b/cards/linux/linux-apt-get-dist-upgrade.json new file mode 100644 index 0000000000000000000000000000000000000000..d8d59993934d03dd9e1d38af9ae8907efdb9b66d --- /dev/null +++ b/cards/linux/linux-apt-get-dist-upgrade.json @@ -0,0 +1,92 @@ +{ + "schema_version": 2, + "id": "linux-apt-get-dist-upgrade", + "platform": "linux", + "kind": "task", + "title": "Perform a full system upgrade", + "summary": "Upgrade installed packages, remove obsolete ones, and install new dependencies. This is more aggressive than a simple upgrade.", + "aliases": [ + { + "text": "dist-upgrade", + "lang": "en" + }, + { + "text": "full system upgrade", + "lang": "en" + }, + { + "text": "apt-get dist-upgrade", + "lang": "en" + }, + { + "text": "upgrade with dependencies", + "lang": "en" + }, + { + "text": "полное обновление системы", + "lang": "ru" + }, + { + "text": "aptitude full-upgrade", + "lang": "en" + }, + { + "text": "full system upgrade aptitude", + "lang": "en" + }, + { + "text": "dist upgrade aptitude", + "lang": "en" + }, + { + "text": "полное обновление aptitude", + "lang": "ru" + }, + { + "text": "обновление с удалением пакетов aptitude", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + } + ] + }, + "steps": [ + { + "explain": "Upgrade installed packages, remove obsolete packages, and install additional packages to meet new dependencies.", + "cmd": "sudo apt-get dist-upgrade", + "needs_root": true, + "risk": "medium", + "alternatives": [ + { + "explain": "Upgrades installed packages, removes obsolete packages, and installs additional packages to meet new dependencies.", + "cmd": "sudo aptitude full-upgrade", + "needs_root": true, + "risk": "medium" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Downgrading packages is complex and not directly supported by apt-get. It is recommended to test upgrades in a safe environment.", + "risk": "high" + } + ], + "warnings": [ + "Requires administrator privileges (sudo).", + "This command may remove packages. Review the changes carefully." + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt-get.md", + "title": "tldr-pages: apt-get", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-get-purge-package.json b/cards/linux/linux-apt-get-purge-package.json new file mode 100644 index 0000000000000000000000000000000000000000..91d847e37777b6ee7fb0123831d37f61e8f710e4 --- /dev/null +++ b/cards/linux/linux-apt-get-purge-package.json @@ -0,0 +1,150 @@ +{ + "schema_version": 2, + "id": "linux-apt-get-purge-package", + "platform": "linux", + "kind": "task", + "title": "Remove a package and its configuration", + "summary": "Uninstall a software package and delete its configuration files. Use this if you want a clean removal.", + "aliases": [ + { + "text": "purge package", + "lang": "en" + }, + { + "text": "remove config files", + "lang": "en" + }, + { + "text": "apt-get purge", + "lang": "en" + }, + { + "text": "clean uninstall", + "lang": "en" + }, + { + "text": "удалить пакет с конфигами", + "lang": "ru" + }, + { + "text": "полное удаление пакета", + "lang": "ru" + }, + { + "text": "remove package and config", + "lang": "en" + }, + { + "text": "purge package dpkg", + "lang": "en" + }, + { + "text": "dpkg purge", + "lang": "en" + }, + { + "text": "удалить пакет с настройками", + "lang": "ru" + }, + { + "text": "purge package nala", + "lang": "en" + }, + { + "text": "remove config files nala", + "lang": "en" + }, + { + "text": "nala purge", + "lang": "en" + }, + { + "text": "полностью удалить пакет nala", + "lang": "ru" + }, + { + "text": "очистить конфиг nala", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + }, + { + "family": "mint" + } + ] + }, + "steps": [ + { + "explain": "Remove the specified package and its configuration files. Replace with the name of the software.", + "cmd": "sudo apt-get purge ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "PACKAGE", + "description": "Name of the package to purge", + "example": "firefox" + } + ], + "alternatives": [ + { + "explain": "Remove the package and delete all its configuration files. You need administrator rights.", + "cmd": "sudo dpkg --purge ", + "needs_root": true, + "placeholders": [ + { + "name": "PACKAGE", + "description": "Name of the package to purge", + "example": "nginx" + } + ], + "risk": "medium" + }, + { + "explain": "Remove the specified package and its configuration files.", + "cmd": "nala purge ", + "placeholders": [ + { + "name": "PACKAGE", + "description": "Name of the package to purge", + "example": "apache2" + } + ], + "risk": "medium" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Reinstall the package. Note that configuration files are not restored automatically.", + "cmd": "sudo apt-get install ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "PACKAGE", + "description": "Name of the package to reinstall", + "example": "firefox" + } + ] + } + ], + "warnings": [ + "Requires administrator privileges (sudo).", + "Configuration files will be deleted and cannot be recovered easily." + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt-get.md", + "title": "tldr-pages: apt-get", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-install-package.json b/cards/linux/linux-apt-install-package.json new file mode 100644 index 0000000000000000000000000000000000000000..0b80dd1dd5c42a1424b20081584c67a56ade183c --- /dev/null +++ b/cards/linux/linux-apt-install-package.json @@ -0,0 +1,110 @@ +{ + "schema_version": 2, + "id": "linux-apt-install-package", + "platform": "linux", + "kind": "task", + "title": "Install or update a package", + "summary": "Install a new software package or update an existing one to the latest version. Requires administrator privileges.", + "aliases": [ + { + "text": "install package", + "lang": "en" + }, + { + "text": "apt install", + "lang": "en" + }, + { + "text": "add software", + "lang": "en" + }, + { + "text": "установить пакет", + "lang": "ru" + }, + { + "text": "установить программу", + "lang": "ru" + }, + { + "text": "apt-get install", + "lang": "en" + }, + { + "text": "install software", + "lang": "en" + }, + { + "text": "add program", + "lang": "en" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + }, + { + "family": "mint" + } + ] + }, + "steps": [ + { + "explain": "Installs the specified package or updates it if already installed.", + "cmd": "sudo apt install ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "PACKAGE", + "description": "The name of the package to install.", + "example": "vim" + } + ], + "alternatives": [ + { + "explain": "Install the specified package. Replace with the name of the software you want.", + "cmd": "sudo apt-get install ", + "needs_root": true, + "placeholders": [ + { + "name": "PACKAGE", + "description": "Name of the package to install", + "example": "firefox" + } + ], + "risk": "medium" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "To remove the package you just installed, use the remove command.", + "cmd": "sudo apt remove ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "PACKAGE", + "description": "The name of the package to remove.", + "example": "vim" + } + ] + } + ], + "warnings": [ + "This command requires administrator privileges (sudo).", + "Installing packages can change system configuration." + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt.md", + "title": "tldr-pages: apt", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-list-installed-packages.json b/cards/linux/linux-apt-list-installed-packages.json new file mode 100644 index 0000000000000000000000000000000000000000..5402505eb723b563651fd074bc65c4cc17b020ad --- /dev/null +++ b/cards/linux/linux-apt-list-installed-packages.json @@ -0,0 +1,90 @@ +{ + "schema_version": 2, + "id": "linux-apt-list-installed-packages", + "platform": "linux", + "kind": "task", + "title": "List all installed packages", + "summary": "Show a list of all software packages currently installed on your system.", + "aliases": [ + { + "text": "list installed packages", + "lang": "en" + }, + { + "text": "show installed software", + "lang": "en" + }, + { + "text": "apt list installed", + "lang": "en" + }, + { + "text": "список установленных пакетов", + "lang": "ru" + }, + { + "text": "какие программы установлены", + "lang": "ru" + }, + { + "text": "list installed packages dpkg", + "lang": "en" + }, + { + "text": "dpkg list", + "lang": "en" + }, + { + "text": "check installed packages", + "lang": "en" + }, + { + "text": "dpkg список", + "lang": "ru" + }, + { + "text": "какие пакеты установлены", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + }, + { + "family": "mint" + } + ] + }, + "steps": [ + { + "explain": "Lists all packages that are currently installed on the system.", + "cmd": "apt list --installed", + "risk": "low", + "alternatives": [ + { + "explain": "List all installed packages whose names match the given pattern. Use a wildcard like '*' to match multiple packages.", + "cmd": "dpkg --list ", + "placeholders": [ + { + "name": "PATTERN", + "description": "Package name pattern to search for, use '*' for wildcards", + "example": "python*" + } + ], + "risk": "low" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt.md", + "title": "tldr-pages: apt", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-list-package-by-name.json b/cards/linux/linux-apt-list-package-by-name.json new file mode 100644 index 0000000000000000000000000000000000000000..3cb0a6f796d2be2e53ecd28518897330378d4193 --- /dev/null +++ b/cards/linux/linux-apt-list-package-by-name.json @@ -0,0 +1,67 @@ +{ + "schema_version": 2, + "id": "linux-apt-list-package-by-name", + "platform": "linux", + "kind": "task", + "title": "List packages by name pattern", + "summary": "Find installed or available packages whose names match a specific pattern, including wildcards. Useful when you know the exact name or part of the name.", + "aliases": [ + { + "text": "list packages by name", + "lang": "en" + }, + { + "text": "apt list package", + "lang": "en" + }, + { + "text": "find package by name", + "lang": "en" + }, + { + "text": "список пакетов по имени", + "lang": "ru" + }, + { + "text": "apt list", + "lang": "ru" + }, + { + "text": "найти пакет по имени", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + }, + { + "family": "mint" + } + ] + }, + "steps": [ + { + "explain": "Lists packages whose names match the given pattern. Supports wildcards like *.", + "cmd": "apt list ", + "risk": "low", + "placeholders": [ + { + "name": "PACKAGE", + "description": "The package name or pattern (e.g., 'lib*') to search for.", + "example": "libssl*" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt.md", + "title": "tldr-pages: apt", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-mark-hold-package.json b/cards/linux/linux-apt-mark-hold-package.json new file mode 100644 index 0000000000000000000000000000000000000000..90c2ac5261d2f9e7874400d7a1cde9e3992c5ff4 --- /dev/null +++ b/cards/linux/linux-apt-mark-hold-package.json @@ -0,0 +1,148 @@ +{ + "schema_version": 2, + "id": "linux-apt-mark-hold-package", + "platform": "linux", + "kind": "task", + "title": "Prevent a package from updating", + "summary": "Use apt-mark to hold a package at its current version. This stops the package manager from upgrading it, which is useful if a new version breaks your software.", + "aliases": [ + { + "text": "stop package update", + "lang": "en" + }, + { + "text": "hold package version", + "lang": "en" + }, + { + "text": "prevent apt upgrade specific package", + "lang": "en" + }, + { + "text": "lock package version", + "lang": "en" + }, + { + "text": "apt-mark hold", + "lang": "en" + }, + { + "text": "остановить обновление пакета", + "lang": "ru" + }, + { + "text": "зафиксировать версию пакета", + "lang": "ru" + }, + { + "text": "apt-mark hold пакет", + "lang": "ru" + }, + { + "text": "не обновлять пакет apt", + "lang": "ru" + }, + { + "text": "aptitude hold", + "lang": "en" + }, + { + "text": "prevent package upgrade aptitude", + "lang": "en" + }, + { + "text": "freeze package version aptitude", + "lang": "en" + }, + { + "text": "зафиксировать пакет aptitude", + "lang": "ru" + }, + { + "text": "не обновлять пакет aptitude", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + }, + { + "family": "mint" + } + ] + }, + "prerequisites": [ + "Know the exact name of the package you want to hold." + ], + "steps": [ + { + "explain": "Mark the package as 'held' so apt will not upgrade it.", + "cmd": "sudo apt-mark hold ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "PACKAGE", + "description": "The name of the package to hold.", + "example": "firefox", + "discover_cmd": "apt list --installed" + } + ], + "expect": "The command outputs ' on hold.'", + "alternatives": [ + { + "explain": "Puts an installed package on hold to prevent it from being automatically upgraded.", + "cmd": "sudo aptitude hold '?installed()'", + "needs_root": true, + "placeholders": [ + { + "name": "PACKAGE", + "description": "The name of the installed package to hold", + "example": "vim" + } + ], + "risk": "low" + } + ] + } + ], + "verify": [ + { + "cmd": "apt-mark showhold", + "expect": "The package name appears in the list." + } + ], + "rollback": [ + { + "explain": "Remove the hold to allow the package to update again.", + "cmd": "sudo apt-mark unhold ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "PACKAGE", + "description": "The name of the package to unhold.", + "example": "firefox" + } + ] + } + ], + "risk": "medium", + "warnings": [ + "Holding a package prevents security updates for that specific package. Only hold packages if you have a specific reason." + ], + "see_also": [ + "linux-apt-upgrade-all-packages", + "linux-apt-list-installed-packages" + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt-mark.md", + "title": "tldr-pages: apt-mark", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-mark-show-held.json b/cards/linux/linux-apt-mark-show-held.json new file mode 100644 index 0000000000000000000000000000000000000000..14f4e9446dfabdf695088f64f6bd2e103b1e8979 --- /dev/null +++ b/cards/linux/linux-apt-mark-show-held.json @@ -0,0 +1,72 @@ +{ + "schema_version": 2, + "id": "linux-apt-mark-show-held", + "platform": "linux", + "kind": "task", + "title": "Show which packages are held", + "summary": "List all packages that are currently marked as 'held', meaning they are prevented from being updated by apt.", + "aliases": [ + { + "text": "show held packages", + "lang": "en" + }, + { + "text": "list blocked updates", + "lang": "en" + }, + { + "text": "apt-mark showhold", + "lang": "en" + }, + { + "text": "which packages are held", + "lang": "en" + }, + { + "text": "показать зафиксированные пакеты", + "lang": "ru" + }, + { + "text": "список held пакетов", + "lang": "ru" + }, + { + "text": "apt-mark showhold", + "lang": "ru" + }, + { + "text": "какие пакеты не обновляются", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + }, + { + "family": "mint" + } + ] + }, + "steps": [ + { + "explain": "Display a list of all packages currently on hold.", + "cmd": "apt-mark showhold", + "risk": "low", + "expect": "A list of package names, or nothing if no packages are held." + } + ], + "risk": "low", + "see_also": [ + "linux-apt-mark-hold-package" + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt-mark.md", + "title": "tldr-pages: apt-mark", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-mark-show-manual.json b/cards/linux/linux-apt-mark-show-manual.json new file mode 100644 index 0000000000000000000000000000000000000000..355f7b0ca4917f6fcd1af4c2b04b274e59a45193 --- /dev/null +++ b/cards/linux/linux-apt-mark-show-manual.json @@ -0,0 +1,72 @@ +{ + "schema_version": 2, + "id": "linux-apt-mark-show-manual", + "platform": "linux", + "kind": "task", + "title": "Show manually installed packages", + "summary": "List packages that were installed explicitly by the user, as opposed to those installed automatically as dependencies.", + "aliases": [ + { + "text": "show manual packages", + "lang": "en" + }, + { + "text": "list manually installed packages", + "lang": "en" + }, + { + "text": "apt-mark showmanual", + "lang": "en" + }, + { + "text": "what did I install", + "lang": "en" + }, + { + "text": "показать вручную установленные пакеты", + "lang": "ru" + }, + { + "text": "apt-mark showmanual", + "lang": "ru" + }, + { + "text": "список моих пакетов", + "lang": "ru" + }, + { + "text": "какие пакеты я установил сам", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + }, + { + "family": "mint" + } + ] + }, + "steps": [ + { + "explain": "Display a list of packages marked as manually installed.", + "cmd": "apt-mark showmanual", + "risk": "low", + "expect": "A long list of package names." + } + ], + "risk": "low", + "see_also": [ + "linux-apt-list-installed-packages" + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt-mark.md", + "title": "tldr-pages: apt-mark", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-remove-package.json b/cards/linux/linux-apt-remove-package.json new file mode 100644 index 0000000000000000000000000000000000000000..a93017ba5e8cc93542d9654050ee1177119a30b9 --- /dev/null +++ b/cards/linux/linux-apt-remove-package.json @@ -0,0 +1,176 @@ +{ + "schema_version": 2, + "id": "linux-apt-remove-package", + "platform": "linux", + "kind": "task", + "title": "Remove a package", + "summary": "Uninstall a software package from your system. Use 'purge' instead of 'remove' if you also want to delete its configuration files.", + "aliases": [ + { + "text": "remove package", + "lang": "en" + }, + { + "text": "uninstall software", + "lang": "en" + }, + { + "text": "apt remove", + "lang": "en" + }, + { + "text": "удалить пакет", + "lang": "ru" + }, + { + "text": "удалить программу", + "lang": "ru" + }, + { + "text": "delete program", + "lang": "en" + }, + { + "text": "apt-get remove", + "lang": "en" + }, + { + "text": "remove package dpkg", + "lang": "en" + }, + { + "text": "dpkg remove", + "lang": "en" + }, + { + "text": "uninstall package dpkg", + "lang": "en" + }, + { + "text": "удалить пакет dpkg", + "lang": "ru" + }, + { + "text": "dpkg удалить", + "lang": "ru" + }, + { + "text": "как удалить пакет", + "lang": "ru" + }, + { + "text": "remove package nala", + "lang": "en" + }, + { + "text": "uninstall with nala", + "lang": "en" + }, + { + "text": "nala remove", + "lang": "en" + }, + { + "text": "удалить пакет nala", + "lang": "ru" + }, + { + "text": "деинсталлировать nala", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + }, + { + "family": "mint" + } + ] + }, + "steps": [ + { + "explain": "Removes the specified package but keeps its configuration files.", + "cmd": "sudo apt remove ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "PACKAGE", + "description": "The name of the package to remove.", + "example": "vim" + } + ], + "alternatives": [ + { + "explain": "Remove the specified package. Replace with the name of the software.", + "cmd": "sudo apt-get remove ", + "needs_root": true, + "placeholders": [ + { + "name": "PACKAGE", + "description": "Name of the package to remove", + "example": "firefox" + } + ], + "risk": "medium" + }, + { + "explain": "Remove the specified package. Configuration files are kept. You need administrator rights.", + "cmd": "sudo dpkg --remove ", + "needs_root": true, + "placeholders": [ + { + "name": "PACKAGE", + "description": "Name of the package to remove", + "example": "vim" + } + ], + "risk": "medium" + }, + { + "explain": "Remove the specified package from the system.", + "cmd": "sudo nala remove ", + "needs_root": true, + "placeholders": [ + { + "name": "PACKAGE", + "description": "Name of the package to remove", + "example": "firefox" + } + ], + "risk": "medium" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "To reinstall the package, use the install command.", + "cmd": "sudo apt install ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "PACKAGE", + "description": "The name of the package to reinstall.", + "example": "vim" + } + ] + } + ], + "warnings": [ + "This command requires administrator privileges (sudo).", + "Removing packages can break other software that depends on them." + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt.md", + "title": "tldr-pages: apt", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-search-package.json b/cards/linux/linux-apt-search-package.json new file mode 100644 index 0000000000000000000000000000000000000000..1a68504c518999916721901b6357fee4eeb7b627 --- /dev/null +++ b/cards/linux/linux-apt-search-package.json @@ -0,0 +1,165 @@ +{ + "schema_version": 2, + "id": "linux-apt-search-package", + "platform": "linux", + "kind": "task", + "title": "Search for a package by name or description", + "summary": "Find software packages that match a keyword in their name or description. Use this when you know what you want to do but not the exact package name.", + "aliases": [ + { + "text": "search for package", + "lang": "en" + }, + { + "text": "find software apt", + "lang": "en" + }, + { + "text": "apt search", + "lang": "en" + }, + { + "text": "найти пакет", + "lang": "ru" + }, + { + "text": "поиск пакета apt", + "lang": "ru" + }, + { + "text": "find package name", + "lang": "en" + }, + { + "text": "как найти имя пакета", + "lang": "ru" + }, + { + "text": "search apt package", + "lang": "en" + }, + { + "text": "what is the package name for", + "lang": "en" + }, + { + "text": "find software in apt", + "lang": "en" + }, + { + "text": "как узнать название пакета", + "lang": "ru" + }, + { + "text": "aptitude search", + "lang": "en" + }, + { + "text": "find package aptitude", + "lang": "en" + }, + { + "text": "search software aptitude", + "lang": "en" + }, + { + "text": "найти пакет aptitude", + "lang": "ru" + }, + { + "text": "поиск пакета aptitude", + "lang": "ru" + }, + { + "text": "search package nala", + "lang": "en" + }, + { + "text": "find package nala", + "lang": "en" + }, + { + "text": "nala search", + "lang": "en" + }, + { + "text": "найти пакет nala", + "lang": "ru" + }, + { + "text": "поиск пакетов nala", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + }, + { + "family": "mint" + } + ] + }, + "steps": [ + { + "explain": "Searches the package database for packages matching the given term in name or description.", + "cmd": "apt search ", + "risk": "low", + "placeholders": [ + { + "name": "PACKAGE", + "description": "The keyword or package name to search for.", + "example": "firefox" + } + ], + "alternatives": [ + { + "explain": "Search the package database for keywords related to the software you need.", + "cmd": "apt-cache search ", + "placeholders": [ + { + "name": "QUERY", + "description": "Keywords to search for", + "example": "image editor" + } + ], + "risk": "low" + }, + { + "explain": "Searches for packages matching the given term.", + "cmd": "aptitude search ", + "placeholders": [ + { + "name": "PACKAGE", + "description": "The name or keyword to search for", + "example": "vim" + } + ], + "risk": "low" + }, + { + "explain": "Search for packages matching the given pattern. By default, it uses regex.", + "cmd": "nala search \"\"", + "placeholders": [ + { + "name": "PATTERN", + "description": "Search term, regex, or glob pattern", + "example": "firefox" + } + ], + "risk": "low" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt.md", + "title": "tldr-pages: apt", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-show-package-info.json b/cards/linux/linux-apt-show-package-info.json new file mode 100644 index 0000000000000000000000000000000000000000..013043d3f6e4f676a43d823c0abc02e05eedcf65 --- /dev/null +++ b/cards/linux/linux-apt-show-package-info.json @@ -0,0 +1,133 @@ +{ + "schema_version": 2, + "id": "linux-apt-show-package-info", + "platform": "linux", + "kind": "task", + "title": "Show detailed information about a package", + "summary": "View details such as version, description, dependencies, and size for a specific package before installing it.", + "aliases": [ + { + "text": "show package info", + "lang": "en" + }, + { + "text": "apt show", + "lang": "en" + }, + { + "text": "details about package", + "lang": "en" + }, + { + "text": "информация о пакете", + "lang": "ru" + }, + { + "text": "детали пакета", + "lang": "ru" + }, + { + "text": "apt-cache show", + "lang": "en" + }, + { + "text": "что делает пакет", + "lang": "ru" + }, + { + "text": "package details", + "lang": "en" + }, + { + "text": "what does this package do", + "lang": "en" + }, + { + "text": "описание пакета apt", + "lang": "ru" + }, + { + "text": "package status", + "lang": "en" + }, + { + "text": "dpkg status package", + "lang": "en" + }, + { + "text": "details about installed package", + "lang": "en" + }, + { + "text": "статус пакета", + "lang": "ru" + }, + { + "text": "dpkg info пакет", + "lang": "ru" + }, + { + "text": "версия пакета", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + }, + { + "family": "mint" + } + ] + }, + "steps": [ + { + "explain": "Displays detailed metadata about the specified package.", + "cmd": "apt show ", + "risk": "low", + "placeholders": [ + { + "name": "PACKAGE", + "description": "The exact name of the package to inspect.", + "example": "curl" + } + ], + "alternatives": [ + { + "explain": "Display metadata and description for the specified package.", + "cmd": "apt-cache show ", + "placeholders": [ + { + "name": "PACKAGE", + "description": "Name of the package", + "example": "vim" + } + ], + "risk": "low" + }, + { + "explain": "Use dpkg-query with the status flag and the package name to show its details.", + "cmd": "dpkg-query -s ", + "placeholders": [ + { + "name": "PACKAGE", + "description": "The name of the installed package.", + "example": "libc6" + } + ], + "risk": "low" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt.md", + "title": "tldr-pages: apt", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-update-package-list.json b/cards/linux/linux-apt-update-package-list.json new file mode 100644 index 0000000000000000000000000000000000000000..484366c97d113cb90f8349c0ea79a28e47554766 --- /dev/null +++ b/cards/linux/linux-apt-update-package-list.json @@ -0,0 +1,112 @@ +{ + "schema_version": 2, + "id": "linux-apt-update-package-list", + "platform": "linux", + "kind": "task", + "title": "Update the list of available packages", + "summary": "Refresh the local database of available software so you can install new programs or see updates. This is usually the first step before installing or upgrading anything.", + "aliases": [ + { + "text": "update package list", + "lang": "en" + }, + { + "text": "refresh apt cache", + "lang": "en" + }, + { + "text": "apt update", + "lang": "en" + }, + { + "text": "обновить список пакетов", + "lang": "ru" + }, + { + "text": "обновить кэш apt", + "lang": "ru" + }, + { + "text": "apt-get update", + "lang": "en" + }, + { + "text": "check for new packages", + "lang": "en" + }, + { + "text": "проверить новые пакеты", + "lang": "ru" + }, + { + "text": "aptitude update", + "lang": "en" + }, + { + "text": "refresh package list aptitude", + "lang": "en" + }, + { + "text": "update aptitude cache", + "lang": "en" + }, + { + "text": "обновить список пакетов aptitude", + "lang": "ru" + }, + { + "text": "синхронизировать пакеты aptitude", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + }, + { + "family": "mint" + } + ] + }, + "steps": [ + { + "explain": "Downloads the latest metadata about available packages from the configured repositories.", + "cmd": "sudo apt update", + "needs_root": true, + "risk": "medium", + "alternatives": [ + { + "explain": "Download the latest package lists from the configured repositories.", + "cmd": "sudo apt-get update", + "needs_root": true, + "risk": "medium" + }, + { + "explain": "Synchronizes the list of packages and versions available from the repositories.", + "cmd": "sudo aptitude update", + "needs_root": true, + "risk": "low" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "There is no direct undo for updating the package list, but it is safe and does not change installed software.", + "risk": "low" + } + ], + "warnings": [ + "This command requires administrator privileges (sudo)." + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt.md", + "title": "tldr-pages: apt", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-apt-upgrade-all-packages.json b/cards/linux/linux-apt-upgrade-all-packages.json new file mode 100644 index 0000000000000000000000000000000000000000..5598a382ad8f853528479a27eae2f647069a9704 --- /dev/null +++ b/cards/linux/linux-apt-upgrade-all-packages.json @@ -0,0 +1,109 @@ +{ + "schema_version": 2, + "id": "linux-apt-upgrade-all-packages", + "platform": "linux", + "kind": "task", + "title": "Upgrade all installed packages", + "summary": "Update all currently installed software to their latest available versions. Run 'apt update' first to ensure you have the latest package list.", + "aliases": [ + { + "text": "upgrade all packages", + "lang": "en" + }, + { + "text": "update system", + "lang": "en" + }, + { + "text": "apt upgrade", + "lang": "en" + }, + { + "text": "обновить все пакеты", + "lang": "ru" + }, + { + "text": "обновить систему", + "lang": "ru" + }, + { + "text": "apt-get upgrade", + "lang": "en" + }, + { + "text": "update software", + "lang": "en" + }, + { + "text": "aptitude upgrade", + "lang": "en" + }, + { + "text": "update all packages aptitude", + "lang": "en" + }, + { + "text": "upgrade system aptitude", + "lang": "en" + }, + { + "text": "обновить все пакеты aptitude", + "lang": "ru" + }, + { + "text": "апгрейд системы aptitude", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + }, + { + "family": "mint" + } + ] + }, + "steps": [ + { + "explain": "Upgrades all installed packages to their latest versions.", + "cmd": "sudo apt upgrade", + "needs_root": true, + "risk": "medium", + "alternatives": [ + { + "explain": "Upgrade all installed packages to their newest available versions.", + "cmd": "sudo apt-get upgrade", + "needs_root": true, + "risk": "medium" + }, + { + "explain": "Upgrades installed packages to the newest available versions.", + "cmd": "sudo aptitude upgrade", + "needs_root": true, + "risk": "medium" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Downgrading packages is complex and not directly supported by apt. Ensure you have backups before upgrading.", + "risk": "low" + } + ], + "warnings": [ + "This command requires administrator privileges (sudo).", + "Upgrading all packages can sometimes cause compatibility issues. Review changes before confirming." + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/apt.md", + "title": "tldr-pages: apt", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-aptitude-install-package.json b/cards/linux/linux-aptitude-install-package.json new file mode 100644 index 0000000000000000000000000000000000000000..b9a729b8916ebad9e3a5738b7d7c0f66f61a5dda --- /dev/null +++ b/cards/linux/linux-aptitude-install-package.json @@ -0,0 +1,83 @@ +{ + "schema_version": 2, + "id": "linux-aptitude-install-package", + "platform": "linux", + "kind": "task", + "title": "Install a package with aptitude", + "summary": "Installs a specified software package and its required dependencies. Ensure you have updated the package list first for the latest versions.", + "aliases": [ + { + "text": "aptitude install", + "lang": "en" + }, + { + "text": "install package aptitude", + "lang": "en" + }, + { + "text": "add software aptitude", + "lang": "en" + }, + { + "text": "установить пакет aptitude", + "lang": "ru" + }, + { + "text": "aptitude install", + "lang": "ru" + }, + { + "text": "поставить программу aptitude", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + } + ] + }, + "steps": [ + { + "explain": "Installs the specified package and its dependencies.", + "cmd": "sudo aptitude install ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "PACKAGE", + "description": "The name of the package to install", + "example": "vim" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Remove the package and its dependencies if you need to undo the installation.", + "cmd": "sudo aptitude remove ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "PACKAGE", + "description": "The name of the package to remove", + "example": "vim" + } + ] + } + ], + "warnings": [ + "Installing packages modifies your system state." + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/aptitude.md", + "title": "tldr-pages: aptitude", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-aptitude-remove-package.json b/cards/linux/linux-aptitude-remove-package.json new file mode 100644 index 0000000000000000000000000000000000000000..7e2aa891ba5aa1c6ece09e609bbfa3ffd29f4490 --- /dev/null +++ b/cards/linux/linux-aptitude-remove-package.json @@ -0,0 +1,83 @@ +{ + "schema_version": 2, + "id": "linux-aptitude-remove-package", + "platform": "linux", + "kind": "task", + "title": "Remove a package with aptitude", + "summary": "Uninstalls a specified software package and any packages that depend on it. This cleans up your system by removing unused software.", + "aliases": [ + { + "text": "aptitude remove", + "lang": "en" + }, + { + "text": "uninstall package aptitude", + "lang": "en" + }, + { + "text": "delete software aptitude", + "lang": "en" + }, + { + "text": "удалить пакет aptitude", + "lang": "ru" + }, + { + "text": "aptitude remove", + "lang": "ru" + }, + { + "text": "снести программу aptitude", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "debian" + }, + { + "family": "ubuntu" + } + ] + }, + "steps": [ + { + "explain": "Removes the specified package and all packages depending on it.", + "cmd": "sudo aptitude remove ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "PACKAGE", + "description": "The name of the package to remove", + "example": "vim" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Re-install the package if you need to undo the removal.", + "cmd": "sudo aptitude install ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "PACKAGE", + "description": "The name of the package to re-install", + "example": "vim" + } + ] + } + ], + "warnings": [ + "Removing packages may remove other software that depends on them." + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/aptitude.md", + "title": "tldr-pages: aptitude", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-auto-tune-powertop.json b/cards/linux/linux-auto-tune-powertop.json new file mode 100644 index 0000000000000000000000000000000000000000..9636dc14cdd9fbe56e27fdfca41a64ca188476dd --- /dev/null +++ b/cards/linux/linux-auto-tune-powertop.json @@ -0,0 +1,73 @@ +{ + "schema_version": 2, + "id": "linux-auto-tune-powertop", + "platform": "linux", + "kind": "task", + "title": "Automatically tune power settings with powertop", + "summary": "Apply optimal power-saving settings to your system automatically. This can help extend battery life on laptops.", + "aliases": [ + { + "text": "powertop auto tune", + "lang": "en" + }, + { + "text": "optimize battery linux", + "lang": "en" + }, + { + "text": "powertop --auto-tune", + "lang": "en" + }, + { + "text": "save battery linux", + "lang": "en" + }, + { + "text": "автонастройка powertop", + "lang": "ru" + }, + { + "text": "оптимизировать батарею linux", + "lang": "ru" + }, + { + "text": "powertop авто", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "prerequisites": [ + "powertop installed" + ], + "steps": [ + { + "explain": "Run powertop with the --auto-tune flag to apply recommended power-saving settings. This requires root privileges.", + "cmd": "sudo powertop --auto-tune", + "needs_root": true, + "risk": "medium" + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Reboot the system to revert power settings to defaults if issues occur.", + "cmd": "sudo reboot", + "needs_root": true, + "risk": "low" + } + ], + "warnings": [ + "This changes system power settings. If your system becomes unstable or peripherals stop working, reboot to revert." + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/powertop.md", + "title": "tldr-pages: powertop", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-bind-mount-directory.json b/cards/linux/linux-bind-mount-directory.json new file mode 100644 index 0000000000000000000000000000000000000000..bd58793ab91d0587b1182fc559c9e0f96c26d647 --- /dev/null +++ b/cards/linux/linux-bind-mount-directory.json @@ -0,0 +1,82 @@ +{ + "schema_version": 2, + "id": "linux-bind-mount-directory", + "platform": "linux", + "kind": "task", + "title": "Bind mount a directory to another directory", + "summary": "Make the contents of one directory accessible in another location without copying files.", + "aliases": [ + { + "text": "bind mount directory", + "lang": "en" + }, + { + "text": "mount folder to folder", + "lang": "en" + }, + { + "text": "link directory mount", + "lang": "en" + }, + { + "text": "mount -B", + "lang": "en" + }, + { + "text": "montirovat katalog v katalog", + "lang": "ru" + }, + { + "text": "bind mount", + "lang": "ru" + }, + { + "text": "svyazannoe montirovanie", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Use the --bind flag to make the old directory appear in the new directory.", + "cmd": "sudo mount --bind ", + "risk": "medium", + "needs_root": true, + "placeholders": [ + { + "name": "OLD_DIRECTORY", + "description": "The source directory containing the files", + "example": "/home/user/data" + }, + { + "name": "NEW_DIRECTORY", + "description": "The target directory where the files will appear", + "example": "/mnt/data" + } + ] + } + ], + "risk": "medium", + "warnings": [ + "Changes made in the new directory will affect the files in the old directory.", + "You need administrator privileges." + ], + "rollback": [ + { + "explain": "Unmount the bind mount.", + "risk": "medium", + "needs_root": true + } + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/mount.md", + "title": "tldr-pages: mount", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-bleachbit-clean-junk.json b/cards/linux/linux-bleachbit-clean-junk.json new file mode 100644 index 0000000000000000000000000000000000000000..6f08af287331313a400362ddd70d582aea737f25 --- /dev/null +++ b/cards/linux/linux-bleachbit-clean-junk.json @@ -0,0 +1,74 @@ +{ + "schema_version": 2, + "id": "linux-bleachbit-clean-junk", + "platform": "linux", + "kind": "task", + "title": "Clean junk files with BleachBit", + "summary": "Use BleachBit to delete junk files and free up disk space. Always preview first to ensure you don't delete important data.", + "aliases": [ + { + "text": "clean junk files bleachbit", + "lang": "en" + }, + { + "text": "delete cache with bleachbit", + "lang": "en" + }, + { + "text": "bleachbit clean command", + "lang": "en" + }, + { + "text": "очистить мусор bleachbit", + "lang": "ru" + }, + { + "text": "удалить кэш bleachbit", + "lang": "ru" + }, + { + "text": "команда очистки bleachbit", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Perform the clean-up operation and delete files for specific cleaners.", + "cmd": "bleachbit --clean --preset ", + "risk": "medium", + "placeholders": [ + { + "name": "CLEANER_OPTIONS", + "description": "Space-separated list of cleaner options, e.g., 'firefox.cache firefox.cookies'", + "example": "firefox.cache" + } + ], + "expect": "Files are deleted and disk space is freed." + } + ], + "risk": "medium", + "warnings": [ + "This action permanently deletes files. Always use --preview first to check what will be removed." + ], + "rollback": [ + { + "explain": "There is no built-in undo for BleachBit deletions. Restore from backup if available.", + "risk": "medium" + } + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/bleachbit.md", + "title": "tldr-pages: bleachbit", + "license": "CC-BY-4.0" + }, + "see_also": [ + "linux-bleachbit-preview-clean" + ] +} diff --git a/cards/linux/linux-bleachbit-open-gui.json b/cards/linux/linux-bleachbit-open-gui.json new file mode 100644 index 0000000000000000000000000000000000000000..1d2160fba6a6180cd0e011aad5f9b64a100b165d --- /dev/null +++ b/cards/linux/linux-bleachbit-open-gui.json @@ -0,0 +1,55 @@ +{ + "schema_version": 2, + "id": "linux-bleachbit-open-gui", + "platform": "linux", + "kind": "task", + "title": "Open BleachBit graphical interface", + "summary": "Launch the BleachBit graphical user interface to clean junk files using a visual menu instead of the command line.", + "aliases": [ + { + "text": "open bleachbit gui", + "lang": "en" + }, + { + "text": "bleachbit graphical interface", + "lang": "en" + }, + { + "text": "start bleachbit app", + "lang": "en" + }, + { + "text": "открыть графический интерфейс bleachbit", + "lang": "ru" + }, + { + "text": "запустить bleachbit gui", + "lang": "ru" + }, + { + "text": "окно bleachbit", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Start the graphical user interface version of BleachBit.", + "cmd": "bleachbit --gui", + "risk": "low", + "expect": "The BleachBit window opens." + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/bleachbit.md", + "title": "tldr-pages: bleachbit", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-bleachbit-preview-clean.json b/cards/linux/linux-bleachbit-preview-clean.json new file mode 100644 index 0000000000000000000000000000000000000000..bec39cddd63d32b2d3d44976521bc433cde6bd01 --- /dev/null +++ b/cards/linux/linux-bleachbit-preview-clean.json @@ -0,0 +1,68 @@ +{ + "schema_version": 2, + "id": "linux-bleachbit-preview-clean", + "platform": "linux", + "kind": "task", + "title": "Preview files to be deleted by BleachBit", + "summary": "Use BleachBit to see which junk files will be removed before actually deleting them. This helps you avoid accidentally deleting important data.", + "aliases": [ + { + "text": "preview bleachbit files", + "lang": "en" + }, + { + "text": "see what bleachbit deletes", + "lang": "en" + }, + { + "text": "bleachbit dry run", + "lang": "en" + }, + { + "text": "просмотреть что удалит bleachbit", + "lang": "ru" + }, + { + "text": "что удалит bleachbit", + "lang": "ru" + }, + { + "text": "предпросмотр очистки bleachbit", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "List available cleaner options to find the names you need for the preset.", + "cmd": "bleachbit --list-cleaners", + "risk": "low", + "expect": "A list of cleaner names and their options." + }, + { + "explain": "Preview the files that will be deleted for specific cleaners without actually deleting them.", + "cmd": "bleachbit --preview --preset ", + "risk": "low", + "placeholders": [ + { + "name": "CLEANER_OPTIONS", + "description": "Space-separated list of cleaner options, e.g., 'firefox.cache firefox.cookies'", + "example": "firefox.cache" + } + ], + "expect": "A list of files and changes that would be made." + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/bleachbit.md", + "title": "tldr-pages: bleachbit", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-bleachbit-shred-file.json b/cards/linux/linux-bleachbit-shred-file.json new file mode 100644 index 0000000000000000000000000000000000000000..008d95449385ff922b41e6db851c2675c62ae768 --- /dev/null +++ b/cards/linux/linux-bleachbit-shred-file.json @@ -0,0 +1,71 @@ +{ + "schema_version": 2, + "id": "linux-bleachbit-shred-file", + "platform": "linux", + "kind": "task", + "title": "Securely shred a file with BleachBit", + "summary": "Use BleachBit to securely shred a file so it cannot be recovered. This is useful for deleting sensitive data.", + "aliases": [ + { + "text": "shred file bleachbit", + "lang": "en" + }, + { + "text": "secure delete file bleachbit", + "lang": "en" + }, + { + "text": "bleachbit shred command", + "lang": "en" + }, + { + "text": "надёжно удалить файл bleachbit", + "lang": "ru" + }, + { + "text": "shred файла bleachbit", + "lang": "ru" + }, + { + "text": "безвозвратно удалить файл", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Shred a specific file so it cannot be recovered.", + "cmd": "bleachbit --shred ", + "risk": "high", + "placeholders": [ + { + "name": "FILE", + "description": "Path to the file you want to securely delete", + "example": "/home/user/secret.txt" + } + ], + "expect": "The file is overwritten and deleted." + } + ], + "risk": "high", + "warnings": [ + "Shredding is irreversible. The file cannot be recovered after this operation." + ], + "rollback": [ + { + "explain": "Shredded files cannot be recovered. Ensure you have a backup if needed.", + "risk": "high" + } + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/bleachbit.md", + "title": "tldr-pages: bleachbit", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-bluetooth-list-known-devices.json b/cards/linux/linux-bluetooth-list-known-devices.json new file mode 100644 index 0000000000000000000000000000000000000000..097baba514d18e96f6114d779e95b42fe895ae11 --- /dev/null +++ b/cards/linux/linux-bluetooth-list-known-devices.json @@ -0,0 +1,61 @@ +{ + "schema_version": 2, + "id": "linux-bluetooth-list-known-devices", + "platform": "linux", + "kind": "task", + "title": "List known Bluetooth devices", + "summary": "Show a list of Bluetooth devices that your computer has previously paired with or knows about.", + "aliases": [ + { + "text": "list bluetooth devices", + "lang": "en" + }, + { + "text": "show paired bluetooth devices", + "lang": "en" + }, + { + "text": "bluetoothctl devices", + "lang": "en" + }, + { + "text": "check paired bluetooth", + "lang": "en" + }, + { + "text": "список bluetooth устройств", + "lang": "ru" + }, + { + "text": "показать известные bluetooth", + "lang": "ru" + }, + { + "text": "bluetoothctl devices", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "bluez" + ] + }, + "steps": [ + { + "explain": "Display all known Bluetooth devices.", + "cmd": "bluetoothctl devices", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/bluetoothctl.md", + "title": "tldr-pages: bluetoothctl", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-bluetooth-remove-device.json b/cards/linux/linux-bluetooth-remove-device.json new file mode 100644 index 0000000000000000000000000000000000000000..6a9d53223d302433c1bf4c1a45df825497a5c810 --- /dev/null +++ b/cards/linux/linux-bluetooth-remove-device.json @@ -0,0 +1,69 @@ +{ + "schema_version": 2, + "id": "linux-bluetooth-remove-device", + "platform": "linux", + "kind": "task", + "title": "Remove a paired Bluetooth device", + "summary": "Delete a Bluetooth device from your computer's list of known devices. You will need to pair it again if you want to use it later.", + "aliases": [ + { + "text": "remove bluetooth device", + "lang": "en" + }, + { + "text": "unpair bluetooth device", + "lang": "en" + }, + { + "text": "forget bluetooth device", + "lang": "en" + }, + { + "text": "bluetoothctl remove", + "lang": "en" + }, + { + "text": "удалить bluetooth устройство", + "lang": "ru" + }, + { + "text": "забыть bluetooth устройство", + "lang": "ru" + }, + { + "text": "отвязать bluetooth", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "bluez" + ] + }, + "steps": [ + { + "explain": "Remove the specified Bluetooth device from the list of known devices.", + "cmd": "bluetoothctl remove ", + "risk": "low", + "placeholders": [ + { + "name": "MAC_ADDRESS", + "description": "The MAC address of the Bluetooth device to remove.", + "example": "11:22:33:44:55:66", + "discover_cmd": "bluetoothctl devices" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/bluetoothctl.md", + "title": "tldr-pages: bluetoothctl", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-bluetooth-scan-devices.json b/cards/linux/linux-bluetooth-scan-devices.json new file mode 100644 index 0000000000000000000000000000000000000000..f5dc9826f3161ff74bc227afa4b64ebf4829c9db --- /dev/null +++ b/cards/linux/linux-bluetooth-scan-devices.json @@ -0,0 +1,67 @@ +{ + "schema_version": 2, + "id": "linux-bluetooth-scan-devices", + "platform": "linux", + "kind": "task", + "title": "Scan for nearby Bluetooth devices", + "summary": "Use bluetoothctl to scan for available Bluetooth devices for a short period. This helps you find the MAC address of a device you want to pair with.", + "aliases": [ + { + "text": "scan for bluetooth devices", + "lang": "en" + }, + { + "text": "find bluetooth devices", + "lang": "en" + }, + { + "text": "bluetoothctl scan", + "lang": "en" + }, + { + "text": "list nearby bluetooth", + "lang": "en" + }, + { + "text": "как найти устройства bluetooth", + "lang": "ru" + }, + { + "text": "сканировать bluetooth", + "lang": "ru" + }, + { + "text": "найти bluetooth устройства", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "bluez" + ] + }, + "steps": [ + { + "explain": "Run a Bluetooth scan for 10 seconds to discover nearby devices.", + "cmd": "bluetoothctl -t 10 scan on", + "risk": "low", + "alternatives": [ + { + "explain": "Use the long form of the timeout flag.", + "cmd": "bluetoothctl --timeout 10 scan on" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/bluetoothctl.md", + "title": "tldr-pages: bluetoothctl", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-calibrate-powertop.json b/cards/linux/linux-calibrate-powertop.json new file mode 100644 index 0000000000000000000000000000000000000000..39463e7084dd61ee8b4777b6c00b7c49b3a635a5 --- /dev/null +++ b/cards/linux/linux-calibrate-powertop.json @@ -0,0 +1,63 @@ +{ + "schema_version": 2, + "id": "linux-calibrate-powertop", + "platform": "linux", + "kind": "task", + "title": "Calibrate power usage measurements with powertop", + "summary": "Run powertop in calibration mode to measure your system's power consumption accurately. This is usually done once before using powertop for tuning or reporting.", + "aliases": [ + { + "text": "calibrate powertop", + "lang": "en" + }, + { + "text": "powertop calibration", + "lang": "en" + }, + { + "text": "measure battery usage linux", + "lang": "en" + }, + { + "text": "powertop --calibrate", + "lang": "en" + }, + { + "text": "калибровка powertop", + "lang": "ru" + }, + { + "text": "измерить энергопотребление linux", + "lang": "ru" + }, + { + "text": "powertop калибровать", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "prerequisites": [ + "powertop installed", + "System is idle during calibration" + ], + "steps": [ + { + "explain": "Run powertop with the --calibrate flag to start the calibration process. This requires root privileges.", + "cmd": "sudo powertop --calibrate", + "needs_root": true, + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/powertop.md", + "title": "tldr-pages: powertop", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-change-mac-address.json b/cards/linux/linux-change-mac-address.json new file mode 100644 index 0000000000000000000000000000000000000000..589672e163999907195254888753daf0f4a6e134 --- /dev/null +++ b/cards/linux/linux-change-mac-address.json @@ -0,0 +1,116 @@ +{ + "schema_version": 2, + "id": "linux-change-mac-address", + "platform": "linux", + "kind": "task", + "title": "Change the MAC address of a network interface", + "summary": "Modify the hardware (MAC) address of a network interface. This is often used for privacy or testing purposes.", + "aliases": [ + { + "text": "change mac address", + "lang": "en" + }, + { + "text": "spoof mac address", + "lang": "en" + }, + { + "text": "set mac address", + "lang": "en" + }, + { + "text": "ip link address", + "lang": "en" + }, + { + "text": "change hardware address", + "lang": "en" + }, + { + "text": "change mac address", + "lang": "ru" + }, + { + "text": "spoof mac address", + "lang": "ru" + }, + { + "text": "set mac address", + "lang": "ru" + }, + { + "text": "ip link address", + "lang": "ru" + }, + { + "text": "change hardware address", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Use `sudo ip link set` with the `address` option to set a new MAC address.", + "cmd": "sudo ip link set address ", + "risk": "medium", + "needs_root": true, + "placeholders": [ + { + "name": "INTERFACE", + "description": "The name of the network interface.", + "example": "eth0", + "discover_cmd": "ip link" + }, + { + "name": "MAC_ADDRESS", + "description": "The new MAC address in format xx:xx:xx:xx:xx:xx.", + "example": "ff:ff:ff:ff:ff:ff" + } + ], + "alternatives": [ + { + "explain": "Use the short form `sudo ip l s` with `a` for address.", + "cmd": "sudo ip l s a ", + "risk": "medium", + "needs_root": true, + "placeholders": [ + { + "name": "INTERFACE", + "description": "The name of the network interface.", + "example": "eth0", + "discover_cmd": "ip link" + }, + { + "name": "MAC_ADDRESS", + "description": "The new MAC address in format xx:xx:xx:xx:xx:xx.", + "example": "ff:ff:ff:ff:ff:ff" + } + ] + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "To restore the original MAC address, you typically need to reboot the system or reload the driver, as the original address is stored in hardware/firmware. There is no direct command to revert to the permanent MAC address via `ip link`.", + "risk": "medium" + } + ], + "warnings": [ + "Changing the MAC address can disrupt network connectivity and may violate network policies.", + "The change is temporary and will be lost after a reboot.", + "Requires administrator privileges (sudo)." + ], + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/ip-link.md", + "title": "tldr-pages: ip-link", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-change-user-home-dir.json b/cards/linux/linux-change-user-home-dir.json new file mode 100644 index 0000000000000000000000000000000000000000..2747e42efc4180d58a76d17ecef6825dfb753f42 --- /dev/null +++ b/cards/linux/linux-change-user-home-dir.json @@ -0,0 +1,93 @@ +{ + "schema_version": 2, + "id": "linux-change-user-home-dir", + "platform": "linux", + "kind": "task", + "title": "Change a user's home directory", + "summary": "Move a user's home directory to a new location and update their account settings.", + "aliases": [ + { + "text": "change home directory linux", + "lang": "en" + }, + { + "text": "move user home dir", + "lang": "en" + }, + { + "text": "usermod move home", + "lang": "en" + }, + { + "text": "сменить домашнюю папку пользователя", + "lang": "ru" + }, + { + "text": "переместить домашний каталог", + "lang": "ru" + }, + { + "text": "usermod -d -m", + "lang": "en" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Change the user's home directory to the new path. The -m flag moves the contents of the old home directory to the new one.", + "cmd": "sudo usermod -d -m ", + "needs_root": true, + "risk": "high", + "placeholders": [ + { + "name": "NEW_HOME_PATH", + "description": "The new path for the user's home directory", + "example": "/home/newuser" + }, + { + "name": "USERNAME", + "description": "The name of the user", + "example": "john" + } + ] + } + ], + "risk": "high", + "rollback": [ + { + "explain": "Move the home directory back to the original path.", + "cmd": "sudo usermod -d -m ", + "needs_root": true, + "risk": "high", + "placeholders": [ + { + "name": "OLD_HOME_PATH", + "description": "The original path of the user's home directory", + "example": "/home/john" + }, + { + "name": "USERNAME", + "description": "The name of the user", + "example": "john" + } + ] + } + ], + "warnings": [ + "Ensure the user is not logged in when performing this action.", + "Verify that the new home directory path does not already exist or is empty to avoid data loss.", + "Update any configuration files or scripts that reference the old home directory path." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Users_and_groups#Change_a_user's_login_name_or_home_directory", + "title": "Users and groups", + "revision_id": 872887, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/linux-change-user-shell.json b/cards/linux/linux-change-user-shell.json new file mode 100644 index 0000000000000000000000000000000000000000..1b474e0c15a044497a9839db21ee17269708a484 --- /dev/null +++ b/cards/linux/linux-change-user-shell.json @@ -0,0 +1,92 @@ +{ + "schema_version": 2, + "id": "linux-change-user-shell", + "platform": "linux", + "kind": "task", + "title": "Change a user's login shell", + "summary": "Change the default shell used when a user logs in.", + "aliases": [ + { + "text": "change login shell linux", + "lang": "en" + }, + { + "text": "usermod change shell", + "lang": "en" + }, + { + "text": "chsh command", + "lang": "en" + }, + { + "text": "сменить оболочку пользователя", + "lang": "ru" + }, + { + "text": "как сменить шелл", + "lang": "ru" + }, + { + "text": "изменить bash на zsh", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Change the login shell for the specified user. Replace with the path to the new shell (e.g., /bin/zsh).", + "cmd": "sudo usermod -s ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "SHELL_PATH", + "description": "Path to the new login shell", + "example": "/bin/zsh", + "discover_cmd": "cat /etc/shells" + }, + { + "name": "USERNAME", + "description": "The name of the user", + "example": "john" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Change the login shell back to the original shell.", + "cmd": "sudo usermod -s ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "ORIGINAL_SHELL_PATH", + "description": "Path to the original login shell", + "example": "/bin/bash" + }, + { + "name": "USERNAME", + "description": "The name of the user", + "example": "john" + } + ] + } + ], + "warnings": [ + "Ensure the new shell is installed and listed in /etc/shells, otherwise the user will not be able to log in." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Users_and_groups#Other_examples_of_user_management", + "title": "Users and groups", + "revision_id": 872887, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/linux-change-username.json b/cards/linux/linux-change-username.json new file mode 100644 index 0000000000000000000000000000000000000000..81b2300bb47c85923dbf94a3f560046ac8dc8f94 --- /dev/null +++ b/cards/linux/linux-change-username.json @@ -0,0 +1,92 @@ +{ + "schema_version": 2, + "id": "linux-change-username", + "platform": "linux", + "kind": "task", + "title": "Change a user's login name", + "summary": "Rename an existing user account.", + "aliases": [ + { + "text": "change username linux", + "lang": "en" + }, + { + "text": "rename user account", + "lang": "en" + }, + { + "text": "usermod rename user", + "lang": "en" + }, + { + "text": "сменить имя пользователя linux", + "lang": "ru" + }, + { + "text": "переименовать юзера", + "lang": "ru" + }, + { + "text": "usermod -l", + "lang": "en" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Change the login name of the user. Replace with the desired new username and with the current username.", + "cmd": "sudo usermod -l ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "NEW_NAME", + "description": "The new username", + "example": "newjohn" + }, + { + "name": "OLD_NAME", + "description": "The current username", + "example": "john" + } + ] + } + ], + "risk": "medium", + "rollback": [ + { + "explain": "Change the username back to the original name.", + "cmd": "sudo usermod -l ", + "needs_root": true, + "risk": "medium", + "placeholders": [ + { + "name": "OLD_NAME", + "description": "The original username", + "example": "john" + }, + { + "name": "NEW_NAME", + "description": "The current (new) username", + "example": "newjohn" + } + ] + } + ], + "warnings": [ + "Do not rename the user while they are logged in. Log in as root or another user to perform this action.", + "Update sudoers, crontabs, and any configuration files that reference the old username." + ], + "source": { + "url": "https://wiki.archlinux.org/title/Users_and_groups#Change_a_user's_login_name_or_home_directory", + "title": "Users and groups", + "revision_id": 872887, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/linux-change-xdg-user-directory.json b/cards/linux/linux-change-xdg-user-directory.json new file mode 100644 index 0000000000000000000000000000000000000000..e0ca5394ec2c2c7396c75d2f1fc5775f5c0a2520 --- /dev/null +++ b/cards/linux/linux-change-xdg-user-directory.json @@ -0,0 +1,74 @@ +{ + "schema_version": 2, + "id": "linux-change-xdg-user-directory", + "platform": "linux", + "kind": "task", + "title": "Change XDG user directory location", + "summary": "Update the location of standard user folders like Desktop, Documents, or Downloads. This changes where applications look for these files.", + "aliases": [ + { + "text": "change desktop folder location", + "lang": "en" + }, + { + "text": "move documents folder", + "lang": "en" + }, + { + "text": "xdg user dirs update", + "lang": "en" + }, + { + "text": "change xdg directory", + "lang": "en" + }, + { + "text": "изменить папку рабочего стола", + "lang": "ru" + }, + { + "text": "переместить папку документы", + "lang": "ru" + }, + { + "text": "xdg user dirs", + "lang": "ru" + }, + { + "text": "сменить путь к папкам пользователя", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Set the path for a specific XDG directory (e.g., DESKTOP, DOCUMENTS, DOWNLOAD).", + "cmd": "xdg-user-dirs-update --set \"\"", + "risk": "low", + "placeholders": [ + { + "name": "DIRECTORY_NAME", + "description": "The XDG directory key to change, e.g., DESKTOP, DOCUMENTS, DOWNLOAD, MUSIC, PICTURES, VIDEOS.", + "example": "DESKTOP" + }, + { + "name": "NEW_PATH", + "description": "The absolute path to the new directory.", + "example": "/home/user/NewDesktop" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/xdg-user-dirs-update.md", + "title": "tldr-pages: xdg-user-dirs-update", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-check-boot-time.json b/cards/linux/linux-check-boot-time.json new file mode 100644 index 0000000000000000000000000000000000000000..9486f914980e79f43d087ba0a2054bbae60adc77 --- /dev/null +++ b/cards/linux/linux-check-boot-time.json @@ -0,0 +1,62 @@ +{ + "schema_version": 2, + "id": "linux-check-boot-time", + "platform": "linux", + "kind": "task", + "title": "Check how long the system took to boot", + "summary": "See the total time your Linux computer took to start up. This helps you understand if your boot process is slow.", + "aliases": [ + { + "text": "check boot time", + "lang": "en" + }, + { + "text": "how long did boot take", + "lang": "en" + }, + { + "text": "systemd analyze boot time", + "lang": "en" + }, + { + "text": "slow boot linux", + "lang": "en" + }, + { + "text": "проверить время загрузки", + "lang": "ru" + }, + { + "text": "сколько грузится линукс", + "lang": "ru" + }, + { + "text": "systemd analyze", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "systemd" + ] + }, + "steps": [ + { + "explain": "Run the analyze command to see the total startup time.", + "cmd": "systemd-analyze", + "risk": "low", + "expect": "Output showing kernel, initrd, and userspace boot times." + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/systemd-analyze.md", + "title": "tldr-pages: systemd-analyze", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-check-critical-boot-chain.json b/cards/linux/linux-check-critical-boot-chain.json new file mode 100644 index 0000000000000000000000000000000000000000..6e3b9447ca5e62a6386e31f807e9eaa3c8032cb1 --- /dev/null +++ b/cards/linux/linux-check-critical-boot-chain.json @@ -0,0 +1,62 @@ +{ + "schema_version": 2, + "id": "linux-check-critical-boot-chain", + "platform": "linux", + "kind": "task", + "title": "Show the critical chain of bootup units", + "summary": "Display a tree structure of the services that are on the critical path for booting. This shows which services are blocking others from starting.", + "aliases": [ + { + "text": "critical chain boot", + "lang": "en" + }, + { + "text": "systemd critical chain", + "lang": "en" + }, + { + "text": "boot dependency tree", + "lang": "en" + }, + { + "text": "critical path boot", + "lang": "en" + }, + { + "text": "критическая цепочка загрузки", + "lang": "ru" + }, + { + "text": "systemd critical-chain", + "lang": "ru" + }, + { + "text": "дерево зависимостей загрузки", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "systemd" + ] + }, + "steps": [ + { + "explain": "Print a tree of the time-critical chain of bootup units.", + "cmd": "systemd-analyze critical-chain", + "risk": "low", + "expect": "A tree view showing the sequence of services that determine boot time." + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/systemd-analyze.md", + "title": "tldr-pages: systemd-analyze", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-check-default-app-for-mime.json b/cards/linux/linux-check-default-app-for-mime.json new file mode 100644 index 0000000000000000000000000000000000000000..42091906a30b87653439681b668b0faf3f20419b --- /dev/null +++ b/cards/linux/linux-check-default-app-for-mime.json @@ -0,0 +1,78 @@ +{ + "schema_version": 2, + "id": "linux-check-default-app-for-mime", + "platform": "linux", + "kind": "task", + "title": "Check default application for a file type", + "summary": "See which application is currently set to open files of a specific type (like PNG images or PDFs).", + "aliases": [ + { + "text": "check default app linux", + "lang": "en" + }, + { + "text": "what opens png files", + "lang": "en" + }, + { + "text": "default application for mime type", + "lang": "en" + }, + { + "text": "xdg-mime query default", + "lang": "en" + }, + { + "text": "какое приложение открывает файлы", + "lang": "ru" + }, + { + "text": "проверить приложение по умолчанию", + "lang": "ru" + }, + { + "text": "чем открываются png", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Query the default application registered for a specific MIME type.", + "cmd": "xdg-mime query default ", + "risk": "low", + "placeholders": [ + { + "name": "MIME_TYPE", + "description": "The MIME type to check, e.g., image/png", + "example": "image/png" + } + ], + "alternatives": [ + { + "explain": "Check the default application for a specific file by first determining its MIME type.", + "cmd": "xdg-mime query default $(xdg-mime query filetype )", + "placeholders": [ + { + "name": "FILE", + "description": "Path to the file", + "example": "document.pdf" + } + ] + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/xdg-mime.md", + "title": "tldr-pages: xdg-mime", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-check-default-web-browser.json b/cards/linux/linux-check-default-web-browser.json new file mode 100644 index 0000000000000000000000000000000000000000..964898c6c3bab4c583d7bfb0f887ab5f9d64df0a --- /dev/null +++ b/cards/linux/linux-check-default-web-browser.json @@ -0,0 +1,62 @@ +{ + "schema_version": 2, + "id": "linux-check-default-web-browser", + "platform": "linux", + "kind": "task", + "title": "Check the default web browser", + "summary": "Find out which web browser is currently set as the system default for opening links.", + "aliases": [ + { + "text": "check default browser", + "lang": "en" + }, + { + "text": "what is my default browser", + "lang": "en" + }, + { + "text": "show default web browser", + "lang": "en" + }, + { + "text": "default browser linux", + "lang": "en" + }, + { + "text": "kakoy default browser", + "lang": "ru" + }, + { + "text": "kakoy u menya default browser", + "lang": "ru" + }, + { + "text": "proverit default browser", + "lang": "ru" + }, + { + "text": "kakoy brauzer po defaultu", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Query the XDG settings to see which .desktop file is registered as the default web browser.", + "cmd": "xdg-settings get default-web-browser", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/xdg-settings.md", + "title": "tldr-pages: xdg-settings", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-check-firmware-updates.json b/cards/linux/linux-check-firmware-updates.json new file mode 100644 index 0000000000000000000000000000000000000000..4fb5085c5d4cb6002cdc7be4999bef4761e35e46 --- /dev/null +++ b/cards/linux/linux-check-firmware-updates.json @@ -0,0 +1,66 @@ +{ + "schema_version": 2, + "id": "linux-check-firmware-updates", + "platform": "linux", + "kind": "task", + "title": "Check for available firmware updates", + "summary": "Firmware updates fix bugs and security issues in hardware like SSDs, BIOS, and Wi-Fi cards. This command checks if any updates are available for your devices.", + "aliases": [ + { + "text": "check firmware updates", + "lang": "en" + }, + { + "text": "fwupdmgr get-updates", + "lang": "en" + }, + { + "text": "update bios linux", + "lang": "en" + }, + { + "text": "check ssd firmware", + "lang": "en" + }, + { + "text": "проверить обновления прошивки", + "lang": "ru" + }, + { + "text": "fwupdmgr обновления", + "lang": "ru" + }, + { + "text": "обновить биос линукс", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "fwupd" + ] + }, + "steps": [ + { + "explain": "Download the latest firmware metadata from the Linux Vendor Firmware Service (LVFS).", + "cmd": "fwupdmgr refresh", + "risk": "low" + }, + { + "explain": "List the updates available for devices on your system.", + "cmd": "fwupdmgr get-updates", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/fwupdmgr.md", + "title": "tldr-pages: fwupdmgr", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-check-memory-usage.json b/cards/linux/linux-check-memory-usage.json new file mode 100644 index 0000000000000000000000000000000000000000..d92eeebb3d28101f81fd62946e1bfcb8f50c6644 --- /dev/null +++ b/cards/linux/linux-check-memory-usage.json @@ -0,0 +1,77 @@ +{ + "schema_version": 2, + "id": "linux-check-memory-usage", + "platform": "linux", + "kind": "task", + "title": "Check free and used system memory", + "summary": "Use the `free` command to see how much RAM your computer is using and how much is still available. It shows total, used, and free memory, plus swap space.", + "aliases": [ + { + "text": "check memory usage", + "lang": "en" + }, + { + "text": "how much ram is free", + "lang": "en" + }, + { + "text": "show available memory", + "lang": "en" + }, + { + "text": "free ram", + "lang": "en" + }, + { + "text": "memory usage linux", + "lang": "en" + }, + { + "text": "проверить память", + "lang": "ru" + }, + { + "text": "сколько свободной памяти", + "lang": "ru" + }, + { + "text": "показать использование оперативной памяти", + "lang": "ru" + }, + { + "text": "свободная память линукс", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Run the `free` command to display the current memory usage in kilobytes.", + "cmd": "free", + "risk": "low", + "expect": "A table showing total, used, and free memory for RAM and swap.", + "alternatives": [ + { + "explain": "Display memory in human-readable units (e.g., GiB, MiB) instead of raw kilobytes.", + "cmd": "free -h", + "risk": "low" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/free.md", + "title": "tldr-pages: free", + "license": "CC-BY-4.0" + }, + "see_also": [ + "arch-check-memory-usage" + ] +} diff --git a/cards/linux/linux-check-network-connection-status.json b/cards/linux/linux-check-network-connection-status.json new file mode 100644 index 0000000000000000000000000000000000000000..e295200b4a776cf39004f273bcaae512f6129609 --- /dev/null +++ b/cards/linux/linux-check-network-connection-status.json @@ -0,0 +1,80 @@ +{ + "schema_version": 2, + "id": "linux-check-network-connection-status", + "platform": "linux", + "kind": "task", + "title": "Check if NetworkManager reports an active network connection", + "summary": "Use `nm-online` to ask NetworkManager if the system is currently connected to a network. It returns immediately with a success or failure status, which is useful for scripts or quick checks.", + "aliases": [ + { + "text": "check network connection status", + "lang": "en" + }, + { + "text": "is network connected", + "lang": "en" + }, + { + "text": "nm-online", + "lang": "en" + }, + { + "text": "networkmanager status", + "lang": "en" + }, + { + "text": "проверить статус сети", + "lang": "ru" + }, + { + "text": "подключен ли интернет", + "lang": "ru" + }, + { + "text": "nm-online проверить", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "NetworkManager" + ] + }, + "steps": [ + { + "explain": "Run `nm-online` to check if NetworkManager considers the network connection active. It exits with code 0 if connected, non-zero otherwise.", + "cmd": "nm-online", + "risk": "low", + "expect": "No output if connected; exit code 0. If not connected, it may print an error or exit non-zero.", + "alternatives": [ + { + "explain": "Wait for a custom number of seconds for the network to become active.", + "cmd": "nm-online --timeout ", + "risk": "low", + "placeholders": [ + { + "name": "SECONDS", + "description": "Number of seconds to wait for connection", + "example": "10" + } + ] + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/nm-online.md", + "title": "tldr-pages: nm-online", + "license": "CC-BY-4.0" + }, + "see_also": [ + "nmcli-show-networking-status", + "linux-nmcli-show-status" + ] +} diff --git a/cards/linux/linux-check-route-to-ip.json b/cards/linux/linux-check-route-to-ip.json new file mode 100644 index 0000000000000000000000000000000000000000..cb7961c85dd6b5d8cba528686273a9f055dee726 --- /dev/null +++ b/cards/linux/linux-check-route-to-ip.json @@ -0,0 +1,69 @@ +{ + "schema_version": 2, + "id": "linux-check-route-to-ip", + "platform": "linux", + "kind": "task", + "title": "Check which route is used to reach an IP address", + "summary": "Find out exactly which gateway and interface your computer will use to send traffic to a specific IP address. This is useful for debugging connectivity issues to specific servers or devices.", + "aliases": [ + { + "text": "check route to ip", + "lang": "en" + }, + { + "text": "which route for ip", + "lang": "en" + }, + { + "text": "ip route get", + "lang": "en" + }, + { + "text": "trace route decision", + "lang": "en" + }, + { + "text": "проверить маршрут до ip", + "lang": "ru" + }, + { + "text": "какой маршрут для ip", + "lang": "ru" + }, + { + "text": "ip route get", + "lang": "ru" + }, + { + "text": "маршрут до адреса", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Ask the kernel which route it would select to reach a specific destination IP address.", + "cmd": "ip route get ", + "risk": "low", + "placeholders": [ + { + "name": "DESTINATION_IP", + "description": "The IP address you want to check the route for", + "example": "8.8.8.8" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/ip-route.md", + "title": "tldr-pages: ip-route", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-check-screen-brightness.json b/cards/linux/linux-check-screen-brightness.json new file mode 100644 index 0000000000000000000000000000000000000000..b0dc43a9b5c803cf256d5181318266244d81d4d8 --- /dev/null +++ b/cards/linux/linux-check-screen-brightness.json @@ -0,0 +1,86 @@ +{ + "schema_version": 2, + "id": "linux-check-screen-brightness", + "platform": "linux", + "kind": "task", + "title": "Check current screen brightness", + "summary": "Use brightnessctl to see the current brightness level of your screen. This helps you know the current setting before adjusting it.", + "aliases": [ + { + "text": "check screen brightness", + "lang": "en" + }, + { + "text": "current brightness linux", + "lang": "en" + }, + { + "text": "brightnessctl get", + "lang": "en" + }, + { + "text": "what is my brightness", + "lang": "en" + }, + { + "text": "проверить яркость экрана", + "lang": "ru" + }, + { + "text": "текущая яркость линукс", + "lang": "ru" + }, + { + "text": "какая яркость экрана", + "lang": "ru" + }, + { + "text": "how bright is my screen", + "lang": "en" + }, + { + "text": "current backlight level", + "lang": "en" + }, + { + "text": "light command brightness", + "lang": "en" + }, + { + "text": "какая яркость сейчас", + "lang": "ru" + }, + { + "text": "текущий уровень подсветки", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Print the current brightness of the default device.", + "cmd": "brightnessctl get", + "risk": "low", + "alternatives": [ + { + "explain": "Run the light command without arguments to print the current backlight percentage.", + "cmd": "light", + "expect": "A number representing the current brightness percentage (e.g., 50).", + "risk": "low" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/brightnessctl.md", + "title": "tldr-pages: brightnessctl", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-check-sensor-temps.json b/cards/linux/linux-check-sensor-temps.json new file mode 100644 index 0000000000000000000000000000000000000000..d3ba47b799372199b3254a73054388b807619840 --- /dev/null +++ b/cards/linux/linux-check-sensor-temps.json @@ -0,0 +1,88 @@ +{ + "schema_version": 2, + "id": "linux-check-sensor-temps", + "platform": "linux", + "kind": "task", + "title": "Check CPU and hardware temperatures", + "summary": "Use the `sensors` command to see current temperature readings from your CPU and other hardware components. This helps you check if your computer is overheating.", + "aliases": [ + { + "text": "check cpu temperature linux", + "lang": "en" + }, + { + "text": "how hot is my cpu", + "lang": "en" + }, + { + "text": "show hardware sensors", + "lang": "en" + }, + { + "text": "linux temperature monitor", + "lang": "en" + }, + { + "text": "check overheating linux", + "lang": "en" + }, + { + "text": "проверить температуру процессора", + "lang": "ru" + }, + { + "text": "какая температура cpu", + "lang": "ru" + }, + { + "text": "мониторинг температуры linux", + "lang": "ru" + }, + { + "text": "сказать температуру железа", + "lang": "ru" + }, + { + "text": "греется ли ноутбук", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Run the sensors command to display current readings from all detected sensor chips.", + "cmd": "sensors", + "risk": "low", + "expect": "A list of sensor chips (like coretemp-isa-0000) with their current temperature readings in degrees Celsius." + }, + { + "explain": "If you prefer Fahrenheit, add the --fahrenheit flag.", + "cmd": "sensors --fahrenheit", + "risk": "low", + "alternatives": [ + { + "explain": "Show readings in JSON format for easier parsing or scripting.", + "cmd": "sensors -j", + "risk": "low" + }, + { + "explain": "Show raw sensor output, useful for debugging.", + "cmd": "sensors -u", + "risk": "low" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/sensors.md", + "title": "tldr-pages: sensors", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-check-service-security.json b/cards/linux/linux-check-service-security.json new file mode 100644 index 0000000000000000000000000000000000000000..1bf390a3d9cfc87a12bb7f399a714856a9fa92ae --- /dev/null +++ b/cards/linux/linux-check-service-security.json @@ -0,0 +1,62 @@ +{ + "schema_version": 2, + "id": "linux-check-service-security", + "platform": "linux", + "kind": "task", + "title": "Check security scores of running services", + "summary": "View the security settings and potential vulnerabilities of currently running systemd units. This helps assess the security posture of your system services.", + "aliases": [ + { + "text": "check service security", + "lang": "en" + }, + { + "text": "systemd security score", + "lang": "en" + }, + { + "text": "systemd analyze security", + "lang": "en" + }, + { + "text": "service hardening status", + "lang": "en" + }, + { + "text": "проверить безопасность сервисов", + "lang": "ru" + }, + { + "text": "systemd security", + "lang": "ru" + }, + { + "text": "оценка безопасности systemd", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "systemd" + ] + }, + "steps": [ + { + "explain": "Show security scores for all running units.", + "cmd": "systemd-analyze security", + "risk": "low", + "expect": "A list of services with their security scores and details." + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/systemd-analyze.md", + "title": "tldr-pages: systemd-analyze", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-check-service-status.json b/cards/linux/linux-check-service-status.json new file mode 100644 index 0000000000000000000000000000000000000000..7f13ad0e30bdf50a1be619836ee1b46a70c40937 --- /dev/null +++ b/cards/linux/linux-check-service-status.json @@ -0,0 +1,86 @@ +{ + "schema_version": 2, + "id": "linux-check-service-status", + "platform": "linux", + "kind": "task", + "title": "Check the status of a specific system service", + "summary": "Use systemctl status to see if a service is running, stopped, or failed, and view its recent logs.", + "aliases": [ + { + "text": "check service status", + "lang": "en" + }, + { + "text": "is ssh running", + "lang": "en" + }, + { + "text": "systemctl status", + "lang": "en" + }, + { + "text": "check if service is active", + "lang": "en" + }, + { + "text": "проверить статус службы", + "lang": "ru" + }, + { + "text": "работает ли сервис", + "lang": "ru" + }, + { + "text": "systemctl status ssh", + "lang": "ru" + }, + { + "text": "is service running", + "lang": "en" + }, + { + "text": "service not working", + "lang": "en" + }, + { + "text": "системctl статус", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "systemd" + ] + }, + "steps": [ + { + "explain": "Display the current status and recent logs for a specific systemd unit.", + "cmd": "systemctl status .", + "risk": "low", + "placeholders": [ + { + "name": "UNIT", + "description": "The name of the service or unit (e.g., ssh, nginx, bluetooth)", + "example": "ssh" + }, + { + "name": "TYPE", + "description": "The type of unit. Common types are service, timer, socket, target.", + "example": "service" + } + ], + "expect": "Output showing whether the unit is active (running), inactive, or failed, along with recent log lines." + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/systemctl-status.md", + "title": "tldr-pages: systemctl-status", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-check-specific-sensor.json b/cards/linux/linux-check-specific-sensor.json new file mode 100644 index 0000000000000000000000000000000000000000..44c0e09b8eb59a2263d9ab18b19be485496db9f5 --- /dev/null +++ b/cards/linux/linux-check-specific-sensor.json @@ -0,0 +1,68 @@ +{ + "schema_version": 2, + "id": "linux-check-specific-sensor", + "platform": "linux", + "kind": "task", + "title": "Check temperature of a specific sensor chip", + "summary": "If you know the name of a specific sensor chip (like coretemp-isa-0000), you can query just that chip to see its readings.", + "aliases": [ + { + "text": "check specific sensor chip", + "lang": "en" + }, + { + "text": "coretemp temperature", + "lang": "en" + }, + { + "text": "query one sensor linux", + "lang": "en" + }, + { + "text": "проверить конкретный сенсор", + "lang": "ru" + }, + { + "text": "температура coretemp", + "lang": "ru" + }, + { + "text": "показать один чип датчиков", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "First, run sensors without arguments to see the list of available chip names.", + "cmd": "sensors", + "risk": "low", + "expect": "A list of sensor chips, e.g., 'coretemp-isa-0000'." + }, + { + "explain": "Run sensors with the specific chip name to see only its readings.", + "cmd": "sensors ", + "risk": "low", + "placeholders": [ + { + "name": "CHIP_NAME", + "description": "The name of the sensor chip, e.g., coretemp-isa-0000", + "discover_cmd": "sensors" + } + ], + "expect": "Temperature readings for only the specified chip." + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/sensors.md", + "title": "tldr-pages: sensors", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-check-tuned-profile.json b/cards/linux/linux-check-tuned-profile.json new file mode 100644 index 0000000000000000000000000000000000000000..03733ffc2b6ba5306d7e58ff1fc1cb46c8f2ac63 --- /dev/null +++ b/cards/linux/linux-check-tuned-profile.json @@ -0,0 +1,61 @@ +{ + "schema_version": 2, + "id": "linux-check-tuned-profile", + "platform": "linux", + "kind": "task", + "title": "Check the active system performance tuning profile", + "summary": "Show which performance tuning profile is currently active on your Linux system. This helps you understand if the system is optimized for power saving, balanced use, or high performance.", + "aliases": [ + { + "text": "check tuned profile", + "lang": "en" + }, + { + "text": "show active tuning profile", + "lang": "en" + }, + { + "text": "what is my tuned profile", + "lang": "en" + }, + { + "text": "linux performance profile status", + "lang": "en" + }, + { + "text": "проверить профиль tuned", + "lang": "ru" + }, + { + "text": "какой профиль производительности", + "lang": "ru" + }, + { + "text": "активный профиль tuned", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "tuned" + ] + }, + "steps": [ + { + "explain": "Display the currently active performance tuning profile.", + "cmd": "tuned-adm active", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/tuned-adm.md", + "title": "tldr-pages: tuned-adm", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-check-ufw-status.json b/cards/linux/linux-check-ufw-status.json new file mode 100644 index 0000000000000000000000000000000000000000..d79e3318efcb04ecb578ab397372424319ca31c3 --- /dev/null +++ b/cards/linux/linux-check-ufw-status.json @@ -0,0 +1,104 @@ +{ + "schema_version": 2, + "id": "linux-check-ufw-status", + "platform": "linux", + "kind": "task", + "title": "Check UFW firewall status and rules", + "summary": "Check if the Uncomplicated Firewall (UFW) is active and view the current firewall rules. This helps you understand which ports are open or blocked.", + "aliases": [ + { + "text": "check ufw status", + "lang": "en" + }, + { + "text": "is ufw enabled", + "lang": "en" + }, + { + "text": "list ufw rules", + "lang": "en" + }, + { + "text": "ufw status", + "lang": "en" + }, + { + "text": "firewall status linux", + "lang": "en" + }, + { + "text": "проверить статус ufw", + "lang": "ru" + }, + { + "text": "ufw включен", + "lang": "ru" + }, + { + "text": "список правил ufw", + "lang": "ru" + }, + { + "text": "статус файрвола", + "lang": "ru" + }, + { + "text": "list firewall rules", + "lang": "en" + }, + { + "text": "show ufw rules", + "lang": "en" + }, + { + "text": "ufw status numbered", + "lang": "en" + }, + { + "text": "какие правила в ufw", + "lang": "ru" + }, + { + "text": "список правил файрвола", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "ufw" + ] + }, + "steps": [ + { + "explain": "Run the status command to see if the firewall is active and list the current rules.", + "cmd": "sudo ufw status", + "needs_root": true, + "risk": "low", + "alternatives": [ + { + "explain": "Show rules with numbers, which is useful if you plan to delete a specific rule by its number.", + "cmd": "sudo ufw status numbered", + "needs_root": true, + "risk": "low" + }, + { + "explain": "Show a verbose status, including default policies and listening ports.", + "cmd": "sudo ufw status verbose", + "needs_root": true, + "risk": "low" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/ufw-status.md", + "title": "tldr-pages: ufw-status", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-check-unit-active-state.json b/cards/linux/linux-check-unit-active-state.json new file mode 100644 index 0000000000000000000000000000000000000000..3d6960ccb48b3b279964b56d5c352fa95336fd1b --- /dev/null +++ b/cards/linux/linux-check-unit-active-state.json @@ -0,0 +1,135 @@ +{ + "schema_version": 2, + "id": "linux-check-unit-active-state", + "platform": "linux", + "kind": "task", + "title": "Check if a systemd unit is active", + "summary": "Use `systemctl is-active` to quickly check if a specific service or unit is currently running. It returns 'active' if the unit is running, and 'inactive' or 'failed' otherwise.", + "aliases": [ + { + "text": "check if service is running", + "lang": "en" + }, + { + "text": "is systemd unit active", + "lang": "en" + }, + { + "text": "systemctl is-active", + "lang": "en" + }, + { + "text": "check service status quickly", + "lang": "en" + }, + { + "text": "проверить активен ли сервис", + "lang": "ru" + }, + { + "text": "запущен ли юнит systemd", + "lang": "ru" + }, + { + "text": "статус службы systemctl", + "lang": "ru" + }, + { + "text": "check unit state", + "lang": "en" + }, + { + "text": "is service active", + "lang": "en" + }, + { + "text": "is service enabled", + "lang": "en" + }, + { + "text": "is service failed", + "lang": "en" + }, + { + "text": "systemctl is-enabled", + "lang": "en" + }, + { + "text": "systemctl is-failed", + "lang": "en" + }, + { + "text": "proverit sostoyanie sluzhby", + "lang": "ru" + }, + { + "text": "aktivna li sluzhba", + "lang": "ru" + }, + { + "text": "vkluchena li sluzhba", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "systemd" + ] + }, + "steps": [ + { + "explain": "Run the command with the name of the unit you want to check. Replace with the service name (e.g., sshd.service).", + "cmd": "systemctl is-active ", + "risk": "low", + "placeholders": [ + { + "name": "UNIT", + "description": "Name of the systemd unit to check", + "example": "sshd.service" + } + ], + "expect": "Output is 'active' if the unit is running, or 'inactive'/'failed' if not.", + "alternatives": [ + { + "explain": "Check multiple units at once by listing them separated by spaces.", + "cmd": "systemctl is-active ", + "placeholders": [ + { + "name": "UNIT1", + "description": "First unit name" + }, + { + "name": "UNIT2", + "description": "Second unit name" + } + ] + }, + { + "explain": "Check a user-specific unit (not a system service) by adding the --user flag.", + "cmd": "systemctl is-active --user", + "placeholders": [ + { + "name": "UNIT", + "description": "Name of the user unit" + } + ] + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/systemctl-is-active.md", + "title": "tldr-pages: systemctl-is-active", + "license": "CC-BY-4.0" + }, + "see_also": [ + "linux-check-service-status", + "linux-check-user-service-status" + ] +} diff --git a/cards/linux/linux-check-user-database-integrity.json b/cards/linux/linux-check-user-database-integrity.json new file mode 100644 index 0000000000000000000000000000000000000000..61c4120ecceaa84439c9494863a2e26d52b446b0 --- /dev/null +++ b/cards/linux/linux-check-user-database-integrity.json @@ -0,0 +1,56 @@ +{ + "schema_version": 2, + "id": "linux-check-user-database-integrity", + "platform": "linux", + "kind": "task", + "title": "Check user database integrity", + "summary": "Verify the integrity of the user and group databases to ensure they are not corrupted.", + "aliases": [ + { + "text": "check user database linux", + "lang": "en" + }, + { + "text": "pwck command", + "lang": "en" + }, + { + "text": "verify passwd file", + "lang": "en" + }, + { + "text": "проверить базу пользователей", + "lang": "ru" + }, + { + "text": "pwck linux", + "lang": "ru" + }, + { + "text": "проверить целостность passwd", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Run pwck to check the integrity of the user database. The -s flag sorts the user list by UID.", + "cmd": "sudo pwck -s", + "needs_root": true, + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://wiki.archlinux.org/title/Users_and_groups#User_database", + "title": "Users and groups", + "revision_id": 872887, + "license": "GFDL-1.3-or-later" + } +} diff --git a/cards/linux/linux-check-user-service-status.json b/cards/linux/linux-check-user-service-status.json new file mode 100644 index 0000000000000000000000000000000000000000..c22f15ccbdefb0f40b152b4fd00e69c49b5feb41 --- /dev/null +++ b/cards/linux/linux-check-user-service-status.json @@ -0,0 +1,65 @@ +{ + "schema_version": 2, + "id": "linux-check-user-service-status", + "platform": "linux", + "kind": "task", + "title": "Check the status of a user service", + "summary": "View the status of systemd units that run in the user's session rather than the system-wide session.", + "aliases": [ + { + "text": "check user service", + "lang": "en" + }, + { + "text": "systemctl status user", + "lang": "en" + }, + { + "text": "user session services", + "lang": "en" + }, + { + "text": "проверить пользовательскую службу", + "lang": "ru" + }, + { + "text": "статус сервиса пользователя", + "lang": "ru" + }, + { + "text": "systemctl --user", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "systemd" + ] + }, + "steps": [ + { + "explain": "Show the status of a unit running in the user's systemd instance.", + "cmd": "systemctl status --user", + "risk": "low", + "placeholders": [ + { + "name": "UNIT", + "description": "The name of the user unit (e.g., pipewire, gnome-keyring)", + "example": "pipewire" + } + ], + "expect": "Output showing the status of the user unit." + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/systemctl-status.md", + "title": "tldr-pages: systemctl-status", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-check-virtual-memory-stats.json b/cards/linux/linux-check-virtual-memory-stats.json new file mode 100644 index 0000000000000000000000000000000000000000..5d7eb7fd5f59860636d5fcbefaf02e4f7e879495 --- /dev/null +++ b/cards/linux/linux-check-virtual-memory-stats.json @@ -0,0 +1,58 @@ +{ + "schema_version": 2, + "id": "linux-check-virtual-memory-stats", + "platform": "linux", + "kind": "task", + "title": "Check virtual memory and CPU activity", + "summary": "Use vmstat to see a snapshot of system performance, including memory usage, paging, and CPU activity. It helps identify if the system is struggling with resources.", + "aliases": [ + { + "text": "check vmstat", + "lang": "en" + }, + { + "text": "virtual memory stats", + "lang": "en" + }, + { + "text": "system performance snapshot", + "lang": "en" + }, + { + "text": "cpu and memory activity", + "lang": "en" + }, + { + "text": "проверить виртуальную память", + "lang": "ru" + }, + { + "text": "статистика памяти linux", + "lang": "ru" + }, + { + "text": "нагрузка на процессор и память", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Run vmstat without arguments to display a one-time report of virtual memory statistics, including processes, memory, paging, block IO, traps, disks, and CPU activity.", + "cmd": "vmstat", + "risk": "low" + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/vmstat.md", + "title": "tldr-pages: vmstat", + "license": "CC-BY-4.0" + } +} diff --git a/cards/linux/linux-check-wifi-interface-status.json b/cards/linux/linux-check-wifi-interface-status.json new file mode 100644 index 0000000000000000000000000000000000000000..25970af480bf410c243c3b3f40288aa5350fbcdf --- /dev/null +++ b/cards/linux/linux-check-wifi-interface-status.json @@ -0,0 +1,79 @@ +{ + "schema_version": 2, + "id": "linux-check-wifi-interface-status", + "platform": "linux", + "kind": "task", + "title": "Check Wi-Fi interface status and statistics", + "summary": "Use iwconfig to see the current status, signal strength, and statistics of your wireless network interfaces. This helps you verify if your Wi-Fi card is active and connected.", + "aliases": [ + { + "text": "check wifi status linux", + "lang": "en" + }, + { + "text": "iwconfig", + "lang": "en" + }, + { + "text": "show wifi interface details", + "lang": "en" + }, + { + "text": "wireless network status", + "lang": "en" + }, + { + "text": "проверить статус вай фай", + "lang": "ru" + }, + { + "text": "iwconfig linux", + "lang": "ru" + }, + { + "text": "показать параметры wifi", + "lang": "ru" + }, + { + "text": "состояние беспроводного интерфейса", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ] + }, + "steps": [ + { + "explain": "Run iwconfig without arguments to list all wireless interfaces and their current parameters, including ESSID, mode, and signal quality.", + "cmd": "iwconfig", + "risk": "low" + }, + { + "explain": "To see details for a specific interface (like wlan0), add its name to the command.", + "cmd": "iwconfig ", + "risk": "low", + "placeholders": [ + { + "name": "INTERFACE", + "description": "The name of the wireless interface, e.g., wlan0", + "example": "wlan0", + "discover_cmd": "iwconfig" + } + ] + } + ], + "risk": "low", + "source": { + "url": "https://github.com/tldr-pages/tldr/blob/main/pages/linux/iwconfig.md", + "title": "tldr-pages: iwconfig", + "license": "CC-BY-4.0" + }, + "see_also": [ + "linux-list-network-interfaces", + "linux-nmcli-check-wifi-status" + ] +} diff --git a/cards/linux/linux-clean-old-logs.json b/cards/linux/linux-clean-old-logs.json new file mode 100644 index 0000000000000000000000000000000000000000..41eb813769c57c4fdfef297f84903cf6d0a78df5 --- /dev/null +++ b/cards/linux/linux-clean-old-logs.json @@ -0,0 +1,129 @@ +{ + "schema_version": 2, + "id": "linux-clean-old-logs", + "platform": "linux", + "kind": "task", + "title": "Delete old journal logs", + "summary": "Use journalctl to delete journal logs older than a specified time. This helps free up disk space by removing old log entries.", + "aliases": [ + { + "text": "delete old logs", + "lang": "en" + }, + { + "text": "clean journal logs", + "lang": "en" + }, + { + "text": "vacuum journal", + "lang": "en" + }, + { + "text": "remove old logs", + "lang": "en" + }, + { + "text": "free disk space logs", + "lang": "en" + }, + { + "text": "journalctl vacuum", + "lang": "en" + }, + { + "text": "clear old logs", + "lang": "en" + }, + { + "text": "delete logs older than", + "lang": "en" + }, + { + "text": "clean up logs", + "lang": "en" + }, + { + "text": "reduce log size", + "lang": "en" + }, + { + "text": "удалить старые логи", + "lang": "ru" + }, + { + "text": "очистить журнал", + "lang": "ru" + }, + { + "text": "vacuum journal", + "lang": "ru" + }, + { + "text": "удалить старые записи", + "lang": "ru" + }, + { + "text": "освободить место логами", + "lang": "ru" + }, + { + "text": "journalctl vacuum", + "lang": "ru" + }, + { + "text": "очистить старые логи", + "lang": "ru" + }, + { + "text": "удалить логи старше", + "lang": "ru" + }, + { + "text": "убрать старые логи", + "lang": "ru" + }, + { + "text": "уменьшить размер логов", + "lang": "ru" + } + ], + "applies_to": { + "distros": [ + { + "family": "any" + } + ], + "requires": [ + "systemd" + ] + }, + "steps": [ + { + "explain": "Delete journal logs which are older than the specified time (e.g., 2 days).", + "cmd": "journalctl --vacuum-time