From 4eb7b2f7faeaa41755d784f49f2fd73cb2d7b87f Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Thu, 24 Mar 2022 15:49:06 -0400 Subject: updated rpi4 server article --- .DS_Store | Bin 8196 -> 8196 bytes articles/.DS_Store | Bin 0 -> 6148 bytes articles/RpiRockyLinuxServer/index.html | 8 ++++---- .../RpiRockyLinuxServer/rpi4rockylinuxwebserver.md | 12 +++++------- .../RpiRockyLinuxServer/rpi4rockylinuxwebserver.pdf | Bin 267716 -> 0 bytes 5 files changed, 9 insertions(+), 11 deletions(-) create mode 100644 articles/.DS_Store delete mode 100644 articles/RpiRockyLinuxServer/rpi4rockylinuxwebserver.pdf diff --git a/.DS_Store b/.DS_Store index 58c6667..cb3069a 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/articles/.DS_Store b/articles/.DS_Store new file mode 100644 index 0000000..ff10daf Binary files /dev/null and b/articles/.DS_Store differ diff --git a/articles/RpiRockyLinuxServer/index.html b/articles/RpiRockyLinuxServer/index.html index 2965916..d4b0f97 100755 --- a/articles/RpiRockyLinuxServer/index.html +++ b/articles/RpiRockyLinuxServer/index.html @@ -16,7 +16,7 @@

 

Hosting a Website on the Raspberry Pi with Rocky Linux

- Markdown File Download PDF File Download + Markdown File Download

First Download Rocky Linux for the Raspberry Pi 3 & 4 from their website.

Screen Shot 2022-02-19 at 2.15.13 PM

Next you want to burn this image to the sd card that you are going to use. Now start up the Raspberry Pi and login with the default user rocky and the password is rockylinux.

@@ -72,7 +72,7 @@ sudo systemctl enable fail2ban sudo systemctl restart fail2ban

To create an SSH jail, edit the ssh config file with vim or nano:

-
sudo vim /etc/fail2ban/jail.d/sshd.local
+			
sudo nano /etc/fail2ban/jail.d/sshd.local
 			

Paste the following into the file and change the values as you see fit:

[sshd]
@@ -99,7 +99,7 @@ sudo dnf upgrade
 			
sudo dnf install ddclient
 			

Now, we want to edit the config file for ddclient:

-
sudo vim /etc/ddclient.conf
+			
sudo nano /etc/ddclient.conf
 			

You'll want to look for where it says protocol=dyndns2, and enter your information:

##
@@ -142,7 +142,7 @@ sudo firewall-cmd --reload
 sudo chmod -R 755 /var/www/websiteName
 			

Now, we will create the config file for website:

-
sudo vim /etc/nginx/conf.d/websiteName.conf
+			
sudo nano /etc/nginx/conf.d/websiteName.conf
 			

and paste the following into the file:

server {
diff --git a/articles/RpiRockyLinuxServer/rpi4rockylinuxwebserver.md b/articles/RpiRockyLinuxServer/rpi4rockylinuxwebserver.md
index 5274f78..fa93505 100644
--- a/articles/RpiRockyLinuxServer/rpi4rockylinuxwebserver.md
+++ b/articles/RpiRockyLinuxServer/rpi4rockylinuxwebserver.md
@@ -1,5 +1,3 @@
-
-
 # Hosting a Website on the Raspberry Pi with Rocky Linux
 
 First Download Rocky Linux for the Raspberry Pi 3 & 4 from [their website](https://rockylinux.org/alternative-images).![Screen Shot 2022-02-19 at 2.15.13 PM](img/Screen Shot 2022-02-19 at 2.15.13 PM.png)
@@ -103,10 +101,10 @@ sudo mv /etc/fail2ban/jail.d/00-firewalld.conf /etc/fail2ban/jail.d/00-firewalld
 sudo systemctl restart fail2ban
 ```
 
-To create an SSH jail, edit the ssh config file with vim or nano:
+To create an SSH jail, edit the ssh config file with nano or vim:
 
 ```sh
-sudo vim /etc/fail2ban/jail.d/sshd.local
+sudo nano /etc/fail2ban/jail.d/sshd.local
 ```
 
 Paste the following into the file and change the values as you see fit:
@@ -156,7 +154,7 @@ sudo dnf install ddclient
 Now, we want to edit the config file for ddclient:
 
 ```sh
-sudo vim /etc/ddclient.conf
+sudo nano /etc/ddclient.conf
 ```
 
 You'll want to look for where it says `protocol=dyndns2`, and enter your information:
@@ -230,7 +228,7 @@ sudo chmod -R 755 /var/www/websiteName
 Now, we will create the config file for website:
 
 ```sh
-sudo vim /etc/nginx/conf.d/websiteName.conf
+sudo nano /etc/nginx/conf.d/websiteName.conf
 ```
 
 and paste the following into the file:
@@ -302,4 +300,4 @@ and add the following line:
 
 This will check everyday at noon to see if the certificate will expire in the next month, if so it will renew the certificate.
 
-Now your website should be operational. 
\ No newline at end of file
+Now your website should be operational. 
diff --git a/articles/RpiRockyLinuxServer/rpi4rockylinuxwebserver.pdf b/articles/RpiRockyLinuxServer/rpi4rockylinuxwebserver.pdf
deleted file mode 100644
index 1f988c3..0000000
Binary files a/articles/RpiRockyLinuxServer/rpi4rockylinuxwebserver.pdf and /dev/null differ
-- 
cgit v1.2.3