summaryrefslogtreecommitdiff
path: root/articles/RpiRockyLinuxServer
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@simplelittledream.com>2022-03-24 15:49:06 -0400
committerJacob McDonnell <jacob@simplelittledream.com>2022-03-24 15:49:06 -0400
commit4eb7b2f7faeaa41755d784f49f2fd73cb2d7b87f (patch)
treeb2519c4e343ef1ed754b8f0fa959610e8edba42d /articles/RpiRockyLinuxServer
parentd3bb64a6725b4c0e4077d91685a8cd9cc1531b7e (diff)
updated rpi4 server article
Diffstat (limited to 'articles/RpiRockyLinuxServer')
-rwxr-xr-xarticles/RpiRockyLinuxServer/index.html8
-rw-r--r--articles/RpiRockyLinuxServer/rpi4rockylinuxwebserver.md12
-rw-r--r--articles/RpiRockyLinuxServer/rpi4rockylinuxwebserver.pdfbin267716 -> 0 bytes
3 files changed, 9 insertions, 11 deletions
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 @@
<div class="main">
<p>&nbsp;</p>
<h1 id='hosting-a-website-on-the-raspberry-pi-with-rocky-linux'>Hosting a Website on the Raspberry Pi with Rocky Linux</h1>
- <a href="rpi4rockylinuxwebserver.md">Markdown File Download</a> <a href="rpi4rockylinuxwebserver.pdf">PDF File Download</a>
+ <a href="rpi4rockylinuxwebserver.md">Markdown File Download</a>
<p>First Download Rocky Linux for the Raspberry Pi 3 &amp; 4 from <a href='https://rockylinux.org/alternative-images'>their website</a>.</p>
<center><img class="imgs" src="img/Screen Shot 2022-02-19 at 2.15.13 PM.png" referrerpolicy="no-referrer" alt="Screen Shot 2022-02-19 at 2.15.13 PM"></center>
<p>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 <code>rocky</code> and the password is <code>rockylinux</code>. </p>
@@ -72,7 +72,7 @@ sudo systemctl enable fail2ban
sudo systemctl restart fail2ban
</code></pre>
<p>To create an SSH jail, edit the ssh config file with vim or nano:</p>
- <pre><code class='language-shell' lang='shell'>sudo vim /etc/fail2ban/jail.d/sshd.local
+ <pre><code class='language-shell' lang='shell'>sudo nano /etc/fail2ban/jail.d/sshd.local
</code></pre>
<p>Paste the following into the file and change the values as you see fit:</p>
<pre><code>[sshd]
@@ -99,7 +99,7 @@ sudo dnf upgrade
<pre><code class='language-shell' lang='shell'>sudo dnf install ddclient
</code></pre>
<p>Now, we want to edit the config file for ddclient:</p>
- <pre><code class='language-shell' lang='shell'>sudo vim /etc/ddclient.conf
+ <pre><code class='language-shell' lang='shell'>sudo nano /etc/ddclient.conf
</code></pre>
<p>You&#39;ll want to look for where it says <code>protocol=dyndns2</code>, and enter your information:</p>
<pre><code>##
@@ -142,7 +142,7 @@ sudo firewall-cmd --reload
sudo chmod -R 755 /var/www/websiteName
</code></pre>
<p>Now, we will create the config file for website:</p>
- <pre><code class='language-shell' lang='shell'>sudo vim /etc/nginx/conf.d/websiteName.conf
+ <pre><code class='language-shell' lang='shell'>sudo nano /etc/nginx/conf.d/websiteName.conf
</code></pre>
<p>and paste the following into the file:</p>
<pre><code>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
--- a/articles/RpiRockyLinuxServer/rpi4rockylinuxwebserver.pdf
+++ /dev/null
Binary files differ