User Tools

Site Tools


howto:aredn:linuxserver:home

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
howto:aredn:linuxserver:home [2021/11/09 16:55] – [Website] va7fihowto:aredn:linuxserver:home [2021/11/09 20:20] – [Prerequisites] va7fi
Line 8: Line 8:
   * Update and reboot it if necessary.   * Update and reboot it if necessary.
  
-  * Change the Linux hostname, which will identify the computer in various places on AREDN.  I renamed mine ''VA7FI-Linux'':<code bash>+  * Change the Linux hostname, which will identify the computer in various places on AREDN.  I renamed mine to ''VA7FI-Linux'':<code bash>
 sudo hostnamectl set-hostname VA7FI-Linux sudo hostnamectl set-hostname VA7FI-Linux
 </code> </code>
Line 15: Line 15:
 sudo aptitude install curl apache2 sudo aptitude install curl apache2
 </code> </code>
 +
 +<WRAP center round info 80%>
 +If you're hear because you're installing Mesh Chat, you can now go back to the [[../meshchat/home#mesh_chat_install |Mesh Chat Install page]].  The rest of this page is optional.
 +</WRAP>
  
 ===== Website ===== ===== Website =====
Line 32: Line 36:
 sudo chmod 770 -R /var/www/html/ sudo chmod 770 -R /var/www/html/
 </code> </code>
 +
  
 In general, those permissions are ok, but depending on what you're running as a web service, they could be too permissive.  That being said, since you're not exposing our site to the open internet, you're probably ok with those. In general, those permissions are ok, but depending on what you're running as a web service, they could be too permissive.  That being said, since you're not exposing our site to the open internet, you're probably ok with those.
Line 39: Line 44:
 You're now ready to write our fist webpage!  You can delete the ''index.html'' file that's already in the webfolder and create one of your own.  There's a simple [[https://html-online.com/editor/ |online html editor]] that's very convenient to use for small pages: simply edit the text you want on the left, and copy the html code on the right into your ''index.html'' file.  Here's [[http://va7fi-linux.local.mesh/ |VA7FI's page]] as an example.((You must be on the AREDN network to view the page)) You're now ready to write our fist webpage!  You can delete the ''index.html'' file that's already in the webfolder and create one of your own.  There's a simple [[https://html-online.com/editor/ |online html editor]] that's very convenient to use for small pages: simply edit the text you want on the left, and copy the html code on the right into your ''index.html'' file.  Here's [[http://va7fi-linux.local.mesh/ |VA7FI's page]] as an example.((You must be on the AREDN network to view the page))
  
-<WRAP center round important 80%>+<WRAP center round tip 80%>
 When you manually create new files in your web folder, you might have to correct the ownership and permissions using the lines with ''chown'' and ''chmod'' above.  Often times, if you can't see a page, it's because the ownership or permissions are wrong. When you manually create new files in your web folder, you might have to correct the ownership and permissions using the lines with ''chown'' and ''chmod'' above.  Often times, if you can't see a page, it's because the ownership or permissions are wrong.
 </WRAP> </WRAP>
Line 48: Line 53:
 ===== AREDN Node Configuration ===== ===== AREDN Node Configuration =====
 Now that the site is working locally, we can share it on the AREDN network. Now that the site is working locally, we can share it on the AREDN network.
 +
 +From the ''Port Forwarding, DHCP, ans Services'' page:
 +  - Setup a DHCP Address Reservation for the Linux computer
 +  - Advertise the services
 +  - Forward WAN port 8080 to LAN port 80
 +  - Don't for get to <key>Save Changes</key>
  
 {{ serverportforwarding.png }} {{ serverportforwarding.png }}
 +
 +==== About The Advertised Services Section ====
 +Here, I'm doing three different things:
 +  * The first line with "Primary hAP" is an optional title that I'm displaying for my hAP and has nothing to do with the Linux server.  Notice how this line doesn't have the ''Link'' checkbox marked because it's only a title, not a link.
 +  * The second line is advertising the ''/var/www/html/'' web folder.  By default, the ''index.html'' file gets read when opening a folder.  "Home Page" is the title displayed, and everything that follows is how to link to it.
 +  * The third line is advertising a ''wiki/'' folder that I have in the ''/var/www/html/'' folder, and its display name is "Wiki".
 +
 +Here's how that translates to the ''Node Status'' page:
 +{{  satuspage.png  }}