From 229a02af21a8885516fa572a73da2831f8760527 Mon Sep 17 00:00:00 2001 From: Neel Chauhan Date: Thu, 18 Jan 2024 19:15:47 -0800 Subject: [PATCH] Apache/nginx/rsnapshot: Use new keystroke formatting in Guide documents --- docs/guides/backup/rsnapshot_backup.md | 2 +- docs/guides/web/apache-sites-enabled.md | 3 ++- docs/guides/web/apache_hardened_webserver/modsecurity.md | 2 +- docs/guides/web/apache_hardened_webserver/ossec-hids.md | 4 ++-- docs/guides/web/nginx-mainline.md | 2 +- docs/guides/web/nginx-multisite.md | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/guides/backup/rsnapshot_backup.md b/docs/guides/backup/rsnapshot_backup.md index 5beb1128df..d5cc70ab6d 100644 --- a/docs/guides/backup/rsnapshot_backup.md +++ b/docs/guides/backup/rsnapshot_backup.md @@ -239,7 +239,7 @@ Remove the remark: `logfile /var/log/rsnapshot` -Finally, skip down to the `### BACKUP POINTS / SCRIPTS ###` section and add any directories that you want to add in the `# LOCALHOST` section, remember to use TAB rather than SPACE between elements! +Finally, skip down to the `### BACKUP POINTS / SCRIPTS ###` section and add any directories that you want to add in the `# LOCALHOST` section, remember to use ++tab++ rather than ++space++ between elements! For now write your changes (`SHIFT :wq!` for `vi`) and exit the configuration file. diff --git a/docs/guides/web/apache-sites-enabled.md b/docs/guides/web/apache-sites-enabled.md index 8dff1d8386..8edfec1e4c 100644 --- a/docs/guides/web/apache-sites-enabled.md +++ b/docs/guides/web/apache-sites-enabled.md @@ -119,7 +119,8 @@ The configuration file content will look something like this: ``` -When created, you need to write (save) it with shift+:+wq. + +When created, you need to write (save) it with ++shift+:+wq++. In the example, loading the wiki site happens from the "html" subdirectory of _your-server-hostname_, which means that the path you created in _/var/www_ (above) will need some additional directories to satisfy this: diff --git a/docs/guides/web/apache_hardened_webserver/modsecurity.md b/docs/guides/web/apache_hardened_webserver/modsecurity.md index ee8fe38d58..d170bf0368 100644 --- a/docs/guides/web/apache_hardened_webserver/modsecurity.md +++ b/docs/guides/web/apache_hardened_webserver/modsecurity.md @@ -129,7 +129,7 @@ Add the following content just before the end tag (`ESC to get out of insert mode, and SHIFT+:+wq to save your changes, and quit. +Use ++esc++ to get out of insert mode, and ++shift+:+wq++ to save your changes, and quit. ## Restart `httpd` and verify `mod_security` diff --git a/docs/guides/web/apache_hardened_webserver/ossec-hids.md b/docs/guides/web/apache_hardened_webserver/ossec-hids.md index fe9e706abc..5f217a4f83 100644 --- a/docs/guides/web/apache_hardened_webserver/ossec-hids.md +++ b/docs/guides/web/apache_hardened_webserver/ossec-hids.md @@ -43,7 +43,7 @@ Download and enable Atomicorp's no cost repository: wget -q -O - https://www.atomicorp.com/installers/atomic | sh ``` -This script will ask you to agree to the terms. Enter "yes" or Enter to accept the default. +This script will ask you to agree to the terms. Enter "yes" or ++enter++ to accept the default. Next, it will ask you if you want to enable the repository by default, and again you want to accept the default or enter "yes". @@ -61,7 +61,7 @@ Add this line beneath the "enabled = 1" in the top section: includepkgs = ossec* GeoIP* inotify-tools ``` -That is the only change you need. Save your changes and get out of the repository (in `vi` that is esc to enter command mode, then SHIFT+:+wq to save and quit). +That is the only change you need. Save your changes and get out of the repository (in `vi` that is ++esc++ to enter command mode, then ++shift+:+wq++ to save and quit). This restricts the Atomicorp repository only to install and update these packages. diff --git a/docs/guides/web/nginx-mainline.md b/docs/guides/web/nginx-mainline.md index ffeffba498..3d75c0eca6 100644 --- a/docs/guides/web/nginx-mainline.md +++ b/docs/guides/web/nginx-mainline.md @@ -67,7 +67,7 @@ Then enable the right module for the latest version of `nginx`. This module will sudo dnf module enable nginx:mainline ``` -It'll give you the usual "Are you sure you want to do that?", but this isn't 2nd Edition D&D with Gary Gygax himself, so yes. Of course you do. Hit y to confirm. +It'll give you the usual "Are you sure you want to do that?", but this isn't 2nd Edition D&D with Gary Gygax himself, so yes. Of course you do. Hit ++y++ to confirm. ## Installing and Running Nginx diff --git a/docs/guides/web/nginx-multisite.md b/docs/guides/web/nginx-multisite.md index 2e71a2507f..576c5e37c0 100644 --- a/docs/guides/web/nginx-multisite.md +++ b/docs/guides/web/nginx-multisite.md @@ -171,7 +171,7 @@ include /etc/nginx/sites-enabled/*.conf; That will load in our website configuration files when they're ready to go live. -Now head down to the section that looks like this, and either **comment it out** with the hash sign #, or delete it if you feel so inclined: +Now head down to the section that looks like this, and either **comment it out** with the hash sign ++#++, or delete it if you feel so inclined: ``` server {