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 --- articles/RpiRockyLinuxServer/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'articles/RpiRockyLinuxServer/index.html') 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 {
-- 
cgit v1.2.3