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
howto:aredn:linuxserver:home [2021/11/09 16:49] – [Website] va7fihowto:aredn:linuxserver:home [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Linux Server ====== 
  
-===== Prerequisites ===== 
- 
-Running a home Linux Server on AREDN is pretty simple. 
- 
-  * Install [[https://linuxmint.com/edition.php?id=290 |LinuxMint Xfce]] on a cheap laptop. 
-  * 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> 
-sudo hostnamectl set-hostname VA7FI-Linux 
-</code> 
- 
-  * Install Apache:<code bash> 
-sudo aptitude install curl apache2 
-</code> 
- 
-===== Website ===== 
- 
-==== The html Folder ==== 
- 
-The website folder is located here: ''/var/www/html/''  Anything you put in there (with the right permissions) will be visible to others on the AREDN network.  Let's get a few things out of the way first. 
-  * Create a link to your home folder for ease of access:<code bash> 
-ln -s /var/www/html ~/ 
-</code> 
- 
-  * Change the ownership of everything in that folder so you (the user) and the web process can access them easily.  My username is ''aredn'', which you should replace with your own username. <code html> 
-sudo chown aredn:www-data -R /var/www/html/ 
-</code> 
- 
-  * Change the permissions:<code bash> 
-sudo chmod 770 -R /var/www/html/ 
-</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 we're not exposing our site to the open internet, we're probably ok with those. 
- 
-==== The index.html File ==== 
- 
-We're now ready to write our fist webpage!  You can delete the file ''index.html'' 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)) 
- 
-At this point, you should be able to view your webpage from your Linux computer here: [[http://localhost/]] 
- 
-===== AREDN Node Configuration ===== 
- 
- 
-{{ serverportforwarding.png }} 
howto/aredn/linuxserver/home.1636505370.txt.gz · Last modified: 2021/11/09 16:49 by va7fi